CoreFiles by mySites.guru
calendar.php26 lines, 548 bytes, from Joomla_3.10.6-Stable-Full_Package.zip
Raw History Compare with 3.10.5
md5
0697da5a2bc431e254b6e34a16dc4ee0
sha1
cc48bdfc0780c5ffa482c85d90045b5bb62f3c50
sha256
4acaa0f7bf33fa6c532fd365021cdefe3d5a8929dbc3af5ab175450b415c519a
<?php
/**
 * @package     Joomla.Plugin
 * @subpackage  Fields.Calendar
 *
 * @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;

$value = $field->value;

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

if (is_array($value))
{
	$value = implode(', ', $value);
}

$formatString =  $field->fieldparams->get('showtime', 0) ? 'DATE_FORMAT_LC5' : 'DATE_FORMAT_LC4';

echo htmlentities(JHtml::_('date', $value, JText::_($formatString)));

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