function getCategoryBox($select) { $model = new BookProModelCategories(); $state = $model->getState(); $state->set('filter.type', 'TOUR'); $items = $model->getItems(); return AHtml::getFilterSelect('filter_cat_id', JText::_('COM_BOOKPRO_SELECT_CATEGORY'), $items, $select, true, '', 'id', 'title'); }
/** * TODO: Not use at the moment * @param unknown $tour_id * @return string */ function getTourActivity($tour_id) { if (!class_exists('BookProModelCategories')) { AImporter::model('categories'); } $model = new BookProModelCategories(); $items = $model->getCategoryByTour($tour_id); $themes = ''; if (count($items) > 0) { foreach ($items as $item) { $themes .= '<span class="label label-info">' . $item->title . '</span>'; } } return $themes; }