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.
This commit is contained in:
parent
ab9c902e17
commit
459fe184f1
2 changed files with 21 additions and 5 deletions
19
volse/php/config.php
Normal file
19
volse/php/config.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
/*
|
||||
* Extra configuration for Volse Hubzilla Theme
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2025 Eilertsens Kodeknekkeri
|
||||
* SPDX-FileContributor: Harald Eilertsen <haraldei@anduin.net>
|
||||
*
|
||||
* 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 {
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue