diff options
| author | 2013-08-21 15:22:30 +0200 | |
|---|---|---|
| committer | 2013-08-21 15:22:30 +0200 | |
| commit | 456c95d2dbb40d358d79f426f68eb03f5f447945 (patch) | |
| tree | e3fe6053b120697e04dadb66269fd41cfa5e1d33 /app/controllers/configureController.php | |
| parent | 94a50086d8eb5d3336dff66b2f4efcc7bd3dfa71 (diff) | |
Fix issue #125 : "Load more" automatique
En bas de page, si l'option a été cochée (ne l'est pas par défaut), on
va charger automatiquement les articles suivants
Diffstat (limited to 'app/controllers/configureController.php')
| -rwxr-xr-x | app/controllers/configureController.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/configureController.php b/app/controllers/configureController.php index 71ab45fbe..0fce9679f 100755 --- a/app/controllers/configureController.php +++ b/app/controllers/configureController.php @@ -144,6 +144,7 @@ class configureController extends ActionController { $nb = Request::param ('posts_per_page', 10); $mode = Request::param ('view_mode', 'normal'); $view = Request::param ('default_view', 'all'); + $auto_load_more = Request::param ('auto_load_more', 'no'); $display = Request::param ('display_posts', 'no'); $lazyload = Request::param ('lazyload', 'no'); $sort = Request::param ('sort_order', 'low_to_high'); @@ -160,6 +161,7 @@ class configureController extends ActionController { $this->view->conf->_postsPerPage (intval ($nb)); $this->view->conf->_viewMode ($mode); $this->view->conf->_defaultView ($view); + $this->view->conf->_autoLoadMore ($auto_load_more); $this->view->conf->_displayPosts ($display); $this->view->conf->_lazyload ($lazyload); $this->view->conf->_sortOrder ($sort); @@ -179,6 +181,7 @@ class configureController extends ActionController { 'posts_per_page' => $this->view->conf->postsPerPage (), 'view_mode' => $this->view->conf->viewMode (), 'default_view' => $this->view->conf->defaultView (), + 'auto_load_more' => $this->view->conf->autoLoadMore (), 'display_posts' => $this->view->conf->displayPosts (), 'lazyload' => $this->view->conf->lazyload (), 'sort_order' => $this->view->conf->sortOrder (), |
