diff --git a/e107_handlers/theme_handler.php b/e107_handlers/theme_handler.php index 47103348a..dcfe06f66 100644 --- a/e107_handlers/theme_handler.php +++ b/e107_handlers/theme_handler.php @@ -10,9 +10,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_handlers/theme_handler.php,v $ -| $Revision: 1.41 $ -| $Date: 2009-07-25 07:54:34 $ -| $Author: marj_nl_fr $ +| $Revision: 1.42 $ +| $Date: 2009-08-06 22:27:47 $ +| $Author: e107coders $ +----------------------------------------------------------------------------+ */ @@ -626,14 +626,15 @@ class themeHandler{ $text .= "
- + + - + "; $text .= ""; @@ -649,7 +650,7 @@ class themeHandler{ $text .= ""; - if($mode == 1) + if($mode == 1) // site theme.. { $text .= " @@ -681,7 +682,7 @@ class themeHandler{ - if($mode==1) // New in 0.8 ---- + if($mode==1) // New in 0.8 ---- site theme. { $itext = " @@ -783,19 +784,20 @@ class themeHandler{ \n"; + foreach($theme['css'] as $css) { + $text2 = ""; + if($mode == 1 && substr($css['name'],0,6)=="admin_") { continue; } - - $text .= "\n"; if($mode == 2) { if (!$css['nonadmin']) { - $text .= " + $text2 = " @@ -808,7 +810,7 @@ class themeHandler{ { - $text .= " + $text2 = " @@ -816,7 +818,9 @@ class themeHandler{ \n"; } - $text .= ""; + + $text .= ($text2) ? "".$text2."" : ""; + } $text .= "
".TPVLAN_11." ".$theme['version']."$newpreview ".$newpreview."
".TPVLAN_4.":".$author."
".($css['info'] ? $css['info'] : ($css['name'] == "style.css" ? TPVLAN_23 : TPVLAN_24))."
";