本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}