includes/template.php
changeset 1043 ac1ecaacb48e
parent 1023 5a282dbf8fad
child 1046 cfc6c30c5e2d
equal deleted inserted replaced
1042:13ad9c1cb7d4 1043:ac1ecaacb48e
   306     $this->named_theme_list = array();
   306     $this->named_theme_list = array();
   307     foreach ( $this->theme_list as $i => &$theme )
   307     foreach ( $this->theme_list as $i => &$theme )
   308       $this->named_theme_list[ $theme['theme_id'] ] =& $this->theme_list[$i];
   308       $this->named_theme_list[ $theme['theme_id'] ] =& $this->theme_list[$i];
   309   }
   309   }
   310   
   310   
       
   311   /**
       
   312    * Register a new sidebar block.
       
   313    * @param string Block title
       
   314    * @param string Block HTML
       
   315    * @param bool If true, the class of the block will be the same as the one used for blocks that are a list of links instead of HTML content. This can do some wacky things like make all your <a>s block level.
       
   316    */
       
   317   
   311   function sidebar_widget($t, $h, $use_normal_section = false)
   318   function sidebar_widget($t, $h, $use_normal_section = false)
   312   {
   319   {
   313     global $db, $session, $paths, $template, $plugins; // Common objects
   320     global $db, $session, $paths, $template, $plugins; // Common objects
   314     if ( !$this->theme_loaded )
   321     if ( !$this->theme_loaded )
   315     {
   322     {