3 global $page_owner, $CFG, $PAGE;
5 if (!empty($page_owner) && $page_owner != -1) {
7 if ($categories = get_records_sql("select * from ".$CFG->prefix
."tags where tagtype = 'weblogcat' and owner = $page_owner order by tag asc")) {
9 $title = __gettext('Blog categories');
12 // TODO insert tags where tag_type = category
14 foreach($categories as $category) {
15 $body .= '<li><a href="' . $CFG->wwwroot
. user_info("username",$page_owner) . '/weblog/category/'. urlencode($category->tag
) .'">'. $category->tag
.'</a></li>';
20 $run_result .= '<li id="weblog_category">';
21 $run_result .= templates_draw(array('context' => 'sidebarholder',
24 $run_result .= '</li>';