CoreFiles by mySites.guru
render.php40 lines, 988 bytes, from Joomla_3.7.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 3.7.0-alpha1
md5
f06a50335645ec1b85af167bff658956
sha1
0189bd2d320926611089d7c35b93bfec1f034f08
sha256
2576dc148e6e603142502ed5edab0d4f17320fedefb54b653431dab7432dde57
<?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; ?>" 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>

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