- md5
- 0b2b649acdc60bde599660485f42ee9f
- sha1
- 3a4164185f1637dee9a21800675ff40dc2d234e3
- sha256
- 67960421b39a0376cc3ad5eb53fe4face0d0d8ec59afa9022b5cfdc01b4f3b0b
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
<?php
/**
* @package Joomla.Administrator
* @subpackage Templates.Atum
*
* @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
* @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'];
$attribs = $displayData['attribs'];
if ($module->content) :
$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'));
$moduleClassSfx = $params->get('moduleclass_sfx', '');
// Temporarily store header class in variable
$headerClass = $params->get('header_class');
$headerClass = ($headerClass) ? ' ' . htmlspecialchars($headerClass) : '';
?>
<div class="<?php echo $moduleClass; ?> module-wrapper">
<<?php echo $moduleTag; ?> class="card mb-3<?php echo $moduleClassSfx; ?>">
<?php if ($canEdit || $canChange) : ?>
<?php $dropdownPosition = Factory::getLanguage()->isRTL() ? 'left' : 'right'; ?>
<div class="module-actions dropdown">
<button type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" id="dropdownMenuButton-<?php echo $id; ?>">
<span class="fa fa-cog"><span class="sr-only">
<?php echo Text::_('JACTION_EDIT') . ' ' . $module->title; ?>
</span></span>
</button>
<div class="dropdown-menu dropdown-menu-' . $dropdownPosition . '" aria-labelledby="dropdownMenuButton-<?php echo $id; ?>">
<?php if ($canEdit) : ?>
<?php $uri = Uri::getInstance(); ?>
<?php $url = Route::_('index.php?option=com_modules&task=module.edit&id=' . $id . '&return=' . base64_encode($uri)); ?>
<a class="dropdown-item" href="<?php echo $url; ?>"><?php echo Text::_('JACTION_EDIT'); ?></a>
<?php endif; ?>
<?php if ($canChange) : ?>
<button type="button" class="dropdown-item unpublish-module" data-module-id="<?php echo $id; ?>"><?php echo Text::_('JACTION_UNPUBLISH'); ?></button>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
<?php if ($module->showtitle) : ?>
<h2 class="card-header<?php echo $headerClass; ?>"><?php echo $module->title; ?></h2>
<?php endif; ?>
<?php echo $module->content; ?>
</<?php echo $moduleTag; ?>>
</div>
<?php endif; ?>
No other release has this exact content. See every version of this file.