miniflux-legacy/templates/show_item.php

93 lines
3.8 KiB
PHP
Raw Normal View History

2013-02-18 03:48:21 +01:00
<?php if (empty($item)): ?>
2013-04-13 03:08:55 +02:00
<p class="alert alert-info"><?= t('Item not found') ?></p>
2013-02-18 03:48:21 +01:00
<?php else: ?>
2013-10-15 04:38:07 +02:00
<article
class="item"
id="current-item"
data-item-id="<?= $item['id'] ?>"
data-item-status="<?= $item['status'] ?>"
data-item-bookmark="<?= $item['bookmark'] ?>"
data-item-page="<?= $menu ?>"
>
2014-02-05 03:47:59 +01:00
<?php if (isset($item_nav)): ?>
<nav class="top hide-desktop">
<span class="nav-left">
<?php if ($item_nav['previous']): ?>
<a href="?action=show&amp;menu=<?= $menu ?>&amp;id=<?= $item_nav['previous']['id'] ?>" id="previous-item" title="<?= t($item_nav['previous']['title']) ?>">« <?= t('Previous') ?></a>
<?php endif ?>
</span>
<span class="nav-right">
<?php if ($item_nav['next']): ?>
<a href="?action=show&amp;menu=<?= $menu ?>&amp;id=<?= $item_nav['next']['id'] ?>" id="next-item" title="<?= t($item_nav['next']['title']) ?>"><?= t('Next') ?> »</a>
<?php endif ?>
</span>
</nav>
<?php endif ?>
2013-02-18 03:48:21 +01:00
<h1>
2013-10-15 04:38:07 +02:00
<a href="<?= $item['url'] ?>" rel="noreferrer" target="_blank" id="original-<?= $item['id'] ?>">
2013-06-15 05:12:08 +02:00
<?= Helper\escape($item['title']) ?>
</a>
2013-02-18 03:48:21 +01:00
</h1>
<p class="infos">
2013-06-15 05:12:08 +02:00
<?php if ($item['bookmark']): ?>
2013-10-15 04:38:07 +02:00
<a
id="bookmark-<?=$item['id'] ?>"
href="?action=bookmark&amp;value=0&amp;id=<?= $item['id'] ?>&amp;source=show&amp;menu=<?= $menu ?>"
title="<?= t('remove bookmark') ?>"
class="bookmark-icon"
data-action="bookmark"
data-item-id="<?= $item['id'] ?>"
></a>
2013-06-15 05:12:08 +02:00
<?php else: ?>
2013-10-15 04:38:07 +02:00
<a
id="bookmark-<?=$item['id'] ?>"
href="?action=bookmark&amp;value=1&amp;id=<?= $item['id'] ?>&amp;source=show&amp;menu=<?= $menu ?>"
title="<?= t('bookmark') ?>"
class="bookmark-icon"
data-action="bookmark"
data-item-id="<?= $item['id'] ?>"
></a>
<?php endif ?> |
2013-08-04 22:06:14 +02:00
<a href="?action=feed-items&amp;feed_id=<?= $feed['id'] ?>"><?= Helper\escape($feed['title']) ?></a> |
2013-10-15 04:38:07 +02:00
<span class="hide-mobile"><?= dt('%e %B %Y %k:%M', $item['updated']) ?> |</span>
2013-08-04 22:06:14 +02:00
<span id="download-item"
data-item-id="<?= $item['id'] ?>"
data-failure-message="<?= t('unable to fetch content') ?>"
data-before-message="<?= t('in progress...') ?>"
data-after-message="<?= t('content downloaded') ?>">
<a href="#" data-action="download-item">
<?= t('download content') ?>
</a>
</span>
2013-02-18 03:48:21 +01:00
</p>
<div id="item-content">
<?= $item['content'] ?>
</div>
2013-03-27 02:57:12 +01:00
<?php if (isset($item_nav)): ?>
2014-02-05 03:47:59 +01:00
<nav class="bottom">
2013-03-27 02:57:12 +01:00
<span class="nav-left">
<?php if ($item_nav['previous']): ?>
2013-08-04 20:15:32 +02:00
<a href="?action=show&amp;menu=<?= $menu ?>&amp;id=<?= $item_nav['previous']['id'] ?>" id="previous-item" title="<?= t($item_nav['previous']['title']) ?>">« <?= t('Previous') ?></a>
2013-03-27 02:57:12 +01:00
<?php endif ?>
</span>
<span class="nav-right">
<?php if ($item_nav['next']): ?>
2013-08-04 20:15:32 +02:00
<a href="?action=show&amp;menu=<?= $menu ?>&amp;id=<?= $item_nav['next']['id'] ?>" id="next-item" title="<?= t($item_nav['next']['title']) ?>"><?= t('Next') ?> »</a>
2013-03-27 02:57:12 +01:00
<?php endif ?>
</span>
</nav>
<?php endif ?>
2013-02-18 03:48:21 +01:00
</article>
<?php endif ?>