mirror of
https://github.com/openvk/openvk
synced 2024-11-11 09:29:29 +03:00
52 lines
2.3 KiB
XML
52 lines
2.3 KiB
XML
{extends "../@layout.xml"}
|
|
|
|
{block title}{_"photo"}{/block}
|
|
|
|
{block header}
|
|
{ifset $album}
|
|
<a href="{$album->getOwner()->getURL()}">
|
|
{$album->getOwner()->getCanonicalName()}
|
|
</a>
|
|
{if ($album->getOwner() instanceof openvk\Web\Models\Entities\Club)}
|
|
» <a href="/albums{$album->getOwner()->getId() * -1}">{_"albums"}</a>
|
|
{else}
|
|
» <a href="/albums{$album->getOwner()->getId()}">{_"albums"}</a>
|
|
{/if}
|
|
» <a href="/album{$album->getPrettyId()}">{$album->getName()}</a>
|
|
{else}
|
|
<a href="{$photo->getOwner()->getURL()}">{$photo->getOwner()->getCanonicalName()}</a>
|
|
{/ifset}
|
|
» {_"photo"}
|
|
{/block}
|
|
|
|
{block content}
|
|
<center style="margin-bottom: 8pt;">
|
|
<img src="{$photo->getURL()}" style="max-width: 80%; max-height: 60vh;" />
|
|
</center>
|
|
|
|
<hr/>
|
|
|
|
<div style="width: 100%; min-height: 100px;">
|
|
<div style="float: left; min-height: 100px; width: 70%;">
|
|
{include "../components/comments.xml", comments => $comments, count => $cCount, page => $cPage, model => "photos", parent => $photo}
|
|
</div>
|
|
<div style="float: left; min-height: 100px; width: 30%;">
|
|
<div>
|
|
<h4>{_"information"}</h4>
|
|
<span style="color: grey;">{_"info_description"}:</span>
|
|
{$photo->getDescription() ?? "(отсутствует)"}<br/>
|
|
<span style="color: grey;">{_"info_uploaded_by"}:</span>
|
|
<a href="{$photo->getOwner()->getURL()}">{$photo->getOwner()->getFullName()}</a><br/>
|
|
<span style="color: grey;">{_"info_upload_date"}:</span>
|
|
{$photo->getPublicationTime()}
|
|
</div>
|
|
<br/>
|
|
<h4>{_actions}</h4>
|
|
<div n:if="isset($thisUser) && $thisUser->getId() === $photo->getOwner()->getId()">
|
|
<a href="/photo{$photo->getPrettyId()}/edit" class="profile_link" style="display:block;width:96%;">{_"edit"}</a>
|
|
<a id="_photoDelete" href="/photo{$photo->getPrettyId()}/delete" class="profile_link" style="display:block;width:96%;">{_"delete"}</a>
|
|
</div>
|
|
<a href="{$photo->getURL()}" class="profile_link" target="_blank" style="display:block;width:96%;">{_"open_original"}</a>
|
|
</div>
|
|
</div>
|
|
{/block}
|