From 459fe184f17f36a8c9c96a41ad12525742961dbe Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sun, 20 Jul 2025 23:21:29 +0200 Subject: [PATCH] Use extend theme attribute and add theme config Add the extend attribute to the theme info via the theme info comment block rather than adding it in the volse_init() method. This also makes the volse_init() method obsolete for now. See MR 2217: https://framagit.org/hubzilla/core/-/merge_requests/2217 Also add a theme config class that extends the redbasic config class. This enables the extra theme configuration and schema support from Redbasic. --- volse/php/config.php | 19 +++++++++++++++++++ volse/php/theme.php | 7 ++----- 2 files changed, 21 insertions(+), 5 deletions(-) create mode 100644 volse/php/config.php diff --git a/volse/php/config.php b/volse/php/config.php new file mode 100644 index 0000000..835e72e --- /dev/null +++ b/volse/php/config.php @@ -0,0 +1,19 @@ + + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + +namespace Zotlabs\Theme; + +require_once 'view/theme/redbasic/php/config.php'; + +/** + * Extra configuartion options for Volse Hubzilla theme. + */ +class VolseConfig extends RedbasicConfig { +} diff --git a/volse/php/theme.php b/volse/php/theme.php index 118a311..6bd4f7b 100644 --- a/volse/php/theme.php +++ b/volse/php/theme.php @@ -1,17 +1,14 @@ * * SPDX-License-Identifier: AGPL-3.0-or-later */ - -function volse_init() { - App::$theme_info['extends'] = 'redbasic'; -}