use links instead of spans

This way the icons can be used even without javascript as all other
links.
This commit is contained in:
Mathias Kresin 2016-08-04 22:38:28 +02:00
parent 48be7a1fff
commit b1187f5071
3 changed files with 11 additions and 9 deletions

View File

@ -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 {

View File

@ -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&amp;value=<?= (int)!$item['bookmark'] ?>&amp;id=<?= $item['id'] ?>&amp;offset=<?= $offset ?>&amp;menu=<?= $menu ?>&amp;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' ?>&amp;id=<?= $item['id'] ?>&amp;offset=<?= $offset ?>&amp;redirect=<?= $menu ?>&amp;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']) ?>

View File

@ -35,13 +35,13 @@
<ul class="item-infos">
<li>
<span
<a
class="bookmark-icon"
href="?action=bookmark&amp;value=<?= (int)!$item['bookmark'] ?>&amp;id=<?= $item['id'] ?>&amp;source=show&amp;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&amp;feed_id=<?= $feed['id'] ?>"><?= Helper\escape($feed['title']) ?></a>