# HG changeset patch # User Dan # Date 1247093508 14400 # Node ID ac1ecaacb48e884852b562b5fec3b9c71aee824b # Parent 13ad9c1cb7d47ffd55e504e673a9c5e7ce8c28d5 Template: minor: documented sidebar_widget() diff -r 13ad9c1cb7d4 -r ac1ecaacb48e includes/template.php --- a/includes/template.php Wed Jul 08 18:51:19 2009 -0400 +++ b/includes/template.php Wed Jul 08 18:51:48 2009 -0400 @@ -308,6 +308,13 @@ $this->named_theme_list[ $theme['theme_id'] ] =& $this->theme_list[$i]; } + /** + * Register a new sidebar block. + * @param string Block title + * @param string Block HTML + * @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 s block level. + */ + function sidebar_widget($t, $h, $use_normal_section = false) { global $db, $session, $paths, $template, $plugins; // Common objects