require_once dirname(__FILE__) . '/core/helper.php'; $layout = $params->get('layout', 'default'); $is_ajax = !empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest'; $is_ajax = $is_ajax || JRequest::getInt('is_ajax_listing_tabs', 0); if ($is_ajax) { $listing_tabs_moduleid = JRequest::getVar('listing_tabs_moduleid', null); if ($params->get('type_source') == "filter_categories") { $categoryid = JRequest::getVar('categoryid', null); $child_items = SjListingTabsHelper::getArticles($categoryid, $params); } else { $article_filter = JRequest::getVar('categoryid', null); $child_items = SjListingTabsHelper::getArticles($params->get('catid'), $params, $article_filter); } if ($listing_tabs_moduleid == $module->id) { $result = new stdClass(); ob_start(); require JModuleHelper::getLayoutPath($module->module, $layout . '_items'); $buffer = ob_get_contents(); $result->items_markup = preg_replace(array('/ {2,}/', '/<!--.*?-->|\\t|(?:\\r?\\n[ \\t]*)+/s'), array(' ', ''), $buffer); ob_end_clean(); die(json_encode($result)); } } else { if ($params->get('type_source') == 'filter_categories') { $list = SjListingTabsHelper::getListCategoriesFilter($params); } else { $list = SjListingTabsHelper::getListArticlesFilter($params); } require JModuleHelper::getLayoutPath($module->module, $layout); require JModuleHelper::getLayoutPath($module->module, $layout . '_js'); }
<?php } else { ?> <li class="ltabs-tab <?php echo isset($tab->sel) ? ' tab-sel tab-loaded' : ''; ?> <?php echo $tab->id == '*' ? ' tab-all' : ''; ?> " data-category-id="<?php echo $tab->id; ?> " data-active-content=".items-category-<?php echo $tab->id; ?> "> <span class="ltabs-tab-label"><?php echo SjListingTabsHelper::truncate($tab->title, $params->get('tab_max_characters')); ?> </span> </li> <?php } } ?> </ul> </div>
"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h4 class="modal-title" id="myModalLabel<?php echo $item->id . '-' . $rand; ?> "><?php echo $item->title; ?> </h4> </div> <div class="modal-body"> <?php echo SjListingTabsHelper::imageTag($img0, $small_image_config); ?> </div> </div> </div> </div> </div> <?php $clear = 'clr1'; if ($k % 2 == 0) { $clear .= ' clr2'; } if ($k % 3 == 0) { $clear .= ' clr3'; }
if ($params->get('created', 1) == 1) { ?> <div class="created-date "> <?php echo JHTML::_('date', $item->created, JText::_('DATE_FORMAT_LC3')); ?> </div> <?php } ?> <?php if ($params->get('show_introtext', 1) == 1) { ?> <div class="introtext"> <?php echo SjListingTabsHelper::truncate($item->introtext, $params->get('item_des_maxlength', 200)); ?> </div> <?php } $tags = ''; if ($params->get('item_tags_display') == 1 && $item->tags != '' && !empty($item->tags->itemTags)) { $item->tagLayout = new JLayoutFile('joomla.content.tags'); $tags = $item->tagLayout->render($item->tags->itemTags); } if ($tags != '') { ?> <div class="item-tags"> <?php echo $tags; ?>