miniflux-legacy/miniflux/templates/unread_items.php
Frederic Guillot f035f32967 Big update
2013-03-17 18:16:25 -04:00

29 lines
875 B
PHP

<?php if (empty($items)): ?>
<p class="alert alert-info">Nothing to read.</p>
<?php else: ?>
<div class="page-header">
<h2>Unread items</h2>
<ul>
<li><a href="?action=flush-unread">flush</a></li>
</ul>
</div>
<section class="items">
<?php foreach ($items as $item): ?>
<article>
<h2><a href="?action=read&amp;id=<?= urlencode($item['id']) ?>"><?= Helper\escape($item['title']) ?></a></h2>
<p class="preview">
<?= Helper\escape(Helper\summary(strip_tags($item['content']), 50, 300)) ?>
</p>
<p>
<?= Helper\get_host_from_url($item['url']) ?> |
<a href="<?= $item['url'] ?>" rel="noreferrer" target="_blank">direct link</a>
</p>
</article>
<?php endforeach ?>
</section>
<?php endif ?>