diff options
| author | 2022-05-17 23:31:24 +0200 | |
|---|---|---|
| committer | 2022-05-17 23:31:24 +0200 | |
| commit | 0fc006096612174821db901840dabd20190074e2 (patch) | |
| tree | 6afa6b7d6cb42023ea860e8562e915207a967807 /app/views/index/normal.phtml | |
| parent | 20eba951f7e6d55c95b7f4f1eef6790a3586830b (diff) | |
Fix slider when no article (#4375)
* Fix slider when no article
#fix https://github.com/FreshRSS/FreshRSS/issues/4373
https://github.com/FreshRSS/FreshRSS/pull/4291
* Use aside
* Forgotten
Co-authored-by: maTh <math-home@web.de>
Diffstat (limited to 'app/views/index/normal.phtml')
| -rw-r--r-- | app/views/index/normal.phtml | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/app/views/index/normal.phtml b/app/views/index/normal.phtml index 555582c5f..562a1ef00 100644 --- a/app/views/index/normal.phtml +++ b/app/views/index/normal.phtml @@ -116,12 +116,8 @@ $today = @strtotime('today'); if ($nbEntries > 0): call_user_func($this->callbackBeforePagination, $this, $nbEntries, $lastEntry); $this->renderHelper('stream-footer'); -?><?php $class = $this->displaySlider ? ' active' : ''; ?> -<a href="#" id="close-slider" class="<?= $class ?>"> - <?= _i('close') ?> -</a> -<div id="slider" class="scrollbar-thin<?= $class ?>"> -</div></main><?php +?> +</main><?php else: ob_end_clean(); //Discard the articles headers, as we have no articles ?> @@ -138,4 +134,11 @@ $today = @strtotime('today'); </main> <?php endif; ?> +<?php $class = $this->displaySlider ? ' active' : ''; ?> +<a href="#" id="close-slider" class="<?= $class ?>"> + <?= _i('close') ?> +</a> +<aside id="slider" class="scrollbar-thin<?= $class ?>"> +</aside> + <?php if ($nbEntries > 0 && FreshRSS_Context::$user_conf->show_nav_buttons) $this->partial('nav_entries'); ?> |
