{lang code='photo' assign='object_type'} {assign var=json value=$photo.photo_details|json_decode} {$curr_photo = $photo|@json_encode} {$user_admin = $user|@json_encode} {$srcfirst = {get_photo(['details'=>$photo])}}
{AD place='ad_728x90'}

{$photo.photo_title}

{$user.username}

{prettyNum($photo.views)}
  • {lang('Photo description: ')} : {$photo.photo_description|truncate:90}
  • {assign var=category value=$userquery->get_category($user.category)}
  • {lang('Category')}: {$category.category_name}
  • {lang('Tags')}{$photo.photo_tags|tags:photos}
  • {lang('Views')}{$photo.views}
{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}

{$photo.total_comments} {if $photo.total_comments <= 1 } {lang code='comment'} {else} {{lang code='comments'} } {/if}

{if $myquery->is_commentable($photo,'p')} {include file="$style_dir/blocks/comments/add_image_comment.html" id=$photo.photo_id type=p} {else}
{lang code='Comments disabled for this photo'}
{/if}
{*section name=list loop=$uphotos} {include file="$style_dir/blocks/photo.html" display_type="related_photos" photo=$uphotos[list]} {/section*}