2013-02-17 21:48:21 -05:00
|
|
|
<?php if (empty($item)): ?>
|
2013-04-12 21:08:55 -04:00
|
|
|
<p class="alert alert-info"><?= t('Item not found') ?></p>
|
2013-02-17 21:48:21 -05:00
|
|
|
<?php else: ?>
|
2013-10-14 22:38:07 -04: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-04 21:47:59 -05:00
|
|
|
|
|
|
|
<?php if (isset($item_nav)): ?>
|
|
|
|
<nav class="top hide-desktop">
|
|
|
|
<span class="nav-left">
|
|
|
|
<?php if ($item_nav['previous']): ?>
|
2014-03-03 20:39:48 -05:00
|
|
|
<a href="?action=show&menu=<?= $menu ?>&id=<?= $item_nav['previous']['id'] ?>" id="previous-item" title="<?= Helper\escape($item_nav['previous']['title']) ?>">« <?= t('Previous') ?></a>
|
2014-02-04 22:12:27 -05:00
|
|
|
<?php else: ?>
|
|
|
|
« <?= t('Previous') ?>
|
2014-02-04 21:47:59 -05:00
|
|
|
<?php endif ?>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span class="nav-right">
|
|
|
|
<?php if ($item_nav['next']): ?>
|
2014-03-03 20:39:48 -05:00
|
|
|
<a href="?action=show&menu=<?= $menu ?>&id=<?= $item_nav['next']['id'] ?>" id="next-item" title="<?= Helper\escape($item_nav['next']['title']) ?>"><?= t('Next') ?> »</a>
|
2014-02-04 22:12:27 -05:00
|
|
|
<?php else: ?>
|
|
|
|
<?= t('Next') ?> »
|
2014-02-04 21:47:59 -05:00
|
|
|
<?php endif ?>
|
|
|
|
</span>
|
|
|
|
</nav>
|
|
|
|
<?php endif ?>
|
|
|
|
|
2014-03-16 21:35:57 -04:00
|
|
|
<h1 <?= Helper\isRTL($item['language']) ? 'dir="rtl"' : '' ?>>
|
2013-10-14 22:38:07 -04:00
|
|
|
<a href="<?= $item['url'] ?>" rel="noreferrer" target="_blank" id="original-<?= $item['id'] ?>">
|
2013-06-14 23:12:08 -04:00
|
|
|
<?= Helper\escape($item['title']) ?>
|
|
|
|
</a>
|
2013-02-17 21:48:21 -05:00
|
|
|
</h1>
|
|
|
|
|
2014-02-14 21:21:14 -05:00
|
|
|
<ul class="item-infos">
|
|
|
|
<li>
|
2013-06-14 23:12:08 -04:00
|
|
|
<?php if ($item['bookmark']): ?>
|
2013-10-14 22:38:07 -04:00
|
|
|
<a
|
|
|
|
id="bookmark-<?=$item['id'] ?>"
|
|
|
|
href="?action=bookmark&value=0&id=<?= $item['id'] ?>&source=show&menu=<?= $menu ?>"
|
|
|
|
title="<?= t('remove bookmark') ?>"
|
|
|
|
class="bookmark-icon"
|
|
|
|
data-action="bookmark"
|
|
|
|
data-item-id="<?= $item['id'] ?>"
|
|
|
|
>★</a>
|
2013-06-14 23:12:08 -04:00
|
|
|
<?php else: ?>
|
2013-10-14 22:38:07 -04:00
|
|
|
<a
|
|
|
|
id="bookmark-<?=$item['id'] ?>"
|
|
|
|
href="?action=bookmark&value=1&id=<?= $item['id'] ?>&source=show&menu=<?= $menu ?>"
|
|
|
|
title="<?= t('bookmark') ?>"
|
|
|
|
class="bookmark-icon"
|
|
|
|
data-action="bookmark"
|
|
|
|
data-item-id="<?= $item['id'] ?>"
|
|
|
|
>☆</a>
|
2014-02-14 21:21:14 -05:00
|
|
|
<?php endif ?>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="?action=feed-items&feed_id=<?= $feed['id'] ?>"><?= Helper\escape($feed['title']) ?></a>
|
|
|
|
</li>
|
|
|
|
<li class="hide-mobile">
|
2014-02-25 18:49:38 -05:00
|
|
|
<span title="<?= dt('%e %B %Y %k:%M', $item['updated']) ?>"><?= Helper\relative_time($item['updated']) ?></span>
|
2014-02-14 21:21:14 -05:00
|
|
|
</li>
|
2014-02-17 22:04:49 -05:00
|
|
|
<?php if ($item['enclosure']): ?>
|
|
|
|
<li>
|
|
|
|
<a href="<?= $item['enclosure'] ?>" rel="noreferrer" target="_blank"><?= t('attachment') ?></a>
|
|
|
|
</li>
|
|
|
|
<?php endif ?>
|
2014-02-14 21:21:14 -05:00
|
|
|
<li class="hide-mobile">
|
|
|
|
<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>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2013-02-17 21:48:21 -05:00
|
|
|
|
2014-03-16 21:35:57 -04:00
|
|
|
<div id="item-content" <?= Helper\isRTL($item['language']) ? 'dir="rtl"' : '' ?>>
|
2013-07-28 20:10:07 -04:00
|
|
|
<?= $item['content'] ?>
|
2014-02-17 22:04:49 -05:00
|
|
|
|
|
|
|
<?php if ($item['enclosure']): ?>
|
|
|
|
<?php if (strpos($item['enclosure_type'], 'audio') !== false): ?>
|
|
|
|
<audio controls>
|
|
|
|
<source src="<?= $item['enclosure'] ?>" type="<?= $item['enclosure_type'] ?>">
|
|
|
|
</audio>
|
|
|
|
<?php elseif (strpos($item['enclosure_type'], 'video') !== false): ?>
|
|
|
|
<video controls>
|
|
|
|
<source src="<?= $item['enclosure'] ?>" type="<?= $item['enclosure_type'] ?>">
|
|
|
|
</video>
|
|
|
|
<?php endif ?>
|
|
|
|
<?php endif ?>
|
2013-07-28 20:10:07 -04:00
|
|
|
</div>
|
2013-03-26 21:57:12 -04:00
|
|
|
|
|
|
|
<?php if (isset($item_nav)): ?>
|
2014-02-04 21:47:59 -05:00
|
|
|
<nav class="bottom">
|
2013-03-26 21:57:12 -04:00
|
|
|
<span class="nav-left">
|
|
|
|
<?php if ($item_nav['previous']): ?>
|
2014-03-03 20:39:48 -05:00
|
|
|
<a href="?action=show&menu=<?= $menu ?>&id=<?= $item_nav['previous']['id'] ?>" id="previous-item" title="<?= Helper\escape($item_nav['previous']['title']) ?>">« <?= t('Previous') ?></a>
|
2014-02-04 22:12:27 -05:00
|
|
|
<?php else: ?>
|
|
|
|
« <?= t('Previous') ?>
|
2013-03-26 21:57:12 -04:00
|
|
|
<?php endif ?>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span class="nav-right">
|
|
|
|
<?php if ($item_nav['next']): ?>
|
2014-03-03 20:39:48 -05:00
|
|
|
<a href="?action=show&menu=<?= $menu ?>&id=<?= $item_nav['next']['id'] ?>" id="next-item" title="<?= Helper\escape($item_nav['next']['title']) ?>"><?= t('Next') ?> »</a>
|
2014-02-04 22:12:27 -05:00
|
|
|
<?php else: ?>
|
|
|
|
<?= t('Next') ?> »
|
2013-03-26 21:57:12 -04:00
|
|
|
<?php endif ?>
|
|
|
|
</span>
|
|
|
|
</nav>
|
|
|
|
<?php endif ?>
|
2013-02-17 21:48:21 -05:00
|
|
|
</article>
|
|
|
|
|
2013-06-04 13:38:54 +02:00
|
|
|
<?php endif ?>
|