*/ // no direct access defined('_JEXEC') or die('Restricted access'); // set vars $subcategory = $vars['object']; $params = $subcategory->getParams('site'); $link = $this->app->route->category($subcategory); $task = $this->app->jbrequest->get('task', 'category'); // teaser content $text = $params->get('content.category_teaser_text', ''); $imageAlign = $params->get('template.subcategory_teaser_image_align', 'left'); // items $itemsOrder = $params->get('config.item_order', 'none'); $maxItems = $params->get('template.subcategory_items_count', 5); $showCount = $params->get('template.subcategory_items_count_show', 1); $items = array(); $countItems = 0; if ($showCount || $maxItems != "0" || $maxItems == "-1") { $items = JBModelCategory::model()->getItemsByCategory($subcategory->application_id, $subcategory->id, $itemsOrder, $maxItems); $countItems = $subcategory->itemCount(); } $image = $this->app->jbimage->get('category_teaser_image', $params); ?>