Improve the feed title and feed domain display

This commit is contained in:
Frederic Guillot 2013-07-21 12:32:00 -04:00
parent c681854e6a
commit f42522c2a1
7 changed files with 14 additions and 11 deletions

View File

@ -60,7 +60,7 @@ return array(
'original link' => 'lien original',
'mark as read' => 'marquer comme lu',
'No history' => 'Aucun historique',
'mark as unread' => 'marquer comme non lu',
'mark as unread' => 'non lu',
'History' => 'Historique',
'flush all items' => 'supprimer tous les éléments',
'Item not found' => 'Élément introuvable',

View File

@ -412,7 +412,7 @@ function get_feed_items($feed_id, $offset = null, $limit = null)
function get_item($id)
{
return \PicoTools\singleton('db')
return \PicoTools\singleton('db')
->table('items')
->eq('id', $id)
->findOne();

View File

@ -22,10 +22,15 @@
</a>
</h2>
<p>
<?= Helper\escape($item['feed_title']) ?> |
<?= Helper\get_host_from_url($item['url']) ?> |
<?= Helper\escape($item['feed_title']) ?> |
<?= dt('%e %B %Y %k:%M', $item['updated']) ?> |
<a href="?action=bookmark&amp;value=0&amp;id=<?= $item_id ?>&amp;redirect=bookmarks&amp;offset=<?= $offset ?>"><?= t('remove bookmark') ?></a> |
<span class="hide-mobile">
<a href="?action=bookmark&amp;value=0&amp;id=<?= $item_id ?>&amp;redirect=bookmarks&amp;offset=<?= $offset ?>">
<?= t('remove bookmark') ?>
</a> |
</span>
<a
href="<?= $item['url'] ?>"
id="original-<?= $item_id ?>"

View File

@ -29,7 +29,7 @@
<a href="<?= $feed['site_url'] ?>" rel="noreferrer" target="_blank"><?= Helper\get_host_from_url($feed['site_url']) ?></a> |
<span class="hide-mobile"><a href="<?= Helper\escape($feed['feed_url']) ?>" rel="noreferrer" target="_blank"><?= t('feed link') ?></a> |</span>
<span class="hide-mobile"><a href="?action=confirm-remove-feed&amp;feed_id=<?= $feed['id'] ?>"><?= t('remove') ?></a> |</span>
<a href="?action=feed-items&amp;feed_id=<?= $feed['id'] ?>"><?= t('items') ?></a> |
<span class="hide-mobile"><a href="?action=feed-items&amp;feed_id=<?= $feed['id'] ?>"><?= t('items') ?></a> |</span>
<a href="?action=refresh-feed&amp;feed_id=<?= $feed['id'] ?>" data-feed-id="<?= $feed['id'] ?>" data-action="refresh-feed"><?= t('refresh') ?></a>
</p>
</article>

View File

@ -24,8 +24,7 @@
</a>
</h2>
<p>
<?= Helper\escape($item['feed_title']) ?> |
<?= Helper\get_host_from_url($item['url']) ?> |
<?= Helper\escape($item['feed_title']) ?> |
<span class="hide-mobile"><?= dt('%e %B %Y %k:%M', $item['updated']) ?> |</span>

View File

@ -12,7 +12,7 @@
</h1>
<p class="infos">
<?= Helper\escape($feed['title']) ?> |
<?= Helper\escape($feed['title']) ?> |
<?= Helper\get_host_from_url($item['url']) ?> |
<span class="hide-mobile"><?= dt('%A %e %B %Y %k:%M', $item['updated']) ?> |</span>
<?php if ($item['bookmark']): ?>

View File

@ -33,8 +33,7 @@
<?= Helper\escape(Helper\summary(strip_tags($item['content']), 50, 300)) ?>
</p>
<p>
<?= Helper\escape($item['feed_title']) ?> |
<?= Helper\get_host_from_url($item['url']) ?> |
<?= Helper\escape($item['feed_title']) ?> |
<span class="hide-mobile"><?= dt('%e %B %Y %k:%M', $item['updated']) ?> |</span>
<span class="hide-mobile">