| Current Path : /home/g/i/t/giteleslfp/www/administrator/components/com_templateck/interfaces/ |
| Current File : /home/g/i/t/giteleslfp/www/administrator/components/com_templateck/interfaces/ajaxcreatebloc.php |
<?php
/**
* @name Template Creator CK
* @package com_templateck
* @copyright Copyright (C) 2013. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @author Cedric Keiflin - http://www.template-creator.com - http://www.joomlack.fr
*/
// No direct access to this file
defined('TCK_LOADED') or die('Restricted access');
//jimport('joomla.application.module.helper');
$type = $this->input->get('type');
$blockid = $this->input->get('blockid');
$blockposition = $this->input->get('blockposition', '', 'string');
$fluid = $this->input->get('fluid');
if ($type == 'module-horizmenu') $type = 'horizMenu';
if ($type != 'wrapper') {
if (substr($type, 0, 7) == 'module-' && $type != 'horizMenu') {
echo CKCreator::getModule($blockid, $blockposition, substr($type, -(strlen($type)-7)));
} else {
echo CKCreator::$type($blockid, $blockposition);
}
} else {
echo CKCreator::openWrapper($blockid, $fluid);
echo CKCreator::closeWrapper();
}