diff options
| author | 2022-02-06 17:29:56 +0100 | |
|---|---|---|
| committer | 2022-02-06 17:29:56 +0100 | |
| commit | dfee46792f91cc357f697f35e7429c0c196f6a16 (patch) | |
| tree | beffd4906747360905decfa9142a0f63c62c5806 /app/views/helpers/pagination.phtml | |
| parent | 1c5cf718599f698836fef3f8f88748757a7e85b5 (diff) | |
Improved: "Pagination" + load more button (#4125)
* Frontend changes done
* Load more should work now also without JS
* Update template.rtl.css
* improved the themes' CSS
* Update template.rtl.css
* fix CI
* CSS prop. order fixed
* Rename pagination.phtml to stream-footer.phtml
* use the new template name
* rename key of i18n
* fixed CI, that does not like the white space
* rename pagination variable
* Update indexController.php
Diffstat (limited to 'app/views/helpers/pagination.phtml')
| -rwxr-xr-x | app/views/helpers/pagination.phtml | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/app/views/helpers/pagination.phtml b/app/views/helpers/pagination.phtml deleted file mode 100755 index eed4f5dc2..000000000 --- a/app/views/helpers/pagination.phtml +++ /dev/null @@ -1,56 +0,0 @@ -<?php - /** @var FreshRSS_View $this */ - $url_next = Minz_Request::currentRequest(); - $url_next['params']['next'] = FreshRSS_Context::$next_id; - $url_next['params']['state'] = FreshRSS_Context::$state; - $url_next['params']['ajax'] = 1; - - $url_mark_read = array( - 'c' => 'entry', - 'a' => 'read', - 'params' => array( - 'get' => FreshRSS_Context::currentGet(), - 'nextGet' => FreshRSS_Context::$next_get, - 'idMax' => FreshRSS_Context::$id_max, - 'search' => htmlspecialchars_decode(FreshRSS_Context::$search, ENT_QUOTES), - 'state' => FreshRSS_Context::$state, - ) - ); -?> - -<?php -$hasAccess = FreshRSS_Auth::hasAccess(); -if ($hasAccess) { ?> -<form id="mark-read-pagination" method="post"> -<input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" /> -<?php } else { ?> -<div id="mark-read-pagination"> -<?php }?> -<ul class="pagination"> - <li class="item pager-next"> - <?php if (FreshRSS_Context::$next_id) { ?> - <a id="load_more" href="<?= Minz_Url::display($url_next) ?>"> - <?= _t('gen.pagination.load_more') ?> - </a> - <?php } elseif ($hasAccess) { ?> - <button id="bigMarkAsRead" - class="as-link <?= FreshRSS_Context::$user_conf->reading_confirm ? 'confirm" disabled="disabled' : '' ?>" - form="mark-read-pagination" - formaction="<?= Minz_Url::display($url_mark_read) ?>" - type="submit"> - <?= _t('gen.pagination.nothing_to_load') ?><br /> - <span class="bigTick">✓</span><br /> - <?= _t('gen.pagination.mark_all_read') ?> - </button> - <?php } else { ?> - <div id="bigMarkAsRead"> - <?= _t('gen.pagination.nothing_to_load') ?><br /> - </div> - <?php } ?> - </li> -</ul> -<?php if ($hasAccess) { ?> -</form> -<?php } else {?> -</div> -<?php }?> |
