diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2012-09-02 14:34:24 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2012-09-02 14:34:24 +0200 |
commit | a5495046a484fd699717463185de3a9018f96c81 (patch) | |
tree | 5386994187849c70374f06efa188931fe435b4a5 /templates/part.feeds.php | |
parent | 3385de22ef4f5bacad569d6fd0b80c8ab407d397 (diff) |
dont use mock folders, use html delivered from server; deleted unecessary templates and ajax files
Diffstat (limited to 'templates/part.feeds.php')
-rw-r--r-- | templates/part.feeds.php | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/templates/part.feeds.php b/templates/part.feeds.php index b1a28ba32..0ee45ad0c 100644 --- a/templates/part.feeds.php +++ b/templates/part.feeds.php @@ -33,31 +33,23 @@ function print_collection_list($list) { $allfeeds = isset($_['allfeeds']) ? $_['allfeeds'] : ''; $feedId = $_['feedid']; +$feedType = $_['feedtype']; $itemMapper = new OCA\News\ItemMapper(); $starredCount = $itemMapper->countEveryItemByStatus(OCA\News\StatusFlag::IMPORTANT); ?> -<li class="subscriptions <?php if($feedId === -2){ echo "selected_feed"; }; ?>"> +<li class="subscriptions <?php if($feedType == OCA\News\FeedType::SUBSCRIPTIONS){ echo "active"; }; ?>"> <a class="title" href="#" ><?php echo $l->t('New articles'); ?></a> <span class="buttons"> <button class="svg action feeds_markread" title="<?php echo $l->t('Mark all read'); ?>"></button> </span> </li> -<li class="starred <?php if($feedId === -1){ echo "selected_feed"; }; ?>"> +<li class="starred <?php if($feedType == OCA\News\FeedType::STARRED){ echo "active"; }; ?>"> <a class="title" href="#" ><?php echo $l->t('Starred'); ?></a> <span class="unread_items_counter"><?php echo $starredCount ?></span> </li> <?php - // provide mock feed and folder elements for js menu - $mockFolder = new OCP\Template("news", "part.listfolder"); - $mockFolder->assign('mock', true); - $mockFolder->printpage(); - - $mockFolder = new OCP\Template("news", "part.listfeed"); - $mockFolder->assign('mock', true); - $mockFolder->printpage(); - print_collection_list($allfeeds); |