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

{$photo.photo_title|truncate:55}

{$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}
  • {$photo.views|number_format} {lang('View')}{if $photo.views > 1}{lang('s')}{/if}
{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} {lang code='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}
{*section name=list loop=$uphotos} {include file="$style_dir/blocks/photo.html" display_type="related_photos" photo=$uphotos[list]} {/section*}
{literal} {/literal}