Skip to content

Commit

Permalink
Merge pull request #23 from wilsonge/patch-16
Browse files Browse the repository at this point in the history
Make code more readable
  • Loading branch information
zero-24 committed Jan 5, 2015
2 parents d0f454b + 49d01c0 commit 21822ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions layouts/joomla/form/renderfield.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@
* $input : (string) The input field html code
*/

?>

<?php
if (!empty($displayData['options']['showonEnabled']))
{
JHtml::_('jquery.framework');
JHtml::_('script', 'jui/cms.js', false, true);
}

$class = empty($displayData['options']['class']) ? "" : " " . $displayData['options']['class'];
$rel = empty($displayData['options']['rel']) ? "" : " " . $displayData['options']['rel'];
?>

<div class="control-group<?php echo empty($displayData['options']['class']) ? "" : " " . $displayData['options']['class']; ?>"<?php echo empty($displayData['options']['rel']) ? "" : " " . $displayData['options']['rel']; ?>>
<div class="control-group<?php echo $class; ?>"<?php echo $rel; ?>>
<?php if (empty($displayData['options']['hiddenLabel'])) : ?>
<div class="control-label"><?php echo $displayData['label']; ?></div>
<?php endif; ?>
Expand Down

0 comments on commit 21822ad

Please sign in to comment.