primo commit
This commit is contained in:
36
components/com_jem/views/editevent/tmpl/edit_other.php
Normal file
36
components/com_jem/views/editevent/tmpl/edit_other.php
Normal 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; ?>
|
||||
|
||||
Reference in New Issue
Block a user