bootComponent('com_content')->getMVCFactory()->createModel('Articles', 'Site', ['ignore_request' => true]); $list = JTContentSliderHelper::getList($params, $model); $show_introtext = $params->get('show_introtext', 1); $thumb_width = $params->get('thumb_width', 56); $thumb_loadorder = $params->get('loadorder', 0); $introtext_truncate = $params->get('limit_intro', 200); $limit_title= $params->get('limit_title', 25); $show_morecat_links = $params->get('show_more_in', 1); $show_date = $params->get('show_date', 1); $show_date_type = $params->get('show_date_type', 1); $custom_date_format = $params->get('custom_date_format', ""); $show_default_thumb = $params->get('show_default_thumb', 0); $use_caption = $params->get('use_caption',0); //$keep_aspect_ratio = $params->get('keep_aspect_ratio',true); $tmp = $params->get('keep_aspect_ratio','true'); $tmp2 = $params->get('thumb_height',200); $thumb_height = ( $tmp=='true' ) ? '' :(int)$tmp2; //Get Open target $openTarget = $params->get( 'open_target', '_parent' ); $modal = $params->get('modalbox'); // Get timezone //$config = JFactory::getConfig(); //$offset = $config->get('offset'); $thumbPath = JPATH_BASE . '/cache/' .$module->module.'/'; $modulebase = "mod_jt_contentslider"; $thumb_folder ="/cache/".$modulebase."/"; $doc = JFactory::getDocument(); $doc->addStyleSheet(JURI::base(true).'/modules/'.$modulebase.'/tmpl/assets/css/style.css'); $doc->addStyleSheet(JURI::base(true).'/modules/'.$modulebase.'/tmpl/assets/css/lightbox.css'); $doc->addScript(JURI::base(true).'/modules/'.$modulebase.'/tmpl/assets/js/lightbox-plus-jquery.js'); $doc->addScript(JURI::base(true).'/modules/'.$modulebase.'/tmpl/assets/js/owl.carousel.js'); require ModuleHelper::getLayoutPath($modulebase, $params->get('layout', 'default'));