* @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\Language\Text; use Joomla\CMS\Router\Route; use Joomla\CMS\Uri\Uri; $module = $displayData['module']; $params = $displayData['params']; if ((string) $module->content === '') { return; } $id = $module->id; // Permission checks $user = Factory::getUser(); $canEdit = $user->authorise('core.edit', 'com_modules.module.' . $id) && $user->authorise('core.manage', 'com_modules'); $canChange = $user->authorise('core.edit.state', 'com_modules.module.' . $id) && $user->authorise('core.manage', 'com_modules'); $moduleTag = $params->get('module_tag', 'div'); $bootstrapSize = (int) $params->get('bootstrap_size', 6); $moduleClass = $bootstrapSize ? 'col-md-' . $bootstrapSize : 'col-md-12'; $headerTag = htmlspecialchars($params->get('header_tag', 'h2'), ENT_QUOTES, 'UTF-8'); $moduleClassSfx = $params->get('moduleclass_sfx', ''); // Temporarily store header class in variable $headerClass = $params->get('header_class'); $headerClass = $headerClass ? ' ' . htmlspecialchars($headerClass, ENT_QUOTES, 'UTF-8') : ''; ?>
< class="card pt-3"> isRtl() ? 'start' : 'end'; ?> showtitle) : ?> < class="card-header">title; ?>>
content; ?>
>