當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Theme_View::css方法代碼示例

本文整理匯總了PHP中Theme_View::css方法的典型用法代碼示例。如果您正苦於以下問題:PHP Theme_View::css方法的具體用法?PHP Theme_View::css怎麽用?PHP Theme_View::css使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Theme_View的用法示例。


在下文中一共展示了Theme_View::css方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: calendar

 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 = "-1";
     }
     // 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;
 }
開發者ID:Weerwolf,項目名稱:gallery3-contrib,代碼行數:27,代碼來源:calendarview.php

示例2: index

 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;
 }
開發者ID:webmatter,項目名稱:gallery3-contrib,代碼行數:8,代碼來源:about.php

示例3: index

 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;
 }
開發者ID:webmatter,項目名稱:gallery3-contrib,代碼行數:15,代碼來源:all_tags.php

示例4: calendar

 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 = "-1";
     }
     // 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;
 }
開發者ID:regi01,項目名稱:gallery3-contrib,代碼行數:21,代碼來源:calendarview.php


注:本文中的Theme_View::css方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。