[ 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 com_fields 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\Language\Text; 14 15 if (!array_key_exists('field', $displayData)) { 16 return; 17 } 18 19 $field = $displayData['field']; 20 $label = Text::_($field->label); 21 $value = $field->value; 22 $showLabel = $field->params->get('showlabel'); 23 $prefix = Text::plural($field->params->get('prefix'), $value); 24 $suffix = Text::plural($field->params->get('suffix'), $value); 25 $labelClass = $field->params->get('label_render_class'); 26 $valueClass = $field->params->get('value_render_class'); 27 28 if ($value == '') { 29 return; 30 } 31 32 ?> 33 <?php if ($showLabel == 1) : ?> 34 <span class="field-label <?php echo $labelClass; ?>"><?php echo htmlentities($label, ENT_QUOTES | ENT_IGNORE, 'UTF-8'); ?>: </span> 35 <?php endif; ?> 36 <?php if ($prefix) : ?> 37 <span class="field-prefix"><?php echo htmlentities($prefix, ENT_QUOTES | ENT_IGNORE, 'UTF-8'); ?></span> 38 <?php endif; ?> 39 <span class="field-value <?php echo $valueClass; ?>"><?php echo $value; ?></span> 40 <?php if ($suffix) : ?> 41 <span class="field-suffix"><?php echo htmlentities($suffix, ENT_QUOTES | ENT_IGNORE, 'UTF-8'); ?></span> 42 <?php endif; ?>
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 |