t("Pages Links")); } static function get($block_id, $theme) { $block = ""; switch ($block_id) { case "pages_block": // Create a new block with a list of all Pages and their links. // Query the database for all existing pages. // If at least one page exists, display the sidebar block. $query = ORM::factory("static_page"); $pages = $query->order_by("title", "ASC")->find_all(); if (count($pages) > 0) { // Loop through each page and generate an HTML list of their links and titles. $content = "