{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'}
{get_photo details=$photo size='l' class='img-responsive center-block' output='html' height="100"}

# {$photo.photo_title}

#

## {$user.username}

{lang code="views"} {prettyNum($photo.views)}
{if $photo.allow_rating != 'no'} {show_video_rating rating=$photo.rating ratings=$photo.rated_by total='10' id=$photo.photo_id type=photo} {/if}
{if $photo.userid != userid()} {lang code='subscribe_btn'} {/if}

- {lang('photo_description')} : {$photo.photo_description|truncate:90}
- {lang('collection_name')}: {if $Cbucket->configs.seo == 'yes'} {$c.collection_name}
{else} {$c.collection_name} {/if}
- {lang('tags')}: {$photo.photo_tags|tags:photos}
- {lang('views')}: {$photo.views}

- Facebook
- Twitter
- Google Plus

{$codes=$cbphoto->photo_embed_codes(['type'=>'all','with_url'=>true, 'details'=>$photo])} {foreach from=$codes item=item}
{$item.name}
{/foreach}
{show_share_form id=$photo.photo_id type=Photo}
{lang code='add_to_my_favorites'}
{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*}