CoreFiles by mySites.guru
calendar.php26 lines, 561 bytes, from Joomla_3.7.4-Stable-Full_Package.zip
Raw History Compare with 3.7.3
md5
6f40f799cfe9dedea7e8c31c6d69ad5d
sha1
f98c993019b3bf8b658458f890ee41ce82422833
sha256
635df9f8677593f39f7be050bd7ce6990781437ba375ae640b1f1fb858160400
<?php
/**
 * @package     Joomla.Plugin
 * @subpackage  Fields.Calendar
 *
 * @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;

$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 34 releases, Joomla 3.7.0-beta1 to 4.0.0-alpha2. See them all, or every version of this file.