t("More Photos From This Date")); } static function get($block_id, $theme) { $block = ""; // Make sure the current page belongs to an item. if (!$theme->item()) { return; } $item = $theme->item; $display_date = ""; if (isset($item->captured)) { $display_date = $item->captured; }elseif (isset($item->created)) { $display_date = $item->created; } switch ($block_id) { case "calendarview_photo": if ($display_date != "") { $block = new Block(); $block->css_id = "g-calendarview-sidebar"; $block->title = t("Calendar"); $block->content = new View("calendarview_sidebar.html"); $block->content->date = $display_date; } break; } return $block; } }