t("Download Item")); } static function get($block_id, $theme) { $item = $theme->item; switch ($block_id) { case "downloadfullsize": // If Item is movie then... if ($item && $item->is_movie() && access::can("view_full", $item)) { $block = new Block(); $block->css_id = "g-download-fullsize"; $block->title = t("Download Movie"); $block->content = new View("downloadfullsize_block.html"); return $block; } // If Item is photo then... if ($item && $item->is_photo() && access::can("view_full", $item)) { $block = new Block(); $block->css_id = "g-download-fullsize"; $block->title = t("Download Photo"); $block->content = new View("downloadfullsize_block.html"); return $block; } } return ""; } }