From c16047afe5093cb95f2a604f2aaba812548ab454 Mon Sep 17 00:00:00 2001 From: Moc Date: Sun, 10 Aug 2014 14:16:25 +0200 Subject: [PATCH] Switch 'help' and 'custom config' tab on theme configuration. Added 'save options' button on custom config tab. --- e107_handlers/theme_handler.php | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/e107_handlers/theme_handler.php b/e107_handlers/theme_handler.php index 58263621e..9195f5396 100644 --- a/e107_handlers/theme_handler.php +++ b/e107_handlers/theme_handler.php @@ -1134,17 +1134,16 @@ class themeHandler
@@ -1432,6 +1431,26 @@ class themeHandler ".$this->renderThemeConfig()." + +
"; + + if($mode == 2) // admin + { + $mainid = "selectmain[".$theme['id']."]"; + $text .= $this->frm->admin_button('submit_adminstyle', TPVLAN_35, 'update'); + //$text .= $this->frm->admin_button($mainid, TPVLAN_10, 'other'); + + } + else // main + { + $adminid = "selectadmin[".$theme['id']."]"; + $text .= $this->frm->admin_button('submit_style', TPVLAN_35, 'update'); + //$text .= $this->frm->admin_button($adminid, TPVLAN_32, 'other'); + } + + $text .= ""; + + $text .= "
\n";