コード例 #1
0
ファイル: details.php プロジェクト: ranrolls/ras-full-portal
<?php

/**
 * @package     ContentBuilder
 * @author      Markus Bopp
 * @link        http://www.crosstec.de
 * @license     GNU/GPL
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
require_once JPATH_SITE . DS . 'administrator' . DS . 'components' . DS . 'com_contentbuilder' . DS . 'classes' . DS . 'joomla_compat.php';
CBCompat::requireController();
require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'classes' . DS . 'contentbuilder.php';
class ContentbuilderControllerDetails extends CBController
{
    function __construct()
    {
        if (class_exists('cbFeMarker') && JRequest::getInt('Itemid', 0)) {
            $option = 'com_contentbuilder';
            // try menu item
            jimport('joomla.version');
            $version = new JVersion();
            if (version_compare($version->getShortVersion(), '1.6', '>=')) {
                $menu = JSite::getMenu();
                $item = $menu->getActive();
                if (is_object($item)) {
                    if ($item->params->get('record_id', null) !== null) {
                        JRequest::setVar('record_id', $item->params->get('record_id', null));
                        $this->_show_back_button = $item->params->get('show_back_button', null);
                    }
                    //if($item->params->get('show_page_heading', null) !== null){