miniflux-legacy/miniflux/templates/read_item.php

52 lines
2.0 KiB
PHP
Raw Normal View History

2013-02-18 03:48:21 +01:00
<?php if (empty($item)): ?>
<p class="alert alert-info">Article not found.</p>
<?php else: ?>
<article class="item">
<h1>
2013-02-24 20:04:56 +01:00
<a href="<?= $item['url'] ?>" rel="noreferrer" target="_blank"><?= Helper\escape($item['title']) ?></a>
2013-02-18 03:48:21 +01:00
</h1>
<p class="infos">
2013-02-24 20:04:56 +01:00
<?= Helper\get_host_from_url($item['url']) ?> |
<?= date('l, j F Y H:i', $item['updated']) ?>
2013-02-18 03:48:21 +01:00
</p>
<?= $item['content'] ?>
2013-03-27 02:57:12 +01:00
<?php if (isset($item_nav)): ?>
<nav>
<span class="nav-left">
<?php if ($item_nav['previous']): ?>
<a href="?action=read&amp;id=<?= urlencode($item_nav['previous']['id']) ?>">« Previous</a>
<?php else: ?>
« Previous
<?php endif ?>
</span>
<span class="nav-middle">
<?php if ($item_nav['previous'] && $item_nav['next']): ?>
<a href="?action=default&amp;#item-<?= urlencode($item_nav['next']['id']) ?>">Unread items</a>
<?php elseif ($item_nav['previous'] && ! $item_nav['next']): ?>
<a href="?action=default&amp;#item-<?= urlencode($item_nav['previous']['id']) ?>">Unread items</a>
<?php elseif (! $item_nav['previous'] && $item_nav['next']): ?>
<a href="?action=default&amp;#item-<?= urlencode($item_nav['next']['id']) ?>">Unread items</a>
<?php elseif (! $item_nav['previous'] && ! $item_nav['next']): ?>
<a href="?action=default">Unread items</a>
<?php endif ?>
</span>
<span class="nav-right">
<?php if ($item_nav['next']): ?>
<a href="?action=read&amp;id=<?= urlencode($item_nav['next']['id']) ?>">Next »</a>
<?php else: ?>
Next »
<?php endif ?>
</span>
</nav>
<?php endif ?>
2013-02-18 03:48:21 +01:00
</article>
<?php endif ?>