本文整理匯總了PHP中FSS_Helper::open_header方法的典型用法代碼示例。如果您正苦於以下問題:PHP FSS_Helper::open_header方法的具體用法?PHP FSS_Helper::open_header怎麽用?PHP FSS_Helper::open_header使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類FSS_Helper
的用法示例。
在下文中一共展示了FSS_Helper::open_header方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: PageTitle
static function PageTitle($title = "", $subtitle = "", $template = 'display_h1')
{
// if we have page_headingout set, then the self::$open_header var contains some html to be displayed after the heading
// has been output. Must output this otherwise you end up with missing container div tags
$post = "";
if (!empty(self::$open_header) && self::$open_header) {
$post = self::$open_header;
}
self::$open_header = null;
$mainframe = JFactory::getApplication();
$pageparams = $mainframe->getPageParameters('com_fss');
$title = JText::_($title);
$subtitle = JText::_($subtitle);
$pageheading = $pageparams->get('page_title', '');
$menutitle = $pageparams->get('page_heading', $pageheading);
$document = JFactory::getDocument();
// setup browser title
$title_browser = FSS_Helper::TitleString($title, $subtitle, $pageheading, true);
if ($mainframe->getCfg('sitename_pagetitles', 0) == 1) {
$title_browser = JText::sprintf('JPAGETITLE', $mainframe->getCfg('sitename'), $title_browser);
}
if ($mainframe->getCfg('sitename_pagetitles', 0) == 2) {
$title_browser = JText::sprintf('JPAGETITLE', $title_browser, $mainframe->getCfg('sitename'));
}
$document->setTitle($title_browser);
// setup page title
$title_page = FSS_Helper::TitleString($title, $subtitle, $menutitle, false);
// title set to none, just return
if (FSS_Settings::get('title_prefix') == 99) {
return $post;
}
// should the "Show Page Heading" option be used?
if (FSS_Settings::get('use_joomla_page_title_setting')) {
if ($pageparams->get('show_page_heading', 1)) {
return str_replace("\$1", $title_page, FSS_Settings::get($template)) . $post;
}
return $post;
}
// Normal, always show title
$output = str_replace("\$1", $title_page, FSS_Settings::get($template));
return $output . $post;
}