validate_id($id); } if ($list_id) { $site->validate_id($list_id); } $tags = new Taglist(); if ($view == 'cloud') { $order = ($_GET['order']) ? $_GET['order'] : ''; $taglist = $tags->tag_cloud('', $order); } elseif ($view == 'recs') { $taglist = $tags->list_tags('recs'); $template->assign_if("recs", 1); $title = $lang['recs_title']; } else { $taglist = $tags->list_tags('all'); $template->assign_if("tags", 1); $title = $lang['tags_title']; } $template->assign("TAGS", $taglist); // Process template $template->assign("PAGE_TITLE", $title); $template->assign("HEAD_TITLE", $site->site_title($title, 1)); $template->pparse("layout/tags.tmpl"); ?>