From ea42de8bb687c5ee3ae31ff9d800ccad38966f03 Mon Sep 17 00:00:00 2001 From: andryeyev Date: Wed, 23 Dec 2015 12:42:09 +0200 Subject: [PATCH] + ratingValue тупо 5 --- templates/catalogs_product-list.tpl | 42 ++++++++++++++++++------------------------ 1 file changed, 18 insertions(+), 24 deletions(-) diff --git a/templates/catalogs_product-list.tpl b/templates/catalogs_product-list.tpl index 61e63fa..6694c01 100644 --- a/templates/catalogs_product-list.tpl +++ b/templates/catalogs_product-list.tpl @@ -4,6 +4,7 @@
+ {if (is_array($brends) and count($brends)>0)} @@ -41,32 +42,22 @@ - {if ($rubric.parent_id>0 OR $product.rubric_id>0) and is_array($sex) and count($sex)>0} + {/if} + {if (is_array($sex) and count($sex)>0)} - {* - - - - *} @@ -75,7 +66,7 @@ {/if} - {if is_array($filters)} + {if is_array($filters) and count($filters)>0} @@ -96,7 +87,7 @@ {/if} - {if is_array($filters2)} + {if is_array($filters2) and count($filters2)>0} @@ -117,7 +108,7 @@ {/if} - {if is_array($rost)} + {if is_array($rost) and count($rost)>0} @@ -141,7 +132,7 @@ {/if} - {if is_array($size)} + {if is_array($size) and count($size)>0} @@ -166,7 +157,7 @@ {/if} - {if is_array($years)} + {if is_array($years) and count($years)>0} @@ -275,6 +266,9 @@ } $rating = round ($rating / $votes, 1); + + // ñêàçàëè òóïî ïîñòàâèòü 5 + $rating = 5; {/php} -- libgit2 0.21.4
{$smarty.const.FILTER_LABEL_1}
{$smarty.const.FILTER_LABEL_2}
- -
- {section name=i loop=$sex}{if $sex[i].name} - - - - - {/if} + {section name=i loop=$sex} + {if $sex[i].name} + + + + + {/if} {/section}
{$sex[i].name}
{$sex[i].name}
{if $rubric.filter}{$rubric.filter}{else}{$smarty.const.FILTER_LABEL_3}{/if}
{if $rubric.filter2}{$rubric.filter2}{else}{$smarty.const.FILTER_LABEL_3} 2{/if}
{if $rubric.id eq 14032}{$smarty.const.FILTER_LABEL_4}{elseif $rubric.id eq 14065}{$smarty.const.FILTER_LABEL_14065}{else}{$smarty.const.FILTER_LABEL_5}{/if}
{if $rubric.id eq 14032}{$smarty.const.FILTER_LABEL_6}{else}{$smarty.const.FILTER_LABEL_7}{/if}
{$smarty.const.FILTER_LABEL_8}