-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7f3dd56
commit 9e602b8
Showing
44 changed files
with
225 additions
and
3,644 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,27 @@ | ||
<?php | ||
|
||
/** | ||
* @package Astroid Framework | ||
* @author JoomDev https://www.joomdev.com | ||
* @copyright Copyright (C) 2009 - 2020 JoomDev. | ||
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or Later | ||
* @package Joomla.Site | ||
* @subpackage Layout | ||
* | ||
* @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
defined('JPATH_BASE') or die; | ||
defined('_JEXEC') or die; | ||
|
||
use Joomla\CMS\HTML\HTMLHelper; | ||
use Joomla\CMS\Language\Text; | ||
|
||
HTMLHelper::_('bootstrap.framework'); | ||
|
||
$canEdit = $displayData['params']->get('access-edit'); | ||
$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')) : ?> | ||
<div class="btn-group content-edit-dropdown float-right"> | ||
<button class="btn dropdown-toggle py-1 px-2" type="button" id="dropdownMenuButton-<?php echo $articleId; ?>" aria-label="<?php echo Text::_('JUSER_TOOLS'); ?>" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> | ||
<span class="fas fa-cog fa-sm" aria-hidden="true"></span> | ||
<span class="caret" aria-hidden="true"></span> | ||
</button> | ||
<?php // Note the actions class is deprecated. Use dropdown-menu instead. | ||
?> | ||
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton-<?php echo $articleId; ?>"> | ||
<?php if ($displayData['params']->get('show_print_icon')) : ?> | ||
<li class="dropdown-item print-icon"> <?php echo HTMLHelper::_('icon.print_popup', $displayData['item'], $displayData['params']); ?> </li> | ||
<?php endif; ?> | ||
<?php if ($displayData['params']->get('show_email_icon')) : ?> | ||
<li class="dropdown-item email-icon"> <?php echo HTMLHelper::_('icon.email', $displayData['item'], $displayData['params']); ?> </li> | ||
<?php endif; ?> | ||
<?php if ($canEdit) : ?> | ||
<li class="dropdown-item edit-icon"> <?php echo HTMLHelper::_('icon.edit', $displayData['item'], $displayData['params']); ?> </li> | ||
<?php endif; ?> | ||
</div> | ||
</div> | ||
<?php endif; ?> | ||
|
||
<?php else : ?> | ||
|
||
<?php if ($canEdit) : ?> | ||
<div class="icons"> | ||
<div class="float-right"> | ||
<?php echo HTMLHelper::_('icon.print_screen', $displayData['item'], $displayData['params']); ?> | ||
<div> | ||
<?php echo HTMLHelper::_('icon.edit', $displayData['item'], $displayData['params']); ?> | ||
</div> | ||
</div> | ||
|
||
<?php endif; ?> | ||
</div> | ||
</div> | ||
<?php endif; ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.