CoreFiles by mySites.guru
calendar.php26 lines, 561 bytes, from Joomla_3.9.13-Stable-Full_Package.zip
Raw History Compare with 3.9.12
md5
5629fb47dd302e800d84c5a1559e8580
sha1
f50bbd4d1cb8211f114bae300c0bf0b812f41dba
sha256
ed92677cdb416d07abf16c7ee918f743cd1ba4442e992b5d732c1a349d72906d
<?php
/**
 * @package     Joomla.Plugin
 * @subpackage  Fields.Calendar
 *
 * @copyright   Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
 * @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 26 releases, Joomla 3.9.2-rc to 3.9.14. See them all, or every version of this file.