diff --git a/README.md b/README.md
index 3bc334c57..75cf891fd 100644
--- a/README.md
+++ b/README.md
@@ -144,11 +144,11 @@ TODO
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
+ *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder)
+ *First Build*: 30th April, 2015
-+ *Last Build*: 21st January, 2019
++ *Last Build*: 23rd January, 2019
+ *Version*: 2.9.8
+ *Copyright*: Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved.
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
-+ *Line count*: **195813**
++ *Line count*: **194592**
+ *Field count*: **1087**
+ *File count*: **1275**
+ *Folder count*: **201**
diff --git a/admin/README.txt b/admin/README.txt
index 3bc334c57..75cf891fd 100644
--- a/admin/README.txt
+++ b/admin/README.txt
@@ -144,11 +144,11 @@ TODO
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
+ *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder)
+ *First Build*: 30th April, 2015
-+ *Last Build*: 21st January, 2019
++ *Last Build*: 23rd January, 2019
+ *Version*: 2.9.8
+ *Copyright*: Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved.
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
-+ *Line count*: **195813**
++ *Line count*: **194592**
+ *Field count*: **1087**
+ *File count*: **1275**
+ *Folder count*: **201**
diff --git a/admin/compiler/joomla_3/layout.php b/admin/compiler/joomla_3/layout.php
index 81d525c27..5b6acbb3c 100644
--- a/admin/compiler/joomla_3/layout.php
+++ b/admin/compiler/joomla_3/layout.php
@@ -29,7 +29,6 @@ defined('_JEXEC') or die('Restricted access');
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -38,20 +37,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/compiler/joomla_3/layoutfull.php b/admin/compiler/joomla_3/layoutfull.php
index 64902f2ab..bf7b64e02 100644
--- a/admin/compiler/joomla_3/layoutfull.php
+++ b/admin/compiler/joomla_3/layoutfull.php
@@ -23,16 +23,14 @@ $fields = $displayData->get('fields') ?: array(
###LAYOUTITEMS###
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/compiler/joomla_3/layoutitems.php b/admin/compiler/joomla_3/layoutitems.php
index bf854edc6..82de7a208 100644
--- a/admin/compiler/joomla_3/layoutitems.php
+++ b/admin/compiler/joomla_3/layoutitems.php
@@ -25,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/compiler/joomla_3/layoutpublished.php b/admin/compiler/joomla_3/layoutpublished.php
index c5541b68f..82de7a208 100644
--- a/admin/compiler/joomla_3/layoutpublished.php
+++ b/admin/compiler/joomla_3/layoutpublished.php
@@ -17,7 +17,6 @@ defined('_JEXEC') or die('Restricted access');
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/compiler/joomla_3/layouttitle.php b/admin/compiler/joomla_3/layouttitle.php
index 0152838ea..5c30a679f 100644
--- a/admin/compiler/joomla_3/layouttitle.php
+++ b/admin/compiler/joomla_3/layouttitle.php
@@ -19,13 +19,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
-$fields = array(
+$fields = $displayData->get('fields') ?: array(
###LAYOUTITEMS###
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/admin_custom_tabs/publishing.php b/admin/layouts/admin_custom_tabs/publishing.php
index ea58156d1..3ff2d0f98 100644
--- a/admin/layouts/admin_custom_tabs/publishing.php
+++ b/admin/layouts/admin_custom_tabs/publishing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_custom_tabs/publlshing.php b/admin/layouts/admin_custom_tabs/publlshing.php
index 7dfa73168..db19414f3 100644
--- a/admin/layouts/admin_custom_tabs/publlshing.php
+++ b/admin/layouts/admin_custom_tabs/publlshing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_custom_tabs/tabs_above.php b/admin/layouts/admin_custom_tabs/tabs_above.php
index fbbf44543..f4e6c0504 100644
--- a/admin/layouts/admin_custom_tabs/tabs_above.php
+++ b/admin/layouts/admin_custom_tabs/tabs_above.php
@@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
-$fields = array(
+$fields = $displayData->get('fields') ?: array(
'admin_view'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/admin_custom_tabs/tabs_fullwidth.php b/admin/layouts/admin_custom_tabs/tabs_fullwidth.php
index 46a16983d..4f3464386 100644
--- a/admin/layouts/admin_custom_tabs/tabs_fullwidth.php
+++ b/admin/layouts/admin_custom_tabs/tabs_fullwidth.php
@@ -18,16 +18,14 @@ $fields = $displayData->get('fields') ?: array(
'tabs'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/admin_fields/fields_above.php b/admin/layouts/admin_fields/fields_above.php
index fbbf44543..f4e6c0504 100644
--- a/admin/layouts/admin_fields/fields_above.php
+++ b/admin/layouts/admin_fields/fields_above.php
@@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
-$fields = array(
+$fields = $displayData->get('fields') ?: array(
'admin_view'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/admin_fields/fields_fullwidth.php b/admin/layouts/admin_fields/fields_fullwidth.php
index 64d278138..398fdcb99 100644
--- a/admin/layouts/admin_fields/fields_fullwidth.php
+++ b/admin/layouts/admin_fields/fields_fullwidth.php
@@ -19,16 +19,14 @@ $fields = $displayData->get('fields') ?: array(
'addfields'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/admin_fields/publishing.php b/admin/layouts/admin_fields/publishing.php
index ea58156d1..3ff2d0f98 100644
--- a/admin/layouts/admin_fields/publishing.php
+++ b/admin/layouts/admin_fields/publishing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_fields/publlshing.php b/admin/layouts/admin_fields/publlshing.php
index 7dfa73168..db19414f3 100644
--- a/admin/layouts/admin_fields/publlshing.php
+++ b/admin/layouts/admin_fields/publlshing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_fields_conditions/conditions_above.php b/admin/layouts/admin_fields_conditions/conditions_above.php
index fbbf44543..f4e6c0504 100644
--- a/admin/layouts/admin_fields_conditions/conditions_above.php
+++ b/admin/layouts/admin_fields_conditions/conditions_above.php
@@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
-$fields = array(
+$fields = $displayData->get('fields') ?: array(
'admin_view'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/admin_fields_conditions/conditions_fullwidth.php b/admin/layouts/admin_fields_conditions/conditions_fullwidth.php
index 03724354a..1fdde5ad1 100644
--- a/admin/layouts/admin_fields_conditions/conditions_fullwidth.php
+++ b/admin/layouts/admin_fields_conditions/conditions_fullwidth.php
@@ -19,16 +19,14 @@ $fields = $displayData->get('fields') ?: array(
'addconditions'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/admin_fields_conditions/publishing.php b/admin/layouts/admin_fields_conditions/publishing.php
index ea58156d1..3ff2d0f98 100644
--- a/admin/layouts/admin_fields_conditions/publishing.php
+++ b/admin/layouts/admin_fields_conditions/publishing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_fields_conditions/publlshing.php b/admin/layouts/admin_fields_conditions/publlshing.php
index 7dfa73168..db19414f3 100644
--- a/admin/layouts/admin_fields_conditions/publlshing.php
+++ b/admin/layouts/admin_fields_conditions/publlshing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_fields_relations/publishing.php b/admin/layouts/admin_fields_relations/publishing.php
index ea58156d1..3ff2d0f98 100644
--- a/admin/layouts/admin_fields_relations/publishing.php
+++ b/admin/layouts/admin_fields_relations/publishing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_fields_relations/publlshing.php b/admin/layouts/admin_fields_relations/publlshing.php
index 7dfa73168..db19414f3 100644
--- a/admin/layouts/admin_fields_relations/publlshing.php
+++ b/admin/layouts/admin_fields_relations/publlshing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_fields_relations/relations_above.php b/admin/layouts/admin_fields_relations/relations_above.php
index fbbf44543..f4e6c0504 100644
--- a/admin/layouts/admin_fields_relations/relations_above.php
+++ b/admin/layouts/admin_fields_relations/relations_above.php
@@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
-$fields = array(
+$fields = $displayData->get('fields') ?: array(
'admin_view'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/admin_fields_relations/relations_fullwidth.php b/admin/layouts/admin_fields_relations/relations_fullwidth.php
index 9f094fcf9..5a288a738 100644
--- a/admin/layouts/admin_fields_relations/relations_fullwidth.php
+++ b/admin/layouts/admin_fields_relations/relations_fullwidth.php
@@ -19,16 +19,14 @@ $fields = $displayData->get('fields') ?: array(
'addrelations'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/admin_view/css_fullwidth.php b/admin/layouts/admin_view/css_fullwidth.php
index aef643a25..ddea836f1 100644
--- a/admin/layouts/admin_view/css_fullwidth.php
+++ b/admin/layouts/admin_view/css_fullwidth.php
@@ -21,16 +21,14 @@ $fields = $displayData->get('fields') ?: array(
'css_views'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/admin_view/custom_buttons_fullwidth.php b/admin/layouts/admin_view/custom_buttons_fullwidth.php
index 48d680c7c..19e0e1848 100644
--- a/admin/layouts/admin_view/custom_buttons_fullwidth.php
+++ b/admin/layouts/admin_view/custom_buttons_fullwidth.php
@@ -21,16 +21,14 @@ $fields = $displayData->get('fields') ?: array(
'php_model_list'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/admin_view/custom_buttons_left.php b/admin/layouts/admin_view/custom_buttons_left.php
index 9a5328805..a14229d57 100644
--- a/admin/layouts/admin_view/custom_buttons_left.php
+++ b/admin/layouts/admin_view/custom_buttons_left.php
@@ -21,20 +21,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_view/custom_import_fullwidth.php b/admin/layouts/admin_view/custom_import_fullwidth.php
index d8b9b6901..51084a105 100644
--- a/admin/layouts/admin_view/custom_import_fullwidth.php
+++ b/admin/layouts/admin_view/custom_import_fullwidth.php
@@ -27,16 +27,14 @@ $fields = $displayData->get('fields') ?: array(
'php_import_ext'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/admin_view/details_above.php b/admin/layouts/admin_view/details_above.php
index 674a8e6b1..eb96431d9 100644
--- a/admin/layouts/admin_view/details_above.php
+++ b/admin/layouts/admin_view/details_above.php
@@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
-$fields = array(
+$fields = $displayData->get('fields') ?: array(
'system_name'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/admin_view/details_fullwidth.php b/admin/layouts/admin_view/details_fullwidth.php
index ee8b7fe33..7cb5eea6e 100644
--- a/admin/layouts/admin_view/details_fullwidth.php
+++ b/admin/layouts/admin_view/details_fullwidth.php
@@ -18,16 +18,14 @@ $fields = $displayData->get('fields') ?: array(
'note_linked_to_notice'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/admin_view/details_left.php b/admin/layouts/admin_view/details_left.php
index 2abf54dec..60410677c 100644
--- a/admin/layouts/admin_view/details_left.php
+++ b/admin/layouts/admin_view/details_left.php
@@ -25,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_view/details_right.php b/admin/layouts/admin_view/details_right.php
index 39b65203e..60d320236 100644
--- a/admin/layouts/admin_view/details_right.php
+++ b/admin/layouts/admin_view/details_right.php
@@ -22,20 +22,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_view/details_under.php b/admin/layouts/admin_view/details_under.php
index 676b68504..b48f37386 100644
--- a/admin/layouts/admin_view/details_under.php
+++ b/admin/layouts/admin_view/details_under.php
@@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
-$fields = array(
+$fields = $displayData->get('fields') ?: array(
'not_required'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/admin_view/fields_fullwidth.php b/admin/layouts/admin_view/fields_fullwidth.php
index 8893a80cc..a98603dae 100644
--- a/admin/layouts/admin_view/fields_fullwidth.php
+++ b/admin/layouts/admin_view/fields_fullwidth.php
@@ -18,16 +18,14 @@ $fields = $displayData->get('fields') ?: array(
'note_create_edit_display'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/admin_view/fields_left.php b/admin/layouts/admin_view/fields_left.php
index 757364bc1..2750eebab 100644
--- a/admin/layouts/admin_view/fields_left.php
+++ b/admin/layouts/admin_view/fields_left.php
@@ -24,20 +24,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_view/fields_right.php b/admin/layouts/admin_view/fields_right.php
index 401ead4c5..719857277 100644
--- a/admin/layouts/admin_view/fields_right.php
+++ b/admin/layouts/admin_view/fields_right.php
@@ -20,20 +20,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_view/javascript_fullwidth.php b/admin/layouts/admin_view/javascript_fullwidth.php
index e0d523c02..2a9156ae6 100644
--- a/admin/layouts/admin_view/javascript_fullwidth.php
+++ b/admin/layouts/admin_view/javascript_fullwidth.php
@@ -25,16 +25,14 @@ $fields = $displayData->get('fields') ?: array(
'javascript_views_footer'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/admin_view/mysql_fullwidth.php b/admin/layouts/admin_view/mysql_fullwidth.php
index 58abb1b85..d7279881e 100644
--- a/admin/layouts/admin_view/mysql_fullwidth.php
+++ b/admin/layouts/admin_view/mysql_fullwidth.php
@@ -18,16 +18,14 @@ $fields = $displayData->get('fields') ?: array(
'sql'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/admin_view/mysql_left.php b/admin/layouts/admin_view/mysql_left.php
index b722cef9a..42f2311c6 100644
--- a/admin/layouts/admin_view/mysql_left.php
+++ b/admin/layouts/admin_view/mysql_left.php
@@ -25,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_view/php_fullwidth.php b/admin/layouts/admin_view/php_fullwidth.php
index 8e7e3809c..76b9368ed 100644
--- a/admin/layouts/admin_view/php_fullwidth.php
+++ b/admin/layouts/admin_view/php_fullwidth.php
@@ -54,16 +54,14 @@ $fields = $displayData->get('fields') ?: array(
'php_document'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/admin_view/publishing.php b/admin/layouts/admin_view/publishing.php
index ea58156d1..3ff2d0f98 100644
--- a/admin/layouts/admin_view/publishing.php
+++ b/admin/layouts/admin_view/publishing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_view/publlshing.php b/admin/layouts/admin_view/publlshing.php
index 7dfa73168..db19414f3 100644
--- a/admin/layouts/admin_view/publlshing.php
+++ b/admin/layouts/admin_view/publlshing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/admin_view/settings_fullwidth.php b/admin/layouts/admin_view/settings_fullwidth.php
index 72bafba04..4c648f119 100644
--- a/admin/layouts/admin_view/settings_fullwidth.php
+++ b/admin/layouts/admin_view/settings_fullwidth.php
@@ -24,16 +24,14 @@ $fields = $displayData->get('fields') ?: array(
'addlinked_views'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/component_admin_views/publishing.php b/admin/layouts/component_admin_views/publishing.php
index ea58156d1..3ff2d0f98 100644
--- a/admin/layouts/component_admin_views/publishing.php
+++ b/admin/layouts/component_admin_views/publishing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_admin_views/publlshing.php b/admin/layouts/component_admin_views/publlshing.php
index 7dfa73168..db19414f3 100644
--- a/admin/layouts/component_admin_views/publlshing.php
+++ b/admin/layouts/component_admin_views/publlshing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_admin_views/views_above.php b/admin/layouts/component_admin_views/views_above.php
index 26f5796f7..da98e936b 100644
--- a/admin/layouts/component_admin_views/views_above.php
+++ b/admin/layouts/component_admin_views/views_above.php
@@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
-$fields = array(
+$fields = $displayData->get('fields') ?: array(
'joomla_component'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/component_admin_views/views_fullwidth.php b/admin/layouts/component_admin_views/views_fullwidth.php
index 2c06f8581..646539b0a 100644
--- a/admin/layouts/component_admin_views/views_fullwidth.php
+++ b/admin/layouts/component_admin_views/views_fullwidth.php
@@ -19,16 +19,14 @@ $fields = $displayData->get('fields') ?: array(
'addadmin_views'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/component_config/publishing.php b/admin/layouts/component_config/publishing.php
index ea58156d1..3ff2d0f98 100644
--- a/admin/layouts/component_config/publishing.php
+++ b/admin/layouts/component_config/publishing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_config/publlshing.php b/admin/layouts/component_config/publlshing.php
index 7dfa73168..db19414f3 100644
--- a/admin/layouts/component_config/publlshing.php
+++ b/admin/layouts/component_config/publlshing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_config/tweaks_above.php b/admin/layouts/component_config/tweaks_above.php
index 26f5796f7..da98e936b 100644
--- a/admin/layouts/component_config/tweaks_above.php
+++ b/admin/layouts/component_config/tweaks_above.php
@@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
-$fields = array(
+$fields = $displayData->get('fields') ?: array(
'joomla_component'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/component_config/tweaks_fullwidth.php b/admin/layouts/component_config/tweaks_fullwidth.php
index b96b69b35..c720f0f06 100644
--- a/admin/layouts/component_config/tweaks_fullwidth.php
+++ b/admin/layouts/component_config/tweaks_fullwidth.php
@@ -18,16 +18,14 @@ $fields = $displayData->get('fields') ?: array(
'addconfig'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/component_custom_admin_menus/publishing.php b/admin/layouts/component_custom_admin_menus/publishing.php
index ea58156d1..3ff2d0f98 100644
--- a/admin/layouts/component_custom_admin_menus/publishing.php
+++ b/admin/layouts/component_custom_admin_menus/publishing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_custom_admin_menus/publlshing.php b/admin/layouts/component_custom_admin_menus/publlshing.php
index 7dfa73168..db19414f3 100644
--- a/admin/layouts/component_custom_admin_menus/publlshing.php
+++ b/admin/layouts/component_custom_admin_menus/publlshing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_custom_admin_menus/tweaks_above.php b/admin/layouts/component_custom_admin_menus/tweaks_above.php
index 26f5796f7..da98e936b 100644
--- a/admin/layouts/component_custom_admin_menus/tweaks_above.php
+++ b/admin/layouts/component_custom_admin_menus/tweaks_above.php
@@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
-$fields = array(
+$fields = $displayData->get('fields') ?: array(
'joomla_component'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/component_custom_admin_menus/tweaks_fullwidth.php b/admin/layouts/component_custom_admin_menus/tweaks_fullwidth.php
index 1d53e2f5a..8bf1f4890 100644
--- a/admin/layouts/component_custom_admin_menus/tweaks_fullwidth.php
+++ b/admin/layouts/component_custom_admin_menus/tweaks_fullwidth.php
@@ -18,16 +18,14 @@ $fields = $displayData->get('fields') ?: array(
'addcustommenus'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/component_custom_admin_views/publishing.php b/admin/layouts/component_custom_admin_views/publishing.php
index ea58156d1..3ff2d0f98 100644
--- a/admin/layouts/component_custom_admin_views/publishing.php
+++ b/admin/layouts/component_custom_admin_views/publishing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_custom_admin_views/publlshing.php b/admin/layouts/component_custom_admin_views/publlshing.php
index 7dfa73168..db19414f3 100644
--- a/admin/layouts/component_custom_admin_views/publlshing.php
+++ b/admin/layouts/component_custom_admin_views/publlshing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_custom_admin_views/views_above.php b/admin/layouts/component_custom_admin_views/views_above.php
index 26f5796f7..da98e936b 100644
--- a/admin/layouts/component_custom_admin_views/views_above.php
+++ b/admin/layouts/component_custom_admin_views/views_above.php
@@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
-$fields = array(
+$fields = $displayData->get('fields') ?: array(
'joomla_component'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/component_custom_admin_views/views_fullwidth.php b/admin/layouts/component_custom_admin_views/views_fullwidth.php
index 7b910ce6e..dbd05bfc1 100644
--- a/admin/layouts/component_custom_admin_views/views_fullwidth.php
+++ b/admin/layouts/component_custom_admin_views/views_fullwidth.php
@@ -19,16 +19,14 @@ $fields = $displayData->get('fields') ?: array(
'addcustom_admin_views'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/component_dashboard/dashboard_above.php b/admin/layouts/component_dashboard/dashboard_above.php
index 26f5796f7..da98e936b 100644
--- a/admin/layouts/component_dashboard/dashboard_above.php
+++ b/admin/layouts/component_dashboard/dashboard_above.php
@@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
-$fields = array(
+$fields = $displayData->get('fields') ?: array(
'joomla_component'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/component_dashboard/dashboard_fullwidth.php b/admin/layouts/component_dashboard/dashboard_fullwidth.php
index 1d7224665..873b0a3fb 100644
--- a/admin/layouts/component_dashboard/dashboard_fullwidth.php
+++ b/admin/layouts/component_dashboard/dashboard_fullwidth.php
@@ -19,16 +19,14 @@ $fields = $displayData->get('fields') ?: array(
'dashboard_tab'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/component_dashboard/publishing.php b/admin/layouts/component_dashboard/publishing.php
index ea58156d1..3ff2d0f98 100644
--- a/admin/layouts/component_dashboard/publishing.php
+++ b/admin/layouts/component_dashboard/publishing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_dashboard/publlshing.php b/admin/layouts/component_dashboard/publlshing.php
index 7dfa73168..db19414f3 100644
--- a/admin/layouts/component_dashboard/publlshing.php
+++ b/admin/layouts/component_dashboard/publlshing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_files_folders/advance_fullwidth.php b/admin/layouts/component_files_folders/advance_fullwidth.php
index 508d9d18e..b733a13ed 100644
--- a/admin/layouts/component_files_folders/advance_fullwidth.php
+++ b/admin/layouts/component_files_folders/advance_fullwidth.php
@@ -22,16 +22,14 @@ $fields = $displayData->get('fields') ?: array(
'note_constant_paths'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/component_files_folders/basic_above.php b/admin/layouts/component_files_folders/basic_above.php
index 26f5796f7..da98e936b 100644
--- a/admin/layouts/component_files_folders/basic_above.php
+++ b/admin/layouts/component_files_folders/basic_above.php
@@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
-$fields = array(
+$fields = $displayData->get('fields') ?: array(
'joomla_component'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/component_files_folders/basic_fullwidth.php b/admin/layouts/component_files_folders/basic_fullwidth.php
index d524507b0..5731546b2 100644
--- a/admin/layouts/component_files_folders/basic_fullwidth.php
+++ b/admin/layouts/component_files_folders/basic_fullwidth.php
@@ -21,16 +21,14 @@ $fields = $displayData->get('fields') ?: array(
'addfolders'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/component_files_folders/publishing.php b/admin/layouts/component_files_folders/publishing.php
index ea58156d1..3ff2d0f98 100644
--- a/admin/layouts/component_files_folders/publishing.php
+++ b/admin/layouts/component_files_folders/publishing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_files_folders/publlshing.php b/admin/layouts/component_files_folders/publlshing.php
index 7dfa73168..db19414f3 100644
--- a/admin/layouts/component_files_folders/publlshing.php
+++ b/admin/layouts/component_files_folders/publlshing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_mysql_tweaks/publishing.php b/admin/layouts/component_mysql_tweaks/publishing.php
index ea58156d1..3ff2d0f98 100644
--- a/admin/layouts/component_mysql_tweaks/publishing.php
+++ b/admin/layouts/component_mysql_tweaks/publishing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_mysql_tweaks/publlshing.php b/admin/layouts/component_mysql_tweaks/publlshing.php
index 7dfa73168..db19414f3 100644
--- a/admin/layouts/component_mysql_tweaks/publlshing.php
+++ b/admin/layouts/component_mysql_tweaks/publlshing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_mysql_tweaks/tweaks_above.php b/admin/layouts/component_mysql_tweaks/tweaks_above.php
index 26f5796f7..da98e936b 100644
--- a/admin/layouts/component_mysql_tweaks/tweaks_above.php
+++ b/admin/layouts/component_mysql_tweaks/tweaks_above.php
@@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
-$fields = array(
+$fields = $displayData->get('fields') ?: array(
'joomla_component'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/component_mysql_tweaks/tweaks_fullwidth.php b/admin/layouts/component_mysql_tweaks/tweaks_fullwidth.php
index 9a0050b0f..3415c2a85 100644
--- a/admin/layouts/component_mysql_tweaks/tweaks_fullwidth.php
+++ b/admin/layouts/component_mysql_tweaks/tweaks_fullwidth.php
@@ -18,16 +18,14 @@ $fields = $displayData->get('fields') ?: array(
'sql_tweak'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/component_site_views/publishing.php b/admin/layouts/component_site_views/publishing.php
index ea58156d1..3ff2d0f98 100644
--- a/admin/layouts/component_site_views/publishing.php
+++ b/admin/layouts/component_site_views/publishing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_site_views/publlshing.php b/admin/layouts/component_site_views/publlshing.php
index 7dfa73168..db19414f3 100644
--- a/admin/layouts/component_site_views/publlshing.php
+++ b/admin/layouts/component_site_views/publlshing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_site_views/views_above.php b/admin/layouts/component_site_views/views_above.php
index 26f5796f7..da98e936b 100644
--- a/admin/layouts/component_site_views/views_above.php
+++ b/admin/layouts/component_site_views/views_above.php
@@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
-$fields = array(
+$fields = $displayData->get('fields') ?: array(
'joomla_component'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/component_site_views/views_fullwidth.php b/admin/layouts/component_site_views/views_fullwidth.php
index 247778c61..101920332 100644
--- a/admin/layouts/component_site_views/views_fullwidth.php
+++ b/admin/layouts/component_site_views/views_fullwidth.php
@@ -19,16 +19,14 @@ $fields = $displayData->get('fields') ?: array(
'addsite_views'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/component_updates/publishing.php b/admin/layouts/component_updates/publishing.php
index ea58156d1..3ff2d0f98 100644
--- a/admin/layouts/component_updates/publishing.php
+++ b/admin/layouts/component_updates/publishing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_updates/publlshing.php b/admin/layouts/component_updates/publlshing.php
index 7dfa73168..db19414f3 100644
--- a/admin/layouts/component_updates/publlshing.php
+++ b/admin/layouts/component_updates/publlshing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/component_updates/updates_above.php b/admin/layouts/component_updates/updates_above.php
index 26f5796f7..da98e936b 100644
--- a/admin/layouts/component_updates/updates_above.php
+++ b/admin/layouts/component_updates/updates_above.php
@@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
-$fields = array(
+$fields = $displayData->get('fields') ?: array(
'joomla_component'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/component_updates/updates_fullwidth.php b/admin/layouts/component_updates/updates_fullwidth.php
index 15019846a..b43fed4e7 100644
--- a/admin/layouts/component_updates/updates_fullwidth.php
+++ b/admin/layouts/component_updates/updates_fullwidth.php
@@ -18,16 +18,14 @@ $fields = $displayData->get('fields') ?: array(
'version_update'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/custom_admin_view/custom_buttons_fullwidth.php b/admin/layouts/custom_admin_view/custom_buttons_fullwidth.php
index e3a7e886c..d6692df65 100644
--- a/admin/layouts/custom_admin_view/custom_buttons_fullwidth.php
+++ b/admin/layouts/custom_admin_view/custom_buttons_fullwidth.php
@@ -19,16 +19,14 @@ $fields = $displayData->get('fields') ?: array(
'php_model'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/custom_admin_view/custom_buttons_left.php b/admin/layouts/custom_admin_view/custom_buttons_left.php
index 9a5328805..a14229d57 100644
--- a/admin/layouts/custom_admin_view/custom_buttons_left.php
+++ b/admin/layouts/custom_admin_view/custom_buttons_left.php
@@ -21,20 +21,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/custom_admin_view/details_above.php b/admin/layouts/custom_admin_view/details_above.php
index 88bd987fd..b64cb67fa 100644
--- a/admin/layouts/custom_admin_view/details_above.php
+++ b/admin/layouts/custom_admin_view/details_above.php
@@ -14,14 +14,19 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
-$fields = array(
+$fields = $displayData->get('fields') ?: array(
'system_name',
'context'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/custom_admin_view/details_fullwidth.php b/admin/layouts/custom_admin_view/details_fullwidth.php
index 55f1ff1c4..0fbb88446 100644
--- a/admin/layouts/custom_admin_view/details_fullwidth.php
+++ b/admin/layouts/custom_admin_view/details_fullwidth.php
@@ -18,16 +18,14 @@ $fields = $displayData->get('fields') ?: array(
'default'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/custom_admin_view/details_left.php b/admin/layouts/custom_admin_view/details_left.php
index 75286200a..7a15392cc 100644
--- a/admin/layouts/custom_admin_view/details_left.php
+++ b/admin/layouts/custom_admin_view/details_left.php
@@ -25,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/custom_admin_view/details_right.php b/admin/layouts/custom_admin_view/details_right.php
index e29f4d14c..d66913fd4 100644
--- a/admin/layouts/custom_admin_view/details_right.php
+++ b/admin/layouts/custom_admin_view/details_right.php
@@ -23,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/custom_admin_view/details_rightside.php b/admin/layouts/custom_admin_view/details_rightside.php
index cc9dc978c..667153d7d 100644
--- a/admin/layouts/custom_admin_view/details_rightside.php
+++ b/admin/layouts/custom_admin_view/details_rightside.php
@@ -23,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/custom_admin_view/details_under.php b/admin/layouts/custom_admin_view/details_under.php
index 676b68504..b48f37386 100644
--- a/admin/layouts/custom_admin_view/details_under.php
+++ b/admin/layouts/custom_admin_view/details_under.php
@@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
-$fields = array(
+$fields = $displayData->get('fields') ?: array(
'not_required'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/custom_admin_view/javascript_css_fullwidth.php b/admin/layouts/custom_admin_view/javascript_css_fullwidth.php
index 233501624..ce72b5015 100644
--- a/admin/layouts/custom_admin_view/javascript_css_fullwidth.php
+++ b/admin/layouts/custom_admin_view/javascript_css_fullwidth.php
@@ -25,16 +25,14 @@ $fields = $displayData->get('fields') ?: array(
'css'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/custom_admin_view/linked_components_fullwidth.php b/admin/layouts/custom_admin_view/linked_components_fullwidth.php
index ee8b7fe33..7cb5eea6e 100644
--- a/admin/layouts/custom_admin_view/linked_components_fullwidth.php
+++ b/admin/layouts/custom_admin_view/linked_components_fullwidth.php
@@ -18,16 +18,14 @@ $fields = $displayData->get('fields') ?: array(
'note_linked_to_notice'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/custom_admin_view/php_fullwidth.php b/admin/layouts/custom_admin_view/php_fullwidth.php
index db7cb458f..a062c3b58 100644
--- a/admin/layouts/custom_admin_view/php_fullwidth.php
+++ b/admin/layouts/custom_admin_view/php_fullwidth.php
@@ -28,16 +28,14 @@ $fields = $displayData->get('fields') ?: array(
'php_jview'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/custom_admin_view/publishing.php b/admin/layouts/custom_admin_view/publishing.php
index ea58156d1..3ff2d0f98 100644
--- a/admin/layouts/custom_admin_view/publishing.php
+++ b/admin/layouts/custom_admin_view/publishing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/custom_admin_view/publlshing.php b/admin/layouts/custom_admin_view/publlshing.php
index 7dfa73168..db19414f3 100644
--- a/admin/layouts/custom_admin_view/publlshing.php
+++ b/admin/layouts/custom_admin_view/publlshing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/custom_code/details_above.php b/admin/layouts/custom_code/details_above.php
index cb7fb804b..ec8faf761 100644
--- a/admin/layouts/custom_code/details_above.php
+++ b/admin/layouts/custom_code/details_above.php
@@ -14,15 +14,20 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
-$fields = array(
+$fields = $displayData->get('fields') ?: array(
'target',
'system_name',
'function_name'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/custom_code/details_fullwidth.php b/admin/layouts/custom_code/details_fullwidth.php
index d9410fa2f..11ec40027 100644
--- a/admin/layouts/custom_code/details_fullwidth.php
+++ b/admin/layouts/custom_code/details_fullwidth.php
@@ -21,16 +21,14 @@ $fields = $displayData->get('fields') ?: array(
'note_placeholders_explained'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/custom_code/details_left.php b/admin/layouts/custom_code/details_left.php
index 940d16c3c..309a70068 100644
--- a/admin/layouts/custom_code/details_left.php
+++ b/admin/layouts/custom_code/details_left.php
@@ -23,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/custom_code/details_right.php b/admin/layouts/custom_code/details_right.php
index cd2ef804a..8569adfe5 100644
--- a/admin/layouts/custom_code/details_right.php
+++ b/admin/layouts/custom_code/details_right.php
@@ -22,20 +22,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/custom_code/details_under.php b/admin/layouts/custom_code/details_under.php
index 676b68504..b48f37386 100644
--- a/admin/layouts/custom_code/details_under.php
+++ b/admin/layouts/custom_code/details_under.php
@@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
-$fields = array(
+$fields = $displayData->get('fields') ?: array(
'not_required'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/custom_code/publishing.php b/admin/layouts/custom_code/publishing.php
index ea58156d1..3ff2d0f98 100644
--- a/admin/layouts/custom_code/publishing.php
+++ b/admin/layouts/custom_code/publishing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/custom_code/publlshing.php b/admin/layouts/custom_code/publlshing.php
index 7dfa73168..db19414f3 100644
--- a/admin/layouts/custom_code/publlshing.php
+++ b/admin/layouts/custom_code/publlshing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/dynamic_get/abacus_fullwidth.php b/admin/layouts/dynamic_get/abacus_fullwidth.php
index 68e3a7628..22f79a5d2 100644
--- a/admin/layouts/dynamic_get/abacus_fullwidth.php
+++ b/admin/layouts/dynamic_get/abacus_fullwidth.php
@@ -20,16 +20,14 @@ $fields = $displayData->get('fields') ?: array(
'php_calculation'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/dynamic_get/abacus_left.php b/admin/layouts/dynamic_get/abacus_left.php
index cdcb433f1..4fac83779 100644
--- a/admin/layouts/dynamic_get/abacus_left.php
+++ b/admin/layouts/dynamic_get/abacus_left.php
@@ -20,20 +20,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/dynamic_get/custom_script_fullwidth.php b/admin/layouts/dynamic_get/custom_script_fullwidth.php
index 57838a88f..a0469d57a 100644
--- a/admin/layouts/dynamic_get/custom_script_fullwidth.php
+++ b/admin/layouts/dynamic_get/custom_script_fullwidth.php
@@ -29,16 +29,14 @@ $fields = $displayData->get('fields') ?: array(
'php_router_parse'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/dynamic_get/joint_fullwidth.php b/admin/layouts/dynamic_get/joint_fullwidth.php
index cc4ebb4e3..b781d3256 100644
--- a/admin/layouts/dynamic_get/joint_fullwidth.php
+++ b/admin/layouts/dynamic_get/joint_fullwidth.php
@@ -19,16 +19,14 @@ $fields = $displayData->get('fields') ?: array(
'join_db_table'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/dynamic_get/main_above.php b/admin/layouts/dynamic_get/main_above.php
index 35b1d7edd..b7c852bd6 100644
--- a/admin/layouts/dynamic_get/main_above.php
+++ b/admin/layouts/dynamic_get/main_above.php
@@ -14,16 +14,21 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
-$fields = array(
+$fields = $displayData->get('fields') ?: array(
'name',
'gettype',
'getcustom',
'pagination'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/dynamic_get/main_fullwidth.php b/admin/layouts/dynamic_get/main_fullwidth.php
index fa8ab8b6e..3d438ec7c 100644
--- a/admin/layouts/dynamic_get/main_fullwidth.php
+++ b/admin/layouts/dynamic_get/main_fullwidth.php
@@ -19,16 +19,14 @@ $fields = $displayData->get('fields') ?: array(
'note_linked_to_notice'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/dynamic_get/main_left.php b/admin/layouts/dynamic_get/main_left.php
index 026b9783d..cf12600d5 100644
--- a/admin/layouts/dynamic_get/main_left.php
+++ b/admin/layouts/dynamic_get/main_left.php
@@ -24,20 +24,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/dynamic_get/main_right.php b/admin/layouts/dynamic_get/main_right.php
index 8097ca878..1d699661a 100644
--- a/admin/layouts/dynamic_get/main_right.php
+++ b/admin/layouts/dynamic_get/main_right.php
@@ -20,20 +20,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/dynamic_get/main_under.php b/admin/layouts/dynamic_get/main_under.php
index 676b68504..b48f37386 100644
--- a/admin/layouts/dynamic_get/main_under.php
+++ b/admin/layouts/dynamic_get/main_under.php
@@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
-$fields = array(
+$fields = $displayData->get('fields') ?: array(
'not_required'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/dynamic_get/publishing.php b/admin/layouts/dynamic_get/publishing.php
index ea58156d1..3ff2d0f98 100644
--- a/admin/layouts/dynamic_get/publishing.php
+++ b/admin/layouts/dynamic_get/publishing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/dynamic_get/publlshing.php b/admin/layouts/dynamic_get/publlshing.php
index 7dfa73168..db19414f3 100644
--- a/admin/layouts/dynamic_get/publlshing.php
+++ b/admin/layouts/dynamic_get/publlshing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/dynamic_get/tweak_fullwidth.php b/admin/layouts/dynamic_get/tweak_fullwidth.php
index 80d0f83e3..944766b7f 100644
--- a/admin/layouts/dynamic_get/tweak_fullwidth.php
+++ b/admin/layouts/dynamic_get/tweak_fullwidth.php
@@ -21,16 +21,14 @@ $fields = $displayData->get('fields') ?: array(
'global'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/field/data_base_fullwidth.php b/admin/layouts/field/data_base_fullwidth.php
index fabb39688..0c24cf707 100644
--- a/admin/layouts/field/data_base_fullwidth.php
+++ b/admin/layouts/field/data_base_fullwidth.php
@@ -19,16 +19,14 @@ $fields = $displayData->get('fields') ?: array(
'note_database_settings_needed'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/field/data_base_left.php b/admin/layouts/field/data_base_left.php
index d821e271b..f1ccdee4f 100644
--- a/admin/layouts/field/data_base_left.php
+++ b/admin/layouts/field/data_base_left.php
@@ -24,20 +24,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/field/data_base_right.php b/admin/layouts/field/data_base_right.php
index b29f88135..d1ca97f96 100644
--- a/admin/layouts/field/data_base_right.php
+++ b/admin/layouts/field/data_base_right.php
@@ -23,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/field/publishing.php b/admin/layouts/field/publishing.php
index ea58156d1..3ff2d0f98 100644
--- a/admin/layouts/field/publishing.php
+++ b/admin/layouts/field/publishing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/field/publlshing.php b/admin/layouts/field/publlshing.php
index 7dfa73168..db19414f3 100644
--- a/admin/layouts/field/publlshing.php
+++ b/admin/layouts/field/publlshing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/field/scripts_left.php b/admin/layouts/field/scripts_left.php
index 67b2df4ca..b5e14a2d4 100644
--- a/admin/layouts/field/scripts_left.php
+++ b/admin/layouts/field/scripts_left.php
@@ -23,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/field/scripts_right.php b/admin/layouts/field/scripts_right.php
index 3cac69d34..24109e987 100644
--- a/admin/layouts/field/scripts_right.php
+++ b/admin/layouts/field/scripts_right.php
@@ -23,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/field/set_properties_above.php b/admin/layouts/field/set_properties_above.php
index d47e6ef1a..734321a78 100644
--- a/admin/layouts/field/set_properties_above.php
+++ b/admin/layouts/field/set_properties_above.php
@@ -14,15 +14,20 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
-$fields = array(
+$fields = $displayData->get('fields') ?: array(
'fieldtype',
'name',
'catid'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/field/set_properties_fullwidth.php b/admin/layouts/field/set_properties_fullwidth.php
index 20d53ee3b..4ebbe9f82 100644
--- a/admin/layouts/field/set_properties_fullwidth.php
+++ b/admin/layouts/field/set_properties_fullwidth.php
@@ -19,16 +19,14 @@ $fields = $displayData->get('fields') ?: array(
'note_filter_information'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/field/set_properties_under.php b/admin/layouts/field/set_properties_under.php
index 676b68504..b48f37386 100644
--- a/admin/layouts/field/set_properties_under.php
+++ b/admin/layouts/field/set_properties_under.php
@@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
-$fields = array(
+$fields = $displayData->get('fields') ?: array(
'not_required'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/field/type_info_fullwidth.php b/admin/layouts/field/type_info_fullwidth.php
index 42b12952d..bf3fd84f3 100644
--- a/admin/layouts/field/type_info_fullwidth.php
+++ b/admin/layouts/field/type_info_fullwidth.php
@@ -19,16 +19,14 @@ $fields = $displayData->get('fields') ?: array(
'xml'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/fieldtype/details_fullwidth.php b/admin/layouts/fieldtype/details_fullwidth.php
index ab4fd24d8..c1f685b26 100644
--- a/admin/layouts/fieldtype/details_fullwidth.php
+++ b/admin/layouts/fieldtype/details_fullwidth.php
@@ -19,16 +19,14 @@ $fields = $displayData->get('fields') ?: array(
'properties'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/fieldtype/details_left.php b/admin/layouts/fieldtype/details_left.php
index 386913f1e..5c03c6482 100644
--- a/admin/layouts/fieldtype/details_left.php
+++ b/admin/layouts/fieldtype/details_left.php
@@ -22,20 +22,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/fieldtype/details_right.php b/admin/layouts/fieldtype/details_right.php
index bd11565e9..1e6fb9b42 100644
--- a/admin/layouts/fieldtype/details_right.php
+++ b/admin/layouts/fieldtype/details_right.php
@@ -20,20 +20,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/fieldtype/publishing.php b/admin/layouts/fieldtype/publishing.php
index ea58156d1..3ff2d0f98 100644
--- a/admin/layouts/fieldtype/publishing.php
+++ b/admin/layouts/fieldtype/publishing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/fieldtype/publlshing.php b/admin/layouts/fieldtype/publlshing.php
index 7dfa73168..db19414f3 100644
--- a/admin/layouts/fieldtype/publlshing.php
+++ b/admin/layouts/fieldtype/publlshing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/help_document/details_above.php b/admin/layouts/help_document/details_above.php
index c44b44228..397945bbb 100644
--- a/admin/layouts/help_document/details_above.php
+++ b/admin/layouts/help_document/details_above.php
@@ -14,14 +14,19 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
-$fields = array(
+$fields = $displayData->get('fields') ?: array(
'title',
'alias'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/help_document/details_fullwidth.php b/admin/layouts/help_document/details_fullwidth.php
index e5b983f28..197943db4 100644
--- a/admin/layouts/help_document/details_fullwidth.php
+++ b/admin/layouts/help_document/details_fullwidth.php
@@ -18,16 +18,14 @@ $fields = $displayData->get('fields') ?: array(
'content'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/help_document/details_left.php b/admin/layouts/help_document/details_left.php
index 284564afd..2d067d828 100644
--- a/admin/layouts/help_document/details_left.php
+++ b/admin/layouts/help_document/details_left.php
@@ -24,20 +24,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/help_document/details_right.php b/admin/layouts/help_document/details_right.php
index 8b7e8c982..16527245b 100644
--- a/admin/layouts/help_document/details_right.php
+++ b/admin/layouts/help_document/details_right.php
@@ -22,20 +22,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/help_document/details_under.php b/admin/layouts/help_document/details_under.php
index 676b68504..b48f37386 100644
--- a/admin/layouts/help_document/details_under.php
+++ b/admin/layouts/help_document/details_under.php
@@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
-$fields = array(
+$fields = $displayData->get('fields') ?: array(
'not_required'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/help_document/publishing.php b/admin/layouts/help_document/publishing.php
index ea58156d1..3ff2d0f98 100644
--- a/admin/layouts/help_document/publishing.php
+++ b/admin/layouts/help_document/publishing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/help_document/publlshing.php b/admin/layouts/help_document/publlshing.php
index bc955789b..7ace2adea 100644
--- a/admin/layouts/help_document/publlshing.php
+++ b/admin/layouts/help_document/publlshing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -25,20 +24,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/joomla_component/admin_views_fullwidth.php b/admin/layouts/joomla_component/admin_views_fullwidth.php
index e6216c2d6..4aa1f7de4 100644
--- a/admin/layouts/joomla_component/admin_views_fullwidth.php
+++ b/admin/layouts/joomla_component/admin_views_fullwidth.php
@@ -19,16 +19,14 @@ $fields = $displayData->get('fields') ?: array(
'note_display_component_admin_views'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/joomla_component/custom_admin_views_fullwidth.php b/admin/layouts/joomla_component/custom_admin_views_fullwidth.php
index a5a777d76..b6d1a4892 100644
--- a/admin/layouts/joomla_component/custom_admin_views_fullwidth.php
+++ b/admin/layouts/joomla_component/custom_admin_views_fullwidth.php
@@ -19,16 +19,14 @@ $fields = $displayData->get('fields') ?: array(
'note_display_component_custom_admin_views'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/joomla_component/dash_install_fullwidth.php b/admin/layouts/joomla_component/dash_install_fullwidth.php
index 7e514a2ed..ef32af153 100644
--- a/admin/layouts/joomla_component/dash_install_fullwidth.php
+++ b/admin/layouts/joomla_component/dash_install_fullwidth.php
@@ -27,16 +27,14 @@ $fields = $displayData->get('fields') ?: array(
'php_method_uninstall'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/joomla_component/dash_install_left.php b/admin/layouts/joomla_component/dash_install_left.php
index f0f2f3148..4c66077bf 100644
--- a/admin/layouts/joomla_component/dash_install_left.php
+++ b/admin/layouts/joomla_component/dash_install_left.php
@@ -20,20 +20,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/joomla_component/dash_install_right.php b/admin/layouts/joomla_component/dash_install_right.php
index 4e48f6b4f..d636f1563 100644
--- a/admin/layouts/joomla_component/dash_install_right.php
+++ b/admin/layouts/joomla_component/dash_install_right.php
@@ -22,20 +22,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/joomla_component/details_above.php b/admin/layouts/joomla_component/details_above.php
index 674a8e6b1..eb96431d9 100644
--- a/admin/layouts/joomla_component/details_above.php
+++ b/admin/layouts/joomla_component/details_above.php
@@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
-$fields = array(
+$fields = $displayData->get('fields') ?: array(
'system_name'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/joomla_component/details_left.php b/admin/layouts/joomla_component/details_left.php
index 2ee9e3a41..56e1ce11d 100644
--- a/admin/layouts/joomla_component/details_left.php
+++ b/admin/layouts/joomla_component/details_left.php
@@ -31,20 +31,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/joomla_component/details_right.php b/admin/layouts/joomla_component/details_right.php
index e4e43b97a..5ad3752c3 100644
--- a/admin/layouts/joomla_component/details_right.php
+++ b/admin/layouts/joomla_component/details_right.php
@@ -32,20 +32,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/joomla_component/details_under.php b/admin/layouts/joomla_component/details_under.php
index 676b68504..b48f37386 100644
--- a/admin/layouts/joomla_component/details_under.php
+++ b/admin/layouts/joomla_component/details_under.php
@@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
-$fields = array(
+$fields = $displayData->get('fields') ?: array(
'not_required'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/joomla_component/dynamic_build_beta_fullwidth.php b/admin/layouts/joomla_component/dynamic_build_beta_fullwidth.php
index 6f9975d02..be6383280 100644
--- a/admin/layouts/joomla_component/dynamic_build_beta_fullwidth.php
+++ b/admin/layouts/joomla_component/dynamic_build_beta_fullwidth.php
@@ -20,16 +20,14 @@ $fields = $displayData->get('fields') ?: array(
'buildcompsql'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/joomla_component/dynamic_integration_fullwidth.php b/admin/layouts/joomla_component/dynamic_integration_fullwidth.php
index ed3387a62..d50b32c5a 100644
--- a/admin/layouts/joomla_component/dynamic_integration_fullwidth.php
+++ b/admin/layouts/joomla_component/dynamic_integration_fullwidth.php
@@ -26,16 +26,14 @@ $fields = $displayData->get('fields') ?: array(
'sales_server'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/joomla_component/libs_helpers_fullwidth.php b/admin/layouts/joomla_component/libs_helpers_fullwidth.php
index 97b021e4d..0d876918f 100644
--- a/admin/layouts/joomla_component/libs_helpers_fullwidth.php
+++ b/admin/layouts/joomla_component/libs_helpers_fullwidth.php
@@ -37,16 +37,14 @@ $fields = $displayData->get('fields') ?: array(
'css_site'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/joomla_component/mysql_fullwidth.php b/admin/layouts/joomla_component/mysql_fullwidth.php
index a8a1c14cc..791a25bad 100644
--- a/admin/layouts/joomla_component/mysql_fullwidth.php
+++ b/admin/layouts/joomla_component/mysql_fullwidth.php
@@ -21,16 +21,14 @@ $fields = $displayData->get('fields') ?: array(
'sql_uninstall'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/joomla_component/publishing.php b/admin/layouts/joomla_component/publishing.php
index b8c696d4f..f07fa6b86 100644
--- a/admin/layouts/joomla_component/publishing.php
+++ b/admin/layouts/joomla_component/publishing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -30,20 +29,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/joomla_component/readme_left.php b/admin/layouts/joomla_component/readme_left.php
index 8f4d41cc2..efbaab416 100644
--- a/admin/layouts/joomla_component/readme_left.php
+++ b/admin/layouts/joomla_component/readme_left.php
@@ -21,20 +21,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/joomla_component/readme_right.php b/admin/layouts/joomla_component/readme_right.php
index 79f2e0380..40f598d14 100644
--- a/admin/layouts/joomla_component/readme_right.php
+++ b/admin/layouts/joomla_component/readme_right.php
@@ -20,20 +20,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/joomla_component/settings_fullwidth.php b/admin/layouts/joomla_component/settings_fullwidth.php
index d59d370b2..5bc2363c4 100644
--- a/admin/layouts/joomla_component/settings_fullwidth.php
+++ b/admin/layouts/joomla_component/settings_fullwidth.php
@@ -22,16 +22,14 @@ $fields = $displayData->get('fields') ?: array(
'number'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/joomla_component/settings_left.php b/admin/layouts/joomla_component/settings_left.php
index bb64d3daf..c3da81156 100644
--- a/admin/layouts/joomla_component/settings_left.php
+++ b/admin/layouts/joomla_component/settings_left.php
@@ -26,20 +26,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/joomla_component/settings_right.php b/admin/layouts/joomla_component/settings_right.php
index 4d8a26427..5be8ad699 100644
--- a/admin/layouts/joomla_component/settings_right.php
+++ b/admin/layouts/joomla_component/settings_right.php
@@ -31,20 +31,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/joomla_component/site_views_fullwidth.php b/admin/layouts/joomla_component/site_views_fullwidth.php
index d569e5a02..1bfcac013 100644
--- a/admin/layouts/joomla_component/site_views_fullwidth.php
+++ b/admin/layouts/joomla_component/site_views_fullwidth.php
@@ -19,16 +19,14 @@ $fields = $displayData->get('fields') ?: array(
'note_display_component_site_views'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/language/details_left.php b/admin/layouts/language/details_left.php
index f90d6b9da..c3075b6a1 100644
--- a/admin/layouts/language/details_left.php
+++ b/admin/layouts/language/details_left.php
@@ -20,20 +20,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/language/details_right.php b/admin/layouts/language/details_right.php
index fa4f5c8fe..ebc53d70a 100644
--- a/admin/layouts/language/details_right.php
+++ b/admin/layouts/language/details_right.php
@@ -20,20 +20,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/language/publishing.php b/admin/layouts/language/publishing.php
index ea58156d1..3ff2d0f98 100644
--- a/admin/layouts/language/publishing.php
+++ b/admin/layouts/language/publishing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/language/publlshing.php b/admin/layouts/language/publlshing.php
index 7dfa73168..db19414f3 100644
--- a/admin/layouts/language/publlshing.php
+++ b/admin/layouts/language/publlshing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/language_translation/details_fullwidth.php b/admin/layouts/language_translation/details_fullwidth.php
index 993163fbe..e324a8df9 100644
--- a/admin/layouts/language_translation/details_fullwidth.php
+++ b/admin/layouts/language_translation/details_fullwidth.php
@@ -20,16 +20,14 @@ $fields = $displayData->get('fields') ?: array(
'components'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/language_translation/publishing.php b/admin/layouts/language_translation/publishing.php
index ea58156d1..3ff2d0f98 100644
--- a/admin/layouts/language_translation/publishing.php
+++ b/admin/layouts/language_translation/publishing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/language_translation/publlshing.php b/admin/layouts/language_translation/publlshing.php
index 7dfa73168..db19414f3 100644
--- a/admin/layouts/language_translation/publlshing.php
+++ b/admin/layouts/language_translation/publlshing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/layout/custom_script_fullwidth.php b/admin/layouts/layout/custom_script_fullwidth.php
index 7bb271168..abedc3f47 100644
--- a/admin/layouts/layout/custom_script_fullwidth.php
+++ b/admin/layouts/layout/custom_script_fullwidth.php
@@ -19,16 +19,14 @@ $fields = $displayData->get('fields') ?: array(
'php_view'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/layout/details_fullwidth.php b/admin/layouts/layout/details_fullwidth.php
index b5989a2c4..eb9784f06 100644
--- a/admin/layouts/layout/details_fullwidth.php
+++ b/admin/layouts/layout/details_fullwidth.php
@@ -18,16 +18,14 @@ $fields = $displayData->get('fields') ?: array(
'layout'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/layout/details_left.php b/admin/layouts/layout/details_left.php
index dd143b604..fe0bc542a 100644
--- a/admin/layouts/layout/details_left.php
+++ b/admin/layouts/layout/details_left.php
@@ -25,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/layout/details_right.php b/admin/layouts/layout/details_right.php
index 301a0209b..e6bc68299 100644
--- a/admin/layouts/layout/details_right.php
+++ b/admin/layouts/layout/details_right.php
@@ -22,20 +22,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/layout/details_rightside.php b/admin/layouts/layout/details_rightside.php
index 64ff0e623..a0d9ff85f 100644
--- a/admin/layouts/layout/details_rightside.php
+++ b/admin/layouts/layout/details_rightside.php
@@ -21,20 +21,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/layout/details_under.php b/admin/layouts/layout/details_under.php
index 676b68504..b48f37386 100644
--- a/admin/layouts/layout/details_under.php
+++ b/admin/layouts/layout/details_under.php
@@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
-$fields = array(
+$fields = $displayData->get('fields') ?: array(
'not_required'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/layout/publishing.php b/admin/layouts/layout/publishing.php
index ea58156d1..3ff2d0f98 100644
--- a/admin/layouts/layout/publishing.php
+++ b/admin/layouts/layout/publishing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/layout/publlshing.php b/admin/layouts/layout/publlshing.php
index 7dfa73168..db19414f3 100644
--- a/admin/layouts/layout/publlshing.php
+++ b/admin/layouts/layout/publlshing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/library/behaviour_above.php b/admin/layouts/library/behaviour_above.php
index 1f39a9321..671176d1c 100644
--- a/admin/layouts/library/behaviour_above.php
+++ b/admin/layouts/library/behaviour_above.php
@@ -14,15 +14,20 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
-$fields = array(
+$fields = $displayData->get('fields') ?: array(
'name',
'how',
'type'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/library/behaviour_fullwidth.php b/admin/layouts/library/behaviour_fullwidth.php
index 96d884a59..63793ddb6 100644
--- a/admin/layouts/library/behaviour_fullwidth.php
+++ b/admin/layouts/library/behaviour_fullwidth.php
@@ -22,16 +22,14 @@ $fields = $displayData->get('fields') ?: array(
'php_setdocument'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/library/behaviour_left.php b/admin/layouts/library/behaviour_left.php
index b0b86b8ea..b7c0ef362 100644
--- a/admin/layouts/library/behaviour_left.php
+++ b/admin/layouts/library/behaviour_left.php
@@ -21,20 +21,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/library/behaviour_right.php b/admin/layouts/library/behaviour_right.php
index bd11565e9..1e6fb9b42 100644
--- a/admin/layouts/library/behaviour_right.php
+++ b/admin/layouts/library/behaviour_right.php
@@ -20,20 +20,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/library/behaviour_under.php b/admin/layouts/library/behaviour_under.php
index 676b68504..b48f37386 100644
--- a/admin/layouts/library/behaviour_under.php
+++ b/admin/layouts/library/behaviour_under.php
@@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
-$fields = array(
+$fields = $displayData->get('fields') ?: array(
'not_required'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/library/config_fullwidth.php b/admin/layouts/library/config_fullwidth.php
index 8c1d19e54..33603c07c 100644
--- a/admin/layouts/library/config_fullwidth.php
+++ b/admin/layouts/library/config_fullwidth.php
@@ -21,16 +21,14 @@ $fields = $displayData->get('fields') ?: array(
'note_display_library_config'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/library/files_folders_urls_fullwidth.php b/admin/layouts/library/files_folders_urls_fullwidth.php
index d099019e5..bd05bea89 100644
--- a/admin/layouts/library/files_folders_urls_fullwidth.php
+++ b/admin/layouts/library/files_folders_urls_fullwidth.php
@@ -20,16 +20,14 @@ $fields = $displayData->get('fields') ?: array(
'note_display_library_files_folders_urls'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/library/linked_fullwidth.php b/admin/layouts/library/linked_fullwidth.php
index ee8b7fe33..7cb5eea6e 100644
--- a/admin/layouts/library/linked_fullwidth.php
+++ b/admin/layouts/library/linked_fullwidth.php
@@ -18,16 +18,14 @@ $fields = $displayData->get('fields') ?: array(
'note_linked_to_notice'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/library/publishing.php b/admin/layouts/library/publishing.php
index ea58156d1..3ff2d0f98 100644
--- a/admin/layouts/library/publishing.php
+++ b/admin/layouts/library/publishing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/library/publlshing.php b/admin/layouts/library/publlshing.php
index 7dfa73168..db19414f3 100644
--- a/admin/layouts/library/publlshing.php
+++ b/admin/layouts/library/publlshing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/library_config/publishing.php b/admin/layouts/library_config/publishing.php
index ea58156d1..3ff2d0f98 100644
--- a/admin/layouts/library_config/publishing.php
+++ b/admin/layouts/library_config/publishing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/library_config/publlshing.php b/admin/layouts/library_config/publlshing.php
index 7dfa73168..db19414f3 100644
--- a/admin/layouts/library_config/publlshing.php
+++ b/admin/layouts/library_config/publlshing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/library_config/tweaks_above.php b/admin/layouts/library_config/tweaks_above.php
index 97769dcda..30268b84c 100644
--- a/admin/layouts/library_config/tweaks_above.php
+++ b/admin/layouts/library_config/tweaks_above.php
@@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
-$fields = array(
+$fields = $displayData->get('fields') ?: array(
'library'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/library_config/tweaks_fullwidth.php b/admin/layouts/library_config/tweaks_fullwidth.php
index b96b69b35..c720f0f06 100644
--- a/admin/layouts/library_config/tweaks_fullwidth.php
+++ b/admin/layouts/library_config/tweaks_fullwidth.php
@@ -18,16 +18,14 @@ $fields = $displayData->get('fields') ?: array(
'addconfig'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/library_files_folders_urls/advance_fullwidth.php b/admin/layouts/library_files_folders_urls/advance_fullwidth.php
index 508d9d18e..b733a13ed 100644
--- a/admin/layouts/library_files_folders_urls/advance_fullwidth.php
+++ b/admin/layouts/library_files_folders_urls/advance_fullwidth.php
@@ -22,16 +22,14 @@ $fields = $displayData->get('fields') ?: array(
'note_constant_paths'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/library_files_folders_urls/basic_above.php b/admin/layouts/library_files_folders_urls/basic_above.php
index 97769dcda..30268b84c 100644
--- a/admin/layouts/library_files_folders_urls/basic_above.php
+++ b/admin/layouts/library_files_folders_urls/basic_above.php
@@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
-$fields = array(
+$fields = $displayData->get('fields') ?: array(
'library'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/library_files_folders_urls/basic_fullwidth.php b/admin/layouts/library_files_folders_urls/basic_fullwidth.php
index a7c7b4d22..091403bb0 100644
--- a/admin/layouts/library_files_folders_urls/basic_fullwidth.php
+++ b/admin/layouts/library_files_folders_urls/basic_fullwidth.php
@@ -23,16 +23,14 @@ $fields = $displayData->get('fields') ?: array(
'addfolders'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/library_files_folders_urls/publishing.php b/admin/layouts/library_files_folders_urls/publishing.php
index ea58156d1..3ff2d0f98 100644
--- a/admin/layouts/library_files_folders_urls/publishing.php
+++ b/admin/layouts/library_files_folders_urls/publishing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/library_files_folders_urls/publlshing.php b/admin/layouts/library_files_folders_urls/publlshing.php
index 7dfa73168..db19414f3 100644
--- a/admin/layouts/library_files_folders_urls/publlshing.php
+++ b/admin/layouts/library_files_folders_urls/publlshing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/server/details_above.php b/admin/layouts/server/details_above.php
index f927a57d3..6f1d4a330 100644
--- a/admin/layouts/server/details_above.php
+++ b/admin/layouts/server/details_above.php
@@ -14,14 +14,19 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
-$fields = array(
+$fields = $displayData->get('fields') ?: array(
'name',
'protocol'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/server/details_fullwidth.php b/admin/layouts/server/details_fullwidth.php
index 74d9fa836..ff9a60a6f 100644
--- a/admin/layouts/server/details_fullwidth.php
+++ b/admin/layouts/server/details_fullwidth.php
@@ -21,16 +21,14 @@ $fields = $displayData->get('fields') ?: array(
'not_required'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/server/details_left.php b/admin/layouts/server/details_left.php
index bb1471132..eb4658fb1 100644
--- a/admin/layouts/server/details_left.php
+++ b/admin/layouts/server/details_left.php
@@ -23,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/server/details_right.php b/admin/layouts/server/details_right.php
index 4cb738fa0..274359cdf 100644
--- a/admin/layouts/server/details_right.php
+++ b/admin/layouts/server/details_right.php
@@ -24,20 +24,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/server/publishing.php b/admin/layouts/server/publishing.php
index ea58156d1..3ff2d0f98 100644
--- a/admin/layouts/server/publishing.php
+++ b/admin/layouts/server/publishing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/server/publlshing.php b/admin/layouts/server/publlshing.php
index 7dfa73168..db19414f3 100644
--- a/admin/layouts/server/publlshing.php
+++ b/admin/layouts/server/publlshing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/site_view/custom_buttons_fullwidth.php b/admin/layouts/site_view/custom_buttons_fullwidth.php
index 0ef4a67c5..804056d55 100644
--- a/admin/layouts/site_view/custom_buttons_fullwidth.php
+++ b/admin/layouts/site_view/custom_buttons_fullwidth.php
@@ -21,16 +21,14 @@ $fields = $displayData->get('fields') ?: array(
'php_model'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/site_view/custom_buttons_left.php b/admin/layouts/site_view/custom_buttons_left.php
index 0cfdbe506..6ea4e74d3 100644
--- a/admin/layouts/site_view/custom_buttons_left.php
+++ b/admin/layouts/site_view/custom_buttons_left.php
@@ -20,20 +20,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/site_view/custom_buttons_right.php b/admin/layouts/site_view/custom_buttons_right.php
index df0beb10d..2979606e8 100644
--- a/admin/layouts/site_view/custom_buttons_right.php
+++ b/admin/layouts/site_view/custom_buttons_right.php
@@ -20,20 +20,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/site_view/details_above.php b/admin/layouts/site_view/details_above.php
index 88bd987fd..b64cb67fa 100644
--- a/admin/layouts/site_view/details_above.php
+++ b/admin/layouts/site_view/details_above.php
@@ -14,14 +14,19 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
-$fields = array(
+$fields = $displayData->get('fields') ?: array(
'system_name',
'context'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/site_view/details_fullwidth.php b/admin/layouts/site_view/details_fullwidth.php
index 55f1ff1c4..0fbb88446 100644
--- a/admin/layouts/site_view/details_fullwidth.php
+++ b/admin/layouts/site_view/details_fullwidth.php
@@ -18,16 +18,14 @@ $fields = $displayData->get('fields') ?: array(
'default'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/site_view/details_left.php b/admin/layouts/site_view/details_left.php
index 75286200a..7a15392cc 100644
--- a/admin/layouts/site_view/details_left.php
+++ b/admin/layouts/site_view/details_left.php
@@ -25,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/site_view/details_right.php b/admin/layouts/site_view/details_right.php
index 301a0209b..e6bc68299 100644
--- a/admin/layouts/site_view/details_right.php
+++ b/admin/layouts/site_view/details_right.php
@@ -22,20 +22,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/site_view/details_rightside.php b/admin/layouts/site_view/details_rightside.php
index cc9dc978c..667153d7d 100644
--- a/admin/layouts/site_view/details_rightside.php
+++ b/admin/layouts/site_view/details_rightside.php
@@ -23,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/site_view/details_under.php b/admin/layouts/site_view/details_under.php
index 676b68504..b48f37386 100644
--- a/admin/layouts/site_view/details_under.php
+++ b/admin/layouts/site_view/details_under.php
@@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
-$fields = array(
+$fields = $displayData->get('fields') ?: array(
'not_required'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/site_view/javascript_css_fullwidth.php b/admin/layouts/site_view/javascript_css_fullwidth.php
index fc241753c..037b2c6e1 100644
--- a/admin/layouts/site_view/javascript_css_fullwidth.php
+++ b/admin/layouts/site_view/javascript_css_fullwidth.php
@@ -25,16 +25,14 @@ $fields = $displayData->get('fields') ?: array(
'css'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/site_view/linked_components_fullwidth.php b/admin/layouts/site_view/linked_components_fullwidth.php
index ee8b7fe33..7cb5eea6e 100644
--- a/admin/layouts/site_view/linked_components_fullwidth.php
+++ b/admin/layouts/site_view/linked_components_fullwidth.php
@@ -18,16 +18,14 @@ $fields = $displayData->get('fields') ?: array(
'note_linked_to_notice'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/site_view/php_fullwidth.php b/admin/layouts/site_view/php_fullwidth.php
index db7cb458f..a062c3b58 100644
--- a/admin/layouts/site_view/php_fullwidth.php
+++ b/admin/layouts/site_view/php_fullwidth.php
@@ -28,16 +28,14 @@ $fields = $displayData->get('fields') ?: array(
'php_jview'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/site_view/publishing.php b/admin/layouts/site_view/publishing.php
index ea58156d1..3ff2d0f98 100644
--- a/admin/layouts/site_view/publishing.php
+++ b/admin/layouts/site_view/publishing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/site_view/publlshing.php b/admin/layouts/site_view/publlshing.php
index 7dfa73168..db19414f3 100644
--- a/admin/layouts/site_view/publlshing.php
+++ b/admin/layouts/site_view/publlshing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/snippet/contributor_fullwidth.php b/admin/layouts/snippet/contributor_fullwidth.php
index 330caa947..190ffd8dc 100644
--- a/admin/layouts/snippet/contributor_fullwidth.php
+++ b/admin/layouts/snippet/contributor_fullwidth.php
@@ -18,16 +18,14 @@ $fields = $displayData->get('fields') ?: array(
'note_contributor_details'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/snippet/contributor_left.php b/admin/layouts/snippet/contributor_left.php
index e41f909a2..44dd48c4f 100644
--- a/admin/layouts/snippet/contributor_left.php
+++ b/admin/layouts/snippet/contributor_left.php
@@ -21,20 +21,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/snippet/contributor_right.php b/admin/layouts/snippet/contributor_right.php
index 938f8543d..85580f251 100644
--- a/admin/layouts/snippet/contributor_right.php
+++ b/admin/layouts/snippet/contributor_right.php
@@ -21,20 +21,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/snippet/details_above.php b/admin/layouts/snippet/details_above.php
index 0d684da90..dc5515637 100644
--- a/admin/layouts/snippet/details_above.php
+++ b/admin/layouts/snippet/details_above.php
@@ -14,15 +14,20 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
-$fields = array(
+$fields = $displayData->get('fields') ?: array(
'name',
'url',
'library'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/snippet/details_left.php b/admin/layouts/snippet/details_left.php
index 2c23d70a5..80e8ef04c 100644
--- a/admin/layouts/snippet/details_left.php
+++ b/admin/layouts/snippet/details_left.php
@@ -23,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/snippet/details_right.php b/admin/layouts/snippet/details_right.php
index 7cecba8b4..fe2fc40d5 100644
--- a/admin/layouts/snippet/details_right.php
+++ b/admin/layouts/snippet/details_right.php
@@ -20,20 +20,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/snippet/publishing.php b/admin/layouts/snippet/publishing.php
index ea58156d1..3ff2d0f98 100644
--- a/admin/layouts/snippet/publishing.php
+++ b/admin/layouts/snippet/publishing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/snippet/publlshing.php b/admin/layouts/snippet/publlshing.php
index 7dfa73168..db19414f3 100644
--- a/admin/layouts/snippet/publlshing.php
+++ b/admin/layouts/snippet/publlshing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/snippet_type/details_left.php b/admin/layouts/snippet_type/details_left.php
index f90d6b9da..c3075b6a1 100644
--- a/admin/layouts/snippet_type/details_left.php
+++ b/admin/layouts/snippet_type/details_left.php
@@ -20,20 +20,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/snippet_type/details_right.php b/admin/layouts/snippet_type/details_right.php
index bd11565e9..1e6fb9b42 100644
--- a/admin/layouts/snippet_type/details_right.php
+++ b/admin/layouts/snippet_type/details_right.php
@@ -20,20 +20,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/snippet_type/publishing.php b/admin/layouts/snippet_type/publishing.php
index ea58156d1..3ff2d0f98 100644
--- a/admin/layouts/snippet_type/publishing.php
+++ b/admin/layouts/snippet_type/publishing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/snippet_type/publlshing.php b/admin/layouts/snippet_type/publlshing.php
index 7dfa73168..db19414f3 100644
--- a/admin/layouts/snippet_type/publlshing.php
+++ b/admin/layouts/snippet_type/publlshing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/template/custom_script_fullwidth.php b/admin/layouts/template/custom_script_fullwidth.php
index 7bb271168..abedc3f47 100644
--- a/admin/layouts/template/custom_script_fullwidth.php
+++ b/admin/layouts/template/custom_script_fullwidth.php
@@ -19,16 +19,14 @@ $fields = $displayData->get('fields') ?: array(
'php_view'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/template/details_fullwidth.php b/admin/layouts/template/details_fullwidth.php
index f052853aa..24f1b1364 100644
--- a/admin/layouts/template/details_fullwidth.php
+++ b/admin/layouts/template/details_fullwidth.php
@@ -18,16 +18,14 @@ $fields = $displayData->get('fields') ?: array(
'template'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/template/details_left.php b/admin/layouts/template/details_left.php
index dd143b604..fe0bc542a 100644
--- a/admin/layouts/template/details_left.php
+++ b/admin/layouts/template/details_left.php
@@ -25,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/template/details_right.php b/admin/layouts/template/details_right.php
index 5361d08aa..7084ac1ec 100644
--- a/admin/layouts/template/details_right.php
+++ b/admin/layouts/template/details_right.php
@@ -22,20 +22,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/template/details_rightside.php b/admin/layouts/template/details_rightside.php
index 64ff0e623..a0d9ff85f 100644
--- a/admin/layouts/template/details_rightside.php
+++ b/admin/layouts/template/details_rightside.php
@@ -21,20 +21,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/template/details_under.php b/admin/layouts/template/details_under.php
index 676b68504..b48f37386 100644
--- a/admin/layouts/template/details_under.php
+++ b/admin/layouts/template/details_under.php
@@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
-$fields = array(
+$fields = $displayData->get('fields') ?: array(
'not_required'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/template/publishing.php b/admin/layouts/template/publishing.php
index ea58156d1..3ff2d0f98 100644
--- a/admin/layouts/template/publishing.php
+++ b/admin/layouts/template/publishing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/template/publlshing.php b/admin/layouts/template/publlshing.php
index 7dfa73168..db19414f3 100644
--- a/admin/layouts/template/publlshing.php
+++ b/admin/layouts/template/publlshing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/validation_rule/extends_formrule_above.php b/admin/layouts/validation_rule/extends_formrule_above.php
index 8f1aab922..8cdde7da3 100644
--- a/admin/layouts/validation_rule/extends_formrule_above.php
+++ b/admin/layouts/validation_rule/extends_formrule_above.php
@@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
$form = $displayData->getForm();
-$fields = array(
+$fields = $displayData->get('fields') ?: array(
'inherit'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/validation_rule/extends_formrule_fullwidth.php b/admin/layouts/validation_rule/extends_formrule_fullwidth.php
index db432ae1c..333fd73a7 100644
--- a/admin/layouts/validation_rule/extends_formrule_fullwidth.php
+++ b/admin/layouts/validation_rule/extends_formrule_fullwidth.php
@@ -18,16 +18,14 @@ $fields = $displayData->get('fields') ?: array(
'php'
);
+$hiddenFields = $displayData->get('hidden_fields') ?: array();
+
?>
diff --git a/admin/layouts/validation_rule/extends_formrule_left.php b/admin/layouts/validation_rule/extends_formrule_left.php
index f90d6b9da..c3075b6a1 100644
--- a/admin/layouts/validation_rule/extends_formrule_left.php
+++ b/admin/layouts/validation_rule/extends_formrule_left.php
@@ -20,20 +20,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/validation_rule/extends_formrule_right.php b/admin/layouts/validation_rule/extends_formrule_right.php
index 081de8882..226a7f8c8 100644
--- a/admin/layouts/validation_rule/extends_formrule_right.php
+++ b/admin/layouts/validation_rule/extends_formrule_right.php
@@ -20,20 +20,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/validation_rule/publishing.php b/admin/layouts/validation_rule/publishing.php
index ea58156d1..3ff2d0f98 100644
--- a/admin/layouts/validation_rule/publishing.php
+++ b/admin/layouts/validation_rule/publishing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/admin/layouts/validation_rule/publlshing.php b/admin/layouts/validation_rule/publlshing.php
index 7dfa73168..db19414f3 100644
--- a/admin/layouts/validation_rule/publlshing.php
+++ b/admin/layouts/validation_rule/publlshing.php
@@ -12,7 +12,6 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
-$app = JFactory::getApplication();
$form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array(
@@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
$hiddenFields = $displayData->get('hidden_fields') ?: array();
-foreach ($fields as $field)
-{
- $field = is_array($field) ? $field : array($field);
- foreach ($field as $f)
- {
- if ($form->getField($f))
- {
- if (in_array($f, $hiddenFields))
- {
- $form->setFieldAttribute($f, 'type', 'hidden');
- }
-
- echo $form->renderField($f);
- break;
- }
- }
-}
+?>
+
+
+ setFieldAttribute($field, 'type', 'hidden'); ?>
+
+ renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
+
diff --git a/componentbuilder.xml b/componentbuilder.xml
index 483d4235a..7b92b0908 100644
--- a/componentbuilder.xml
+++ b/componentbuilder.xml
@@ -1,7 +1,7 @@
COM_COMPONENTBUILDER
- 21st January, 2019
+ 23rd January, 2019
Llewellyn van der Merwe
llewellyn@joomlacomponentbuilder.com
http://www.joomlacomponentbuilder.com