aboutsummaryrefslogtreecommitdiff
path: root/app/layout/aside_flux.phtml
blob: f6d8b3887095d61bdddd8ca0c198710ffc8c1843 (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
<div class="aside aside_flux">
	<ul class="categories">
		<?php if (!login_is_conf ($this->conf) || is_logged ()) { ?>
		<li><a class="btn btn-important" href="<?php echo _url ('configure', 'feed'); ?>">Gestion des abonnements</a></li>
		<?php } ?>

		<li class="all">
			<a class="btn category<?php echo !$this->get ? ' active' : ''; ?>" href="<?php echo _url ('index', 'index'); ?>">
				<i class="icon all"></i>
				Tous (<?php echo $this->nb_total; ?>)
				<span class="notRead"><?php echo $this->nb_not_read; ?> non lu<?php echo $this->nb_not_read > 1 ? 's' : ''; ?></span>
			</a>
		</li>

		<li class="favorites">
			<a class="btn category<?php echo $this->get == 'favoris' ? ' active' : ''; ?>" href="<?php echo _url ('index', 'index', 'get', 'favoris'); ?>">
				<i class="icon bookmark"></i>
				Favoris (<?php echo $this->nb_favorites; ?>)
			</a>
		</li>

		<?php foreach ($this->cat_aside as $cat) { ?>
		<?php $feeds = $cat->feeds (); $catNotRead = $cat->nbNotRead (); ?>
		<?php if (!empty ($feeds)) { ?>
		<li>
			<a class="btn category<?php echo $this->get == $cat->id () ? ' active' : ''; ?>" href="<?php echo _url ('index', 'index', 'get', 'c_' . $cat->id ()); ?>">
				<?php echo $cat->name (); ?>
				<span class="notRead"><?php echo $catNotRead ?> non lu<?php echo $catNotRead > 1 ? 's' : ''; ?></span>
			</a>

			<?php if (!empty ($feeds)) { ?>
			<ul class="feeds">
				<?php foreach ($feeds as $feed) { ?>
				<li>
					<a class="website" href="<?php echo _url ('configure', 'feed', 'id', $feed->id ()); ?>"><i class="icon configure"></i></a>
					<img src="http://www.google.com/s2/favicons?domain=<?php echo get_domain ($feed->website ()); ?>" alt="" />
					<a class="feed" href="<?php echo _url ('index', 'index', 'get', 'f_' . $feed->id ()); ?>">
						<?php echo $feed->name(); ?>
					</a>
				</li>
				<?php } ?>
			</ul>
			<?php } ?>
		</li>
		<?php } } ?>
	</ul>
</div>