aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/indexController.php
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/controllers/indexController.php
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/controllers/indexController.php')
-rwxr-xr-xapp/controllers/indexController.php7
1 files changed, 6 insertions, 1 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