diff --git a/app/controllers/configureController.php b/app/controllers/configureController.php
index 9a42599a8..e807fb06d 100755
--- a/app/controllers/configureController.php
+++ b/app/controllers/configureController.php
@@ -112,6 +112,9 @@ class configureController extends ActionController {
$sort = Request::param ('sort_order', 'low_to_high');
$old = Request::param ('old_entries', 3);
$mail = Request::param ('mail_login', false);
+ $openArticle = Request::param ('mark_open_article', 'no');
+ $openSite = Request::param ('mark_open_site', 'no');
+ $openPage = Request::param ('mark_open_page', 'no');
$this->view->conf->_postsPerPage (intval ($nb));
$this->view->conf->_defaultView ($view);
@@ -119,6 +122,11 @@ class configureController extends ActionController {
$this->view->conf->_sortOrder ($sort);
$this->view->conf->_oldEntries ($old);
$this->view->conf->_mailLogin ($mail);
+ $this->view->conf->_markWhen (array (
+ 'article' => $openArticle,
+ 'site' => $openSite,
+ 'page' => $openPage,
+ ));
$values = array (
'posts_per_page' => $this->view->conf->postsPerPage (),
@@ -127,6 +135,7 @@ class configureController extends ActionController {
'sort_order' => $this->view->conf->sortOrder (),
'old_entries' => $this->view->conf->oldEntries (),
'mail_login' => $this->view->conf->mailLogin (),
+ 'mark_when' => $this->view->conf->markWhen (),
);
$confDAO = new RSSConfigurationDAO ();
diff --git a/app/layout/aside_configure.phtml b/app/layout/aside_configure.phtml
index 3f62ed9e7..ee527d75e 100644
--- a/app/layout/aside_configure.phtml
+++ b/app/layout/aside_configure.phtml
@@ -2,7 +2,7 @@
- Général et affichage
+ Général et lecture
Catégories
@@ -10,7 +10,4 @@
Raccourcis
-
- Import / Export OPML
-
diff --git a/app/layout/aside_flux.phtml b/app/layout/aside_flux.phtml
index 0a68a335a..5bf8c8160 100644
--- a/app/layout/aside_flux.phtml
+++ b/app/layout/aside_flux.phtml
@@ -51,7 +51,9 @@
Filtrer
+ conf) || is_logged ()) { ?>
Gestion
+
Voir le site
diff --git a/app/layout/header.phtml b/app/layout/header.phtml
index 351984aa7..852170b64 100644
--- a/app/layout/header.phtml
+++ b/app/layout/header.phtml
@@ -32,11 +32,11 @@
diff --git a/app/models/RSSConfiguration.php b/app/models/RSSConfiguration.php
index f32a67a3a..270ec2ce1 100755
--- a/app/models/RSSConfiguration.php
+++ b/app/models/RSSConfiguration.php
@@ -8,6 +8,7 @@ class RSSConfiguration extends Model {
private $old_entries;
private $shortcuts = array ();
private $mail_login = '';
+ private $mark_when = array ();
public function __construct () {
$confDAO = new RSSConfigurationDAO ();
@@ -18,6 +19,7 @@ class RSSConfiguration extends Model {
$this->_oldEntries ($confDAO->old_entries);
$this->_shortcuts ($confDAO->shortcuts);
$this->_mailLogin ($confDAO->mail_login);
+ $this->_markWhen ($confDAO->mark_when);
}
public function postsPerPage () {
@@ -41,6 +43,18 @@ class RSSConfiguration extends Model {
public function mailLogin () {
return $this->mail_login;
}
+ public function markWhen () {
+ return $this->mark_when;
+ }
+ public function markWhenArticle () {
+ return $this->mark_when['article'];
+ }
+ public function markWhenSite () {
+ return $this->mark_when['site'];
+ }
+ public function markWhenPage () {
+ return $this->mark_when['page'];
+ }
public function _postsPerPage ($value) {
if (is_int (intval ($value))) {
@@ -89,6 +103,11 @@ class RSSConfiguration extends Model {
$this->mail_login = false;
}
}
+ public function _markWhen ($values) {
+ $this->mark_when['article'] = $values['article'];
+ $this->mark_when['site'] = $values['site'];
+ $this->mark_when['page'] = $values['page'];
+ }
}
class RSSConfigurationDAO extends Model_array {
@@ -107,6 +126,11 @@ class RSSConfigurationDAO extends Model_array {
'prev_page' => 'left',
);
public $mail_login = '';
+ public $mark_when = array (
+ 'article' => 'yes',
+ 'site' => 'yes',
+ 'page' => 'no'
+ );
public function __construct () {
parent::__construct (PUBLIC_PATH . '/data/Configuration.array.php');
@@ -132,6 +156,9 @@ class RSSConfigurationDAO extends Model_array {
if (isset ($this->array['mail_login'])) {
$this->mail_login = $this->array['mail_login'];
}
+ if (isset ($this->array['mark_when'])) {
+ $this->mark_when = $this->array['mark_when'];
+ }
}
public function update ($values) {
diff --git a/app/views/configure/display.phtml b/app/views/configure/display.phtml
index bf488dbe0..12292c137 100644
--- a/app/views/configure/display.phtml
+++ b/app/views/configure/display.phtml
@@ -20,7 +20,7 @@
-
+
@@ -67,6 +67,24 @@
+
+