2013-10-15 04:38:07 +02:00
< article
id = " item-<?= $item['id'] ?> "
2014-07-26 13:20:51 +02:00
class = " feed-<?= $item['feed_id'] ?> "
2013-10-15 04:38:07 +02:00
data - item - id = " <?= $item['id'] ?> "
data - item - status = " <?= $item['status'] ?> "
data - item - bookmark = " <?= $item['bookmark'] ?> "
< ? = $hide ? 'data-hide="true"' : '' ?>
>
2016-08-25 03:17:58 +02:00
< h2 < ? = Miniflux\Helper\is_rtl ( $item ) ? 'dir="rtl"' : 'dir="ltr"' ?> >
2016-03-21 00:00:11 +01:00
< span class = " item-icons " >
2016-08-04 22:38:28 +02:00
< a
2016-08-04 22:06:02 +02:00
class = " bookmark-icon "
2016-08-05 20:21:40 +02:00
href = " ?action=bookmark&value=<?= (int)! $item['bookmark'] ?>&id=<?= $item['id'] ?>&offset=<?= $offset ?>&redirect=<?= $menu ?>&feed_id=<?= $item['feed_id'] ?> "
2016-08-04 22:06:02 +02:00
title = " <?= ( $item['bookmark'] ) ? t('remove bookmark') : t('bookmark') ?> "
data - action = " bookmark "
data - reverse - title = " <?= ( $item['bookmark'] ) ? t('bookmark') : t('remove bookmark') ?> "
2016-08-04 22:38:28 +02:00
></ a >
< a
2016-08-04 22:06:02 +02:00
class = " read-icon "
2016-08-04 22:38:28 +02:00
href = " ?action=<?= ( $item['status'] === 'unread') ? 'mark-item-read' : 'mark-item-unread' ?>&id=<?= $item['id'] ?>&offset=<?= $offset ?>&redirect=<?= $menu ?>&feed_id=<?= $item['feed_id'] ?> "
2016-08-04 22:06:02 +02:00
title = " <?= ( $item['status'] === 'unread') ? t('mark as read') : t('mark as unread') ?> "
data - action = " <?= ( $item['status'] === 'unread') ? 'mark-read' : 'mark-unread' ?> "
data - reverse - title = " <?= ( $item['status'] === 'unread') ? t('mark as unread') : t('mark as read') ?> "
2016-08-04 22:38:28 +02:00
></ a >
2016-03-21 00:00:11 +01:00
</ span >
< span class = " item-title " >
2016-08-25 03:17:58 +02:00
< ? = Miniflux\Helper\favicon ( $favicons , $item [ 'feed_id' ]) ?>
2016-02-27 20:21:18 +01:00
< ? php if ( $display_mode === 'full' || $item_title_link == 'original' ) : ?>
2015-12-09 20:23:12 +01:00
< a class = " original " rel = " noreferrer " target = " _blank "
href = " <?= $item['url'] ?> "
< ? = ( $original_marks_read ) ? 'data-action="mark-read"' : '' ?>
2016-08-25 03:17:58 +02:00
title = " <?= Miniflux \ Helper \ escape( $item['title'] ) ?> "
>< ? = Miniflux\Helper\escape ( $item [ 'title' ]) ?> </a>
2015-12-09 20:23:12 +01:00
< ? php else : ?>
< a
href = " ?action=show&menu=<?= $menu ?><?= isset( $group_id ) ? '&group_id='. $group_id : '' ?>&id=<?= $item['id'] ?> "
class = " show "
2016-08-25 03:17:58 +02:00
title = " <?= Miniflux \ Helper \ escape( $item['title'] ) ?> "
>< ? = Miniflux\Helper\escape ( $item [ 'title' ]) ?> </a>
2015-12-09 20:23:12 +01:00
< ? php endif ?>
2016-03-21 00:00:11 +01:00
</ span >
2013-10-15 04:38:07 +02:00
</ h2 >
2014-02-15 03:21:14 +01:00
< ul class = " item-menu " >
2015-12-09 20:24:07 +01:00
< ? php if ( $menu !== 'feed-items' ) : ?>
2014-02-15 03:21:14 +01:00
< li >
< ? php if ( ! isset ( $item [ 'feed_title' ])) : ?>
2016-08-25 03:17:58 +02:00
< ? = Miniflux\Helper\get_host_from_url ( $item [ 'url' ]) ?>
2014-02-15 03:21:14 +01:00
< ? php else : ?>
2016-08-25 03:17:58 +02:00
< a href = " ?action=feed-items&feed_id=<?= $item['feed_id'] ?> " title = " <?= t('Show only this subscription') ?> " >< ? = Miniflux\Helper\escape ( $item [ 'feed_title' ]) ?> </a>
2014-02-15 03:21:14 +01:00
< ? php endif ?>
</ li >
2015-12-09 20:24:07 +01:00
< ? php endif ?>
2015-12-09 20:25:13 +01:00
< ? php if ( ! empty ( $item [ 'author' ])) : ?>
< li >
2016-08-25 03:17:58 +02:00
< ? = Miniflux\Helper\escape ( $item [ 'author' ]) ?>
2015-12-09 20:25:13 +01:00
</ li >
< ? php endif ?>
2014-02-15 03:21:14 +01:00
< li class = " hide-mobile " >
2016-08-25 03:17:58 +02:00
< span title = " <?= dt('%e %B %Y %k:%M', $item['updated'] ) ?> " >< ? = Miniflux\Helper\relative_time ( $item [ 'updated' ]) ?> </span>
2014-02-15 03:21:14 +01:00
</ li >
2016-02-27 20:21:18 +01:00
< ? php if ( $display_mode === 'full' || $item_title_link == 'original' ) : ?>
2015-12-09 20:23:12 +01:00
< li >
< a
href = " ?action=show&menu=<?= $menu ?><?= isset( $group_id ) ? '&group_id='. $group_id : '' ?>&id=<?= $item['id'] ?> "
class = " show "
>< ? = t ( 'view' ) ?> </a>
</ li >
< ? php else : ?>
< li class = " hide-mobile " >
< a href = " <?= $item['url'] ?> " class = " original " rel = " noreferrer " target = " _blank " < ? = ( $original_marks_read ) ? 'data-action="mark-read"' : '' ?> ><?= t('original link') ?></a>
</ li >
< ? php endif ?>
2014-02-18 04:04:49 +01:00
< ? php if ( $item [ 'enclosure' ]) : ?>
< li >
2015-02-08 17:22:48 +01:00
< ? php if ( strpos ( $item [ 'enclosure_type' ], 'video/' ) === 0 ) : ?>
< a href = " <?= $item['enclosure'] ?> " class = " video-enclosure " rel = " noreferrer " target = " _blank " >< ? = t ( 'attachment' ) ?> </a>
< ? php elseif ( strpos ( $item [ 'enclosure_type' ], 'audio/' ) === 0 ) : ?>
< a href = " <?= $item['enclosure'] ?> " class = " audio-enclosure " rel = " noreferrer " target = " _blank " >< ? = t ( 'attachment' ) ?> </a>
< ? php elseif ( strpos ( $item [ 'enclosure_type' ], 'image/' ) === 0 ) : ?>
< a href = " <?= $item['enclosure'] ?> " class = " image-enclosure " rel = " noreferrer " target = " _blank " >< ? = t ( 'attachment' ) ?> </a>
< ? php else : ?>
< a href = " <?= $item['enclosure'] ?> " class = " enclosure " rel = " noreferrer " target = " _blank " >< ? = t ( 'attachment' ) ?> </a>
< ? php endif ?>
2014-02-17 19:41:22 +01:00
</ li >
< ? php endif ?>
2016-08-25 03:17:58 +02:00
< ? = Miniflux\Template\load ( 'bookmark_links' , array ( 'item' => $item , 'menu' => $menu , 'offset' => $offset )) ?>
< ? = Miniflux\Template\load ( 'status_links' , array ( 'item' => $item , 'menu' => $menu , 'offset' => $offset )) ?>
2014-02-15 03:21:14 +01:00
</ ul >
2015-12-09 20:26:21 +01:00
< ? php if ( $display_mode === 'full' ) : ?>
2016-08-25 03:17:58 +02:00
< div class = " preview-full-content " < ? = Miniflux\Helper\is_rtl ( $item ) ? 'dir="rtl"' : 'dir="ltr"' ?> ><?= $item['content'] ?></div>
2015-12-09 20:26:21 +01:00
< ? php else : ?>
2016-08-25 03:17:58 +02:00
< p class = " preview " < ? = Miniflux\Helper\is_rtl ( $item ) ? 'dir="rtl"' : 'dir="ltr"' ?> ><?= Miniflux\Helper\escape(Miniflux\Helper\summary(strip_tags($item['content']), 50, 300)) ?></p>
2015-12-09 20:26:21 +01:00
< ? php endif ?>
2014-02-25 21:11:29 +01:00
</ article >