{script} {literal} document.flag = function(type, id, title, url, langKey){ if(typeof(document.addRoleStorage) === 'undefined'){ document.storage = []; } $.post( '{/literal}{url_for for="BASE_CTRL_Flag:form"}{literal}', {type: type, id: id, title: title, url: url, langKey: langKey}, function(json){ if( typeof(json.isFlagged) != 'undefined' ){ OW.warning("{/literal}{text key="base+flag_already_flagged"}{literal}"); return; } document.storage['flag-panel'] = { fb: new OW_FloatBox({$title: '{/literal}{text key='base+flag_as'}{literal}', $contents: json['markup'], width: '315px'}) } OW.addCss(json.css); OW.addScriptFiles(json['include_js'], function(){ OW.addScript(json['js']); }); }, 'json'); } {/literal} {/script} {style} {literal} .photo_preview_image { max-width: 100%; } {/literal} {/style}
{block_decorator name='box' type='empty' addClass='ow_stdmargin ow_center' toolbar=$toolbar} {/block_decorator}
{$photo->description}
{$comments}
{block_decorator name='box_cap' iconClass='ow_ic_picture' langLabel='photo+photo'}{/block_decorator} {block_decorator name='box' addClass='ow_small ow_stdmargin'}
{text key='photo+album'} {capture name='url'}{url_for_route for="photo_user_album:[user=>$ownerName, album=>`$album->id`]"}{/capture} {$album->name}
{text key='photo+photo_index'} {$photoIndex} {text key='photo+of'} {$photoCount}
{text key='base+by'} {user_link id=$album->userId name=$ownerDisplayName}
{text key='photo+photo_added'} {format_date timestamp=$photo->addDatetime}
{/block_decorator} {if $previousPhoto || $nextPhoto} {block_decorator name='box' addClass='ow_small ow_stdmargin clearfix'} {if $previousPhoto} {/if} {if $nextPhoto} {/if} {/block_decorator} {/if} {$rate} {$tags}
{if $ownerMode || $moderatorMode}
{form name='photoEditForm'}
{label name='album'} {input name='album'} {error name='album'}
{label name='description'} {input name='description'}
{error name='description'}
{label name='tags'}
{text key='photo+tags_desc'}
{input name='tags'}
{submit name='edit' class='ow_ic_save'}
{/form}
{/if}