| Current Path : /home/bonneesp/www/templates/essainp/library/Artx/Content/ |
| Current File : /home/bonneesp/www/templates/essainp/library/Artx/Content/FeaturedArticle.php |
<?php
defined('_JEXEC') or die;
Artx::load("Artx_Content_ListItem");
class ArtxContentFeaturedArticle extends ArtxContentListItem
{
public function __construct($component, $componentParams, $article, $articleParams)
{
parent::__construct($component, $componentParams, $article, $articleParams);
$this->category = $this->_articleParams->get('show_category') ? $this->_article->category_title : '';
$this->categoryLink = $this->_articleParams->get('link_category') && $this->_article->catslug
? JRoute::_(ContentHelperRoute::getCategoryRoute($this->_article->catslug))
: '';
$this->parentCategory = $this->_articleParams->get('show_parent_category') && $this->_article->parent_id != 1
? $this->_article->parent_title : '';
$this->parentCategoryLink = $this->_articleParams->get('link_parent_category') && $this->_article->parent_slug
? JRoute::_(ContentHelperRoute::getCategoryRoute($this->_article->parent_slug))
: '';
}
}