use links instead of spans
This way the icons can be used even without javascript as all other links.
This commit is contained in:
parent
48be7a1fff
commit
b1187f5071
@ -362,9 +362,9 @@ a.btn-red:hover,
|
||||
/* icons */
|
||||
article .read-icon,
|
||||
article .bookmark-icon {
|
||||
cursor: pointer;
|
||||
color: #aaa;
|
||||
font-weight: 200;
|
||||
color: #aaa !important;
|
||||
font-weight: 200 !important;
|
||||
text-decoration: none !important;
|
||||
}
|
||||
|
||||
article[data-item-bookmark="0"] .bookmark-icon:before {
|
||||
|
@ -8,18 +8,20 @@
|
||||
>
|
||||
<h2 <?= Helper\is_rtl($item) ? 'dir="rtl"' : 'dir="ltr"' ?>>
|
||||
<span class="item-icons">
|
||||
<span
|
||||
<a
|
||||
class="bookmark-icon"
|
||||
href="?action=bookmark&value=<?= (int)!$item['bookmark'] ?>&id=<?= $item['id'] ?>&offset=<?= $offset ?>&menu=<?= $menu ?>&feed_id=<?= $item['feed_id'] ?>"
|
||||
title="<?= ($item['bookmark']) ? t('remove bookmark') : t('bookmark') ?>"
|
||||
data-action="bookmark"
|
||||
data-reverse-title="<?= ($item['bookmark']) ? t('bookmark') : t('remove bookmark') ?>"
|
||||
></span>
|
||||
<span
|
||||
></a>
|
||||
<a
|
||||
class="read-icon"
|
||||
href="?action=<?= ($item['status'] === 'unread') ? 'mark-item-read' : 'mark-item-unread' ?>&id=<?= $item['id'] ?>&offset=<?= $offset ?>&redirect=<?= $menu ?>&feed_id=<?= $item['feed_id'] ?>"
|
||||
title="<?= ($item['status'] === 'unread') ? t('mark as read') : t('mark as unread') ?>"
|
||||
data-action="<?= ($item['status'] === 'unread') ? 'mark-read' : 'mark-unread' ?>"
|
||||
data-reverse-title="<?= ($item['status'] === 'unread') ? t('mark as unread') : t('mark as read') ?>"
|
||||
></span>
|
||||
></a>
|
||||
</span>
|
||||
<span class="item-title">
|
||||
<?= Helper\favicon($favicons, $item['feed_id']) ?>
|
||||
|
@ -35,13 +35,13 @@
|
||||
|
||||
<ul class="item-infos">
|
||||
<li>
|
||||
<span
|
||||
<a
|
||||
class="bookmark-icon"
|
||||
href="?action=bookmark&value=<?= (int)!$item['bookmark'] ?>&id=<?= $item['id'] ?>&source=show&menu=<?= $menu ?>"
|
||||
title="<?= ($item['bookmark']) ? t('remove bookmark') : t('bookmark') ?>"
|
||||
data-reverse-title="<?= ($item['bookmark']) ? t('bookmark') :t('remove bookmark') ?>"
|
||||
data-action="bookmark"
|
||||
></span>
|
||||
></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="?action=feed-items&feed_id=<?= $feed['id'] ?>"><?= Helper\escape($feed['title']) ?></a>
|
||||
|
Loading…
Reference in New Issue
Block a user