From c164e0b456a0642a7ef8e2c044b0f591b25c9d64 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Sat, 16 Mar 2013 19:56:48 +0100 Subject: 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/indexController.php | 7 ++- app/layout/aside_feed.phtml | 2 +- app/layout/aside_flux.phtml | 56 ++++++++++++-------- app/layout/header.phtml | 10 ++-- app/layout/layout.phtml | 2 +- app/views/index/index.phtml | 12 +++-- app/views/javascript/main.phtml | 16 ++++++ public/theme/base.css | 101 +++++++++++++++++++++++------------- 8 files changed, 135 insertions(+), 71 deletions(-) diff --git a/app/controllers/indexController.php b/app/controllers/indexController.php index 434a593e1..18d9d43c3 100755 --- a/app/controllers/indexController.php +++ b/app/controllers/indexController.php @@ -26,6 +26,8 @@ class indexController extends ActionController { } $get = Request::param ('get'); + $this->view->get_c = false; + $this->view->get_f = false; $order = $this->view->conf->sortOrder (); $error = false; @@ -33,6 +35,7 @@ class indexController extends ActionController { // Récupère les flux par catégorie, favoris ou tous if ($get == 'favoris') { $entries = $entryDAO->listFavorites ($mode, $order); + $this->view->get_c = $get; View::prependTitle ('Vos favoris - '); } elseif ($get != false) { $typeGet = $get[0]; @@ -43,6 +46,7 @@ class indexController extends ActionController { $cat = $catDAO->searchById ($get); if ($cat) { + $this->view->get_c = $get; View::prependTitle ($cat->name () . ' - '); } else { $error = true; @@ -52,6 +56,8 @@ class indexController extends ActionController { $feed = $feedDAO->searchById ($get); if ($feed) { + $this->view->get_f = $get; + $this->view->get_c = $feed->category (); View::prependTitle ($feed->name () . ' - '); } else { $error = true; @@ -63,7 +69,6 @@ class indexController extends ActionController { View::prependTitle ('Vos flux RSS - '); } - $this->view->get = $get; $this->view->mode = $mode; // Cas où on ne choisie ni catégorie ni les favoris 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 @@ 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 @@
  • Gestion des abonnements
  • -
  • - - - Tous (nb_total; ?>) - nb_not_read > 0) { ?> - nb_not_read; ?> non lunb_not_read > 1 ? 's' : ''; ?> - - +
  • +
  • -
  • - - - Favoris (nb_favorites; ?>) - +
  • +
  • cat_aside as $cat) { ?> feeds (); $catNotRead = $cat->nbNotRead (); ?>
  • - - name (); ?> - 0) { ?> - non lu 1 ? 's' : ''; ?> - - + get_c == $cat->id ()) { $c_active = true; } ?> + -