2 defined('_JEXEC') or die;
4 Artx::load("Artx_Content_ListItem");
6 class ArtxContentCategoryArticle extends ArtxContentListItem
8 function __construct($component, $componentParams, $article, $articleParams)
10 parent::__construct($component, $componentParams, $article, $articleParams);
11 $this->category = $this->_articleParams->get('show_category') ? $this->_article->category_title : '';
12 $this->categoryLink = $this->_articleParams->get('link_category')
13 ? JRoute::_(ContentHelperRoute::getCategoryRoute($this->_article->catid))
15 $this->parentCategory = $this->_articleParams->get('show_parent_category') && $this->_article->parent_id != 1
16 ? $this->_article->parent_title : '';
17 $this->parentCategoryLink = $this->_articleParams->get('link_parent_category')
18 ? JRoute::_(ContentHelperRoute::getCategoryRoute($this->_article->parent_id))