aboutsummaryrefslogtreecommitdiff
path: root/app/views/configure
diff options
context:
space:
mode:
authorGravatar ORelio <ORelio@users.noreply.github.com> 2021-08-30 10:58:06 +0200
committerGravatar GitHub <noreply@github.com> 2021-08-30 10:58:06 +0200
commit50ba6bbe07b0bb86eb07e3212ba2e22cb2878cf2 (patch)
tree3e54faf8e06be88468d0be1e9df808f88691194e /app/views/configure
parent812eda1fa05e370c4c1645b5b82f09f9da2c7bf7 (diff)
UI: Add optional thumbnail and summary on feed items (#3805)
* UI: Add optional thumbnail and summary on feed items Implements #561 * UI: Thumbnail: Own column, Custom size, Lazy load * UI: Thumbnail: Remove unnecessary CSS rule Remove rule already defined in base theme, no override needed * CSS lint + RTL * Improve thumbail and summary generation * Support img alt * Missing htmlspecialchars Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/views/configure')
-rw-r--r--app/views/configure/display.phtml26
1 files changed, 26 insertions, 0 deletions
diff --git a/app/views/configure/display.phtml b/app/views/configure/display.phtml
index 483793722..efeb189aa 100644
--- a/app/views/configure/display.phtml
+++ b/app/views/configure/display.phtml
@@ -75,6 +75,27 @@
</div>
</div>
+ <?php $topline_thumbnail = FreshRSS_Context::$user_conf->topline_thumbnail; ?>
+ <div class="form-group">
+ <label class="group-name" for="topline_thumbnail"><?= _t('conf.display.thumbnail.label') ?></label>
+ <div class="group-controls">
+ <select name="topline_thumbnail" id="topline_thumbnail" required="" data-leave-validation="<?= $topline_thumbnail ?>">
+ <option value="none" <?= $topline_thumbnail === 'none' ? 'selected="selected"' : '' ?>>
+ <?= _t('conf.display.thumbnail.none') ?>
+ </option>
+ <option value="portrait" <?= $topline_thumbnail === 'portrait' ? 'selected="selected"' : '' ?>>
+ <?= _t('conf.display.thumbnail.portrait') ?>
+ </option>
+ <option value="square" <?= $topline_thumbnail === 'square' ? 'selected="selected"' : '' ?>>
+ <?= _t('conf.display.thumbnail.square') ?>
+ </option>
+ <option value="landscape" <?= $topline_thumbnail === 'landscape' ? 'selected="selected"' : '' ?>>
+ <?= _t('conf.display.thumbnail.landscape') ?>
+ </option>
+ </select>
+ </div>
+ </div>
+
<div class="form-group">
<label class="group-name"><?= _t('conf.display.icon.entry') ?></label>
<div class="group-controls">
@@ -86,6 +107,7 @@
<th title="<?= _t('gen.action.mark_favorite') ?>"><?= _i('bookmark') ?></th>
<th><?= _t('conf.display.icon.related_tags') ?></th>
<th><?= _t('conf.display.icon.sharing') ?></th>
+ <th><?= _t('conf.display.icon.summary') ?></th>
<th><?= _t('conf.display.icon.display_authors') ?></th>
<th><?= _t('conf.display.icon.publication_date') ?></th>
<th><?= _i('link') ?></th>
@@ -102,6 +124,9 @@
data-leave-validation="<?= FreshRSS_Context::$user_conf->topline_favorite ?>"/></td>
<td><input type="checkbox" disabled="disabled" /></td>
<td><input type="checkbox" disabled="disabled" /></td>
+ <td><input type="checkbox" name="topline_summary" value="1"<?=
+ FreshRSS_Context::$user_conf->topline_summary ? 'checked="checked"' : '' ?>
+ data-leave-validation="<?= FreshRSS_Context::$user_conf->topline_summary ?>"/></td>
<td><input type="checkbox" name="topline_display_authors" value="1"<?=
FreshRSS_Context::$user_conf->topline_display_authors ? ' checked="checked"' : '' ?>
data-leave-validation="<?= FreshRSS_Context::$user_conf->topline_display_authors ?>"/></td>
@@ -125,6 +150,7 @@
FreshRSS_Context::$user_conf->bottomline_sharing ? ' checked="checked"' : '' ?>
data-leave-validation="<?= FreshRSS_Context::$user_conf->bottomline_sharing ?>"/></td>
<td><input type="checkbox" disabled="disabled" /></td>
+ <td><input type="checkbox" disabled="disabled" /></td>
<td><input type="checkbox" name="bottomline_date" value="1"<?=
FreshRSS_Context::$user_conf->bottomline_date ? ' checked="checked"' : '' ?>
data-leave-validation="<?= FreshRSS_Context::$user_conf->bottomline_date ?>"/></td>