From 762e583ef76dc336a8295da51fcb26aca986ab05 Mon Sep 17 00:00:00 2001 From: Franck Allimant Date: Fri, 18 Apr 2014 19:53:24 +0200 Subject: [PATCH] The standard b.o. pager --- .../default/includes/pagination.html | 69 +++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 templates/backOffice/default/includes/pagination.html diff --git a/templates/backOffice/default/includes/pagination.html b/templates/backOffice/default/includes/pagination.html new file mode 100644 index 000000000..fd560ef79 --- /dev/null +++ b/templates/backOffice/default/includes/pagination.html @@ -0,0 +1,69 @@ +{* +A generic pager for thelia back-office + +Parameters : + +$loop_ref: the name of the related loop +$max_page_count : maximum number of pages to display +$page_url : the URL of the page. The parameter page=x is appended to this URL. + +*} + +{* Prepare the URL so that the page=x parameter coumd be safely appended *} + +{if strpos($page_url, '?')} + {$page_url="$page_url&"} +{else} + {$page_url="$page_url?"} +{/if} + +
+ +