if ((int) $params->get('item_title_display', 1)) { ?> <div class="item-title"> <a href="<?php echo $item->link; ?> " title="<?php echo $item->title; ?> " <?php echo VmAjaxtabsBaseHelper::parseTarget($params->get('item_link_target', '_blank')); ?> > <?php echo VmAjaxtabsBaseHelper::truncate($item->title, $params->get('item_title_max_characs', 100)); ?> </a> </div> <?php } // title display ?> <?php if (!isset($list[0]->rating->rating) || $list[0]->rating->rating == null) { $rating = 0; } else { $rating = $list[0]->rating->rating; } echo '<div class="item-rating" data-rating="' . $rating . '">'; echo '<div class="item-star"></div>';
<div class="tabs-container" <?php //echo $tabs_container_style; ?> > <ul class="tabs"> <?php foreach ($list as $category) { $css_selected = $category->virtuemart_category_id == $category_preload ? ' class="selected"' : ''; ?> <li<?php echo $css_selected; ?> > <div class="tab"> <?php echo VmAjaxtabsBaseHelper::truncate($category->category_name, (int) $params->get('category_title_maxchars', 20)); ?> </div> </li> <?php } ?> </ul> </div> <a href="#" class="tabs-next" style="<?php if ($params->get('position') == 'bottom') { echo 'top:2px'; } ?> "></a> </div>