includes/template.php
changeset 29 e5484a9e0818
parent 27 dd659f6ba891
child 30 7e8fd44b36b0
equal deleted inserted replaced
28:dd2edcdc6c03 29:e5484a9e0818
   676       var ENANO_THEME_LIST = \'';
   676       var ENANO_THEME_LIST = \'';
   677           foreach($this->theme_list as $t) {
   677           foreach($this->theme_list as $t) {
   678             if($t['enabled'])
   678             if($t['enabled'])
   679             {
   679             {
   680               $js_dynamic .= '<option value="'.$t['theme_id'].'"';
   680               $js_dynamic .= '<option value="'.$t['theme_id'].'"';
   681               if($t['theme_id'] == $session->theme) $js_dynamic .= ' selected="selected"';
   681               // if($t['theme_id'] == $session->theme) $js_dynamic .= ' selected="selected"';
   682               $js_dynamic .= '>'.$t['theme_name'].'</option>';
   682               $js_dynamic .= '>'.$t['theme_name'].'</option>';
   683             }
   683             }
   684           }
   684           }
   685       $js_dynamic .= '\';
   685       $js_dynamic .= '\';
   686       var ENANO_CURRENT_THEME = \''. $session->theme .'\';';
   686       var ENANO_CURRENT_THEME = \''. $session->theme .'\';';