diff --git a/themes/berkarar/pages/category.htm b/themes/berkarar/pages/category.htm index 1cd7f9c..053f2df 100644 --- a/themes/berkarar/pages/category.htm +++ b/themes/berkarar/pages/category.htm @@ -1,5 +1,5 @@ title = "category" -url = "/category/:id/:category" +url = "/category/:id" layout = "default" is_hidden = 0 == @@ -26,7 +26,7 @@ function onStart(){ {{'Главная'|_}} -

+

{{category.top_category.name}} @@ -68,8 +68,8 @@ function onStart(){ {% partial 'home/shop_item' shop=shop %} {% endfor %} {% endif %} - + - \ No newline at end of file + diff --git a/themes/berkarar/pages/top_category.htm b/themes/berkarar/pages/top_category.htm index 5753f4f..4c0317f 100644 --- a/themes/berkarar/pages/top_category.htm +++ b/themes/berkarar/pages/top_category.htm @@ -1,5 +1,5 @@ title = "main-category" -url = "/main-category/:id/:category" +url = "/main-category/:id" layout = "default" is_hidden = 0 == @@ -7,7 +7,6 @@ is_hidden = 0 function onStart(){ $this['id'] = $this->param('id'); - // $this["category"] = $this->param('category'); if($this['id'] != 0){ $this['top_category'] = Tps\Shops\Models\TopCategory::where("id", $this['id'])->get()->first(); @@ -36,12 +35,12 @@ function onStart(){

{% if id != 0%} - {{top_category.name}} + {{top_category.name}} {% else %} {{'Все магазины'|_}} {% endif %}

- + @@ -63,8 +62,8 @@ function onStart(){ {% partial 'home/shop_item' shop=shop %} {% endfor %} {% endif %} - + - \ No newline at end of file + diff --git a/themes/berkarar/partials/site/footer.htm b/themes/berkarar/partials/site/footer.htm index 8de752f..4e34f7f 100644 --- a/themes/berkarar/partials/site/footer.htm +++ b/themes/berkarar/partials/site/footer.htm @@ -9,11 +9,11 @@ {% for key, i in item %} {% for top_category in top_categories.slice(i.start,1) %} {% endfor %} @@ -125,4 +125,4 @@ - \ No newline at end of file + diff --git a/themes/berkarar/partials/site/navigation.htm b/themes/berkarar/partials/site/navigation.htm index 6770e86..36123d6 100644 --- a/themes/berkarar/partials/site/navigation.htm +++ b/themes/berkarar/partials/site/navigation.htm @@ -115,12 +115,12 @@ function onStart(){ {% for key, i in item %} {% for top_category in top_categories.slice(i.start,1) %} @@ -236,4 +236,4 @@ function onStart(){ - \ No newline at end of file +