CoreFiles by mySites.guru
render.php40 lines, 874 bytes, from Joomla_3.7.0-Stable-Full_Package.zip
Raw History Compare with 3.6.5
md5
c0bae2cd149893def81a0fad1ac9371b
sha1
5a85d810b15f179ba911bc4543c1ac216f6fac88
sha256
fe81f2787fcd1bdba08c91b92778fccabc6b67b0ebdc55b5f8c8c3c29a3ad83a
<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_contact
 *
 * @copyright   Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
 * @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 = $field->label;
$value = $field->value;
$class = $field->params->get('render_class');

if (!$value)
{
	return;
}

if ($field->context == 'com_contact.mail')
{
	// Prepare the value for the contact form mail
	echo $label . ': ' . $value . "\r\n";
	return;
}

?>

<dt class="contact-field-entry <?php echo $class; ?>">
	<span class="field-label"><?php echo htmlentities($label); ?>: </span>
</dt>
<dd class="contact-field-entry <?php echo $class; ?>">
	<span class="field-value"><?php echo $value; ?></span>
</dd>

The same content is in 6 releases, Joomla 3.7.0-beta4 to 3.7.0. See them all, or every version of this file.