Esempio n. 1
0
 $fields_feat = $params->get('fields_feat');
 // module display params
 $show_more = (int) $params->get('show_more', 1);
 $more_link = $params->get('more_link');
 $more_title = $params->get('more_title', 'FLEXI_MODULE_READ_MORE');
 $more_css = $params->get('more_css');
 // custom parameters
 $custom1 = $params->get('custom1');
 $custom2 = $params->get('custom2');
 $custom3 = $params->get('custom3');
 $custom4 = $params->get('custom4');
 $custom5 = $params->get('custom5');
 // Create Item List Data
 $list_arr = modFlexicontentHelper::getList($params);
 // Get comments for the items (if enabled), NOTE !! TODO: modify templates and XML file so that this used
 $comments_arr = modFlexicontentHelper::getComments($params, $list_arr);
 $mod_fc_run_times['category_data_retrieval'] = $modfc_jprof->getmicrotime();
 // Get Category List Data
 $catdata_arr = modFlexicontentHelper::getCategoryData($params);
 $catdata_arr = $catdata_arr ? $catdata_arr : array(false);
 $mod_fc_run_times['category_data_retrieval'] = $modfc_jprof->getmicrotime() - $mod_fc_run_times['category_data_retrieval'];
 $mod_fc_run_times['rendering_template'] = $modfc_jprof->getmicrotime();
 // Load needed JS libs & CSS styles
 FLEXI_J30GE ? JHtml::_('behavior.framework', true) : JHTML::_('behavior.mootools');
 flexicontent_html::loadFramework('jQuery');
 flexicontent_html::loadFramework('flexi_tmpl_common');
 // Add tooltips
 if ($add_tooltips) {
     JHTML::_('behavior.tooltip');
 }
 // Add css