2013-02-18 03:48:21 +01:00
|
|
|
<?php if (empty($item)): ?>
|
2015-01-17 23:15:47 +01:00
|
|
|
<p class="alert alert-error"><?= 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'] ?>"
|
|
|
|
>
|
2014-02-05 03:47:59 +01:00
|
|
|
|
|
|
|
<?php if (isset($item_nav)): ?>
|
2014-11-08 18:55:30 +01:00
|
|
|
<nav class="top">
|
2014-02-05 03:47:59 +01:00
|
|
|
<span class="nav-left">
|
|
|
|
<?php if ($item_nav['previous']): ?>
|
2015-11-19 16:31:31 +01:00
|
|
|
<a href="?action=show&menu=<?= $menu ?><?= $group_id ? '&group_id='.$group_id : '' ?>&id=<?= $item_nav['previous']['id'] ?>" id="previous-item" title="<?= Helper\escape($item_nav['previous']['title']) ?>"><?= t('Previous') ?></a>
|
2014-02-05 04:12:27 +01:00
|
|
|
<?php else: ?>
|
2015-03-20 23:53:15 +01:00
|
|
|
<?= t('Previous') ?>
|
2014-02-05 03:47:59 +01:00
|
|
|
<?php endif ?>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span class="nav-right">
|
|
|
|
<?php if ($item_nav['next']): ?>
|
2015-11-19 16:31:31 +01:00
|
|
|
<a href="?action=show&menu=<?= $menu ?><?= $group_id ? '&group_id='.$group_id : '' ?>&id=<?= $item_nav['next']['id'] ?>" id="next-item" title="<?= Helper\escape($item_nav['next']['title']) ?>"><?= t('Next') ?></a>
|
2014-02-05 04:12:27 +01:00
|
|
|
<?php else: ?>
|
2015-03-20 23:53:15 +01:00
|
|
|
<?= t('Next') ?>
|
2014-02-05 03:47:59 +01:00
|
|
|
<?php endif ?>
|
|
|
|
</span>
|
|
|
|
</nav>
|
|
|
|
<?php endif ?>
|
|
|
|
|
2015-04-11 02:57:44 +02:00
|
|
|
<h1 <?= Helper\is_rtl($item + array('rtl' => $feed['rtl'])) ? 'dir="rtl"' : 'dir="ltr"' ?>>
|
2014-09-16 20:42:15 +02:00
|
|
|
<a href="<?= $item['url'] ?>" rel="noreferrer" target="_blank" class="original"><?= Helper\escape($item['title']) ?></a>
|
2013-02-18 03:48:21 +01:00
|
|
|
</h1>
|
|
|
|
|
2014-02-15 03:21:14 +01:00
|
|
|
<ul class="item-infos">
|
|
|
|
<li>
|
2013-10-15 04:38:07 +02:00
|
|
|
<a
|
2014-12-11 03:12:42 +01:00
|
|
|
class="bookmark-icon icon"
|
2014-12-02 17:08:52 +01:00
|
|
|
href="?action=bookmark&value=<?= (int)!$item['bookmark'] ?>&id=<?= $item['id'] ?>&source=show&menu=<?= $menu ?>"
|
|
|
|
title="<?= ($item['bookmark']) ? t('remove bookmark') : t('bookmark') ?>"
|
|
|
|
data-reverse-title="<?= ($item['bookmark']) ? t('bookmark') :t('remove bookmark') ?>"
|
2013-10-15 04:38:07 +02:00
|
|
|
data-action="bookmark"
|
2014-09-16 17:02:16 +02:00
|
|
|
></a>
|
2014-02-15 03:21:14 +01:00
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="?action=feed-items&feed_id=<?= $feed['id'] ?>"><?= Helper\escape($feed['title']) ?></a>
|
|
|
|
</li>
|
2015-12-09 20:25:13 +01:00
|
|
|
<?php if (!empty($item['author'])): ?>
|
|
|
|
<li>
|
|
|
|
<?= Helper\escape($item['author']) ?>
|
|
|
|
</li>
|
|
|
|
<?php endif ?>
|
2014-02-15 03:21:14 +01:00
|
|
|
<li class="hide-mobile">
|
2014-02-26 00:49:38 +01:00
|
|
|
<span title="<?= dt('%e %B %Y %k:%M', $item['updated']) ?>"><?= Helper\relative_time($item['updated']) ?></span>
|
2014-02-15 03:21:14 +01:00
|
|
|
</li>
|
2014-02-18 04:04:49 +01:00
|
|
|
<?php if ($item['enclosure']): ?>
|
|
|
|
<li>
|
|
|
|
<a href="<?= $item['enclosure'] ?>" rel="noreferrer" target="_blank"><?= t('attachment') ?></a>
|
|
|
|
</li>
|
|
|
|
<?php endif ?>
|
2014-02-15 03:21:14 +01:00
|
|
|
<li class="hide-mobile">
|
|
|
|
<span id="download-item"
|
|
|
|
data-failure-message="<?= t('unable to fetch content') ?>"
|
|
|
|
data-before-message="<?= t('in progress...') ?>"
|
|
|
|
data-after-message="<?= t('content downloaded') ?>">
|
2014-09-16 17:07:53 +02:00
|
|
|
<a href="#" data-action="download-item"><?= t('download content') ?></a>
|
2014-02-15 03:21:14 +01:00
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2013-02-18 03:48:21 +01:00
|
|
|
|
2015-04-11 02:57:44 +02:00
|
|
|
<div id="item-content" <?= Helper\is_rtl($item + array('rtl' => $feed['rtl'])) ? 'dir="rtl"' : 'dir="ltr"' ?>>
|
2014-02-18 04:04:49 +01:00
|
|
|
|
|
|
|
<?php if ($item['enclosure']): ?>
|
|
|
|
<?php if (strpos($item['enclosure_type'], 'audio') !== false): ?>
|
2015-01-20 01:43:15 +01:00
|
|
|
<div id="item-content-enclosure">
|
2014-02-18 04:04:49 +01:00
|
|
|
<audio controls>
|
|
|
|
<source src="<?= $item['enclosure'] ?>" type="<?= $item['enclosure_type'] ?>">
|
|
|
|
</audio>
|
2015-01-20 01:43:15 +01:00
|
|
|
</div>
|
2014-02-18 04:04:49 +01:00
|
|
|
<?php elseif (strpos($item['enclosure_type'], 'video') !== false): ?>
|
2015-01-20 01:43:15 +01:00
|
|
|
<div id="item-content-enclosure">
|
2014-02-18 04:04:49 +01:00
|
|
|
<video controls>
|
|
|
|
<source src="<?= $item['enclosure'] ?>" type="<?= $item['enclosure_type'] ?>">
|
|
|
|
</video>
|
2015-01-20 01:43:15 +01:00
|
|
|
</div>
|
2015-01-09 14:43:45 +01:00
|
|
|
<?php elseif (strpos($item['enclosure_type'], 'image') !== false && $item['content'] === ''): ?>
|
2015-01-20 01:43:15 +01:00
|
|
|
<div id="item-content-enclosure">
|
2015-02-01 22:54:57 +01:00
|
|
|
<img src="<?= $item['enclosure'] ?>" alt="enclosure"/>
|
2015-01-20 01:43:15 +01:00
|
|
|
</div>
|
2014-02-18 04:04:49 +01:00
|
|
|
<?php endif ?>
|
|
|
|
<?php endif ?>
|
2014-05-25 14:47:03 +02:00
|
|
|
|
|
|
|
<?= $item['content'] ?>
|
2013-07-29 02:10:07 +02:00
|
|
|
</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']): ?>
|
2015-03-20 23:53:15 +01: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-05 04:12:27 +01:00
|
|
|
<?php else: ?>
|
2015-03-20 23:53:15 +01:00
|
|
|
<?= t('Previous') ?>
|
2013-03-27 02:57:12 +01:00
|
|
|
<?php endif ?>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span class="nav-right">
|
|
|
|
<?php if ($item_nav['next']): ?>
|
2015-03-20 23:53:15 +01: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-05 04:12:27 +01:00
|
|
|
<?php else: ?>
|
2015-03-20 23:53:15 +01: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 ?>
|