item()->is_album() && module::get_var("embedlinks", "InPageLinks")) { $block = new Block(); $block->css_id = "gMetadata"; $block->title = t("Links"); $block->content = new View("embedlinks_album_block.html"); return $block; } } static function sidebar_bottom($theme) { // If displaying links in a dialog box is enabled then // insert buttons into the bottom of the side bar // to open up the dialog window. if (module::get_var("embedlinks", "DialogLinks")) { $block = new Block(); $block->css_id = "gMetadata"; $block->title = t("Link To This Page:"); $block->content = new View("embedlinks_sidebar.html"); return $block; } } static function photo_bottom($theme) { // If the current item is a photo and displaying "In Page" links // is enabled, then insert HTML/BBCode links into the bottom // of the page. if (module::get_var("embedlinks", "InPageLinks")) { $block = new Block(); $block->css_id = "gMetadata"; $block->title = t("Links"); $block->content = new View("embedlinks_photo_block.html"); return $block; } } }