Skip to content

Commit

Permalink
Use the application in the icons layout
Browse files Browse the repository at this point in the history
  • Loading branch information
laoneo committed Nov 2, 2018
1 parent 3b38ce9 commit 8e1275c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions layouts/joomla/content/icons.php
Expand Up @@ -15,14 +15,13 @@

$canEdit = $displayData['params']->get('access-edit');
$articleId = $displayData['item']->id;

?>

<div class="icons">
<?php if (empty($displayData['print'])) : ?>

<?php if ($canEdit || $displayData['params']->get('show_print_icon') || $displayData['params']->get('show_email_icon')) : ?>
<?php Factory::getDocument()->getWebAssetManager()->enableAsset('bootstrap.js.bundle'); ?>
<?php Factory::getApplication()->getDocument()->getWebAssetManager()->enableAsset('bootstrap.js.bundle'); ?>
<div class="btn-group float-right">
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton-<?php echo $articleId; ?>" aria-label="<?php echo Text::_('JUSER_TOOLS'); ?>"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Expand Down

0 comments on commit 8e1275c

Please sign in to comment.