diff options
| author | 2013-03-13 19:09:29 +0100 | |
|---|---|---|
| committer | 2013-03-13 19:09:29 +0100 | |
| commit | 8c72acbacb8fd4da39d505e8ac52e7e0cceed418 (patch) | |
| tree | 85f1d8445a29e9d374fa1b399ed843b779f01fdd /app/layout/aside_flux.phtml | |
| parent | c62ec2a14428b528e20896d4e62fa08891e1399c (diff) | |
Suppression code HTML inutile + amélioration CSS + restructuration du layout + correction bug mise à jour d'articles lorsqu'on visualise une catégorie
Diffstat (limited to 'app/layout/aside_flux.phtml')
| -rw-r--r-- | app/layout/aside_flux.phtml | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/app/layout/aside_flux.phtml b/app/layout/aside_flux.phtml new file mode 100644 index 000000000..f1f14cfc0 --- /dev/null +++ b/app/layout/aside_flux.phtml @@ -0,0 +1,46 @@ +<div class="aside"> + <?php if (isset ($this->cat_aside)) { ?> + <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; ?>) + </a> + </li> + + <?php foreach ($this->cat_aside as $cat) { ?> + <?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 ()); ?>"> + <?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> + <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 } ?> + </li> + <?php } ?> + </ul> + <?php } ?> +</div> |
