{AD place='ad_728x90'}

# {$c.collection_name|capitalize} ({$c.total_objects} {$c.type|capitalize}) {lang code='collection' assign='object_type'} {uploadButton details=$c output='link' target="_blank" class='btn btn-success pull-right'}

{if $c.type == 'photos'} {$type = 'p'} {else} {$type = 'v'} {/if} {if $type == 'p'}
{section name=list loop=$objects}
{include file="$style_dir/blocks/collection.html" object=$objects[list] display_type=view_collection type=$c.type}
{sectionelse}
{$c.collection_name} has 0 items.
{/section}
{else}
{if $objects} {foreach $objects as $video}
{include file="$style_dir/blocks/videos/video.html" display_type='homeVideos'}
{/foreach} {else}
No Videos Found !
{/if}
{/if}
{include file="$style_dir/blocks/pagination.html"}
{lang code='add_to_my_favorites'} {lang code='report_this'}
{show_flag_form id=$c.collection_id type=Collection}

- {lang code="uploaded"}: {$c.date_added|niceTime}
- {lang code="views"}: {$c.views|number_format}
- {lang code="category"}: {$c.category|categories:collections}
- {lang code="tags"}: {$c.collection_tags|tags:collections}

{if $myquery->is_commentable($c,'collection')}

## {lang code="comments"} ({$c.total_comments})

{if $myquery->is_commentable($c,'collection')} {include file="$style_dir/blocks/comments/add_comment.html" id=$c.collection_id type='cl'} {/if}

{else}
{lang code='comm_disabled_for_collection'}
{/if}