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"' : '' ?>
>
2015-04-11 02:57:44 +02:00
< h2 < ? = Helper\is_rtl ( $item ) ? 'dir="rtl"' : 'dir="ltr"' ?> >
2014-09-16 17:02:16 +02:00
< span class = " bookmark-icon " ></ span >
< span class = " read-icon " ></ span >
2014-12-24 23:54:27 +01:00
< ? = Helper\favicon ( $favicons , $item [ 'feed_id' ]) ?>
2013-10-15 04:38:07 +02:00
< a
href = " ?action=show&menu=<?= $menu ?>&id=<?= $item['id'] ?> "
2014-09-16 20:42:15 +02:00
class = " show "
2014-09-16 17:07:53 +02:00
>< ? = Helper\escape ( $item [ 'title' ]) ?> </a>
2013-10-15 04:38:07 +02:00
</ h2 >
2014-12-24 23:54:27 +01:00
< ? php if ( $display_mode === 'full' ) : ?>
2015-04-11 02:57:44 +02:00
< div class = " preview " < ? = Helper\is_rtl ( $item ) ? 'dir="rtl"' : 'dir="ltr"' ?> >
2014-05-29 16:57:23 +02:00
< ? = $item [ 'content' ] ?>
</ div >
< ? php else : ?>
2015-04-11 02:57:44 +02:00
< p class = " preview " < ? = Helper\is_rtl ( $item ) ? 'dir="rtl"' : 'dir="ltr"' ?> >
2014-05-29 16:57:23 +02:00
< ? = Helper\escape ( Helper\summary ( strip_tags ( $item [ 'content' ]), 50 , 300 )) ?>
</ p >
< ? php endif ?>
2014-02-15 03:21:14 +01:00
< ul class = " item-menu " >
< li >
< ? php if ( ! isset ( $item [ 'feed_title' ])) : ?>
< ? = Helper\get_host_from_url ( $item [ 'url' ]) ?>
< ? php else : ?>
< a href = " ?action=feed-items&feed_id=<?= $item['feed_id'] ?> " title = " <?= t('Show only this subscription') ?> " >< ? = Helper\escape ( $item [ 'feed_title' ]) ?> </a>
< ? php endif ?>
</ li >
< 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 >
< li class = " hide-mobile " >
2015-01-29 23:28:18 +01:00
< a href = " <?= $item['url'] ?> " class = " original " rel = " noreferrer " target = " _blank " < ? = ( $original_marks_read ) ? 'data-action="mark-read"' : '' ?> ><?= t('original link') ?></a>
2014-02-15 03:21:14 +01:00
</ li >
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 ?>
2014-03-17 02:56:43 +01:00
< ? = \PicoFarad\Template\load ( 'bookmark_links' , array ( 'item' => $item , 'menu' => $menu , 'offset' => $offset , 'source' => '' )) ?>
< ? = \PicoFarad\Template\load ( 'status_links' , array ( 'item' => $item , 'redirect' => $menu , 'offset' => $offset )) ?>
2014-02-15 03:21:14 +01:00
</ ul >
2014-02-25 21:11:29 +01:00
</ article >