defined('_JEXEC') or die; /** * Contains content component rendering helpers and article factory method. */ class ArtxContent { protected $_component; protected $_componentParams; public $pageClassSfx; public $pageHeading; public function __construct($component, $params) { $this->_component = $component; $this->_componentParams = $params; $this->pageClassSfx = $component->pageclass_sfx; $this->pageHeading = $this->_componentParams->get('show_page_heading', 1) ? $this->_componentParams->get('page_heading') : ''; } public function pageHeading($title = null) { return artxPost(array('header-text' => $this->_component->escape(null == $title ? $this->pageHeading : $title))); } public function article($view, $article, $params, $properties = array()) { switch ($view) { case 'archive': return new ArtxContentArchivedArticle($this->_component, $this->_componentParams, $article, $params); case 'article': return new ArtxContentSingleArticle($this->_component, $this->_componentParams, $article, $params, $properties); case 'category': return new ArtxContentCategoryArticle($this->_component, $this->_componentParams, $article, $params); case 'featured': return new ArtxContentFeaturedArticle($this->_component, $this->_componentParams, $article, $params); } } public function beginPageContainer($class) { return '
'; } public function endPageContainer() { return '
'; } } defined('_JEXEC') or die; 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_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)) : ''; } }
Fatal error: Class 'ArtxContent' not found in /home/host1258549/meridiangazeta.ru/htdocs/www/templates/dd_lightdesign_03/html/com_content/article/default.php on line 8