t("Embed Links Dialog"), "embed_links_album" => t("Embed Links Album")); } static function get($block_id, $theme) { $block = ""; if (!$theme->item()) { return; } switch ($block_id) { case "embed_links_dialog": // Display dialog buttons in the sidebar. $block = new Block(); $block->css_id = "g-embed-links-sidebar"; $block->title = t("Link To This Page"); $block->content = new View("embedlinks_sidebar.html"); break; case "embed_links_album": // If the current item is an album and if "In Page" links are enabled then // display links to the current album in the theme sidebar. if ($theme->item()->is_album() && module::get_var("embedlinks", "InPageLinks")) { $block = new Block(); $block->css_id = "g-embed-links-album-sidebar"; $block->title = t("Links"); $block->content = new View("embedlinks_album_block.html"); } break; } return $block; } }