Skip to content
This repository has been archived by the owner on Feb 4, 2020. It is now read-only.

Commit

Permalink
Merge pull request #151 from joomla/submenu-link-block
Browse files Browse the repository at this point in the history
Submenu link with class d-block
  • Loading branch information
chmst authored May 2, 2019
2 parents 681c296 + 0d456a8 commit 3217255
Showing 1 changed file with 24 additions and 23 deletions.
47 changes: 24 additions & 23 deletions administrator/modules/mod_submenu/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,34 +53,35 @@
$alt = $params->get('menu_text') ? '' : htmlspecialchars($item->title, ENT_QUOTES, 'UTF-8');
endif;
?>
<a href="<?php echo $item->link; ?>">
<a class="d-block" href="<?php echo $item->link; ?>">
<?php if (!empty($params->get('menu_image'))) : ?>
<?php echo HTMLHelper::_('image', $image, $alt, 'class="' . $class . '"'); ?>
<?php endif; ?>
<?php echo ($params->get('menu_text', 1)) ? Text::_($item->title) : ''; ?>
</a>
<span class="menu-quicktask">
<?php if ($params->get('menu-quicktask', false)) : ?>
<?php
$link = $params->get('menu-quicktask-link');
$icon = $params->get('menu-quicktask-icon', 'plus');
$title = $params->get('menu-quicktask-title', 'MOD_MENU_QUICKTASK_NEW');
$permission = $params->get('menu-quicktask-permission');
$scope = $item->scope !== 'default' ? $item->scope : null;
?>
<?php if (!$permission || $user->authorise($permission, $scope)) : ?>
<a href="<?php echo $link; ?>">
<span class="fa fa-<?php echo $icon; ?>" title="<?php echo htmlentities(Text::_($title)); ?>" aria-hidden="true"></span>
<span class="sr-only"><?php echo Text::_($title); ?></span>
</a>

<span class="menu-quicktask">
<?php if ($params->get('menu-quicktask', false)) : ?>
<?php
$link = $params->get('menu-quicktask-link');
$icon = $params->get('menu-quicktask-icon', 'plus');
$title = $params->get('menu-quicktask-title', 'MOD_MENU_QUICKTASK_NEW');
$permission = $params->get('menu-quicktask-permission');
$scope = $item->scope !== 'default' ? $item->scope : null;
?>
<?php if (!$permission || $user->authorise($permission, $scope)) : ?>
<a href="<?php echo $link; ?>">
<span class="fa fa-<?php echo $icon; ?>" title="<?php echo htmlentities(Text::_($title)); ?>" aria-hidden="true"></span>
<span class="sr-only"><?php echo Text::_($title); ?></span>
</a>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
</span>
<span class="menu-badge">
<?php if ($item->ajaxbadge) : ?>
<span class="fa fa-spin fa-spinner mt-1 system-counter" data-url="<?php echo $item->ajaxbadge; ?>"></span>
<?php endif; ?>
</span>
</span>
<span class="menu-badge">
<?php if ($item->ajaxbadge) : ?>
<span class="fa fa-spin fa-spinner mt-1 system-counter" data-url="<?php echo $item->ajaxbadge; ?>"></span>
<?php endif; ?>
</span>
</a>
<?php if ($item->dashboard) : ?>
<span class="menu-dashboard">
<a href="<?php echo JRoute::_('index.php?option=com_cpanel&view=cpanel&dashboard=' . $item->dashboard); ?>">
Expand Down

0 comments on commit 3217255

Please sign in to comment.