芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/administrator.5/templates/atum/html/layouts/status.php
* @license GNU General Public License version 2 or later; see LICENSE.txt * * Module chrome for rendering the module in a submenu */ defined('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\Helper\ModuleHelper; use Joomla\CMS\Language\Text; $modulePosition = $displayData['modules']; $renderer = Factory::getDocument()->loadRenderer('module'); $modules = ModuleHelper::getModules($modulePosition); $moduleHtml = []; $moduleCollapsedHtml = []; foreach ($modules as $key => $mod) { $out = $renderer->render($mod); if ($out !== '') { if (strpos($out, 'data-bs-toggle="modal"') !== false) { $dom = new \DOMDocument; $dom->loadHTML($out); $els = $dom->getElementsByTagName('a'); $moduleCollapsedHtml[] = $dom->saveHTML($els[0]); //$els[0]->nodeValue; } else { $moduleCollapsedHtml[] = $out; } $moduleHtml[] = $out; } } ?>
' . $mod . '
'; } ?>
$mod) { echo '
' . $mod . '
'; } ?>