From dfee46792f91cc357f697f35e7429c0c196f6a16 Mon Sep 17 00:00:00 2001 From: maTh Date: Sun, 6 Feb 2022 17:29:56 +0100 Subject: 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 --- app/views/helpers/pagination.phtml | 56 ----------------------------------- app/views/helpers/stream-footer.phtml | 52 ++++++++++++++++++++++++++++++++ app/views/index/normal.phtml | 2 +- app/views/index/reader.phtml | 2 +- 4 files changed, 54 insertions(+), 58 deletions(-) delete mode 100755 app/views/helpers/pagination.phtml create mode 100755 app/views/helpers/stream-footer.phtml (limited to 'app/views') 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 @@ - '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, - ) - ); -?> - - -
- - -
- -
    -
  • - - - - - - - -
    -
    -
    - -
  • -
- - - -
- diff --git a/app/views/helpers/stream-footer.phtml b/app/views/helpers/stream-footer.phtml new file mode 100755 index 000000000..ebce4d852 --- /dev/null +++ b/app/views/helpers/stream-footer.phtml @@ -0,0 +1,52 @@ + '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, + ) + ); +?> + + + + diff --git a/app/views/index/normal.phtml b/app/views/index/normal.phtml index 3909083e9..5dde2a171 100644 --- a/app/views/index/normal.phtml +++ b/app/views/index/normal.phtml @@ -110,7 +110,7 @@ $today = @strtotime('today'); if ($nbEntries > 0): call_user_func($this->callbackBeforePagination, $this, $nbEntries, $lastEntry); - $this->renderHelper('pagination'); + $this->renderHelper('stream-footer'); ?>content_width; if ($nbEntries > 0): call_user_func($this->callbackBeforePagination, $this, $nbEntries, $lastEntry); - $this->renderHelper('pagination'); + $this->renderHelper('stream-footer'); ?>