Your IP : 216.73.217.47


Current Path : /home/azimutno/www/demo/modules/mod_smartslider2/
Upload File :
Current File : /home/azimutno/www/demo/modules/mod_smartslider2/mod_smartslider2.php

<?php
/*
# author Roland Soos
# copyright Copyright (C) Nextendweb.com. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-3.0.txt GNU/GPL
*/
defined('_JEXEC') or die('Restricted access'); ?><?php
jimport('nextend.library');

defined('NEXTEND_SMART_SLIDER2_ASSETS') || define('NEXTEND_SMART_SLIDER2_ASSETS', NEXTENDLIBRARY . 'assets' . DIRECTORY_SEPARATOR . 'smartslider' . DIRECTORY_SEPARATOR );

nextendimport('nextend.smartslider.joomla.slider');

$slider = new NextendSliderJoomla($module, $params, dirname(__FILE__));
$slider->render();
unset($slider);


/*
 * Joomla cache fix!
 */
$config = JFactory::getConfig();
$caching = $config->get( 'config.caching' );
if($caching === NULL) $caching = $config->get( 'caching' );
$app = JFactory::getApplication();
if($app->isSite() && ($caching == 2 || $caching == 1)){
    if(class_exists('NextendCss')){
        $css = NextendCss::getInstance();
        $css->generateCSS();
    }
    if(class_exists('NextendJavascript')){
        $js = NextendJavascript::getInstance();
        $js->generateJs();
    }
}