本文整理汇总了PHP中GWF_Website::addInlineCSS方法的典型用法代码示例。如果您正苦于以下问题:PHP GWF_Website::addInlineCSS方法的具体用法?PHP GWF_Website::addInlineCSS怎么用?PHP GWF_Website::addInlineCSS使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GWF_Website
的用法示例。
在下文中一共展示了GWF_Website::addInlineCSS方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: showPage
public function showPage(GWF_Page $page)
{
$page->increase('page_views', 1);
$robot = $page->isOptionEnabled(GWF_PAGE::INDEXED) ? 'index,' : 'noindex,';
$robot .= $page->isOptionEnabled(GWF_PAGE::FOLLOW) ? 'follow' : 'nofollow';
GWF_Website::addMeta(array('robots', $robot, 0), true);
GWF_Website::setMetaDescr($page->getVar('page_meta_desc'));
GWF_Website::setMetaTags($page->getVar('page_meta_tags'));
GWF_Website::setPageTitle($page->getVar('page_title'));
GWF_Website::addInlineCSS($page->getVar('page_inline_css'));
$translations = $this->getPageTranslations($page);
$user = GWF_User::getStaticOrGuest();
$tVars = array('page' => $page, 'page_views' => $page->getVar('page_views'), 'title' => $page->display('page_title'), 'author' => $page->display('page_author_name'), 'created' => GWF_Time::displayDate($page->getVar('page_create_date')), 'modified' => GWF_Time::displayDate($page->getVar('page_date')), 'content' => $this->getPageContent($page), 'comments' => $this->getPageComments($page), 'form_reply' => $this->getPageCommentsForm($page), 'pagemenu' => $this->getPagemenuComments($page), 'translations' => $translations, 'trans_string' => $this->getPageTranslationsString($page, $translations), 'similar' => $this->getSimilarPages($page), 'edit_permission' => $page->isOwner($user) || $this->module->isAuthor($user));
return $this->module->template('show_page.tpl', $tVars);
}