PageRenderTime 40ms CodeModel.GetById 34ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/administrator/templates/hathor/html/com_modules/module/edit_options.php

https://bitbucket.org/eternaware/joomus
PHP | 37 lines | 27 code | 3 blank | 7 comment | 4 complexity | 7ccbd7b8a339aa256f6be7adbd7a2f74 MD5 | raw file
Possible License(s): LGPL-2.1
 1<?php
 2/**
 3 * @package     Joomla.Administrator
 4 * @subpackage  Template.hathor
 5 *
 6 * @copyright   Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
 7 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 8 */
 9
10defined('_JEXEC') or die;
11
12	$fieldSets = $this->form->getFieldsets('params');
13
14	foreach ($fieldSets as $name => $fieldSet) :
15		$label = !empty($fieldSet->label) ? $fieldSet->label : 'COM_MODULES_'.$name.'_FIELDSET_LABEL';
16		echo JHtml::_('sliders.panel', JText::_($label), $name.'-options');
17			if (isset($fieldSet->description) && trim($fieldSet->description)) :
18				echo '<p class="tip">'.$this->escape(JText::_($fieldSet->description)).'</p>';
19			endif;
20			?>
21		<fieldset class="panelform">
22		<legend class="element-invisible"><?php echo JText::_($label); ?></legend>
23		<?php $hidden_fields = ''; ?>
24		<ul class="adminformlist">
25			<?php foreach ($this->form->getFieldset($name) as $field) : ?>
26			<?php if (!$field->hidden) : ?>
27			<li>
28				<?php echo $field->label; ?>
29				<?php echo $field->input; ?>
30			</li>
31			<?php else : $hidden_fields .= $field->input; ?>
32			<?php endif; ?>
33			<?php endforeach; ?>
34		</ul>
35		<?php echo $hidden_fields; ?>
36		</fieldset>
37	<?php endforeach; ?>