includes/template.php
changeset 1101 30d8bb88572d
parent 1081 745200a9cc2a
child 1132 05fe0039d952
equal deleted inserted replaced
1100:aead4e1ce5df 1101:30d8bb88572d
  1176     // ASSIGN VARIABLES
  1176     // ASSIGN VARIABLES
  1177     //
  1177     //
  1178     
  1178     
  1179     $this->assign_vars(array(
  1179     $this->assign_vars(array(
  1180         'PAGE_NAME' => htmlspecialchars($this->page->ns->cdata['name']),
  1180         'PAGE_NAME' => htmlspecialchars($this->page->ns->cdata['name']),
  1181         'PAGE_URLNAME' => sanitize_page_id($this->page_id),
  1181         'PAGE_URLNAME' => $paths->nslist[$this->namespace] . sanitize_page_id($this->page_id),
  1182         'TOOLBAR' => $tb,
  1182         'TOOLBAR' => $tb,
  1183         'TOOLBAR_EXTRAS' => $this->toolbar_menu,
  1183         'TOOLBAR_EXTRAS' => $this->toolbar_menu,
  1184         'STYLE_LINK' => makeUrlNS('Special', 'CSS', null, true), //contentPath.$paths->nslist['Special'].'CSS' . $p,
  1184         'STYLE_LINK' => makeUrlNS('Special', 'CSS', null, true), //contentPath.$paths->nslist['Special'].'CSS' . $p,
  1185         'LOGIN_LINK' => $login_link,
  1185         'LOGIN_LINK' => $login_link,
  1186         'LOGOUT_LINK' => $logout_link,
  1186         'LOGOUT_LINK' => $logout_link,
  3013     $js_dynamic = '';
  3013     $js_dynamic = '';
  3014     if ( defined('IN_ENANO_INSTALL') )
  3014     if ( defined('IN_ENANO_INSTALL') )
  3015     {
  3015     {
  3016       $js_dynamic .= '<script type="text/javascript" src="install.php?mode=langjs"></script>';
  3016       $js_dynamic .= '<script type="text/javascript" src="install.php?mode=langjs"></script>';
  3017     }
  3017     }
  3018     $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;</script>';
  3018     $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>';
  3019     
  3019     
  3020     global $site_name, $site_desc;
  3020     global $site_name, $site_desc;
  3021     $site_default_name = ( !empty($site_name) ) ? $site_name : 'Critical error';
  3021     $site_default_name = ( !empty($site_name) ) ? $site_name : 'Critical error';
  3022     $site_default_desc = ( !empty($site_desc) ) ? $site_desc : 'This site is experiencing a problem and cannot load.';
  3022     $site_default_desc = ( !empty($site_desc) ) ? $site_desc : 'This site is experiencing a problem and cannot load.';
  3023     
  3023