Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Espaces de nommage | |
Joomla\Administrator | |
Variables | |
$module = $displayData['module'] | |
$params = $displayData['params'] | |
$attribs = $displayData['attribs'] | |
if((string) $module->content==='') | $id = $module->id |
$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', 12) | |
$moduleClass = $bootstrapSize ? 'col-md-' . $bootstrapSize : 'col-md-12' | |
$headerTag = htmlspecialchars($params->get('header_tag', 'h2'), ENT_QUOTES, 'UTF-8') | |
$moduleClassSfx = $params->get('moduleclass_sfx', '') | |
$headerClass = $params->get('header_class') ? ' class="' . htmlspecialchars($params->get('header_class'), ENT_QUOTES, 'UTF-8') . '"' : '' | |
$headerIcon = $params->get('header_icon') ? '<span class="' . htmlspecialchars($params->get('header_icon'), ENT_QUOTES, 'UTF-8') . '" aria-hidden="true"></span>' : '' | |
$url = Route::_('index.php?option=com_modules&task=module.edit&id=' . $id . '&return=' . base64_encode($uri)) | |
endif | |
if ( $canChange) | |
$attribs = $displayData['attribs'] |
$bootstrapSize = (int) $params->get('bootstrap_size', 12) |
$canChange = $user->authorise('core.edit.state', 'com_modules.module.' . $id) && $user->authorise('core.manage', 'com_modules') |
$canEdit = $user->authorise('core.edit', 'com_modules.module.' . $id) && $user->authorise('core.manage', 'com_modules') |
$headerClass = $params->get('header_class') ? ' class="' . htmlspecialchars($params->get('header_class'), ENT_QUOTES, 'UTF-8') . '"' : '' |
$headerIcon = $params->get('header_icon') ? '<span class="' . htmlspecialchars($params->get('header_icon'), ENT_QUOTES, 'UTF-8') . '" aria-hidden="true"></span>' : '' |
$headerTag = htmlspecialchars($params->get('header_tag', 'h2'), ENT_QUOTES, 'UTF-8') |
$module = $displayData['module'] |
$moduleClass = $bootstrapSize ? 'col-md-' . $bootstrapSize : 'col-md-12' |
$moduleClassSfx = $params->get('moduleclass_sfx', '') |
$moduleTag = $params->get('module_tag', 'div') |
$params = $displayData['params'] |
$url = Route::_('index.php?option=com_modules&task=module.edit&id=' . $id . '&return=' . base64_encode($uri)) |
$user = Factory::getUser() |
endif |
if($module->showtitle) | ( | $canChange | ) |