You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.7 KiB
47 lines
1.7 KiB
12 years ago
|
<div class="aside">
|
||
12 years ago
|
<?php if (isset ($this->cat_aside)) { ?>
|
||
12 years ago
|
<ul class="categories">
|
||
|
<li><a class="btn btn-important" href="<?php echo _url ('configure', 'feed'); ?>">Gestion des abonnements</a></li>
|
||
|
|
||
|
<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; ?>)
|
||
12 years ago
|
</a>
|
||
|
</li>
|
||
12 years ago
|
|
||
12 years ago
|
<?php foreach ($this->cat_aside as $cat) { ?>
|
||
12 years ago
|
<?php $feeds = $cat->feeds (); $catNotRead = $cat->nbNotRead (); ?>
|
||
|
<li>
|
||
|
<a class="btn category<?php echo $this->get == $cat->id () ? ' active' : ''; ?>" href="<?php echo _url ('index', 'index', 'get', 'c_' . $cat->id ()); ?>">
|
||
12 years ago
|
<?php echo $cat->name (); ?>
|
||
12 years ago
|
<span class="notRead"><?php echo $catNotRead ?> non lu<?php echo $catNotRead > 1 ? 's' : ''; ?></span>
|
||
12 years ago
|
</a>
|
||
12 years ago
|
|
||
|
<?php if (!empty ($feeds)) { ?>
|
||
|
<ul class="feeds">
|
||
|
<?php foreach ($feeds as $feed) { ?>
|
||
|
<li>
|
||
|
<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(); ?>
|
||
|
<!--<span>X non lu</span>-->
|
||
|
</a>
|
||
|
</li>
|
||
|
<?php } ?>
|
||
|
</ul>
|
||
|
<?php } ?>
|
||
12 years ago
|
</li>
|
||
12 years ago
|
<?php } ?>
|
||
12 years ago
|
</ul>
|
||
12 years ago
|
<?php } ?>
|
||
12 years ago
|
</div>
|