includes/template.php
changeset 212 30b857a6b811
parent 211 753dabeca1ee
child 215 94db56b8124f
equal deleted inserted replaced
211:753dabeca1ee 212:30b857a6b811
   734               $js_dynamic .= '>'.$t['theme_name'].'</option>';
   734               $js_dynamic .= '>'.$t['theme_name'].'</option>';
   735             }
   735             }
   736           }
   736           }
   737       $js_dynamic .= '\';
   737       $js_dynamic .= '\';
   738       var ENANO_CURRENT_THEME = \''. $session->theme .'\';
   738       var ENANO_CURRENT_THEME = \''. $session->theme .'\';
   739       var ENANO_LANG_ID = ' . $lang->lang_id . ';';
   739       var ENANO_LANG_ID = ' . $lang->lang_id . ';
       
   740       var ENANO_PAGE_TYPE = "' . addslashes($this->namespace_string) . '";';
   740       foreach($paths->nslist as $k => $c)
   741       foreach($paths->nslist as $k => $c)
   741       {
   742       {
   742         $js_dynamic .= "namespace_list['{$k}'] = '$c';";
   743         $js_dynamic .= "namespace_list['{$k}'] = '$c';";
   743       }
   744       }
   744       $js_dynamic .= "\n    //]]>\n    </script>";
   745       $js_dynamic .= "\n    //]]>\n    </script>";