{lang code='photo' assign='object_type'}
{assign var=json value=$photo.photo_details|json_decode}
{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)}

{if !$user.username} {/if}
{$vdo.views|number_format} {lang('View')}{if $vdo.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('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}
{/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_320x250'}

{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}
{section name=list loop=$uphotos} {include file="$style_dir/blocks/photo.html" display_type="related_photos" photo=$uphotos[list]} {/section}
{literal} {/literal}