AAAA_component = $component; $this->_componentParams = $componentParams; $this->_article = $article; $this->_articleParams = $articleParams; // Calculate properties: $this->title = $this->_article->title; $this->created = $this->_articleParams->get('show_create_date') ? $this->_article->created : ''; $this->modified = $this->_articleParams->get('show_modify_date') ? $this->_article->modified : ''; $this->published = $this->_articleParams->get('show_publish_date') ? $this->_article->publish_up : ''; $this->hits = $this->_articleParams->get('show_hits') ? $this->_article->hits : ''; $this->author = $this->_articleParams->get('show_author') && !empty($this->_article->author) ? ($this->_article->created_by_alias ? $this->_article->created_by_alias : $this->_article->author) : ''; $this->authorLink = strlen($this->author) && !empty($this->_article->contactid) && $this->_articleParams->get('link_author') ? 'index.php?option=com_contact&view=contact&id=' . $this->_article->contactid : ''; } /** * @see $created */ public function createdDateInfo($created) { return JText::sprintf('COM_CONTENT_CREATED_DATE_ON', JHtml::_('date', $created, JText::_('DATE_FORMAT_LC2'))); } /** * @see $modified */ public function modifiedDateInfo($modified) { return JText::sprintf('COM_CONTENT_LAST_UPDATED', JHtml::_('date', $modified, JText::_('DATE_FORMAT_LC2'))); } /** * @see $published */ public function publishedDateInfo($published) { return JText::sprintf('COM_CONTENT_PUBLISHED_DATE_ON', JHtml::_('date', $published, JText::_('DATE_FORMAT_LC2'))); } /** * @see $author */ public function authorInfo($author, $authorLink) { if (strlen($authorLink)) return JText::sprintf('COM_CONTENT_WRITTEN_BY', JHtml::_('link', JRoute::_($authorLink), $author)); return JText::sprintf('COM_CONTENT_WRITTEN_BY', $author); } public function articleSeparator() { return '