aboutsummaryrefslogtreecommitdiff
path: root/app/layout
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-03-16 19:56:48 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-03-16 19:56:48 +0100
commitc164e0b456a0642a7ef8e2c044b0f591b25c9d64 (patch)
treec803b55208ce5acd14de03dcd53cad929a71932a /app/layout
parentcfcf0f26aca7287cf8635094e58a33c4963c8d39 (diff)
Ajout système liste déroulante pour les flux sous les catégories + amélioration design des boutons stick + modif système d'icones + petites corrections divers -> Fix bug #23
Diffstat (limited to 'app/layout')
-rw-r--r--app/layout/aside_feed.phtml2
-rw-r--r--app/layout/aside_flux.phtml56
-rw-r--r--app/layout/header.phtml10
-rw-r--r--app/layout/layout.phtml2
4 files changed, 40 insertions, 30 deletions
diff --git a/app/layout/aside_feed.phtml b/app/layout/aside_feed.phtml
index df6a1462b..1bcb108a4 100644
--- a/app/layout/aside_feed.phtml
+++ b/app/layout/aside_feed.phtml
@@ -4,7 +4,7 @@
<li class="nav-form"><form id="add_rss" method="post" action="<?php echo Url::display (array ('c' => 'feed', 'a' => 'add')); ?>">
<div class="stick">
<input type="url" name="url_rss" placeholder="Ajouter un flux RSS" />
- <button class="btn" type="submit"><i class="icon add"></i></button>
+ <button class="btn" type="submit"><i class="icon i_add"></i></button>
</div>
</form></li>
diff --git a/app/layout/aside_flux.phtml b/app/layout/aside_flux.phtml
index 2faa7b464..0a68a335a 100644
--- a/app/layout/aside_flux.phtml
+++ b/app/layout/aside_flux.phtml
@@ -4,43 +4,53 @@
<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; ?>)
- <?php if ($this->nb_not_read > 0) { ?>
- <span class="notRead"><?php echo $this->nb_not_read; ?> non lu<?php echo $this->nb_not_read > 1 ? 's' : ''; ?></span>
- <?php } ?>
- </a>
+ <li>
+ <div class="all">
+ <a class="btn<?php echo !$this->get_c ? ' active' : ''; ?>" href="<?php echo _url ('index', 'index'); ?>">
+ <i class="icon i_all"></i>
+ Tous (<?php echo $this->nb_total; ?>)
+ <?php if ($this->nb_not_read > 0) { ?>
+ <span class="notRead"><?php echo $this->nb_not_read; ?> non lu<?php echo $this->nb_not_read > 1 ? 's' : ''; ?></span>
+ <?php } ?>
+ </a>
+ </div>
</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>
+ <div class="favorites">
+ <a class="btn<?php echo $this->get_c == 'favoris' ? ' active' : ''; ?>" href="<?php echo _url ('index', 'index', 'get', 'favoris'); ?>">
+ <i class="icon i_bookmark"></i>
+ Favoris (<?php echo $this->nb_favorites; ?>)
+ </a>
+ </div>
</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 (); ?>
- <?php if ($catNotRead > 0) { ?>
- <span class="notRead"><?php echo $catNotRead ?> non lu<?php echo $catNotRead > 1 ? 's' : ''; ?></span>
- <?php } ?>
- </a>
+ <?php $c_active = false; if ($this->get_c == $cat->id ()) { $c_active = true; } ?>
+ <div class="category<?php echo $c_active ? ' active' : ''; ?>">
+ <a class="btn<?php echo $c_active ? ' active' : ''; ?>" href="<?php echo _url ('index', 'index', 'get', 'c_' . $cat->id ()); ?>">
+ <?php echo $cat->name (); ?>
+ <?php if ($catNotRead > 0) { ?>
+ <span class="notRead"><?php echo $catNotRead ?> non lu<?php echo $catNotRead > 1 ? 's' : ''; ?></span>
+ <?php } ?>
+ </a>
+ </div>
<?php if (!empty ($feeds)) { ?>
- <ul class="feeds">
+ <ul class="feeds<?php echo $c_active ? ' active' : ''; ?>">
<?php foreach ($feeds as $feed) { ?>
- <li class="item">
+ <?php $f_active = false; if ($this->get_f == $feed->id ()) { $f_active = true; } ?>
+ <li class="item<?php echo $f_active ? ' active' : ''; ?>">
<div class="dropdown">
<div id="dropdown-<?php echo $feed->id(); ?>" class="dropdown-target"></div>
- <a class="dropdown-toggle" href="#dropdown-<?php echo $feed->id(); ?>"><i class="icon configure"></i></a>
+ <a class="dropdown-toggle" href="#dropdown-<?php echo $feed->id(); ?>"><i class="icon i_configure"></i></a>
<ul class="dropdown-menu">
- <li class="dropdown-close"><a href="#close"><i class="icon close"></i></a></li>
+ <li class="dropdown-close"><a href="#close"><i class="icon i_close"></i></a></li>
+ <li class="item"><a href="<?php echo _url ('index', 'index', 'get', 'f_' . $feed->id ()); ?>">Filtrer</a></li>
+ <li class="separator"></li>
<li class="item"><a href="<?php echo _url ('configure', 'feed', 'id', $feed->id ()); ?>">Gestion</a></li>
<li class="item"><a href="<?php echo $feed->website (); ?>">Voir le site</a></li>
</ul>
diff --git a/app/layout/header.phtml b/app/layout/header.phtml
index 1cc11c3f9..04dbd91ff 100644
--- a/app/layout/header.phtml
+++ b/app/layout/header.phtml
@@ -1,9 +1,9 @@
<?php if (login_is_conf ($this->conf)) { ?>
<ul class="nav nav-head">
<?php if (!is_logged ()) { ?>
- <li class="item"><i class="icon login"></i> <a id="signin" href="#">Connexion</a></li>
+ <li class="item"><i class="icon i_login"></i> <a id="signin" href="#">Connexion</a></li>
<?php } else { ?>
- <li class="item"><i class="icon logout"></i> <a id="signout" href="#">Déconnexion</a></li>
+ <li class="item"><i class="icon i_logout"></i> <a id="signout" href="#">Déconnexion</a></li>
<?php } ?>
</ul>
<?php } ?>
@@ -18,7 +18,7 @@
<div class="stick">
<?php $s = Request::param ('search', ''); ?>
<input type="text" name="search" id="search" value="<?php echo $s; ?>" placeholder="Rechercher (non fonctionnel)" />
- <button class="btn" type="submit"><i class="icon search"></i></button>
+ <button class="btn" type="submit"><i class="icon i_search"></i></button>
</div>
</form>
</div>
@@ -28,9 +28,9 @@
<div class="dropdown">
<div id="dropdown-configure" class="dropdown-target"></div>
- <a class="btn dropdown-toggle" href="#dropdown-configure"><i class="icon configure"></i></a>
+ <a class="btn dropdown-toggle" href="#dropdown-configure"><i class="icon i_configure"></i></a>
<ul class="dropdown-menu">
- <li class="dropdown-close"><a href="#close"><i class="icon close"></i></a></li>
+ <li class="dropdown-close"><a href="#close"><i class="icon i_close"></i></a></li>
<li class="dropdown-header">Configuration</li>
<li class="item"><a href="<?php echo _url ('configure', 'display'); ?>">Général et affichage</a></li>
<li class="item"><a href="<?php echo _url ('configure', 'categorize'); ?>">Catégories</a></li>
diff --git a/app/layout/layout.phtml b/app/layout/layout.phtml
index 5cc128fc8..a515217d6 100644
--- a/app/layout/layout.phtml
+++ b/app/layout/layout.phtml
@@ -19,7 +19,7 @@
<?php if (isset ($this->notification)) { ?>
<div class="notification <?php echo $this->notification['type']; ?>">
<?php echo $this->notification['content']; ?>
- <a class="close" href=""><i class="icon close"></i></a>
+ <a class="close" href=""><i class="icon i_close"></i></a>
</div>
<?php } ?>
</body>