Exemplo n.º 1
0
 public function calendar($display_year = "", $display_user = "")
 {
     // Draw a calendar for the year specified by $display_year.
     // Make sure the function parameters aren't null,
     //   give them default values if they are.
     if ($display_year == "") {
         $display_year = date('Y');
     }
     if ($display_user == "") {
         $display_user = "******";
     }
     // Draw the page.
     $template = new Theme_View("calpage.html", "other", "CalendarView");
     $template->css("calendarview_calendar.css");
     $template->set_global("calendar_user", $display_user);
     $template->page_title = t("Gallery :: Calendar");
     $template->content = new View("calendarview_year.html");
     $template->content->calendar_year = $display_year;
     $template->content->calendar_user = $display_user;
     $template->content->calendar_user_year_form = $this->_get_calenderprefs_form($display_year, $display_user);
     $template->content->title = t("Calendar") . ": " . $display_year;
     // Set up breadcrumbs
     $calendar_breadcrumbs[0] = new Calendar_Breadcrumb(item::root()->title, item::root()->url());
     $calendar_breadcrumbs[1] = new Calendar_Breadcrumb($display_year, "");
     $template->set_global("breadcrumbs", $calendar_breadcrumbs);
     print $template;
 }
Exemplo n.º 2
0
 public function index()
 {
     $template = new Theme_View("page.html", "other", "About");
     $template->css("about.css");
     $template->page_title = t("Gallery :: About");
     $template->content = new View("about.html");
     print $template;
 }
Exemplo n.º 3
0
 public function index()
 {
     $template = new Theme_View("page.html", "other", "All Tags");
     $template->css("all_tags.css");
     $template->page_title = t("Gallery :: All Tags");
     $template->content = new View("all_tags.html");
     $filter = Input::instance()->get("filter");
     $template->content->filter = $filter;
     $query = ORM::factory("tag");
     if ($filter) {
         $query->like("name", $filter);
     }
     $template->content->tags = $query->order_by("name", "ASC")->find_all();
     print $template;
 }
Exemplo n.º 4
0
 public function calendar($display_year, $display_user)
 {
     // Draw a calendar for the year specified by $display_year.
     // Make sure the function parameters aren't null,
     //   give them default values if they are.
     if ($display_year == "") {
         $display_year = date('Y');
     }
     if ($display_user == "") {
         $display_user = "******";
     }
     // Draw the page.
     $template = new Theme_View("page.html", "other", "CalendarView");
     $template->css("calendarview_calendar.css");
     $template->page_title = t("Gallery :: Calendar");
     $template->content = new View("calendarview_year.html");
     $template->content->calendar_year = $display_year;
     $template->content->calendar_user = $display_user;
     $template->content->calendar_user_year_form = $this->_get_calenderprefs_form($display_year, $display_user);
     print $template;
 }