CoreFiles by mySites.guru
default_articles.php28 lines, 874 bytes, from Joomla_4.2.2-Stable-Full_Package.zip
Raw History Compare with 4.2.1
md5
0d748d8980b044889716f712f91359db
sha1
9f60280726f0d328c5c4b98edc3f8dc5f57cf312
sha256
520ac0d47ac04ec0e0a5e304579ae45a8be5436034125ff20ae7f240859a6507
<?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;

?>
<?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 113 releases, Joomla 4.2.0-beta3 to 5.1.4. See them all, or every version of this file.