summaryrefslogtreecommitdiffstats
path: root/templates/part.listfeed.php
blob: c8d4686754ada293e2fb679cd6a9d57bfa0a74b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php

$l = new OC_l10n('news');

$feed = isset($_['feed']) ? $_['feed'] : null;
$unreadItemsCount = isset($_['unreadItemsCount']) ? $_['unreadItemsCount'] : null;

$favicon = $feed->getFavicon();
if ($favicon == null) {
    $favicon = OCP\Util::imagePath('core', 'actions/public.svg');
}

echo '<li class="feed" data-id="' . $feed->getId() . '">';
    echo '<a style="background-image: url(' . $favicon . ');" href="#" class="title">' . htmlspecialchars_decode($feed->getTitle()) .'</a>';
	echo '<span class="unread_items_counter">' . $unreadItemsCount . '</span>';
    echo '<span class="buttons">';
        echo '<button class="svg action feeds_delete" title="' . $l->t('Delete feed') . '"></button>';
        echo '<button class="svg action feeds_markread" title="' . $l->t('Mark all read') . '"></button>';
    echo '</span>';
echo '</li>';