芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/public_html/layouts/joomla/edit/admin_modules.php
* @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\Helper\ModuleHelper; $app = Factory::getApplication(); $form = $displayData->getForm(); $input = $app->input; $fields = $displayData->get('fields') ?: array( array('parent', 'parent_id'), array('published', 'state', 'enabled'), array('category', 'catid'), 'featured', 'sticky', 'access', 'language', 'tags', 'note', 'version_note', ); $hiddenFields = $displayData->get('hidden_fields') ?: array(); if (!ModuleHelper::isAdminMultilang()) { $hiddenFields[] = 'language'; $form->setFieldAttribute('language', 'default', '*'); } $html = array(); $html[] = '
'; foreach ($fields as $field) { foreach ((array) $field as $f) { if ($form->getField($f)) { if (in_array($f, $hiddenFields)) { $form->setFieldAttribute($f, 'type', 'hidden'); } $html[] = $form->renderField($f); break; } } } $html[] = '
'; echo implode('', $html);