+
+
+
+
+
+
+
+ |
+ ";
+
+ $d = $this->get_theme_xml('bootstrap3');
+ $opts = array();
+
+ foreach($d['css'] as $val)
+ {
+ $key = $val['name'];
+
+ if(empty($val['thumbnail']))
+ {
+ continue;
+ }
+
+ $opts[$key] = array (
+ 'title' => $val['info'],
+ 'preview' => e_THEME."bootstrap3/".$val['thumbnail'],
+ 'description' =>'',
+ 'category'=>''
+ );
+
+
+ }
+
+ $output .= $this->thumbnailSelector('admincss', $opts, 'css/bootstrap-dark.min.css');
+
+ $output .= "
+
+
|
@@ -1072,6 +1116,11 @@ class e_install
}
}
+ if(!empty($_POST['admincss']))
+ {
+ $this->previous_steps['prefs']['admincss'] = $tp->filter($_POST['admincss']);
+ }
+
// ------------- Validate Step 5 Data. --------------------------
if(!vartrue($this->previous_steps['admin']['user']) || !vartrue($this->previous_steps['admin']['password']))
{
@@ -1123,6 +1172,8 @@ class e_install
$themes = $this->get_themes();
+ $opts = array();
+
foreach($themes as $val)
{
@@ -1131,17 +1182,29 @@ class e_install
continue;
}*/
+
+
$themeInfo = $this->get_theme_xml($val);
- $title = vartrue($themeInfo['@attributes']['name']);
+
+
+ $opts[$val] = array(
+ 'title' =>vartrue($themeInfo['@attributes']['name']),
+ 'category' => vartrue($themeInfo['category']),
+ 'preview' => e_THEME.$val."/".$themeInfo['thumbnail'],
+ 'description' => vartrue($themeInfo['info'])
+ );
+
+ /* $title = vartrue($themeInfo['@attributes']['name']);
$category = vartrue($themeInfo['category']);
$preview = e_THEME.$val."/".$themeInfo['thumbnail'];
- $description = vartrue($themeInfo['description']);
+ $description = vartrue($themeInfo['info']);
if(!is_readable($preview))
{
continue;
}
+
$thumbnail = "

";
@@ -1154,9 +1217,12 @@ class e_install
".$title." (".$category.")
- ";
+ ";*/
}
+ $output .= $this->thumbnailSelector('sitetheme', $opts, DEFAULT_INSTALL_THEME);
+
+
$output .= "
@@ -1189,6 +1255,43 @@ class e_install
$this->logLine('Stage 6 completed');
}
+
+ private function thumbnailSelector($name, $opts, $default='')
+ {
+
+ $ret = '';
+
+ foreach($opts as $key=>$val)
+ {
+
+ if(!is_readable($val['preview']) || !is_file($val['preview']))
+ {
+ continue;
+ }
+
+
+ $thumbnail = "