當前位置: 首頁>>代碼示例>>PHP>>正文


PHP rex_be_controller::getPageTitle方法代碼示例

本文整理匯總了PHP中rex_be_controller::getPageTitle方法的典型用法代碼示例。如果您正苦於以下問題:PHP rex_be_controller::getPageTitle方法的具體用法?PHP rex_be_controller::getPageTitle怎麽用?PHP rex_be_controller::getPageTitle使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在rex_be_controller的用法示例。


在下文中一共展示了rex_be_controller::getPageTitle方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: rex_fragment

    $fragment = new rex_fragment();
    $fragment->setVar('pageTitle', rex_be_controller::getPageTitle());
    $fragment->setVar('cssFiles', rex_view::getCssFiles());
    $fragment->setVar('jsFiles', rex_view::getJsFiles());
    $fragment->setVar('jsProperties', json_encode(rex_view::getJsProperties()), false);
    $fragment->setVar('favicon', rex_view::getFavicon());
    $fragment->setVar('pageHeader', rex_extension::registerPoint(new rex_extension_point('PAGE_HEADER', '')), false);
    $fragment->setVar('bodyAttr', $body, false);
    echo $fragment->parse('core/top.php');
    $fragment = new rex_fragment();
    $fragment->setVar('items', $meta_items, false);
    $meta_navigation = $fragment->parse('core/navigations/meta.php');
    $fragment = new rex_fragment();
    // $fragment->setVar('pageHeader', rex_extension::registerPoint(new rex_extension_point('PAGE_HEADER', '')), false);
    $fragment->setVar('meta_navigation', $meta_navigation, false);
    echo $fragment->parse('core/header.php');
    echo '<div id="rex-js-page-container" class="rex-page-container">';
} elseif (rex_request::isPJAXRequest()) {
    // add title to the page, so pjax can update it. see gh#136
    echo '<title>' . htmlspecialchars(rex_be_controller::getPageTitle()) . '</title>';
}
$fragment = new rex_fragment();
$fragment->setVar('navigation', $navigation, false);
echo $fragment->parse('core/navigation.php');
$pjax = $curPage->allowsPjax() ? ' data-pjax-container="#rex-js-page-main"' : '';
?>
<div class="rex-page-main"><section class="rex-page-main-inner" id="rex-js-page-main"<?php 
echo $pjax;
?>
>
開發者ID:eaCe,項目名稱:redaxo,代碼行數:30,代碼來源:top.php

示例2: array

    $block = array();
    $block['headline'] = array('title' => rex_i18n::msg('login'));
    $block['navigation'] = $navi;
    $blocks[] = $block;

    $fragment = new rex_fragment();
    // $fragment->setVar('headline', array("title" => $this->getHeadline($block)), false);
    $fragment->setVar('type', 'main', false);
    $fragment->setVar('blocks', $blocks, false);
    $navigation = $fragment->parse('navigation.php');
}
*/
/* PJAX Footer Header ***********************************************************/
if (!rex_request::isPJAXContainer('#rex-js-page-container')) {
    $fragment = new rex_fragment();
    $fragment->setVar('pageTitle', rex_be_controller::getPageTitle());
    $fragment->setVar('cssFiles', rex_view::getCssFiles());
    $fragment->setVar('jsFiles', rex_view::getJsFiles());
    $fragment->setVar('jsProperties', json_encode(rex_view::getJsProperties()), false);
    $fragment->setVar('favicon', rex_view::getFavicon());
    $fragment->setVar('pageHeader', rex_extension::registerPoint(new rex_extension_point('PAGE_HEADER', '')), false);
    $fragment->setVar('bodyAttr', $body, false);
    echo $fragment->parse('core/top.php');
    $fragment = new rex_fragment();
    $fragment->setVar('items', $meta_items, false);
    $meta_navigation = $fragment->parse('core/navigations/meta.php');
    $fragment = new rex_fragment();
    // $fragment->setVar('pageHeader', rex_extension::registerPoint(new rex_extension_point('PAGE_HEADER', '')), false);
    $fragment->setVar('meta_navigation', $meta_navigation, false);
    echo $fragment->parse('core/header.php');
}
開發者ID:staabm,項目名稱:redaxo,代碼行數:31,代碼來源:top.php


注:本文中的rex_be_controller::getPageTitle方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。