芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/ixilyucatan.gob.mx/layouts/joomla/content/intro_image.php
* @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; use Joomla\Utilities\ArrayHelper; $params = $displayData->params; $images = json_decode($displayData->images); if (empty($images->image_intro)) { return; } $imgclass = empty($images->float_intro) ? $params->get('float_intro') : $images->float_intro; $extraAttr = ''; $img = HTMLHelper::cleanImageURL($images->image_intro); $alt = empty($images->image_intro_alt) && empty($images->image_intro_alt_empty) ? '' : 'alt="' . htmlspecialchars($images->image_intro_alt, ENT_COMPAT, 'UTF-8') . '"'; // Set lazyloading only for images which have width and height attributes if ((isset($img->attributes['width']) && (int) $img->attributes['width'] > 0) && (isset($img->attributes['height']) && (int) $img->attributes['height'] > 0)) { $extraAttr = ArrayHelper::toString($img->attributes) . ' loading="lazy"'; } ?>
get('link_intro_image') && ($params->get('access-view') || $params->get('show_noauth', '0') == '1')) : ?>
itemprop="thumbnailUrl" />
itemprop="thumbnail" /> image_intro_caption) && $images->image_intro_caption !== '') : ?>
image_intro_caption, ENT_COMPAT, 'UTF-8'); ?>