本文整理汇总了PHP中rex_be_controller::getCurrentPageObject方法的典型用法代码示例。如果您正苦于以下问题:PHP rex_be_controller::getCurrentPageObject方法的具体用法?PHP rex_be_controller::getCurrentPageObject怎么用?PHP rex_be_controller::getCurrentPageObject使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类rex_be_controller
的用法示例。
在下文中一共展示了rex_be_controller::getCurrentPageObject方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
</div><!-- END .rex-page -->
<?php
if (rex_be_controller::getCurrentPage() != 'login' && !rex_be_controller::getCurrentPageObject()->isPopup()) {
?>
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".rex-nav-main > .navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<?php
}
?>
</body>
</html>
示例2: rex_request
<?php
/**
* @package redaxo5
*/
// -------------- Defaults
$subpage = rex_be_controller::getCurrentPagePart(2);
$func = rex_request('func', 'string');
echo rex_view::title(rex_i18n::msg('modules'));
include rex_be_controller::getCurrentPageObject()->getSubPath();
示例3:
<nav class="rex-nav-top navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<?php
if (rex_be_controller::getCurrentPageObject()->isPopup()) {
?>
<span class="navbar-brand"><img class="rex-js-svg rex-redaxo-logo" src="<?php
echo rex_url::coreAssets('redaxo-logo.svg');
?>
" /></span>
<?php
} else {
?>
<a class="navbar-brand" href="<?php
echo rex_url::backendController();
?>
"><img class="rex-js-svg rex-redaxo-logo" src="<?php
echo rex_url::coreAssets('redaxo-logo.svg');
?>
" /></a>
<?php
}
?>
</div>
<?php
echo $this->meta_navigation;
?>
</div>
</nav>
示例4: unset
<?php
$curPage = rex_be_controller::getCurrentPageObject();
if (!$curPage->hasLayout()) {
if (rex_request::isPJAXRequest()) {
echo '</section>';
}
return;
}
?>
</section></div><?php
if (rex_request::isPJAXContainer('#rex-js-page-container')) {
return;
}
echo '</div>';
$sidebar = rex_extension::registerPoint(new rex_extension_point('PAGE_SIDEBAR', ''));
if ($sidebar != '') {
$sidebarfragment = new rex_fragment();
$sidebarfragment->content = $sidebar;
echo $sidebarfragment->parse('core/sidebar.php');
unset($sidebarfragment);
}
unset($fragment);
$footerfragment = new rex_fragment();
$footerfragment->setVar('time', rex::getProperty('timer')->getFormattedDelta(rex_timer::SEC));
echo $footerfragment->parse('core/footer.php');
unset($footerfragment);
$bottomfragment = new rex_fragment();
echo $bottomfragment->parse('core/bottom.php');
unset($bottomfragment);
示例5: isActive
/**
* Returns whether the page is active.
*
* @return bool
*/
public function isActive()
{
if ($this->isActive !== null) {
return $this->isActive;
}
$page = rex_be_controller::getCurrentPageObject();
do {
if ($page === $this) {
return true;
}
} while ($page = $page->getParent());
return false;
}
示例6: rex_extension_point
// ------------------------------------------ END: CONTENT HEAD MENUE
// ------------------------------------------ WARNING
if ($global_warning != '') {
$contentMain .= rex_view::warning($global_warning);
}
if ($global_info != '') {
$contentMain .= rex_view::success($global_info);
}
// --------------------------------------------- API MESSAGES
$contentMain .= rex_api_function::getMessage();
if ($warning != '') {
$contentMain .= rex_view::warning($warning);
}
if ($info != '') {
$contentMain .= rex_view::success($info);
}
// ----- EXTENSION POINT
$contentMain .= rex_extension::registerPoint(new rex_extension_point('STRUCTURE_CONTENT_BEFORE_SLICES', '', ['article_id' => $article_id, 'clang' => $clang, 'function' => $function, 'slice_id' => $slice_id, 'page' => rex_be_controller::getCurrentPage(), 'ctype' => $ctype, 'category_id' => $category_id, 'article_revision' => &$article_revision, 'slice_revision' => &$slice_revision]));
// ------------------------------------------ START: MODULE EDITIEREN/ADDEN ETC.
$contentMain .= (include rex_be_controller::getCurrentPageObject()->getSubPath());
// ------------------------------------------ END: AUSGABE
// ----- EXTENSION POINT
$contentMain .= rex_extension::registerPoint(new rex_extension_point('STRUCTURE_CONTENT_AFTER_SLICES', '', ['article_id' => $article_id, 'clang' => $clang, 'function' => $function, 'slice_id' => $slice_id, 'page' => rex_be_controller::getCurrentPage(), 'ctype' => $ctype, 'category_id' => $category_id, 'article_revision' => &$article_revision, 'slice_revision' => &$slice_revision]));
// ----- EXTENSION POINT
$contentSidebar = rex_extension::registerPoint(new rex_extension_point('STRUCTURE_CONTENT_SIDEBAR', '', ['article_id' => $article_id, 'clang' => $clang, 'function' => $function, 'slice_id' => $slice_id, 'page' => rex_be_controller::getCurrentPage(), 'ctype' => $ctype, 'category_id' => $category_id, 'article_revision' => &$article_revision, 'slice_revision' => &$slice_revision]));
$fragment = new rex_fragment();
$fragment->setVar('content', $contentMain, false);
$fragment->setVar('sidebar', $contentSidebar, false);
echo $fragment->parse('core/page/main_content.php');
}
}