Example #1
0
 public function __construct($component, $componentParams, $article, $articleParams)
 {
     parent::__construct($component, $componentParams, $article, $articleParams);
     $this->titleLink = $this->_articleParams->get('link_titles') ? JRoute::_(ContentHelperRoute::getArticleRoute($this->_article->slug, $this->_article->catslug)) : '';
     $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->parentCategoryLink = $this->_articleParams->get('link_parent_category') && $this->_article->parent_slug ? JRoute::_(ContentHelperRoute::getCategoryRoute($this->_article->parent_slug)) : '';
     $this->intro = $this->_articleParams->get('show_intro') ? $this->_article->introtext : '';
 }
Example #2
0
 protected function __construct($component, $componentParams, $article, $articleParams)
 {
     parent::__construct($component, $componentParams, $article, $articleParams);
     $this->title = $this->_articleParams->get('show_title') ? $this->_article->title : '';
     $this->printIconVisible = $this->_articleParams->get('show_print_icon');
     $this->emailIconVisible = $this->_articleParams->get('show_email_icon');
     $this->editIconVisible = $this->_articleParams->get('access-edit');
     $this->introVisible = $this->_articleParams->get('show_intro');
     $this->images = $this->_buildImages($article, $articleParams);
 }