primo commit

This commit is contained in:
2024-12-17 17:34:10 +01:00
commit e650f8df99
16435 changed files with 2451012 additions and 0 deletions

View File

@ -0,0 +1,36 @@
<?php
/**
* @package JEM
* @copyright (C) 2013-2024 joomlaeventmanager.net
* @copyright (C) 2005-2009 Christoph Lukes
* @license https://www.gnu.org/licenses/gpl-3.0 GNU/GPL
*/
defined('_JEXEC') or die;
use Joomla\CMS\Language\Text;
$max_custom_fields = $this->settings->get('global_editevent_maxnumcustomfields', -1); // default to All
?>
<!-- CUSTOM FIELDS -->
<?php if ($max_custom_fields != 0) : ?>
<fieldset class="panelform">
<legend><?php echo Text::_('COM_JEM_EVENT_CUSTOMFIELDS_LEGEND'); ?></legend>
<ul class="adminformlist">
<?php
$fields = $this->form->getFieldset('custom');
if ($max_custom_fields < 0) :
$max_custom_fields = count($fields);
endif;
$cnt = 0;
foreach($fields as $field) :
if (++$cnt <= $max_custom_fields) :
?><li><?php echo $field->label; ?><?php echo $field->input; ?></li><?php
endif;
endforeach;
?>
</ul>
</fieldset>
<?php endif; ?>