示例#1
0
 function process($params, $module)
 {
     $enable_cache = $params->get('cache', 1);
     $cachetime = $params->get('cache_time', 0);
     //$this->module_name = $module->module;
     if ($enable_cache == 1) {
         $conf =& JFactory::getConfig();
         $cache =& JFactory::getCache($module->module);
         $cache->setLifeTime($params->get('cache_time', $conf->getValue('config.cachetime') * 60));
         $cache->setCaching(true);
         //$cache->setCacheValidation(true);
         $items = $cache->get(array('modContentSliderHelper', 'getList'), array($params, $module));
     } else {
         $items = modContentSliderHelper::getList($params, $module);
     }
     return $items;
 }
示例#2
0
$thumb_height = $params->get("thumb_height", '350');
$cropresizeimage = $params->get("cropresizeimage", 1);
$auto_play = $params->get("auto_play", true);
$cache = $params->get("cache", '1');
$cache_time = $params->get("cache_time", '1');
$effect = $params->get('effect', 'random');
$slices = $params->get('slices', '15');
$animSpeed = $params->get('animSpeed', 500);
$pauseTime = $params->get('pauseTime', 3000);
$startSlide = $params->get('startSlide', 0);
$directionNav = $params->get('directionNav', 1);
$directionNavHide = $params->get('controlNav', 1);
$controlNav = $params->get('controlNav', 1);
$controlNavThumbs = $params->get('controlNavThumbs', 1);
$controlNavThumbsSearch = $params->get('controlNavThumbsSearch', '.jpg');
$controlNavThumbsReplace = $params->get('controlNavThumbsReplace', '_thumb.jpg');
$keyboardNav = $params->get('keyboardNav', 1);
$pauseOnHover = $params->get('pauseOnHover', 1);
$manualAdvance = $params->get('manualAdvance', 0);
$captionOpacity = $params->get('captionOpacity', '0.8');
$show_title = $params->get('show_title', 1);
$items = modContentSliderHelper::process($params, $module);
//pr($items);
JHTML::script('jquery.min.js', JURI::base() . '/modules/' . $module->module . '/assets/');
JHTML::script('noconflict.js', JURI::base() . '/modules/' . $module->module . '/assets/');
JHTML::script('jquery.nivo.slider.js', JURI::base() . '/modules/' . $module->module . '/assets/');
JHTML::stylesheet('style.css', JURI::base() . '/modules/' . $module->module . '/assets/');
$path = JModuleHelper::getLayoutPath('mod_contentslider');
if (file_exists($path)) {
    require $path;
}