title, $root->url())->set_first(); $breadcrumbs[] = Breadcrumb::instance(t("Album Tree View"), url::site("treeview"))->set_last(); // Set up and display the actual page. $style = module::get_var("treeview", "viewstyle", "list"); $template = new Theme_View("page.html", "other", "Tree View"); $template->set_global(array("breadcrumbs" => $breadcrumbs)); $template->page_title = t("Gallery :: Album Tree View"); $template->content = new View("treeview_page_{$style}.html"); $template->content->title = t("Album Tree View"); $template->content->root = item::root(); // Display the page. print $template; } }