includes/template.php
changeset 1203 c6587072e4c4
parent 1196 704ba4b9819b
child 1220 fbfd6c852c89
equal deleted inserted replaced
1202:5d63267470cd 1203:c6587072e4c4
  3021     $js_dynamic = '';
  3021     $js_dynamic = '';
  3022     if ( defined('IN_ENANO_INSTALL') )
  3022     if ( defined('IN_ENANO_INSTALL') )
  3023     {
  3023     {
  3024       $js_dynamic .= '<script type="text/javascript" src="install.php?mode=langjs"></script>';
  3024       $js_dynamic .= '<script type="text/javascript" src="install.php?mode=langjs"></script>';
  3025     }
  3025     }
  3026     $js_dynamic .= '<script type="text/javascript">var title="'. $title .'"; var scriptPath="'.scriptPath.'"; var cdnPath="'.scriptPath.'"; var ENANO_SID=""; var AES_BITS='.AES_BITS.'; var AES_BLOCKSIZE=' . AES_BLOCKSIZE . '; var pagepass=\'\'; var ENANO_LANG_ID = 1; var msg_loading_component = \'Loading %component%...\';</script>';
  3026     $js_dynamic .= '<script type="text/javascript">var title="'. $title .'"; var scriptPath="'.scriptPath.'"; var cdnPath="'.scriptPath.'"; var ENANO_SID=""; var AES_BITS='.AES_BITS.'; var AES_BLOCKSIZE=' . AES_BLOCKSIZE . '; var pagepass=\'\'; var ENANO_LANG_ID = 1; var enano_version = \'' . enano_version() . '\'; var msg_loading_component = \'Loading %component%...\';</script>';
  3027     
  3027     
  3028     global $site_name, $site_desc;
  3028     global $site_name, $site_desc;
  3029     $site_default_name = ( !empty($site_name) ) ? $site_name : 'Critical error';
  3029     $site_default_name = ( !empty($site_name) ) ? $site_name : 'Critical error';
  3030     $site_default_desc = ( !empty($site_desc) ) ? $site_desc : 'This site is experiencing a problem and cannot load.';
  3030     $site_default_desc = ( !empty($site_desc) ) ? $site_desc : 'This site is experiencing a problem and cannot load.';
  3031     
  3031     
  3060       'THEME_ID'=>$this->theme,
  3060       'THEME_ID'=>$this->theme,
  3061       'STYLE_ID'=>$this->style,
  3061       'STYLE_ID'=>$this->style,
  3062       'JS_DYNAMIC_VARS'=>$js_dynamic,
  3062       'JS_DYNAMIC_VARS'=>$js_dynamic,
  3063       'SIDEBAR_RIGHT'=>'',
  3063       'SIDEBAR_RIGHT'=>'',
  3064       'REPORT_URI' => '',
  3064       'REPORT_URI' => '',
  3065       'URL_ABOUT_ENANO' => 'http://enanocms.org/'
  3065       'URL_ABOUT_ENANO' => 'http://enanocms.org/',
       
  3066       'ENANO_VERSION' => enano_version()
  3066       );
  3067       );
  3067     $this->tpl_strings = array_merge($tpl_strings, $this->tpl_strings);
  3068     $this->tpl_strings = array_merge($tpl_strings, $this->tpl_strings);
  3068     
  3069     
  3069     $sidebar = ( is_array(@$sideinfo) ) ? $sideinfo : '';
  3070     $sidebar = ( is_array(@$sideinfo) ) ? $sideinfo : '';
  3070     if ( $sidebar != '' )
  3071     if ( $sidebar != '' )