mirror of
https://github.com/e107inc/e107.git
synced 2025-08-31 10:01:56 +02:00
themePrefs can be set at installation time. see _blank/theme.xml for an example.
This commit is contained in:
@@ -23,11 +23,11 @@ class theme__blank implements e_theme_config
|
||||
$frm = e107::getForm();
|
||||
|
||||
$var[0]['caption'] = "Sample configuration field";
|
||||
$var[0]['html'] = $frm->text('_blank_example', e107::getThemePref('example', 'default'));
|
||||
$var[0]['html'] = $frm->text('_blank_example', e107::pref('theme', 'example', 'default'));
|
||||
$var[0]['help'] = "Example help text for this input field";
|
||||
|
||||
$var[1]['caption'] = "Sample configuration field 2";
|
||||
$var[1]['html'] = $frm->text('_blank_example2', e107::getThemePref('example2', 'default'));
|
||||
$var[1]['html'] = $frm->text('_blank_example2', e107::pref('theme', 'example2', 'default'));
|
||||
|
||||
return $var;
|
||||
}
|
||||
|
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<e107Theme name="blank" version="1.0" date="2031-05-01" compatibility="2.0" livedemo='http://e107.org'>
|
||||
<author name ="e107 Inc" email="nospam@e107.org" url="http://e107.org" />
|
||||
<summary>Bootstrap e107 admin theme</summary>
|
||||
<summary>Blank Example theme</summary>
|
||||
<description>Blank e107 Theme</description>
|
||||
<category>generic</category>
|
||||
<compliance xhtml="1.1" css="2.1" />
|
||||
@@ -25,4 +25,8 @@
|
||||
<custompages>/forum</custompages>
|
||||
</layout>
|
||||
</layouts>
|
||||
<themePrefs>
|
||||
<pref name='example'>Stored Theme value 1</pref>
|
||||
<pref name='example2'>Stored Theme value 2</pref>
|
||||
</themePrefs>
|
||||
</e107Theme>
|
Reference in New Issue
Block a user