Server IP : 195.201.23.43 / Your IP : 3.145.73.23 Web Server : Apache System : Linux webserver2.vercom.be 5.4.0-192-generic #212-Ubuntu SMP Fri Jul 5 09:47:39 UTC 2024 x86_64 User : kdecoratie ( 1041) PHP Version : 7.1.33-63+ubuntu20.04.1+deb.sury.org+1 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/kdecoratie/public_html/templates/kdecor1/library/Artx/Content/ |
Upload File : |
<?php defined('_JEXEC') or die; abstract class ArtxContentArticleBase { protected $_component; protected $_componentParams; protected $_article; protected $_articleParams; public $title; public $titleLink; public $created; public $modified; public $published; public $hits; public $author; public $authorLink; public $category; public $categoryLink; public $parentCategory; public $parentCategoryLink; protected function __construct($component, $componentParams, $article, $articleParams) { // Initialization: $this->_component = $component; $this->_componentParams = $componentParams; $this->_article = $article; $this->_articleParams = $articleParams; // Configuring 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 '<time datetime="' . JHtml::_('date', $created, 'c') . '" itemprop="dateCreated">' . JText::sprintf('COM_CONTENT_CREATED_DATE_ON', JHtml::_('date', $created, JText::_('DATE_FORMAT_LC3'))) . '</time>'; } /** * @see $modified */ public function modifiedDateInfo($modified) { return '<time datetime="' . JHtml::_('date', $modified, 'c') . '" itemprop="dateModified">' . JText::sprintf('COM_CONTENT_LAST_UPDATED', JHtml::_('date', $modified, JText::_('DATE_FORMAT_LC3'))) . '</time>'; } /** * @see $published */ public function publishedDateInfo($published) { return '<time datetime="' . JHtml::_('date', $published, 'c') . '" itemprop="datePublished">' . JText::sprintf('COM_CONTENT_PUBLISHED_DATE_ON', JHtml::_('date', $published, JText::_('DATE_FORMAT_LC3'))) . '</time>'; } /** * @see $author */ public function authorInfo($author, $authorLink) { if (strlen($authorLink)) return JText::sprintf('COM_CONTENT_WRITTEN_BY', JHtml::_('link', JRoute::_($authorLink), $author, array('itemprop' => 'url'))); return JText::sprintf('COM_CONTENT_WRITTEN_BY', $author); } public function articleSeparator() { return '<div class="item-separator"> </div>'; } /** * @see $section, $sectionLink, $category, $categoryLink */ public function categories($parentCategory, $parentCategoryLink, $category, $categoryLink) { if (0 == strlen($parentCategory) && 0 == strlen($category)) return ''; ob_start(); if (strlen($parentCategory)) { echo '<span class="art-post-metadata-category-parent"' . (strlen($parentCategoryLink) ? '' : ' itemprop="genre"') . '>'; if (strlen($parentCategoryLink)) echo '<a href="' . $parentCategoryLink . '" itemprop="genre">' . $this->_component->escape($parentCategory) . '</a>'; else echo $this->_component->escape($parentCategory); echo '</span>'; if (strlen($category)) echo ' / '; } if (strlen($category)) { echo '<span class="art-post-metadata-category-name"' . (strlen($categoryLink) ? '' : ' itemprop="genre"') . '>'; if (strlen($categoryLink)) echo '<a href="' . $categoryLink . '" itemprop="genre">' . $this->_component->escape($category) . '</a>'; else echo $this->_component->escape($category); echo '</span>'; } return JText::sprintf('COM_CONTENT_CATEGORY', ob_get_clean()); } public function hitsInfo($hits) { return '<meta itemprop="interactionCount" content="UserPageVisits:' . $hits . '" />' . JText::sprintf('COM_CONTENT_ARTICLE_HITS', $hits); } public function event($name) { return $this->_article->event->{$name}; } public function getArticleViewParameters() { return array('metadata-header-icons' => array(), 'metadata-footer-icons' => array()); } public function article($article) { return artxPost($article); } }Private