From 14ccd3f2f9c5a30ddd7e2560974aaba50d81f9be Mon Sep 17 00:00:00 2001 From: saparatayev Date: Tue, 12 Apr 2022 17:51:32 +0500 Subject: [PATCH] items on the main page --- .../tps/birzha/components/offers/default.htm | 34 +++++++++++-------- themes/birzha/pages/index.htm | 2 +- 2 files changed, 21 insertions(+), 15 deletions(-) diff --git a/plugins/tps/birzha/components/offers/default.htm b/plugins/tps/birzha/components/offers/default.htm index 432f10f74..5eb6036fc 100644 --- a/plugins/tps/birzha/components/offers/default.htm +++ b/plugins/tps/birzha/components/offers/default.htm @@ -56,21 +56,27 @@ {% endfor %} -{% if offers.total > offers.perPage %} +{% if this.page.id != 'index' %} -
- - - -
- -
- - - -
- {{ (offers.total / offers.perPage)|round(0,'ceil') }} {{ 'page.pages'|_ }} + {% if offers.total > offers.perPage %} + +
+ + + +
+ +
+ + + +
+ {{ (offers.total / offers.perPage)|round(0,'ceil') }} {{ 'page.pages'|_ }} +
-
+ + {% endif %} {% endif %} + + diff --git a/themes/birzha/pages/index.htm b/themes/birzha/pages/index.htm index b050a9dc3..ab31da35a 100644 --- a/themes/birzha/pages/index.htm +++ b/themes/birzha/pages/index.htm @@ -15,7 +15,7 @@ security = "user" redirect = "vojti" [offers] -perPage = 0 +perPage = 4 sortOrder = "desc" [categories]