{setParam name='js_links' value='/PhotoGallery.js'} {setParam name='js_links' value='/js/PhotoGallery.js'} {setParam name='js_links' value='/media/PhotoGallery.js'} {function name="show_galleries" galleries=array() current_gallery_id='' urlPrefix=''} {get_columns_from_categories assign_to='columns' categories=$galleries} {$column_cnt=count($columns)} {$column_width=ceil(100/$column_cnt)} {for $column_i=0; $column_i<$column_cnt; $column_i++} {/for} {**}
    {foreach $columns[$column_i] as $category}
  • {if $current_gallery_id==$category['GALLERY_ID']} {$category['GALLERY_NAME']} {else} {$category['GALLERY_NAME']} {/if}
  • {/foreach}
{/function} {function name="show_photos" photos=array()} {foreach $photos as $photo} {/foreach}
{$photo['PHOTO_DESCR']}
{/function} {if $empty} Нет фотографий. {else}
{* {if count($galleries)} {/if}
{show_galleries galleries=$galleries current_gallery_id=$currentGallery urlPrefix=$urlPrefix}
{show_photos photos=$photos}
{$photos[0]['PHOTO_DESCR']}
{$photos[0]['PHOTO_DESCR']}
*} {/if}