KartKorner
05-17-2006, 03:13 PM
Does anyone know what the purpose of the following line of code?!?
{foreach from=$categs item=cat name=categs}
{if ($smarty.foreach.categs.iteration mod $cats_per_col eq 1 and $cats_per_col gt 1) or $smarty.foreach.categs.first}<td>{/if}
and
{if ($smarty.foreach.categs.iteration mod $cats_per_col eq 0 and $cats_per_col gt 1) or $smarty.foreach.categs.last}</td>{/if}
{/foreach}
The reason I ask is because it is messing up my structure and was unsure it this was safe to remove or was part of preinstalled mod on 3.0.4? Thanks all.
{foreach from=$categs item=cat name=categs}
{if ($smarty.foreach.categs.iteration mod $cats_per_col eq 1 and $cats_per_col gt 1) or $smarty.foreach.categs.first}<td>{/if}
and
{if ($smarty.foreach.categs.iteration mod $cats_per_col eq 0 and $cats_per_col gt 1) or $smarty.foreach.categs.last}</td>{/if}
{/foreach}
The reason I ask is because it is messing up my structure and was unsure it this was safe to remove or was part of preinstalled mod on 3.0.4? Thanks all.