[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package Joomla.Site 5 * @subpackage Layout 6 * 7 * @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org> 8 * @license GNU General Public License version 2 or later; see LICENSE.txt 9 */ 10 11 defined('_JEXEC') or die; 12 13 use Joomla\CMS\Layout\LayoutHelper; 14 15 $params = $displayData->params; 16 $images = json_decode($displayData->images); 17 18 if (empty($images->image_fulltext)) { 19 return; 20 } 21 22 $imgclass = empty($images->float_fulltext) ? $params->get('float_fulltext') : $images->float_fulltext; 23 $layoutAttr = [ 24 'src' => $images->image_fulltext, 25 'itemprop' => 'image', 26 'alt' => empty($images->image_fulltext_alt) && empty($images->image_fulltext_alt_empty) ? false : $images->image_fulltext_alt, 27 ]; 28 ?> 29 <figure class="<?php echo $this->escape($imgclass); ?> item-image"> 30 <?php echo LayoutHelper::render('joomla.html.image', $layoutAttr); ?> 31 <?php if (isset($images->image_fulltext_caption) && $images->image_fulltext_caption !== '') : ?> 32 <figcaption class="caption"><?php echo $this->escape($images->image_fulltext_caption); ?></figcaption> 33 <?php endif; ?> 34 </figure>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |