You've already forked joomla_test
first commit
This commit is contained in:
50
layouts/joomla/content/options_default.php
Normal file
50
layouts/joomla/content/options_default.php
Normal file
@ -0,0 +1,50 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_weblinks
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
JHtml::_('behavior.framework');
|
||||
|
||||
?>
|
||||
<fieldset class="<?php echo !empty($displayData->formclass) ? $displayData->formclass : 'form-horizontal'; ?>">
|
||||
<legend><?php echo $displayData->name ?></legend>
|
||||
<?php if (!empty($displayData->description)): ?>
|
||||
<p><?php echo $displayData->description; ?></p>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
$fieldsnames = explode(',', $displayData->fieldsname);
|
||||
foreach($fieldsnames as $fieldname)
|
||||
{
|
||||
foreach ($displayData->form->getFieldset($fieldname) as $field)
|
||||
{
|
||||
$classnames = 'control-group';
|
||||
$rel = '';
|
||||
$showon = $displayData->form->getFieldAttribute($field->fieldname, 'showon');
|
||||
if (!empty($showon))
|
||||
{
|
||||
JHtml::_('jquery.framework');
|
||||
JHtml::_('script', 'jui/cms.js', false, true);
|
||||
|
||||
$id = $displayData->form->getFormControl();
|
||||
$showon = explode(':', $showon, 2);
|
||||
$classnames .= ' showon_' . implode(' showon_', explode(',', $showon[1]));
|
||||
$rel = ' rel="showon_' . $id . '['. $showon[0] . ']"';
|
||||
}
|
||||
?>
|
||||
<div class="<?php echo $classnames; ?>"<?php echo $rel; ?>>
|
||||
<?php if (!isset($displayData->showlabel) || $displayData->showlabel): ?>
|
||||
<div class="control-label"><?php echo $field->label; ?></div>
|
||||
<?php endif; ?>
|
||||
<div class="controls"><?php echo $field->input; ?></div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</fieldset>
|
Reference in New Issue
Block a user