CoreFiles by mySites.guru
default_articles.php29 lines, 945 bytes, from Joomla_5.3.2-Stable-Full_Package.zip
Raw History Compare with 5.3.1
md5
3780203174d9e60d5855504dc5932e70
sha1
343a04d8d2064828c867fcced1a3ceafacc3400a
sha256
ece843ba1571b54d2b5e0c8223a37262823c329775add874d4bda53be960270e
<?php

/**
 * @package     Joomla.Site
 * @subpackage  com_contact
 *
 * @copyright   (C) 2009 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Router\Route;
use Joomla\Component\Content\Site\Helper\RouteHelper;

/** @var \Joomla\Component\Contact\Site\View\Contact\HtmlView $this */
?>
<?php if ($this->params->get('show_articles')) : ?>
<div class="com-contact__articles contact-articles">
    <ul class="list-unstyled">
        <?php foreach ($this->item->articles as $article) : ?>
            <li>
                <?php echo HTMLHelper::_('link', Route::_(RouteHelper::getArticleRoute($article->slug, $article->catid, $article->language)), htmlspecialchars($article->title, ENT_COMPAT, 'UTF-8')); ?>
            </li>
        <?php endforeach; ?>
    </ul>
</div>
<?php endif; ?>

The same content is in 120 releases, Joomla 5.2.0-alpha1 to 6.3.0-alpha1. See them all, or every version of this file.