本文整理匯總了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;
}