summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorGregor Tätzner <gregor@freenet.de>2012-08-08 14:29:28 +0200
committerGregor Tätzner <gregor@freenet.de>2012-08-08 14:29:28 +0200
commit8dc1c6c6ea83f4ffe5fc0c290e317cd9bacb6d6f (patch)
tree28f3e946e5ba56131d7ed22b39fa6720fc7357d8 /templates
parentdea84256ab39c1d6cd8338c2c8f6247bc817e9f6 (diff)
highlight currently shown feed and load feeds always in ajax style
Diffstat (limited to 'templates')
-rw-r--r--templates/main.php4
-rw-r--r--templates/part.feeds.php3
-rw-r--r--templates/part.listfeed.php4
3 files changed, 6 insertions, 5 deletions
diff --git a/templates/main.php b/templates/main.php
index 21a05dec1..fc74193f0 100644
--- a/templates/main.php
+++ b/templates/main.php
@@ -32,9 +32,9 @@
echo $this->inc("part.nofeeds");
}
?>
-
+
<div id="appsettings" class="popup bottomleft hidden"></div>
-
+
</div>
<!-- Dialogs -->
diff --git a/templates/part.feeds.php b/templates/part.feeds.php
index 81712a475..da46de0e1 100644
--- a/templates/part.feeds.php
+++ b/templates/part.feeds.php
@@ -31,5 +31,6 @@
echo '</ul></div></li></ul>';
}
- print_folder($_['allfeeds']);
+ $allfeeds = isset($_['allfeeds']) ? $_['allfeeds'] : '';
+ print_folder($allfeeds);
?> \ No newline at end of file
diff --git a/templates/part.listfeed.php b/templates/part.listfeed.php
index 6aabe5d3c..070a32dd9 100644
--- a/templates/part.listfeed.php
+++ b/templates/part.listfeed.php
@@ -9,8 +9,8 @@ if ($favicon == null) {
$favicon = OCP\Util::imagePath('news', 'rss.svg');
}
-echo '<li class="feeds_list" data-id="' . $child->getId() . '">';
-echo '<a href="' . OCP\Util::linkTo('news', 'index.php'). '?feedid=' . $child->getId() . '" style="background: url(' . $favicon . ') left center no-repeat; background-size:16px 16px;">' . $child->getTitle() .'</a>';
+echo '<li class="feed" data-id="' . $child->getId() . '">';
+echo '<a href="#" style="background: url(' . $favicon . ') left center no-repeat; background-size:16px 16px;">' . $child->getTitle() .'</a>';
if ($unreadItems > 0) {
echo '<span id="unreaditemcounter" class="nonzero">' . $unreadItems . '</span>';
}