From ab9c902e17ec1c08d746a195dcaaf1effc5c0f56 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sun, 20 Jul 2025 14:14:41 +0200 Subject: [PATCH] Beginning custom theme for Volse Hubzilla --- volse/css/style.css | 8 ++++++++ volse/php/style.php | 13 +++++++++++++ volse/php/theme.php | 17 +++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 volse/css/style.css create mode 100644 volse/php/style.php create mode 100644 volse/php/theme.php diff --git a/volse/css/style.css b/volse/css/style.css new file mode 100644 index 0000000..1d4166d --- /dev/null +++ b/volse/css/style.css @@ -0,0 +1,8 @@ +/* + * Style overrides for Volse Hubzilla theme. + * + * SPDX-FileCopyrightText: 2025 Eilertsens Kodeknekkeri + * SPDX-FileContributor: Harald Eilertsen + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ diff --git a/volse/php/style.php b/volse/php/style.php new file mode 100644 index 0000000..855e6d3 --- /dev/null +++ b/volse/php/style.php @@ -0,0 +1,13 @@ + + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + +define('VOLSE_THEME_ROOT', dirname(__DIR__)); +define('THEME_ROOT', PROJECT_BASE . '/view/theme'); + +require_once(THEME_ROOT . '/redbasic/php/style.php'); +echo file_get_contents(VOLSE_THEME_ROOT . '/css/style.css'); diff --git a/volse/php/theme.php b/volse/php/theme.php new file mode 100644 index 0000000..118a311 --- /dev/null +++ b/volse/php/theme.php @@ -0,0 +1,17 @@ + + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + +function volse_init() { + App::$theme_info['extends'] = 'redbasic'; +}