43 lines
1.4 KiB
PHP
43 lines
1.4 KiB
PHP
<?php if (empty($items)): ?>
|
|
|
|
<p class="alert alert-info"><?= t('No starred items') ?></p>
|
|
|
|
<?php else: ?>
|
|
|
|
<div class="page-header">
|
|
<h2><?= t('Starred') ?></h2>
|
|
</div>
|
|
|
|
<section class="items" id="listing">
|
|
<?php foreach ($items as $item): ?>
|
|
<?php $item_id = Model\encode_item_id($item['id']) ?>
|
|
<article id="item-<?= $item_id ?>" data-item-id="<?= $item_id ?>">
|
|
<h2>
|
|
<a
|
|
href="?action=show_starred_item&id=<?= $item_id ?>"
|
|
id="open-<?= $item_id ?>"
|
|
>
|
|
<?= Helper\escape($item['title']) ?>
|
|
</a>
|
|
</h2>
|
|
<p>
|
|
<?= Helper\get_host_from_url($item['url']) ?> |
|
|
<?= dt('%A %e %B %Y %k:%M', $item['updated']) ?> |
|
|
<a href="?action=mark-starred-item-unstarred&id=<?= $item_id ?>"><?= t('mark as unstarred') ?></a> |
|
|
<a href="?action=mark-starred-item-removed&id=<?= $item_id ?>"><?= t('remove') ?></a> |
|
|
<a
|
|
href="<?= $item['url'] ?>"
|
|
id="original-<?= $item_id ?>"
|
|
rel="noreferrer"
|
|
target="_blank"
|
|
data-item-id="<?= $item_id ?>"
|
|
>
|
|
<?= t('original link') ?>
|
|
</a>
|
|
</p>
|
|
</article>
|
|
<?php endforeach ?>
|
|
</section>
|
|
|
|
<?php endif ?>
|