';
+ $text .= "
";
+ $text .= '
+
';
+
+ $slides = array();
+
foreach($xdata['theme'] as $r)
{
if(E107_DBG_PATH)
@@ -559,9 +499,25 @@ class themeHandler
'website' => $r['@attributes']['authorUrl'],
'compatibility' => $r['@attributes']['compatibility'],
'description' => varset($r['description']),
+ 'price' => $r['@attributes']['price'],
+ 'livedemo' => $r['@attributes']['livedemo'],
);
+
$text .= $this->renderTheme(FALSE, $theme);
+
+ $c++;
+
+ if($c == 19)
+ {
+ $text .= '
';
+ $slides[] = 1;
+ $c = 1;
+ }
+
+
+
+
/*
[author] => e107 Inc
@@ -601,30 +557,119 @@ class themeHandler
*/
}
-
+
+
$text .= "
";
+ $text .= "
";
+ $text .= "
";
}
else
{
$mes->addInfo("No Themes found which match your search criteria");
}
-
-
+ $indicators = '
+ ';
-
- $ns->tablerender(TPVLAN_26.SEP."Available for Download", $text. $mes->render());
-
+ foreach($slides as $key=>$v)
+ {
+ $id = $key + 1;
+ $indicators .= '';
+ }
+
+ $indicators .= '
';
+
+ $text = str_replace("{CAROUSEL_INDICATORS}",$indicators,$text);
+
+ $text .= "";
+
+ $ns->tablerender(TPVLAN_26.SEP."Available for Download", $text. $mes->render());
+
+ }
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+ function showThemes($mode = 'main')
+ {
+ global $pref;
+ $mes = e107::getMessage();
+ $ns = e107::getRender();
+ $tp = e107::getParser();
+ $frm = e107::getForm();
+ $srch = preg_replace('/[^\w]/','', vartrue($_GET['srch']));
+ echo "
";
+
+ if($mode == "main" || !$mode) // Show Main Configuration
+ {
+ foreach ($this->themeArray as $key=>$theme)
+ {
+ if($key == $pref['sitetheme'])
+ {
+ $text = $this->renderTheme(1, $theme);
+ }
+ }
+ echo "";
}
-
- echo "\n
\n";
+ // Show Admin Configuration
+ if($mode == "admin")
+ {
+
+ foreach ($this->themeArray as $key=>$theme)
+ {
+ if($key == $pref['admintheme'])
+ {
+ $text = $this->renderTheme(2, $theme);
+ }
+ }
+ echo "
";
+ }
-
+ // Show Upload Form
+ if($mode == "upload")
+ {
+ $this->renderUploadForm();
+ }
+
+ // Show All Themes
+ if($mode == "choose")
+ {
+
+ $text = "";
+ foreach ($this->themeArray as $key=>$theme)
+ {
+ $text .= $this->renderTheme(FALSE, $theme);
+ // print_a($theme);
+ }
+ $text .= "
";
+ echo "
";
+
+ }
+
+
+ if($mode == "online")
+ {
+ $this->renderOnline();
+ }
+
+ echo "
\n";
}
@@ -690,6 +735,7 @@ class themeHandler
$preview = "