aboutsummaryrefslogtreecommitdiff
path: root/app/Models/ConfigurationSetter.php
diff options
context:
space:
mode:
authorGravatar Sadetdin EYILI <sad270@users.noreply.github.com> 2023-03-04 14:51:07 +0100
committerGravatar GitHub <noreply@github.com> 2023-03-04 14:51:07 +0100
commitd3966befafab3fe65e753d0ab2166a8bf5fb0d75 (patch)
tree1f77b9874bfe9c557ca4370d34a0c6bbe3257e9f /app/Models/ConfigurationSetter.php
parent27c7367534518f1adfd9b12551a2c7a45459cab3 (diff)
feat: create config to display website icon only / name only / icon and name / none on feeds (#4969)
* feat: create config to display website icon only / name only / icon and name / none on feeds * fix title hovering * reverted: column in .phtml * Update app/i18n/fr/conf.php --------- Co-authored-by: mathContao <math-home@web.de> Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/Models/ConfigurationSetter.php')
-rw-r--r--app/Models/ConfigurationSetter.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/Models/ConfigurationSetter.php b/app/Models/ConfigurationSetter.php
index 258c2ad58..2f33ab925 100644
--- a/app/Models/ConfigurationSetter.php
+++ b/app/Models/ConfigurationSetter.php
@@ -272,6 +272,13 @@ class FreshRSS_ConfigurationSetter {
private function _topline_read(&$data, $value) {
$data['topline_read'] = $this->handleBool($value);
}
+ private function _topline_website(&$data, $value) {
+ $value = strtolower($value);
+ if (!in_array($value, array('none', 'icon', 'name', 'full'))) {
+ $value = 'full';
+ }
+ $data['topline_website'] = $value;
+ }
private function _topline_thumbnail(&$data, $value) {
$value = strtolower($value);
if (!in_array($value, array('none', 'portrait', 'square', 'landscape'))) {