Make clickable icons
This commit is contained in:
parent
07bd5191e5
commit
4c0d975532
@ -365,17 +365,30 @@ a.btn-red:hover,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* icons */
|
/* icons */
|
||||||
article[data-item-status="read"] .read-icon:before {
|
article .read-icon,
|
||||||
|
article .bookmark-icon {
|
||||||
|
display: inline-block;
|
||||||
|
color: #ccc;
|
||||||
|
font-size: 20px;
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
line-height: 20px;
|
||||||
|
text-align: center;
|
||||||
|
margin: 0 1px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
article .read-icon:before {
|
||||||
content: "✔";
|
content: "✔";
|
||||||
}
|
}
|
||||||
|
|
||||||
article[data-item-bookmark="1"] .bookmark-icon:before {
|
article .bookmark-icon:before {
|
||||||
content: "★";
|
content: "★";
|
||||||
}
|
}
|
||||||
|
|
||||||
/* not bookmarked icon only in article view */
|
article[data-item-status="read"] .read-icon,
|
||||||
article[data-item-bookmark="0"] .item-infos .bookmark-icon:before {
|
article[data-item-bookmark="1"] .bookmark-icon {
|
||||||
content: "☆";
|
color: #444;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* counter brackets */
|
/* counter brackets */
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
<li class="hide-mobile">
|
|
||||||
<?php if ($item['bookmark']): ?>
|
<?php if ($item['bookmark']): ?>
|
||||||
<a
|
<span
|
||||||
class="bookmark"
|
class="bookmark-icon"
|
||||||
href="?action=bookmark&value=0&id=<?= $item['id'] ?>&menu=<?= $menu ?>&offset=<?= $offset ?>&source=<?= $source ?>"
|
href="?action=bookmark&value=0&id=<?= $item['id'] ?>&menu=<?= $menu ?>&offset=<?= $offset ?>&source=<?= $source ?>"
|
||||||
data-action="bookmark"
|
data-action="bookmark"
|
||||||
data-reverse-label="<?= t('bookmark') ?>"
|
data-reverse-label="<?= t('bookmark') ?>"
|
||||||
><?= t('remove bookmark') ?></a>
|
title="<?= t('remove bookmark') ?>"
|
||||||
|
></span>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<a
|
<span
|
||||||
class="bookmark"
|
class="bookmark-icon"
|
||||||
href="?action=bookmark&value=1&id=<?= $item['id'] ?>&menu=<?= $menu ?>&offset=<?= $offset ?>&source=<?= $source ?>"
|
href="?action=bookmark&value=1&id=<?= $item['id'] ?>&menu=<?= $menu ?>&offset=<?= $offset ?>&source=<?= $source ?>"
|
||||||
data-action="bookmark"
|
data-action="bookmark"
|
||||||
data-reverse-label="<?= t('remove bookmark') ?>"
|
data-reverse-label="<?= t('remove bookmark') ?>"
|
||||||
><?= t('bookmark') ?></a>
|
title="<?= t('bookmark') ?>"
|
||||||
|
></span>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</li>
|
|
@ -7,8 +7,8 @@
|
|||||||
<?= $hide ? 'data-hide="true"' : '' ?>
|
<?= $hide ? 'data-hide="true"' : '' ?>
|
||||||
>
|
>
|
||||||
<h2 <?= Helper\is_rtl($item) ? 'dir="rtl"' : 'dir="ltr"' ?>>
|
<h2 <?= Helper\is_rtl($item) ? 'dir="rtl"' : 'dir="ltr"' ?>>
|
||||||
<span class="bookmark-icon"></span>
|
<?= \Template\load('bookmark_links', array('item' => $item, 'menu' => $menu, 'offset' => $offset, 'source' => '')) ?>
|
||||||
<span class="read-icon"></span>
|
<?= \Template\load('status_links', array('item' => $item, 'redirect' => $menu, 'offset' => $offset)) ?>
|
||||||
<?= Helper\favicon($favicons, $item['feed_id']) ?>
|
<?= Helper\favicon($favicons, $item['feed_id']) ?>
|
||||||
<?php if ($display_mode === 'full' || $item_title_link == 'original'): ?>
|
<?php if ($display_mode === 'full' || $item_title_link == 'original'): ?>
|
||||||
<a class="original" rel="noreferrer" target="_blank"
|
<a class="original" rel="noreferrer" target="_blank"
|
||||||
@ -67,8 +67,13 @@
|
|||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</li>
|
</li>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<?= \Template\load('bookmark_links', array('item' => $item, 'menu' => $menu, 'offset' => $offset, 'source' => '')) ?>
|
<li class="hide-mobile">
|
||||||
<?= \Template\load('status_links', array('item' => $item, 'redirect' => $menu, 'offset' => $offset)) ?>
|
<a
|
||||||
|
href="?action=mark-item-removed&id=<?= $item['id'] ?>&offset=<?= $offset ?>&redirect=<?= $redirect ?>&feed_id=<?= $item['feed_id'] ?>"
|
||||||
|
data-action="mark-removed"
|
||||||
|
class="delete"
|
||||||
|
><?= t('remove') ?></a>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<?php if ($display_mode === 'full'): ?>
|
<?php if ($display_mode === 'full'): ?>
|
||||||
<div class="preview-full-content" <?= Helper\is_rtl($item) ? 'dir="rtl"' : 'dir="ltr"' ?>><?= $item['content'] ?></div>
|
<div class="preview-full-content" <?= Helper\is_rtl($item) ? 'dir="rtl"' : 'dir="ltr"' ?>><?= $item['content'] ?></div>
|
||||||
|
@ -1,24 +1,17 @@
|
|||||||
<li class="hide-mobile">
|
|
||||||
<a
|
|
||||||
href="?action=mark-item-removed&id=<?= $item['id'] ?>&offset=<?= $offset ?>&redirect=<?= $redirect ?>&feed_id=<?= $item['feed_id'] ?>"
|
|
||||||
data-action="mark-removed"
|
|
||||||
class="delete"
|
|
||||||
><?= t('remove') ?></a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<?php if ($item['status'] == 'unread'): ?>
|
<?php if ($item['status'] == 'unread'): ?>
|
||||||
<a
|
<span
|
||||||
class="mark"
|
class="read-icon"
|
||||||
href="?action=mark-item-read&id=<?= $item['id'] ?>&offset=<?= $offset ?>&redirect=<?= $redirect ?>&feed_id=<?= $item['feed_id'] ?>"
|
href="?action=mark-item-read&id=<?= $item['id'] ?>&offset=<?= $offset ?>&redirect=<?= $redirect ?>&feed_id=<?= $item['feed_id'] ?>"
|
||||||
data-action="mark-read"
|
data-action="mark-read"
|
||||||
data-reverse-label="<?= t('mark as unread') ?>"
|
data-reverse-label="<?= t('mark as unread') ?>"
|
||||||
><?= t('mark as read') ?></a>
|
title="<?= t('mark as read') ?>"
|
||||||
|
></span>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<a
|
<span
|
||||||
class="mark"
|
class="read-icon"
|
||||||
href="?action=mark-item-unread&id=<?= $item['id'] ?>&offset=<?= $offset ?>&redirect=<?= $redirect ?>&feed_id=<?= $item['feed_id'] ?>"
|
href="?action=mark-item-unread&id=<?= $item['id'] ?>&offset=<?= $offset ?>&redirect=<?= $redirect ?>&feed_id=<?= $item['feed_id'] ?>"
|
||||||
data-action="mark-unread"
|
data-action="mark-unread"
|
||||||
data-reverse-label="<?= t('mark as read') ?>"
|
data-reverse-label="<?= t('mark as read') ?>"
|
||||||
><?= t('mark as unread') ?></a>
|
title="<?= t('mark as unread') ?>"
|
||||||
|
></span>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</li>
|
|
Loading…
Reference in New Issue
Block a user