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-07-27 03:00:39 +02:00
|
|
|
<article class="item" id="current-item" data-item-id="<?= $item['id'] ?>" data-item-page="<?= $menu ?>">
|
2013-02-18 03:48:21 +01:00
|
|
|
<h1>
|
2013-06-15 05:12:08 +02:00
|
|
|
<a href="<?= $item['url'] ?>" rel="noreferrer" target="_blank" id="original-item">
|
|
|
|
<?= Helper\escape($item['title']) ?>
|
|
|
|
</a>
|
2013-02-18 03:48:21 +01:00
|
|
|
</h1>
|
|
|
|
|
|
|
|
<p class="infos">
|
2013-08-04 03:08:17 +02:00
|
|
|
<a href="?action=feed-items&feed_id=<?= $feed['id'] ?>"><?= Helper\escape($feed['title']) ?></a> |
|
|
|
|
<span class="hide-mobile"><?= dt('%e %B %Y - %k:%M', $item['updated']) ?> |</span>
|
2013-07-29 02:10:07 +02:00
|
|
|
|
2013-06-15 05:12:08 +02:00
|
|
|
<?php if ($item['bookmark']): ?>
|
2013-08-04 20:15:32 +02:00
|
|
|
<a href="?action=bookmark&value=0&id=<?= $item['id'] ?>&source=show&menu=<?= $menu ?>"><?= t('remove bookmark') ?></a>
|
2013-06-15 05:12:08 +02:00
|
|
|
<?php else: ?>
|
2013-08-04 20:15:32 +02:00
|
|
|
<a href="?action=bookmark&value=1&id=<?= $item['id'] ?>&source=show&menu=<?= $menu ?>"><?= t('bookmark') ?></a>
|
2013-07-29 02:10:07 +02:00
|
|
|
<?php endif ?> |
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
2013-07-29 02:10:07 +02:00
|
|
|
<div id="item-content">
|
|
|
|
<?= $item['content'] ?>
|
|
|
|
</div>
|
2013-03-27 02:57:12 +01:00
|
|
|
|
|
|
|
<?php if (isset($item_nav)): ?>
|
|
|
|
<nav>
|
|
|
|
<span class="nav-left">
|
|
|
|
<?php if ($item_nav['previous']): ?>
|
2013-08-04 20:15:32 +02:00
|
|
|
<a href="?action=show&menu=<?= $menu ?>&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 else: ?>
|
2013-04-13 03:08:55 +02:00
|
|
|
« <?= t('Previous') ?>
|
2013-03-27 02:57:12 +01:00
|
|
|
<?php endif ?>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span class="nav-middle">
|
|
|
|
<?php if ($item_nav['previous'] && $item_nav['next']): ?>
|
2013-08-04 20:15:32 +02:00
|
|
|
<a href="?action=<?= $menu ?>&feed_id=<?= $feed['id'] ?>#item-<?= $item_nav['next']['id'] ?>"><?= t('Listing') ?></a>
|
2013-03-27 02:57:12 +01:00
|
|
|
<?php elseif ($item_nav['previous'] && ! $item_nav['next']): ?>
|
2013-08-04 20:15:32 +02:00
|
|
|
<a href="?action=<?= $menu ?>&feed_id=<?= $feed['id'] ?>#item-<?= $item_nav['previous']['id'] ?>"><?= t('Listing') ?></a>
|
2013-03-27 02:57:12 +01:00
|
|
|
<?php elseif (! $item_nav['previous'] && $item_nav['next']): ?>
|
2013-08-04 20:15:32 +02:00
|
|
|
<a href="?action=<?= $menu ?>&feed_id=<?= $feed['id'] ?>#item-<?= $item_nav['next']['id'] ?>"><?= t('Listing') ?></a>
|
2013-03-27 02:57:12 +01:00
|
|
|
<?php elseif (! $item_nav['previous'] && ! $item_nav['next']): ?>
|
2013-08-04 21:57:43 +02:00
|
|
|
<a href="?action=<?= $menu ?>&feed_id=<?= $feed['id'] ?>"><?= t('Listing') ?></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&menu=<?= $menu ?>&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 else: ?>
|
2013-04-13 03:08:55 +02:00
|
|
|
<?= t('Next') ?> »
|
2013-03-27 02:57:12 +01:00
|
|
|
<?php endif ?>
|
|
|
|
</span>
|
|
|
|
</nav>
|
|
|
|
<?php endif ?>
|
2013-02-18 03:48:21 +01:00
|
|
|
</article>
|
|
|
|
|
2013-06-04 13:38:54 +02:00
|
|
|
<?php endif ?>
|