{function name="show_galleries" galleries=array() current_gallery_id=''}
{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++}
{foreach $columns[$column_i] as $category}
-
{if $current_gallery_id==$category['id']}
{$category['title']}
{else}
{$category['title']}
{/if}
{/foreach}
|
{/for}
{**}
{/function}
{function name="show_photos" photos=array()}
{foreach $photos as $photo}
|
 |
{/foreach}
{/function}
{if count($galleries)}
|
{show_galleries galleries=$galleries current_gallery_id=$current_gallery_id}
|
{/if}
|
{**}
{show_photos photos=$photos}
|
{$photos[$current_photo_id]['description']}
|
|