aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Configuration.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Models/Configuration.php')
-rw-r--r--app/Models/Configuration.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/Models/Configuration.php b/app/Models/Configuration.php
index 8d3e69a1c..0d6666297 100644
--- a/app/Models/Configuration.php
+++ b/app/Models/Configuration.php
@@ -28,6 +28,7 @@ class FreshRSS_Configuration {
'reception' => false,
),
'theme' => 'Origine',
+ 'content_width' => 'thin',
'shortcuts' => array(
'mark_read' => 'r',
'mark_favorite' => 'f',
@@ -221,6 +222,15 @@ class FreshRSS_Configuration {
public function _theme($value) {
$this->data['theme'] = $value;
}
+ public function _content_width($value) {
+ if ($value === 'medium' ||
+ $value === 'large' ||
+ $value === 'no_limit') {
+ $this->data['content_width'] = $value;
+ } else {
+ $this->data['content_width'] = 'thin';
+ }
+ }
public function _token($value) {
$this->data['token'] = $value;
}