{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,'size'=>'l'])}} {$shareableThumb = get_photo_file($photo.photo_id)} {$shareableThumb = $shareableThumb.0}
{AD place='ad_728x90'}

{$photo.photo_title}

{$user.username}

{lang code="views"} {prettyNum($photo.views)}
  • {lang('photo_description')} : {$photo.photo_description|truncate:90}
  • {lang('collection_name')}:  {if $Cbucket->configs.seo == 'yes'} {$co.collection_name}
  • {else} {$co.collection_name} {/if}
  • {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_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*}