示例#1
0
 /**
  * Display tagging // not display_tags
  *
  * @param array $tags
  * @param string $basehref
  * @return string HTML
  */
 function display_tagging($tags)
 {
     $ret = '<span class="tag">';
     $ret .= 'Tag: ';
     $pkwk_tag = new PluginSonotsTag();
     foreach ($tags as $tag) {
         $ret .= $pkwk_tag->make_taglink($tag);
     }
     $ret .= '</span>';
     global $head_tags;
     $head_tags[] = ' <meta name="keywords" content="' . htmlspecialchars(implode(', ', $tags)) . '" />';
     return $ret;
 }
 /**
  * Display tags and tagged pages
  *
  * @param array $tags list of tags
  * @return string HTML
  */
 function tagpagelist($tags, $options, $argoptions, $cssclass = 'taglist tags')
 {
     $html = '<ul class="' . $cssclass . '">';
     $plugin_tag = new PluginSonotsTag();
     foreach ($tags as $tag) {
         $html .= '<li>' . $plugin_tag->make_taglink($tag);
         $pages = $plugin_tag->get_taggedpages($tag);
         $html .= $this->pagelist($pages, $options, $argoptions);
         $html .= '</li>';
     }
     $html .= '</ul>';
     return $html;
 }