CoreFiles by mySites.guru
render.php31 lines, 774 bytes, from Joomla_3.10.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 3.10.0-alpha1
md5
28e7db77d6eb3acfade56aa7212978a1
sha1
30cb40828f00a228863736997f2749c2b97cbffd
sha256
9714ed5e13898fd269263ddcb10b5631fab792da7959c5c08a1c0337b80fb34b
<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_fields
 *
 * @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;

if (!key_exists('field', $displayData))
{
	return;
}

$field = $displayData['field'];
$label = JText::_($field->label);
$value = $field->value;
$showLabel = $field->params->get('showlabel');
$labelClass = $field->params->get('label_render_class');

if ($value == '')
{
	return;
}

?>
<?php if ($showLabel == 1) : ?>
	<span class="field-label <?php echo $labelClass; ?>"><?php echo htmlentities($label, ENT_QUOTES | ENT_IGNORE, 'UTF-8'); ?>: </span>
<?php endif; ?>
<span class="field-value"><?php echo $value; ?></span>

The same content is in 2 releases, Joomla 3.10.0-alpha2 to 3.10.0-alpha3. See them all, or every version of this file.