| [ PHPXref.com ] | [ Generated: Sun Jul 20 18:29:26 2008 ] | [ LnBlog 0.7.0 ] |
| [ Index ] [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 class TagList extends Plugin { 3 4 function TagList() { 5 $this->plugin_desc = _("Provides a list of links to view post for each tag used in the blog."); 6 $this->plugin_version = "0.1.0"; 7 $this->addOption("header", _("Sidebar section heading"), _("Topics")); 8 $this->getConfig(); 9 } 10 11 function output($parm=false) { 12 13 $blg = NewBlog(); 14 if (! $blg->isBlog() ) return false; 15 if (empty($blg->tag_list)) return false; 16 if ($this->header) { 17 ?><h3><?php echo $this->header;?></h3><?php } ?> 18 <ul><?php 19 foreach ($blg->tag_list as $tag) { ?> 20 <li><a href="<?php echo $blg->getURL(); ?>tags.php?tag=<?php echo $tag;?>"><?php echo $tag;?></a></li><?php 21 } ?> 22 </ul><?php 23 } 24 25 } 26 27 $tgl = new TagList(); 28 $tgl->registerEventHandler("sidebar", "OnOutput", "output"); 29 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| [ Powered by PHPXref - Served by Debian GNU/Linux ] |