-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
02a527a
commit 16fd41a
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
/** | ||
* @package Joomla.Site | ||
* @subpackage Layout | ||
* | ||
* @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
defined('JPATH_BASE') or die; | ||
?> | ||
|
||
<fieldset class="<?php echo !empty($displayData->formclass) ? $displayData->formclass : ''; ?>"> | ||
<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) | ||
{ | ||
?> | ||
<div> | ||
<div class="controls"><?php echo $field->input; ?></div> | ||
</div> | ||
<?php | ||
} | ||
} | ||
?> | ||
</fieldset> |