CoreFiles by mySites.guru
default.php31 lines, 742 bytes, from Joomla_5.4.4-Stable-Full_Package.zip
Raw History Compare with 5.4.3
md5
359ac82714d15a991de2a32510fde1aa
sha1
bc444e41241ebd12d4d9bdf2bc5e5d8a7ff6ea6c
sha256
b1394ff236d196260f6f0fe382ecc447125c923fae6bd780e6c58881b9a2200a
<?php

/**
 * @package     Joomla.Site
 * @subpackage  mod_related_items
 *
 * @copyright   (C) 2006 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\Language\Text;

if (!$list) {
    return;
}

?>
<ul class="mod-relateditems relateditems mod-list">
<?php foreach ($list as $item) : ?>
<li>
    <a href="<?php echo $item->route; ?>">
        <?php if ($showDate) {
            echo HTMLHelper::_('date', $item->created, Text::_('DATE_FORMAT_LC4')) . ' - ';
        } ?>
        <?php echo htmlspecialchars($item->title, ENT_QUOTES, 'UTF-8'); ?></a>
</li>
<?php endforeach; ?>
</ul>

The same content is in 40 releases, Joomla 5.4.4 to 6.2.1-rc1. See them all, or every version of this file.