aboutsummaryrefslogtreecommitdiff
path: root/app/views/helpers/stream-footer.phtml
diff options
context:
space:
mode:
authorGravatar maTh <1645099+math-GH@users.noreply.github.com> 2025-03-13 23:10:48 +0100
committerGravatar GitHub <noreply@github.com> 2025-03-13 23:10:48 +0100
commit7de384bf9c192292cbc726085eedfadddfa7ca7d (patch)
tree6621d2f3e8d7b18975e2ac2d70ad4b2b56ba6195 /app/views/helpers/stream-footer.phtml
parenta7361a3e7cd335c8932deba88fe60e8f673c2d40 (diff)
Mark as read button: config for the size (#7314)
* settings * i18n: mark_read_button * big, small, none * fix * Fixes * make fix-all --------- Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/views/helpers/stream-footer.phtml')
-rw-r--r--app/views/helpers/stream-footer.phtml39
1 files changed, 26 insertions, 13 deletions
diff --git a/app/views/helpers/stream-footer.phtml b/app/views/helpers/stream-footer.phtml
index 3394eed76..9984a2429 100644
--- a/app/views/helpers/stream-footer.phtml
+++ b/app/views/helpers/stream-footer.phtml
@@ -35,19 +35,32 @@
<?php if (FreshRSS_Context::$continuation_id !== '0') { ?>
<button id="load_more" type="submit" class="btn" formaction="<?= Minz_Url::display($url_next) ?>"><?= _t('gen.stream.load_more') ?></button>
<?php } elseif ($hasAccess) { ?>
- <?= _t('gen.stream.nothing_to_load') ?><br />
- <button id="bigMarkAsRead"
- class="as-link <?= FreshRSS_Context::userConf()->reading_confirm ? 'confirm" disabled="disabled' : '' ?>"
- form="stream-footer"
- formaction="<?= Minz_Url::display($url_mark_read) ?>"
- type="submit">
- <span class="bigTick">✓</span><br />
- <span class="markAllRead"><?= _t('gen.stream.mark_all_read') ?></span><br />
- <?php if (FreshRSS_Context::userConf()->onread_jump_next) { ?>
- <span class="jumpNext"><?= _t('conf.reading.jump_next') ?></span>
- <?php } ?>
- </button>
- <?php } else { ?>
+ <?= _t('gen.stream.nothing_to_load') ?>
+ <?php if (FreshRSS_Context::userConf()->mark_read_button !== 'none') {
+ $css = '';
+ switch (FreshRSS_Context::userConf()->mark_read_button) {
+ case 'big':
+ $css = 'as-link big';
+ break;
+ case 'small':
+ $css = 'btn small';
+ break;
+ }
+ ?>
+ <br />
+ <button id="bigMarkAsRead"
+ class="<?= $css ?> <?= FreshRSS_Context::userConf()->reading_confirm ? 'confirm" disabled="disabled' : '' ?>"
+ form="stream-footer"
+ formaction="<?= Minz_Url::display($url_mark_read) ?>"
+ type="submit">
+ <span class="bigTick">✓</span><br />
+ <span class="markAllRead"><?= _t('gen.stream.mark_all_read') ?></span><br />
+ <?php if (FreshRSS_Context::userConf()->onread_jump_next) { ?>
+ <span class="jumpNext"><?= _t('conf.reading.jump_next') ?></span>
+ <?php } ?>
+ </button>
+ <?php
+ } } else { ?>
<?= _t('gen.stream.nothing_to_load') ?><br />
<?php } ?>
</div>