t("IPTC info")); } static function get($block_id, $theme) { $block = ""; switch ($block_id) { case "iptc": if ($theme->item()) { $details = iptc::get($theme->item()); if (count($details) > 0) { $block = new Block(); $block->css_id = "g-metadata"; $block->title = t("IPTC info"); $block->content = new View("iptc_block.html"); $block->content->details = $details; } } break; } return $block; } }