Example #1
0
<?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);
Example #2
0
    $navi[] = $n;

    $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-page')) {
    $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');
} 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('items', $meta_items, false);
Example #3
0
 /**
  * Includes the current page. A page may be provided by the core, an addon or plugin.
  */
 public static function includeCurrentPage()
 {
     $currentPage = self::getCurrentPageObject();
     if (rex_request::isPJAXRequest() && !rex_request::isPJAXContainer('#rex-page')) {
         // non-core pjax containers should not have a layout.
         // they render their whole response on their own
         $currentPage->setHasLayout(false);
     }
     require rex_path::core('layout/top.php');
     $path = $currentPage->getPath();
     $pattern = '@' . preg_quote(rex_path::src('addons/'), '@') . '([^/\\\\]+)(?:[/\\\\]plugins[/\\\\]([^/\\\\]+))?@';
     if (preg_match($pattern, $path, $matches)) {
         $package = rex_addon::get($matches[1]);
         if (isset($matches[2])) {
             $package = $package->getPlugin($matches[2]);
         }
         $package->includeFile(str_replace($package->getPath(), '', $path));
     } else {
         include $path;
     }
     require rex_path::core('layout/bottom.php');
 }
Example #4
0
 /**
  * Includes the current page. A page may be provided by the core, an addon or plugin.
  */
 public static function includeCurrentPage()
 {
     $currentPage = self::getCurrentPageObject();
     if (rex_request::isPJAXRequest() && !rex_request::isPJAXContainer('#rex-js-page-container')) {
         // non-core pjax containers should not have a layout.
         // they render their whole response on their own
         $currentPage->setHasLayout(false);
     }
     require rex_path::core('layout/top.php');
     self::includePath($currentPage->getPath());
     require rex_path::core('layout/bottom.php');
 }