primo commit
This commit is contained in:
		
							
								
								
									
										38
									
								
								components/com_jem/views/editvenue/tmpl/edit_other.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								components/com_jem/views/editvenue/tmpl/edit_other.php
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,38 @@ | ||||
| <?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_editvenue_maxnumcustomfields', -1); // default to All | ||||
| ?> | ||||
|  | ||||
| 	<!-- CUSTOM FIELDS --> | ||||
| 	<?php if ($max_custom_fields != 0) : ?> | ||||
| 	<fieldset class="panelform"> | ||||
| 		<legend><?php echo Text::_('COM_JEM_EDITVENUE_CUSTOMFIELDS'); ?></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