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'); ?> -
+
+ getHtml('Previous', '0', '0'); ?> + getHtml('Next', '0', '0'); ?> +
\ No newline at end of file