芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/ixilyucatan.gob.mx/plugins/fields/usergrouplist/tmpl/usergrouplist.php
* @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\Component\Users\Administrator\Helper\UsersHelper; $value = $field->value; if ($value == '') { return; } $value = (array) $value; $texts = array(); $groups = UsersHelper::getGroups(); foreach ($groups as $group) { if (in_array($group->value, $value)) { $texts[] = htmlentities(trim($group->text, '- ')); } } echo htmlentities(implode(', ', $texts));