[ 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) 2017 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 use Joomla\CMS\Helper\ModuleHelper; 15 16 $app = Factory::getApplication(); 17 $form = $displayData->getForm(); 18 $input = $app->input; 19 20 $fields = $displayData->get('fields') ?: array( 21 array('parent', 'parent_id'), 22 array('published', 'state', 'enabled'), 23 array('category', 'catid'), 24 'featured', 25 'sticky', 26 'access', 27 'language', 28 'tags', 29 'note', 30 'version_note', 31 ); 32 33 $hiddenFields = $displayData->get('hidden_fields') ?: array(); 34 35 if (!ModuleHelper::isAdminMultilang()) { 36 $hiddenFields[] = 'language'; 37 $form->setFieldAttribute('language', 'default', '*'); 38 } 39 40 $html = array(); 41 $html[] = '<fieldset class="form-vertical">'; 42 43 foreach ($fields as $field) { 44 foreach ((array) $field as $f) { 45 if ($form->getField($f)) { 46 if (in_array($f, $hiddenFields)) { 47 $form->setFieldAttribute($f, 'type', 'hidden'); 48 } 49 50 $html[] = $form->renderField($f); 51 break; 52 } 53 } 54 } 55 56 $html[] = '</fieldset>'; 57 58 echo implode('', $html);
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 |