mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
Fixes theme prefs.
This commit is contained in:
@@ -2367,17 +2367,16 @@ class themeHandler
|
|||||||
|
|
||||||
$this->id = $name;
|
$this->id = $name;
|
||||||
$this->loadThemeConfig();
|
$this->loadThemeConfig();
|
||||||
$name = get_class($this->themeConfigObj);
|
$className = get_class($this->themeConfigObj);
|
||||||
|
|
||||||
if($name === 'theme_config') // new way. 2.1.4
|
if($className === 'theme_config') // new way. 2.1.4
|
||||||
{
|
{
|
||||||
$themeConfig = e107::getThemeConfig($name);
|
$themeConfig = e107::getThemeConfig($name);
|
||||||
|
|
||||||
e107::getMessage()->addDebug("Saving theme prefs to their own row. ");
|
e107::getMessage()->addDebug("Saving theme prefs to their own row: ".print_r($themePrefs,true));
|
||||||
|
|
||||||
foreach($themePrefs as $key=>$val)
|
foreach($themePrefs as $key=>$val)
|
||||||
{
|
{
|
||||||
|
|
||||||
$themeConfig->add($key,$val);
|
$themeConfig->add($key,$val);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -14,6 +14,7 @@ define("FONTAWESOME", 4);
|
|||||||
define('VIEWPORT', "width=device-width, initial-scale=1.0");
|
define('VIEWPORT', "width=device-width, initial-scale=1.0");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
||||||
/* @see https://www.cdnperf.com */
|
/* @see https://www.cdnperf.com */
|
||||||
|
@@ -40,4 +40,9 @@
|
|||||||
</menuPresets>
|
</menuPresets>
|
||||||
</layout>
|
</layout>
|
||||||
</layouts>
|
</layouts>
|
||||||
|
<themePrefs>
|
||||||
|
<pref name='branding'>sitename</pref>
|
||||||
|
<pref name='nav_alignment'>right</pref>
|
||||||
|
<pref name='usernav_placement'>bottom</pref>
|
||||||
|
</themePrefs>
|
||||||
</e107Theme>
|
</e107Theme>
|
Reference in New Issue
Block a user