Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions administrator/modules/mod_menu/tmpl/default_submenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

defined('_JEXEC') or die;

use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Uri\Uri;
Expand Down Expand Up @@ -143,9 +144,23 @@

if (!empty($current->dashboard)) {
$titleDashboard = Text::sprintf('MOD_MENU_DASHBOARD_LINK', Text::_($current->title));

// Prepare the Dashboard icon. We use our own icon, not Fontawesome
$pathDashboard = 'media/templates/administrator/atum/images/icons/dashboard.svg';
$attrDashboard = [
'loading' => 'eager',
'decoding' => 'async',
'aria-hidden' => 'true',
'class' => 'atum-dashboard',
'height' => '18',
];

$iconDashboard = HTMLHelper::_('image', $pathDashboard, '', $attrDashboard, false, 0);

echo '<span class="menu-dashboard"><a href="'
. Route::_('index.php?option=com_cpanel&view=cpanel&dashboard=' . $current->dashboard) . '">'
. '<span class="icon-th-large" title="' . $titleDashboard . '" aria-hidden="true"></span>'
. Route::_('index.php?option=com_cpanel&view=cpanel&dashboard=' . $current->dashboard) . '" '
. 'title="' . $titleDashboard . '">'
. '<span>' . $iconDashboard . '</span>'
. '<span class="visually-hidden">' . $titleDashboard . '</span>'
. '</a></span>';
}
Expand Down
19 changes: 17 additions & 2 deletions administrator/modules/mod_submenu/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,23 @@
<?php endif; ?>
<?php if ($item->dashboard) : ?>
<span class="menu-dashboard">
<a href="<?php echo Route::_('index.php?option=com_cpanel&view=cpanel&dashboard=' . $item->dashboard); ?>">
<span class="icon-th-large" title="<?php echo htmlentities(Text::sprintf('MOD_MENU_DASHBOARD_LINK', Text::_($child->title))); ?>"></span>
<?php
$titleDashboard = Text::sprintf('MOD_MENU_DASHBOARD_LINK', Text::_($child->title));

// Prepare the Dashboard icon. We use our own icon, not Fontawesome
$pathDashboard = 'media/templates/administrator/atum/images/icons/dashboard.svg';
$attrDashboard = [
'loading' => 'eager',
'decoding' => 'async',
'aria-hidden' => 'true',
'class' => 'atum-dashboard',
'height' => '18',
];
$iconDashboard = HTMLHelper::_('image', $pathDashboard, '', $attrDashboard, false, 0);
?>
<a href="<?php echo Route::_('index.php?option=com_cpanel&view=cpanel&dashboard=' . $item->dashboard); ?>" title="<?php echo $titleDashboard; ?>">
<span><?php echo $iconDashboard; ?></span>
<span class="visually-hidden"><?php echo $titleDashboard; ?></span>
</a>
</span>
<?php endif; ?>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.