item()) { return; } $albumID = $theme->item->is_album() ? $theme->item->id : $theme->item->parent_id; $block = new Block(); $block->css_id = "gUpdates"; $block->title = t("Updates"); $block->content = new View("latestupdates_block.html"); $block->content->updateLinks = array( t("Entire Gallery") => url::site("latestupdates/updates"), t("This Album") => url::site("latestupdates/albums/$albumID") ); return $block; } }