Change count_bookmarks() to include only read/unread items and remove opacity

This commit is contained in:
Frederic Guillot 2013-07-06 08:57:06 -04:00
parent 667f3f0773
commit 3af0f43207
3 changed files with 2 additions and 5 deletions

View File

@ -501,10 +501,6 @@ nav .active a {
color: #ddd;
}
.item-status-read {
opacity: 0.4;
}
#items-paging {
margin-top: 50px;
font-size: 75%;

View File

@ -291,6 +291,7 @@ function count_bookmarks()
return \PicoTools\singleton('db')
->table('items')
->eq('bookmark', 1)
->in('status', array('read', 'unread'))
->count();
}

View File

@ -11,7 +11,7 @@
<section class="items">
<?php foreach ($items as $item): ?>
<?php $item_id = Model\encode_item_id($item['id']) ?>
<article id="item-<?= $item_id ?>" data-item-id="<?= $item_id ?>" class="<?= $item['status'] == 'read' ? 'item-status-read' : '' ?>">
<article id="item-<?= $item_id ?>" data-item-id="<?= $item_id ?>">
<h2>
<a
href="?action=show&amp;id=<?= $item_id ?>"