".$thumbnail."
".$main_icon.$admin_icon.$info_icon.$preview_icon."
-
".$theme['name']." ".$theme['version']."
+
".strip_tags($theme['name'])." ".$theme['version']."
".$price."
";
+
return $text;
}
@@ -1805,7 +1814,7 @@ class themeHandler
".LAN_CONFIGURE."";
- if($this->themeConfigObj && call_user_func(array(&$this->themeConfigObj, 'config')) && $mode == 1)
+ if($this->themeConfigObj && call_user_func(array(&$this->themeConfigObj, 'config')) && $mode == self::RENDER_SITEPREFS)
{
$text .= "
".LAN_PREFS."\n";
}
@@ -1853,7 +1862,7 @@ class themeHandler
// site theme..
- if($mode == 1)
+ if($mode == self::RENDER_SITEPREFS)
{
$text .= "
@@ -1877,11 +1886,7 @@ class themeHandler
".TPVLAN_29."
";*/
- }
-
- // New in 0.8 ---- site theme.
- if($mode == 1)
- {
+
$itext = "
".TPVLAN_50.": |
@@ -1894,7 +1899,7 @@ class themeHandler
";
- $itext .= ($mode == 1) ? "".TPVLAN_55." | " : "";
+ $itext .= ($mode == self::RENDER_SITEPREFS) ? "".TPVLAN_55." | " : "";
$itext .= "
".TPVLAN_52." |
".TPVLAN_56." |
@@ -1907,7 +1912,7 @@ class themeHandler
{
$itext .= "
";
- if($mode == 1)
+ if($mode == self::RENDER_SITEPREFS)
{
if(!$pref['sitetheme_deflayout'])
{
@@ -1999,7 +2004,7 @@ class themeHandler
// $itext .= !$mode ? "
".TPVLAN_8.": | ".$previewbutton.$selectmainbutton.$selectadminbutton." |
" : "";
- if($mode == 2)
+ if($mode == self::RENDER_ADMINPREFS)
{
$astext = "";
@@ -2064,7 +2069,7 @@ class themeHandler
switch($mode)
{
- case 2: // admin mode.
+ case self::RENDER_ADMINPREFS: // admin mode.
$for = $frm->name2id("admincss-".$css['name']);
$text2 = "
";
$text2 .= $frm->radio('admincss', $css['name'], vartrue($pref['admincss'])== $css['name'], array('id'=>$for));
@@ -2073,7 +2078,7 @@ class themeHandler
$text2 .= " | ".($css['info'] ? $css['info'] : ($css['name'] == "admin_style.css" ? TPVLAN_23 : TPVLAN_24))." | \n";
break;
- case 1: // front 'sitetheme' mode.
+ case self::RENDER_SITEPREFS: // front 'sitetheme' mode.
$text2 = "
@@ -2098,7 +2103,7 @@ class themeHandler
|