Your IP : 216.73.216.55


Current Path : /home/g/i/t/giteleslfp/www/administrator/components/com_templateck/interfaces/
Upload File :
Current File : /home/g/i/t/giteleslfp/www/administrator/components/com_templateck/interfaces/ajaxrendercss.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');

$id = $this->input->get('ckobjid');
$class = $this->input->get('objclass');
$fields = stripslashes($this->input->get('fields', '', 'string'));
$fields = json_decode($fields); //test
$action = $this->input->get('action');
$customstyles = stripslashes( $this->input->get('customstyles', '', 'string'));
$customstyles = json_decode($customstyles);
$cssstyles = new CKStyles();
$styles = $cssstyles->create($fields, $id, $action, $class, 'ltr', $customstyles);

if ($action == 'preview') {
	echo '<style>' . $styles . '</style>';
} else {
	return $styles;
}