{lang code='photo' assign='object_type'}
{$json = $photo.photo_details|json_decode} {ANCHOR place="video_bookmarks" data=$photo}
user image

{$photo.photo_title}

by {$user.username} {$photo.date_added}
{show_video_rating rating=$photo.rating ratings=$photo.rated_by total='10' id=$photo.photo_id type=photo}

{$photo.photo_description} read more

{if $userquery->userid == $photo.userid} {/if}
{*show_share_form id=$photo.photo_id type=Photo*} {show_flag_form id=$photo.photo_id type=Photo}

{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}
{AD place="ad_300x250"} {get_photos assign=uphotos user=$photo.userid exclude=$photo.photo_id order=RAND() limit='5'} {if $uphotos}
More Photos From {$user.username}
{section name=list loop=$uphotos} {include file="$style_dir/blocks/photo.html" display_type="related_photos" photo=$uphotos[list]} {/section}
{/if} {get_photos assign=related collection=$photo.collection_id show_related=TRUE title=$photo.photo_title tags=$photo.photo_tags exclude=$photo.photo_id limit='5'} {if $related}
Related Photos
{section name=list loop=$related} {include file="$style_dir/blocks/photo.html" display_type="related_photos" photo=$related[list]} {/section}
{/if}
{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')} Previous {assign var=nextLink value=$cbphoto->collection->get_next_prev_item($objctid,$collid,'next')} Next
ad
{DownloadButtonP details=$photo class='LoadMoreButton' style='cursor:pointer;display:inline;' output='div'}