diff options
| author | 2014-06-05 22:44:42 +0200 | |
|---|---|---|
| committer | 2014-06-05 22:44:42 +0200 | |
| commit | 1dab7402bc47a7992b7f868d587fcb14c579692b (patch) | |
| tree | c23f504041a0e7ddd17670a0636eb5ac272f9494 /app/Models | |
| parent | 9d4269ddcbac7b2c4efed6e8a572cfb1c0ba8f65 (diff) | |
| parent | ce063a55770f5384b8201942853e8e1a41e60b59 (diff) | |
Merge branch '320-template' into dev
Diffstat (limited to 'app/Models')
| -rw-r--r-- | app/Models/Configuration.php | 10 |
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; } |
