CoreFiles by mySites.guru
render.php40 lines, 988 bytes, from Joomla_3.7.0-alpha1-Alpha-Full_Package.zip
Raw History Compare with 3.6.0-alpha
md5
19b0dd0a66bc51bfd76585be18bbf8a2
sha1
126b0d35b0cf7cff45d6654148b04f17b8b8c22b
sha256
62545a5fefd196f94362d82c094741b7718d5a14a6f144d67f5fa25ea8fbed67
<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_contact
 *
 * @copyright   Copyright (C) 2005 - 2016 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; ?>" id="contact-field-entry-label-<?php echo $field->id; ?>">
	<span class="field-label"><?php echo htmlentities($label); ?>: </span>
</dt>
<dd class="contact-field-entry <?php echo $class; ?>" id="contact-field-entry-value-<?php echo $field->id; ?>">
	<span class="field-value"><?php echo $value; ?></span>
</dd>

No other release has this exact content. See every version of this file.