OSDN Git Service

初回コミット(v2.6.17.1)
[magic3/magic3.git] / templates / _admin3 / library / Artx / Content / FeaturedArticle.php
1 <?php
2 defined('_JEXEC') or die;
3
4 Artx::load("Artx_Content_ListItem");
5
6 class ArtxContentFeaturedArticle extends ArtxContentListItem
7 {
8     public function __construct($component, $componentParams, $article, $articleParams)
9     {
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') && $this->_article->catslug
13                                 ? JRoute::_(ContentHelperRoute::getCategoryRoute($this->_article->catslug))
14                                 : '';
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') && $this->_article->parent_slug
18                                       ? JRoute::_(ContentHelperRoute::getCategoryRoute($this->_article->parent_slug))
19                                       : '';
20     }
21 }