{/if}
{jq}
// Make nice rows of thumbnails even when there is description or long titles
$('.thumbnailcontener').height(
Math.max.apply(null, $('.thumbnailcontener').map(function(index, el) { return $(el).height(); }).get())
);
{/jq}
{foreach $files as $file}
{* Checkboxes *}
{if $file.isgal eq 1}
{assign var=checkname value=$subgal_checkbox_name|default:'subgal'}
{else}
{assign var=checkname value=$file_checkbox_name|default:'file'}
{/if}
{if $prefs.fgal_checked neq 'n' and isset($smarty.request.$checkname) and $smarty.request.$checkname
and in_array($file.id,$smarty.request.$checkname)}
{assign var=is_checked value='y'}
{else}
{assign var=is_checked value='n'}
{/if}
{* show files and subgals in browsing view *}
{* build link *}
{capture assign=link}
{include 'fgal_file_link_attributes.tpl' log_tpl=false}
{/capture}
{math equation="x + 6" x=$thumbnail_size assign=thumbnailcontener_size}
{* thumbnail actions wrench *}
{capture name="thumbactions"}
{if ($prefs.fgal_show_thumbactions eq 'y' or $show_details eq 'y')}
{if $prefs.fgal_checked neq 'n' and $tiki_p_admin_file_galleries eq 'y'}
{/if}
{if !isset($gal_info.show_action) or $gal_info.show_action neq 'n'}
{if ( $prefs.use_context_menu_icon eq 'y' or $prefs.use_context_menu_text eq 'y' )
and $prefs.javascript_enabled eq 'y'}
{icon name='wrench' alt="{tr}Actions{/tr}"}
{else}
{include file='fgal_context_menu.tpl'}
{/if}
{/if}