diff --git a/themes/berkarar/layouts/default.htm b/themes/berkarar/layouts/default.htm
index 04c6a56..9d6620d 100755
--- a/themes/berkarar/layouts/default.htm
+++ b/themes/berkarar/layouts/default.htm
@@ -20,21 +20,26 @@ function onStart(){
[
"limit" => 8,
"start" => 0,
- ]
+ ],
+ [
+ "limit" => 1,
+ "start" => 5
+ ],
+
],
[
- [
- "limit" => 0,
- "start" => 1
- ],
[
"limit" => 5,
"start" => 2
],
[
- "limit" => 0,
- "start" => 5
- ]
+ "limit" => 1,
+ "start" => 1
+ ],
+ [
+ "limit" => 1,
+ "start" => 10
+ ],
],
[
[
@@ -42,35 +47,33 @@ function onStart(){
"start" => 3
],
[
+ "limit" => 4,
+ "start" => 8
+ ]
+
+ ],
+ [
+ [
"limit" => 2,
"start" => 4
],
+ [
+ "limit" => 3,
+ "start" => 9
+ ]
],
- [
- [
+ [
+ [
"limit" => 3,
"start" => 7
],
- [
- "limit" => 3,
- "start" => 9
- ],
- ],
- [
[
"limit" => 3,
"start" => 6
],
+
[
- "limit" => 0,
- "start" => 8
- ],
- [
- "limit" => 0,
- "start" => 10
- ],
- [
- "limit" => 0,
+ "limit" => 1,
"start" => 11
],
],
diff --git a/themes/berkarar/pages/category.htm b/themes/berkarar/pages/category.htm
index 9acf3d5..8490c75 100755
--- a/themes/berkarar/pages/category.htm
+++ b/themes/berkarar/pages/category.htm
@@ -41,9 +41,32 @@ function onStart(){
+
{% for shop in category.shops%}
{% partial 'home/shop_item' shop=shop %}
{% endfor %}
+
+
+
+
+
+
+
+
+
+
+ {% if id != 0%}
+ {% for category in top_category.categories %}
+ {% for shop in category.shops%}
+ {% partial 'home/shop_item' shop=shop %}
+ {% endfor %}
+ {% endfor %}
+ {% else %}
+ {% for shop in shops%}
+ {% partial 'home/shop_item' shop=shop %}
+ {% endfor %}
+ {% endif %}
+
diff --git a/themes/berkarar/pages/home.htm b/themes/berkarar/pages/home.htm
index 40a7c37..43ccc48 100755
--- a/themes/berkarar/pages/home.htm
+++ b/themes/berkarar/pages/home.htm
@@ -19,7 +19,6 @@ function onStart(){
$this['shop_categories'] = Tps\Shops\Models\Category::where("top_category_id", $this->theme->main_shops)->orderBy('sort_order')->limit(3)->get();
$this['shop_category_ids'] = $this['shop_categories']->lists('id');
$this['shop_all'] = Tps\Shops\Models\Shop::whereIn('category_id', $this['shop_category_ids'])->limit(6)->get();
-
}
?>
==
diff --git a/themes/berkarar/pages/top_category.htm b/themes/berkarar/pages/top_category.htm
index 61dcc5f..88b0345 100755
--- a/themes/berkarar/pages/top_category.htm
+++ b/themes/berkarar/pages/top_category.htm
@@ -1,4 +1,4 @@
-title = "category"
+title = "main-category"
url = "/main-category/:id/:category"
layout = "default"
is_hidden = 0