CoreFiles by mySites.guru
repeatable.php36 lines, 588 bytes, from Joomla_3.9.8-Stable-Full_Package.zip
Raw History Compare with 3.9.7
md5
59b26520a6f08fa6e7833162be607f21
sha1
16c02fed89b235e75a23940dd394ec4b766f709b
sha256
2d995e76bc3e32a727fc5281c5477f393f9e0dd1c90763b0e660a2617449fb93
<?php
/**
 * @package     Joomla.Plugin
 * @subpackage  Fields.Repeatable
 *
 * @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;

$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 31 releases, Joomla 3.9.2-rc to 4.0.0-alpha12. See them all, or every version of this file.