CoreFiles by mySites.guru
default.php31 lines, 719 bytes, from Joomla_4.0.0-alpha3-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha2
md5
06171b0aa2e51f59e21d5ae4106c6d2d
sha1
5c99956eb77c5858a2496d7ca2d3b8828862f01c
sha256
e78d0c66b7873e7a4ccc0812b519f1b497670012296ca536d58ef0d6ed74f0bc
<?php
/**
 * @package     Joomla.Site
 * @subpackage  mod_random_image
 *
 * @copyright   Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

use Joomla\CMS\Language\Text;
use Joomla\CMS\HTML\HTMLHelper;

if (!count($images))
{
	echo Text::_('MOD_RANDOM_IMAGE_NO_IMAGES');

	return;
}
?>

<div class="random-image">
<?php if ($link) : ?>
<a href="<?php echo $link; ?>">
<?php endif; ?>
	<?php echo HTMLHelper::_('image', $image->folder . '/' . $image->name, $image->name, array('width' => $image->width, 'height' => $image->height)); ?>
<?php if ($link) : ?>
</a>
<?php endif; ?>
</div>

No other release has this exact content. See every version of this file.