diff options
| author | 2014-06-05 22:26:18 +0200 | |
|---|---|---|
| committer | 2014-06-05 22:26:18 +0200 | |
| commit | b8f53b052592d3729bdc88936bad5f4e2da78dfe (patch) | |
| tree | 8b0b76b29439ce6882eabf633353d6dcbe4237f2 /app/Models/Configuration.php | |
| parent | 5ea82076faddbdf6b34d20332507779de3c71ae3 (diff) | |
Add an option to choose content width
- 4 options: thin, medium, large and no limit
- Thin is by default
Diffstat (limited to 'app/Models/Configuration.php')
| -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; } |
