assign var=wgImgSize value=$imgSize ?>
math equation="round(x*$mainRatio)" assign="wgImgHeight" x=$widgetParams.IMAGESIZE ?>
assign var=bigSize value=1024 ?>
assign var=columnsCount value=$widgetParams.COLUMNSCOUNT ?>
section loop=$filesList name=files ?>
assign var=file value=$filesList[$smarty.section.files.index] ?>
assign var=truncDesc value=$file.PL_DESC|htmlsafe:true:true|trunc_str:"10" ?>
if $widgetParams.GLONCLICK!='disable' ?> /if ?>
if $widgetParams.GLONCLICK!='disable' ?> /if ?> |
if false && $file.PL_DESC && $widgetParams.SHOWDESC ?> $file.PL_DESC|htmlsafe:true:true ?>
/if ?>
if !($smarty.section.files.iteration%$columnsCount) ?>
if $widgetParams.SHOWDESC ?>
math assign="firstIndex" equation="x-y" x=$smarty.section.files.iteration y=$columnsCount ?>
section name=descs start=$firstIndex loop=$smarty.section.files.iteration ?>
assign var="descFile" value=$filesList[$smarty.section.descs.index] ?>
if $descFile.PL_DESC ?> $descFile.PL_DESC|htmlsafe:true:true ?> /if ?> |
/section ?>
/if ?>
/if ?>
/section ?>
math assign=myIndex equation="x-1" x=$smarty.section.files.iteration ?>
if ($myIndex%$columnsCount) && $widgetParams.SHOWDESC ?>
math assign="firstIndex" equation="x-(y%z)" x=$myIndex y=$myIndex z=$columnsCount ?>
section name=descs start=$firstIndex loop=$smarty.section.files.iteration ?>
assign var="descFile" value=$filesList[$smarty.section.descs.index] ?>
if $descFile.PL_DESC ?> $descFile.PL_DESC|htmlsafe:true:true ?> /if ?> |
/section ?>
/if ?>