[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package Joomla.Site 5 * @subpackage Layout 6 * 7 * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> 8 * @license GNU General Public License version 2 or later; see LICENSE.txt 9 */ 10 11 defined('_JEXEC') or die; 12 13 use Joomla\CMS\Factory; 14 15 $app = Factory::getApplication(); 16 $form = $displayData->getForm(); 17 18 $name = $displayData->get('fieldset'); 19 $fieldSet = $form->getFieldset($name); 20 21 if (empty($fieldSet)) { 22 return; 23 } 24 25 $ignoreFields = $displayData->get('ignore_fields') ? : array(); 26 $extraFields = $displayData->get('extra_fields') ? : array(); 27 28 if (!empty($displayData->showOptions) || $displayData->get('show_options', 1)) { 29 if (isset($extraFields[$name])) { 30 foreach ($extraFields[$name] as $f) { 31 if (in_array($f, $ignoreFields)) { 32 continue; 33 } 34 if ($form->getField($f)) { 35 $fieldSet[] = $form->getField($f); 36 } 37 } 38 } 39 40 $html = array(); 41 42 foreach ($fieldSet as $field) { 43 $html[] = $field->renderField(); 44 } 45 46 echo implode('', $html); 47 } else { 48 $html = array(); 49 $html[] = '<div class="hidden">'; 50 foreach ($fieldSet as $field) { 51 $html[] = $field->input; 52 } 53 $html[] = '</div>'; 54 55 echo implode('', $html); 56 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |