includes/template.php
changeset 118 0c5efda996bf
parent 115 261f367623af
child 125 fb31c951d3a2
equal deleted inserted replaced
117:7cfdbb2fd17a 118:0c5efda996bf
   760     $this->tpl_strings = array_merge($tpl_strings, $this->tpl_strings);
   760     $this->tpl_strings = array_merge($tpl_strings, $this->tpl_strings);
   761     list($this->tpl_strings['SIDEBAR_LEFT'], $this->tpl_strings['SIDEBAR_RIGHT'], $min) = $this->fetch_sidebar();
   761     list($this->tpl_strings['SIDEBAR_LEFT'], $this->tpl_strings['SIDEBAR_RIGHT'], $min) = $this->fetch_sidebar();
   762     $this->tpl_bool['sidebar_left']  = ( $this->tpl_strings['SIDEBAR_LEFT']  != $min) ? true : false;
   762     $this->tpl_bool['sidebar_left']  = ( $this->tpl_strings['SIDEBAR_LEFT']  != $min) ? true : false;
   763     $this->tpl_bool['sidebar_right'] = ( $this->tpl_strings['SIDEBAR_RIGHT'] != $min) ? true : false;
   763     $this->tpl_bool['sidebar_right'] = ( $this->tpl_strings['SIDEBAR_RIGHT'] != $min) ? true : false;
   764     $this->tpl_bool['right_sidebar'] = $this->tpl_bool['sidebar_right']; // backward compatibility
   764     $this->tpl_bool['right_sidebar'] = $this->tpl_bool['sidebar_right']; // backward compatibility
       
   765     
       
   766     $code = $plugins->setHook('template_var_init_end');
       
   767     foreach ( $code as $cmd )
       
   768     {
       
   769       eval($cmd);
       
   770     }
   765   }
   771   }
   766   
   772   
   767   function header($simple = false) 
   773   function header($simple = false) 
   768   {
   774   {
   769     global $db, $session, $paths, $template, $plugins; // Common objects
   775     global $db, $session, $paths, $template, $plugins; // Common objects