Jump to content

delime

Members
  • Posts

    7
  • Joined

  • Last visited

delime's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. Ребята помогите разобраться/дописать условие в Homefeatured.tpl.. <li class="ajax_block_product {if $smarty.foreach.homeFeaturedProducts.first}first_item{elseif $smarty.foreach.homeFeaturedProducts.last}last_item{else}item{/if} {if $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 3}last_item_of_line{elseif $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 1}clear{/if} {if $smarty.foreach.homeFeaturedProducts.iteration > ($smarty.foreach.homeFeaturedProducts.total - ($smarty.foreach.homeFeaturedProducts.total % $nbItemsPerLine))}last_line{/if}"> Нужно: кол-во строк 3; кол-во продуктов в строке 3; и чтобы последней,третьей, строке тоже присваивался класс, которому можно задать свойства.. Всем спасибо...
×
×
  • Create New...