CoreFiles by mySites.guru
full_image.php33 lines, 1,112 bytes, from Joomla_5.4.0-Stable-Full_Package.zip
Raw History Compare with 5.3.4
md5
d5987fdc857923e5db1e646b1b3e8453
sha1
8b6c3665a307864d2f8d26577ed10c5341cff2d9
sha256
33dd189e76c94b6c6bd4f4191aae50a236e5be3aaab26e72b6ee4cee8e176c85
<?php

/**
 * @package     Joomla.Site
 * @subpackage  Layout
 *
 * @copyright   (C) 2016 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\Layout\LayoutHelper;

$params  = $displayData->params;
$images  = json_decode($displayData->images);

if (empty($images->image_fulltext)) {
    return;
}

$imgclass   = empty($images->float_fulltext) ? $params->get('float_fulltext') : $images->float_fulltext;
$layoutAttr = [
    'src'      => $images->image_fulltext,
    'alt'      => empty($images->image_fulltext_alt) && empty($images->image_fulltext_alt_empty) ? false : $images->image_fulltext_alt,
];
?>
<figure class="<?php echo $this->escape($imgclass); ?> item-image">
    <?php echo LayoutHelper::render('joomla.html.image', $layoutAttr); ?>
    <?php if (isset($images->image_fulltext_caption) && $images->image_fulltext_caption !== '') : ?>
        <figcaption class="caption"><?php echo $this->escape($images->image_fulltext_caption); ?></figcaption>
    <?php endif; ?>
</figure>

The same content is in 144 releases, Joomla 5.0.0-alpha3 to 6.1.4. See them all, or every version of this file.