summaryrefslogtreecommitdiffstats
path: root/templates/main.php
blob: cd2cd88210b01cd54a4e2126ca2fdbca51d9e06d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<div class="content_wrapper" ng-app="News">
	<div id="leftcontent_news" class="main_column">
		<div id="feed_wrapper">
			<div id="feeds" ng-controller="FeedController">
				<ul data-id="0" droppable>
					<li ng-class="{
							active: isFeedActive(feedType.Subscriptions, 0),
							all_read: getUnreadCount(feedType.Subscriptions, 0)==0
						}" 
					    class="subscriptions"
					    ng-show="isShown(feedType.Subscriptions, 0)">
						<a class="title" 
						   href="#" 
						   ng-click="loadFeed(feedType.Subscriptions, 0)">
						   <?php p($l->t('New articles'))?>
						</a>
						<span class="unread_items_counter">
							{{ getUnreadCount(feedType.Subscriptions, 0) }}
						</span>
						<span class="buttons">
					    	<button class="svg action feeds_markread" 
					    			ng-click="markAllRead(feedType.Subscriptions, 0)"
					    	        title="<?php p($l->t('Mark all read')) ?>"></button>
					    </span>
					</li>
					<li ng-class="{
							active: isFeedActive(feedType.Starred, 0),
							all_read: getUnreadCount(feedType.Starred, 0)==0
						}" 
					    class="starred"
					    ng-show="isShown(feedType.Starred, 0)">
						<a class="title" 
						   href="#"
						   ng-click="loadFeed(feedType.Starred, 0)">
						   <?php p($l->t('Starred')) ?>
						</a>
						<span class="unread_items_counter">
							{{ getUnreadCount(feedType.Starred, 0) }}
						</span>
					</li>

					<?php print_unescaped($this->inc('part.listfolder')) ?>
					<?php print_unescaped($this->inc('part.listfeed', array('folderId' => '0'))) ?>

				</ul>
			</div>
		</div>

		<?php print_unescaped($this->inc('part.settings')) ?>

	</div>

	<div id="rightcontent_news" class="main_column">
		<div id="feed_items" 
				ng-class="{loading: loading.loading>0}"
				ng-controller="ItemController" 
				when-scrolled="scroll()"
				feed-navigation>
			<?php
				print_unescaped($this->inc("part.items"));
			?>
		</div>
	</div>
</div>