t("Popular tags")); } static function get($block_id, $theme) { $block = ""; switch ($block_id) { case "tag": $block = new Block(); $block->css_id = "g-tag"; $block->title = t("Popular tags"); $block->content = new View("tag_block.html"); $block->content->cloud = tag::cloud(module::get_var("tag", "tag_cloud_size", 30)); if ($theme->item() && $theme->page_subtype() != "tag" && access::can("edit", $theme->item())) { $controller = new Tags_Controller(); $block->content->form = tag::get_add_form($theme->item()); } else { $block->content->form = ""; } break; } return $block; } }