2013-10-15 04:38:07 +02:00
< article
id = " item-<?= $item['id'] ?> "
data - item - id = " <?= $item['id'] ?> "
data - item - status = " <?= $item['status'] ?> "
data - item - bookmark = " <?= $item['bookmark'] ?> "
data - item - page = " <?= $menu ?> "
< ? = $hide ? 'data-hide="true"' : '' ?>
>
< h2 >
< ? = $item [ 'bookmark' ] ? '<span id="bookmark-icon-' . $item [ 'id' ] . '">★ </span>' : '' ?>
2014-02-15 03:21:14 +01:00
< ? = $item [ 'status' ] === 'read' ? '<span id="read-icon-' . $item [ 'id' ] . '">✔ </span>' : '' ?>
2013-10-15 04:38:07 +02:00
< a
href = " ?action=show&menu=<?= $menu ?>&id=<?= $item['id'] ?> "
data - item - id = " <?= $item['id'] ?> "
id = " show-<?= $item['id'] ?> "
< ? = $item [ 'status' ] === 'read' ? 'class="read"' : '' ?>
>
< ? = Helper\escape ( $item [ 'title' ]) ?>
</ a >
</ h2 >
< p class = " preview " >
< ? = Helper\escape ( Helper\summary ( strip_tags ( $item [ 'content' ]), 50 , 300 )) ?>
</ p >
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-25 21:11:29 +01:00
< span title = " <?= dt('%e %B %Y %k:%M', $item['updated'] ) ?> " >< ? = Helper\relative_time ( dt ( '%e %B %Y %k:%M' , $item [ 'updated' ])) ?> </span>
2014-02-15 03:21:14 +01:00
</ li >
< li class = " hide-mobile " >
< a href = " <?= $item['url'] ?> " id = " original-<?= $item['id'] ?> " rel = " noreferrer " target = " _blank " data - item - id = " <?= $item['id'] ?> " >< ? = t ( 'original link' ) ?> </a>
</ li >
2014-02-18 04:04:49 +01:00
< ? php if ( $item [ 'enclosure' ]) : ?>
< li >
< a href = " <?= $item['enclosure'] ?> " rel = " noreferrer " target = " _blank " >< ? = t ( 'media' ) ?> </a>
2014-02-17 19:41:22 +01:00
</ li >
< ? php endif ?>
2014-02-15 03:21:14 +01:00
< ? = \PicoTools\Template\load ( 'bookmark_links' , array ( 'item' => $item , 'menu' => $menu , 'offset' => $offset , 'source' => '' )) ?>
2013-10-15 04:38:07 +02:00
< ? = \PicoTools\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 >