Improve the feed title and feed domain display
This commit is contained in:
parent
c681854e6a
commit
f42522c2a1
@ -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',
|
||||
|
@ -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();
|
||||
|
@ -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&value=0&id=<?= $item_id ?>&redirect=bookmarks&offset=<?= $offset ?>"><?= t('remove bookmark') ?></a> |
|
||||
|
||||
<span class="hide-mobile">
|
||||
<a href="?action=bookmark&value=0&id=<?= $item_id ?>&redirect=bookmarks&offset=<?= $offset ?>">
|
||||
<?= t('remove bookmark') ?>
|
||||
</a> |
|
||||
</span>
|
||||
|
||||
<a
|
||||
href="<?= $item['url'] ?>"
|
||||
id="original-<?= $item_id ?>"
|
||||
|
@ -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&feed_id=<?= $feed['id'] ?>"><?= t('remove') ?></a> |</span>
|
||||
<a href="?action=feed-items&feed_id=<?= $feed['id'] ?>"><?= t('items') ?></a> |
|
||||
<span class="hide-mobile"><a href="?action=feed-items&feed_id=<?= $feed['id'] ?>"><?= t('items') ?></a> |</span>
|
||||
<a href="?action=refresh-feed&feed_id=<?= $feed['id'] ?>" data-feed-id="<?= $feed['id'] ?>" data-action="refresh-feed"><?= t('refresh') ?></a>
|
||||
</p>
|
||||
</article>
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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']): ?>
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user