CoreFiles by mySites.guru
default.php31 lines, 703 bytes, from Joomla_5.3.2-Stable-Full_Package.zip
Raw History Compare with 5.3.1
md5
60295ae6296ae61a369860321a398ab5
sha1
e3be2eb9cfcfc83a9e1922c2a811e66111e9b133
sha256
fb73ee3b5b9c926da907c6c524acd4d30650cd6b86c33c2d8d31ff69a5c75682
<?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 $item->title; ?></a>
</li>
<?php endforeach; ?>
</ul>

The same content is in 133 releases, Joomla 4.4.1-rc1 to 6.1.0-beta3. See them all, or every version of this file.