public function __construct() { parent::__construct(); $this->head->link->append(url::current_site('feed')); if (config::get('blog.enable_tagcloud') === 'yes') { $tags = ORM::factory('blog_post')->tags(); if (!empty($tags)) { Sidebar::instance()->add('Tagcloud', array('tags' => $tags)); } } }
</div> </div> <div id="content"> <div id="article"> <div class="entry"> <?php echo $content; ?> </div> </div> <div id="sidebar"> <?php echo Widget::factory('Submenu'); ?> <?php echo Sidebar::instance(); ?> </div> <div class="clear"></div> </div> <div id="bottom"> </div> <div id="footer"> <div class="widthfix"> © 2008 Your Name, powered by <a href="http://www.s7n.de/">S7Ncms</a>, theme by <a href="http://hellowiki.com/about/">Fen</a> </div> </div> <div class="none"></div> <?php Event::run('s7n.theme.page_bottom'); ?>
public static function make() { return self::$instance = new Sidebar(); }