30
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2024-06-09 01:32:22 +00:00
This commit is contained in:
Christiane Maier-Stadtherr 2023-05-18 19:19:01 +02:00 committed by GitHub
commit 54b0b293f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,14 +65,7 @@ $listDirn = $this->escape($this->state->get('list.direction'));
<?php else : ?> <?php else : ?>
<ul class="category list-unstyled"> <ul class="category list-unstyled">
<?php foreach ($this->items as $i => $item) : ?> <?php foreach ($this->items as $i => $item) : ?>
<?php <li class="list-group mt-3">
// Shouldn't this be only for users with admin rights?
// @ToDo: what is the difference -class system-unbublished?
if ($item->state == 0) : ?>
<li class="system-unpublished list-group mt-3">
<?php else : ?>
<li class="list-group mt-3">
<?php endif; ?>
<?php if ($canEdit || ($canEditOwn && $item->created_by == $userId)) : ?> <?php if ($canEdit || ($canEditOwn && $item->created_by == $userId)) : ?>
<div class="icons list-group-item"> <div class="icons list-group-item">
@ -127,9 +120,8 @@ $listDirn = $this->escape($this->state->get('list.direction'));
$modalParams['bodyHeight'] = 70; $modalParams['bodyHeight'] = 70;
$modalParams['modalWidth'] = 80; $modalParams['modalWidth'] = 80;
echo HTMLHelper::_('bootstrap.renderModal', $modalId, $modalParams); echo HTMLHelper::_('bootstrap.renderModal', $modalId, $modalParams);
echo '<button type="button" class="btn btn-link" data-bs-toggle="modal" data-bs-target="#' . $modalId . '"> echo '<a role="button" class="' . $menuclass . '" data-bs-toggle="modal" data-bs-target="#' . $modalId . '">' .
' . $item->title . ' $this->escape($item->title) . ' </a>';
</button>';
break; break;
default: default:
// Open in parent window // Open in parent window