includes/template.php
changeset 978 ed84b24b8e07
parent 971 bc8f3ab74e5e
child 1003 28e2f75d66fd
equal deleted inserted replaced
977:322a9bf1e280 978:ed84b24b8e07
  2923     global $db, $session, $paths, $template, $plugins; // Common objects
  2923     global $db, $session, $paths, $template, $plugins; // Common objects
  2924     $tplvars = $this->extract_vars('elements.tpl');
  2924     $tplvars = $this->extract_vars('elements.tpl');
  2925     $tb = '';
  2925     $tb = '';
  2926     // Get the "article" button text (depends on namespace)
  2926     // Get the "article" button text (depends on namespace)
  2927     if(defined('IN_ENANO_INSTALL') && is_object($lang)) $ns = $lang->get('meta_btn_article');
  2927     if(defined('IN_ENANO_INSTALL') && is_object($lang)) $ns = $lang->get('meta_btn_article');
       
  2928     else if ( isset($GLOBALS['article_btn']) ) $ns = $GLOBALS['article_btn'];
  2928     else $ns = 'system error page';
  2929     else $ns = 'system error page';
  2929     $t = str_replace('{FLAGS}', 'onclick="return false;" title="Hey! A button that doesn\'t do anything. Clever..." accesskey="a"', $tplvars['toolbar_button']);
  2930     $t = str_replace('{FLAGS}', 'onclick="return false;" class="current" title="Hey! A button that doesn\'t do anything. Clever..." accesskey="a"', $tplvars['toolbar_button']);
  2930     $t = str_replace('{HREF}', '#', $t);
  2931     $t = str_replace('{HREF}', '#', $t);
  2931     $t = str_replace('{TEXT}', $ns, $t);
  2932     $t = str_replace('{TEXT}', $ns, $t);
  2932     $tb .= $t;
  2933     $tb .= $t;
  2933     
  2934     
  2934     // Page toolbar
  2935     // Page toolbar