summaryrefslogtreecommitdiffstats
path: root/templates/part.feeds.php
diff options
context:
space:
mode:
authorAlessandro Cosentino <cosenal@gmail.com>2012-07-17 17:37:54 -0400
committerAlessandro Cosentino <cosenal@gmail.com>2012-07-17 17:37:54 -0400
commitc378e972a12ba41d252d74e509f88ea7bec2544d (patch)
tree22e05c91cc6409d803cdce5598fd227d76a8b904 /templates/part.feeds.php
parent4c8de80f564675f30687d21373ef3674a77a7926 (diff)
adds favicon; needs css polishing
Diffstat (limited to 'templates/part.feeds.php')
-rw-r--r--templates/part.feeds.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/part.feeds.php b/templates/part.feeds.php
index 5874f1bc1..d8e4a6b01 100644
--- a/templates/part.feeds.php
+++ b/templates/part.feeds.php
@@ -14,7 +14,8 @@
print_folder($child, $depth+1);
}
elseif ($child instanceOf OC_News_Feed) { //onhover $(element).attr('id', 'newID');
- echo '<li class="feeds_list" data-id="' . $child->getId() . '"><a href="' . OCP\Util::linkTo('news', 'index.php'). '?feedid=' . $child->getId() . '">' . $child->getTitle() .'</a>';
+ $favicon = $child->getFavicon();
+ echo '<li style="background: url(' . $favicon . ') left center no-repeat; background-size:16px 16px;" class="feeds_list" data-id="' . $child->getId() . '"><a href="' . OCP\Util::linkTo('news', 'index.php'). '?feedid=' . $child->getId() . '">' . $child->getTitle() .'</a>';
countUnreadItems($child->getId());
echo '<button class="svg action" id="feeds_delete" onClick="(News.Feed.delete(' . $child->getId(). '))" title="' . $l->t('Delete feed') . '"></button>';
echo '<button class="svg action" id="feeds_edit" title="' . $l->t('Edit feed') . '"></button>';