input->get('parentid', 0, 'int'); $model = $this->getModel(); // $model = $this->getModel('Links', '', array()); $categories = $model->getCategoriesById($parentId); $articles = $model->getArticlesByCategoryId($parentId); $items = array_merge($categories, $articles); ?>
get('show_noauth'); $authorised = JAccess::getAuthorisedViewLevels(JFactory::getUser()->get('id')); foreach ($items as $item) { $Itemid = ''; //test $hasChild = isset($item->rgt) && ( (int)$item->rgt - (int)$item->lft > 1 || $item->counter > 0 ) ? true : false; // faire count articles $icon = isset($item->rgt) ? 'folder' : 'file'; // check if category or article if ($item->type == 'article') { $item->slug = $item->id . ':' . $item->alias; if ($access || in_array($item->access, $authorised)) { // We know that user has the privilege to view the article $item->link = ContentHelperRoute::getArticleRoute($item->slug, $item->catid, $item->language); } else { continue; } } else { if ($access || in_array($item->access, $authorised)) { $item->link = ContentHelperRoute::getCategoryRoute($item->id); } else { continue; } } ?>
title; ?> counter)) { ?>
counter ?>