t("Author")); } static function get($block_id, $theme) { $item = $theme->item; if ($block_id != 'author' || $item->is_album() ) { return ''; } $record = db::build() ->select("author") ->from("author_records") ->where("item_id", "=", $item->id) ->execute() ->current(); $byline = $record->author; if ($byline == '') { $byline = author::fix($item); } $block = new Block(); $block->content = new View("author_block.html"); $block->content->author = $byline; return $block; } }