{lang code='photo' assign='object_type'}
{assign var=json value=$photo.photo_details|json_decode}
{AD place='ad_468x60'}
{get_photo details=$photo size='l' class='img-responsive center-block' output='html' height="100"} {assign var=objctid value=$object.ci_id} {assign var=collid value=$object.collection_id} {assign var=preLink value=$cbphoto->collection->get_next_prev_item($objctid,$collid,'prev')} {assign var=nextLink value=$cbphoto->collection->get_next_prev_item($objctid,$collid,'next')} Next Previous

# {wordwrap($photo.photo_title,8, "\n", true)}

{$user.username}
{if $photo.userid != userid()}
{/if}
{$photo.views|number_format} {lang('View')}{if $photo.views > 1}{lang('s')}{/if}
{show_video_rating rating=$photo.rating ratings=$photo.rated_by total='10' id=$photo.photo_id type=photo}

{$photo.photo_description|truncate:90}

{lang('Category')} {assign var=category value=$userquery->get_category($user.category)} {$category.category_name}
{lang('Tags')} {$photo.photo_tags|tags:photos}
{show_share_form id=$photo.photo_id type=Photo}
{$codes=$cbphoto->photo_embed_codes(['type'=>'all','with_url'=>true, 'details'=>$photo])} {foreach from=$codes item=item}
{$item.name}
{/foreach}
{show_flag_form id=$photo.photo_id type=Photo}
{lang code='comments'} {$photo.total_comments}
{if $myquery->is_commentable($photo,'p')} {include file="$style_dir/blocks/comments/add_comment.html" id=$photo.photo_id type=p} {else}
{lang code='Comments disabled for this photo'}
{/if}
{AD place='ad_300x250'}

### {lang code='Most Popular'}

{section name=p_list loop=$photos} {include file="$style_dir/blocks/PopularPhotos.html" photo=$photos[p_list]} {sectionelse} {lang code='no_results_found'} {/section}

### {lang code='Top Collections'}

{section name=c_list loop=$collections} {include file="$style_dir/blocks/topCollection.html" collection=$collections[c_list]} {sectionelse} {lang code='no_results_found'} {/section}

{AD place='ad_160x600'}
{section name=list loop=$uphotos} {include file="$style_dir/blocks/photo.html" display_type="related_photos" photo=$uphotos[list]} {/section}
{literal}
{/literal}