2016-01-30 20:28:43 +00:00
|
|
|
<?php
|
2018-05-18 06:28:27 +00:00
|
|
|
/**
|
|
|
|
* @package Joomla.Component.Builder
|
|
|
|
*
|
|
|
|
* @created 30th April, 2015
|
|
|
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
|
|
|
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
|
|
|
* @copyright Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved.
|
|
|
|
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
|
|
*/
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
// No direct access to this file
|
|
|
|
defined('_JEXEC') or die('Restricted access');
|
|
|
|
|
|
|
|
$form = $displayData->getForm();
|
|
|
|
|
|
|
|
$fields = $displayData->get('fields') ?: array(
|
2017-10-26 16:43:51 +00:00
|
|
|
'note_component_files_folders',
|
2018-03-11 02:44:43 +00:00
|
|
|
'spacer_hr_four',
|
2018-09-24 14:37:51 +00:00
|
|
|
'add_menu_prefix',
|
|
|
|
'menu_prefix',
|
|
|
|
'spacer_hr_five',
|
2017-09-13 00:37:43 +00:00
|
|
|
'to_ignore_note',
|
|
|
|
'toignore',
|
2018-09-24 14:37:51 +00:00
|
|
|
'spacer_hr_six',
|
2017-04-26 08:55:02 +00:00
|
|
|
'jcb_export_package_note',
|
|
|
|
'export_key',
|
2018-05-05 14:47:48 +00:00
|
|
|
'joomla_source_link',
|
2017-04-26 08:55:02 +00:00
|
|
|
'export_buy_link'
|
2016-01-30 20:28:43 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
$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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|