* @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Component\ComponentHelper; use Joomla\CMS\Factory; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Associations; use Joomla\CMS\Language\Multilanguage; use Joomla\CMS\Language\Text; use Joomla\CMS\Router\Route; use Joomla\CMS\Uri\Uri; use Joomla\Component\Content\Administrator\Extension\ContentComponent; use Joomla\Component\Content\Site\Helper\AssociationHelper; use Joomla\Component\Content\Site\Helper\RouteHelper; /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->document->getWebAssetManager(); $wa->useScript('com_content.articles-list'); // Create some shortcuts. $n = count($this->items); $listOrder = $this->escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); $langFilter = false; // Tags filtering based on language filter if (($this->params->get('filter_field') === 'tag') && (Multilanguage::isEnabled())) { $tagfilter = ComponentHelper::getParams('com_tags')->get('tag_list_language_filter'); switch ($tagfilter) { case 'current_language': $langFilter = Factory::getApplication()->getLanguage()->getTag(); break; case 'all': $langFilter = false; break; default: $langFilter = $tagfilter; } } // Check for at least one editable article $isEditable = false; if (!empty($this->items)) { foreach ($this->items as $article) { if ($article->params->get('access-edit')) { $isEditable = true; break; } } } $currentDate = Factory::getDate()->format('Y-m-d H:i:s'); ?>
params->get('filter_field') !== 'hide') : ?>
params->get('filter_field') === 'tag') : ?> params->get('filter_field') === 'month') : ?> params->get('filter_field') !== 'tag' && $this->params->get('filter_field') !== 'month') : ?>
params->get('show_pagination_limit')) : ?>
pagination->getLimitBox(); ?>
items)) : ?> params->get('show_no_articles', 1)) : ?>
params->get('show_headings')) : ?> params->get('list_show_date')) : ?> params->get('list_show_author')) : ?> params->get('list_show_hits')) : ?> params->get('list_show_votes', 0) && $this->vote) : ?> params->get('list_show_ratings', 0) && $this->vote) : ?> items as $i => $article) : ?> items[$i]->state == ContentComponent::CONDITION_UNPUBLISHED) : ?> params->get('list_show_date')) : ?> params->get('list_show_author', 1)) : ?> params->get('list_show_hits', 1)) : ?> params->get('list_show_votes', 0) && $this->vote) : ?> params->get('list_show_ratings', 0) && $this->vote) : ?>
access, $this->user->getAuthorisedViewLevels())) : ?> escape($article->title); ?> params->get('show_associations')) : ?>
id); ?> params->get('flags', 1) && $association['language']->image) : ?> image . '.gif', $association['language']->title_native, array('title' => $association['language']->title_native), true); ?> lang_code); ?> lang_code; ?> title_native; ?>
escape($article->title) . ' : '; $itemId = Factory::getApplication()->getMenu()->getActive()->id; $link = new Uri(Route::_('index.php?option=com_users&view=login&Itemid=' . $itemId, false)); $link->setVar('return', base64_encode(RouteHelper::getArticleRoute($article->slug, $article->catid, $article->language))); ?> params->get('show_associations')) : ?>
id); ?> params->get('flags', 1)) : ?> image . '.gif', $association['language']->title_native, array('title' => $association['language']->title_native), true); ?> lang_code); ?> lang_code; ?> title_native; ?>
state == ContentComponent::CONDITION_UNPUBLISHED) : ?>
publish_up > $currentDate) : ?>
publish_down) && $article->publish_down < $currentDate) : ?>
displayDate, $this->escape($this->params->get('date_format', Text::_('DATE_FORMAT_LC3'))) ); ?> author) || !empty($article->created_by_alias)) : ?> author ?> created_by_alias ?: $author; ?> contact_link) && $this->params->get('link_author') == true) : ?> params->get('show_headings')) : ?> contact_link, $author); ?> contact_link, $author)); ?> params->get('show_headings')) : ?> params->get('show_headings')) : ?> hits; ?> hits); ?> params->get('show_headings')) : ?> rating_count; ?> rating_count); ?> params->get('show_headings')) : ?> rating; ?> rating); ?> params->get('access-edit')) : ?> params); ?>
category->getParams()->get('access-create')) : ?> category, $this->category->params); ?> items)) : ?> params->def('show_pagination', 2) == 1 || ($this->params->get('show_pagination') == 2)) && ($this->pagination->pagesTotal > 1)) : ?>
params->def('show_pagination_results', 1)) : ?>