item()) { $album_tags = ORM::factory("tags_album_id") ->where("album_id", "=", $theme->item->id) ->find_all(); if (count($album_tags) > 0) { url::redirect(url::abs_site("tag_albums/album/" . $album_tags[0]->id . "/" . urlencode($theme->item->name))); } } return; } static function dynamic_top($theme) { // If this page is the "all tags" dynamic page, display filter link text. if (isset($theme->content->filter_text) && module::get_var("tag_albums", "tag_index_filter_top", "0")) { $view = new View("tag_albums_filter.html"); $view->filter_text = $theme->content->filter_text; return $view; } } static function dynamic_bottom($theme) { // If this page is the "all tags" dynamic page, display filter link text. if (isset($theme->content->filter_text) && module::get_var("tag_albums", "tag_index_filter_bottom", "0")) { $view = new View("tag_albums_filter.html"); $view->filter_text = $theme->content->filter_text; return $view; } } }