{get_photo details=$photo output='html' size='l' title='Next Photo'}
{show_video_rating rating=$photo.rating ratings=$photo.rated_by total='10' id=$photo.photo_id type=photo}
{show_share_form id=$photo.photo_id type=Photo} {show_flag_form id=$photo.photo_id type=Photo}

{lang code='comments'}

{include file="$style_dir/blocks/comments/comments.html" id=$photo.photo_id type=p} {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}
{$user.username}
 
{lang code="videos"} | {lang code="favorites"} | {lang code='contacts'}
 
{$photo.photo_title}
{$photo.photo_description}
{$photo.photo_tags|tags:photos}
{AD place="ad_300x250"}
{if $userquery->userid == $photo.userid} Edit Photo {/if} {DownloadButtonP details=$photo class='LoadMoreButton' style='display:inline-block; *display:inline; margin-left:5px;' output='div'} {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}