[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @package Joomla.Plugin 4 * @subpackage Fields.Media 5 * 6 * @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org> 7 * @license GNU General Public License version 2 or later; see LICENSE.txt 8 */ 9 defined('_JEXEC') or die; 10 11 use Joomla\CMS\Layout\LayoutHelper; 12 13 if (empty($field->value) || empty($field->value['imagefile'])) 14 { 15 return; 16 } 17 18 $class = $fieldParams->get('image_class'); 19 $options = [ 20 'src' => $field->value['imagefile'], 21 'alt' => empty($field->value['alt_text']) && empty($field->value['alt_empty']) ? false : $field->value['alt_text'], 22 ]; 23 24 if ($class) 25 { 26 $options['class'] = $class; 27 } 28 29 echo LayoutHelper::render('joomla.html.image', $options);
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 |