当前位置: 首页>>代码示例>>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;未经允许,请勿转载。