diff --git a/e107_handlers/theme_handler.php b/e107_handlers/theme_handler.php index df83c2800..1075e5af1 100644 --- a/e107_handlers/theme_handler.php +++ b/e107_handlers/theme_handler.php @@ -706,7 +706,7 @@ class themeHandler $text = $this->renderTheme(1, $theme); } } - echo "
\n"; + echo "\n"; $ns->tablerender(TPVLAN_26.SEP.TPVLAN_33, $mes->render().$text); echo "
"; } @@ -722,7 +722,7 @@ class themeHandler $text = $this->renderTheme(2, $theme); } } - echo "
\n"; + echo "\n"; $ns->tablerender(TPVLAN_26.SEP.TPVLAN_34, $mes->render().$text); echo "
"; } @@ -744,7 +744,7 @@ class themeHandler // print_a($theme); } $text .= "
 
"; - echo "
\n"; + echo "\n"; $ns->tablerender(TPVLAN_26.SEP.TPVLAN_39, $mes->render().$text); $text .= "
"; @@ -1210,10 +1210,10 @@ class themeHandler - - ".TPVLAN_11." - ".$theme['version']." - ".$thumbnail." + + ".TPVLAN_11." + ".$theme['version']." + ".$thumbnail." "; $text .= "".LAN_AUTHOR.":".$author.""; @@ -1225,8 +1225,7 @@ class themeHandler $text .= "".LAN_FOLDER.":".$theme['path'].""; // $text .= "Price:".$price.""; - $text .= "".TPVLAN_49.": - "; + $text .= "".TPVLAN_49.":"; $text .= ($theme['xhtmlcompliant']) ? "W3C XHTML ".$theme['xhtmlcompliant'] : TPVLAN_71; $text .= ($theme['csscompliant']) ? " & CSS ".$theme['csscompliant'] : ""; $text .= ""; @@ -1246,7 +1245,7 @@ class themeHandler $text .= " ".TPVLAN_53." - "; + "; if(varset($theme['plugins'])) { @@ -1410,13 +1409,24 @@ class themeHandler $text .= " ".TPVLAN_41.": - ".$astext." + ".$astext." + + \n"; + + $text .= " + + " . TPVLAN_89 . " + + + \n"; } - $text .= $itext; + $text .= varset($itext, ''); $theme['css'] = $this->filterStylesheets($mode, $theme); @@ -1443,16 +1453,12 @@ class themeHandler switch($mode) { case 2: // admin mode. - $for = $frm->name2id("admincss-".$css['name']); - $text2 = " - ". - $frm->radio('admincss', $css['name'], vartrue($pref['admincss'])== $css['name'])." - - "; - + $text2 = ""; + $text2 .= $frm->radio('admincss', $css['name'], vartrue($pref['admincss'])== $css['name']); + $text2 .= ""; + $text2 .= ""; $text2 .= "".($css['info'] ? $css['info'] : ($css['name'] == "admin_style.css" ? TPVLAN_23 : TPVLAN_24))."\n"; - break; case 1: // front 'sitetheme' mode. @@ -1981,9 +1987,14 @@ class themeHandler //TODO adminlog - e107::getConfig()->setPosted('admincss', $_POST['admincss'])->setPosted('adminstyle', $_POST['adminstyle']); + e107::getConfig() + ->setPosted('admincss', $_POST['admincss']) + ->setPosted('adminstyle', $_POST['adminstyle']) + ->setPosted('adminpref', $_POST['adminpref']); - return (e107::getConfig()->dataHasChangedFor('admincss') || e107::getConfig()->dataHasChangedFor('adminstyle')); + return (e107::getConfig()->dataHasChangedFor('admincss') + || e107::getConfig()->dataHasChangedFor('adminstyle') + || e107::getConfig()->dataHasChangedFor('adminpref')); } function SetCustomPages($array) diff --git a/e107_languages/English/admin/lan_theme.php b/e107_languages/English/admin/lan_theme.php index 35cf9bb35..31931268f 100644 --- a/e107_languages/English/admin/lan_theme.php +++ b/e107_languages/English/admin/lan_theme.php @@ -122,4 +122,4 @@ define("TPVLAN_86","Could not change site theme."); define("TPVLAN_87","Rendering Theme Config"); define("TPVLAN_88","Converter"); -?> +define("TPVLAN_89", "Apply dashboard preferences to all administrators");