From ca65aca3f31546cfe96f6087ec550601e4338fcc Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 6 Aug 2021 19:27:34 +0200 Subject: [PATCH] add pagination --- Theme/Backend/Components/Media/list.tpl.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Theme/Backend/Components/Media/list.tpl.php b/Theme/Backend/Components/Media/list.tpl.php index 6d3097c..713192c 100755 --- a/Theme/Backend/Components/Media/list.tpl.php +++ b/Theme/Backend/Components/Media/list.tpl.php @@ -17,6 +17,12 @@ use phpOMS\Uri\UriFactory; include __DIR__ . '/../../template-functions.php'; +$previous = empty($this->media) + ? '{%}' + : '{%}?{?}&mpivot=' . \reset($this->media)->getId() . '&mptype=p'; +$next = empty($this->media) + ? '{%}' + : '{%}?{?}&mpivot=' . \end($this->media)->getId() . '&mptype=n'; ?>
getHtml('Media', 'Media'); ?>
@@ -45,8 +51,11 @@ include __DIR__ . '/../../template-functions.php'; printHtml($value->createdAt->format('Y-m-d')); ?> - getHtml('Empty', '0', '0'); ?> + getHtml('Empty', '0', '0'); ?> -
+
\ No newline at end of file