CoreFiles by mySites.guru
repeatable.php36 lines, 588 bytes, from Joomla_3.9.1-Stable-Full_Package.zip
Raw History Compare with 3.9.0
md5
8b37ce00ff1e2e40337236524da8bd4d
sha1
970da10d3d76bc2261acd10da158086566885bf6
sha256
cbf8624294a6553bcd3e07f55b0c300402d624eb67f08974b7f0adb4d587e66e
<?php
/**
 * @package     Joomla.Plugin
 * @subpackage  Fields.Repeatable
 *
 * @copyright   Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

$fieldValue = $field->value;

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

// Get the values
$fieldValues = json_decode($fieldValue, true);

if (empty($fieldValues))
{
	return;
}

$html = '<ul>';

foreach ($fieldValues as $value)
{
	$html .= '<li>' . implode(', ', $value) . '</li>';
}

$html .= '</ul>';

echo $html;

The same content is in 10 releases, Joomla 3.9.0-alpha to 3.9.1. See them all, or every version of this file.