mirror of
https://github.com/openvk/openvk
synced 2024-12-27 11:01:28 +03:00
65 lines
2.5 KiB
XML
65 lines
2.5 KiB
XML
{extends "../@layout.xml"}
|
|
|
|
{block title}{_video}{/block}
|
|
|
|
{block header}
|
|
<a href="{$user->getURL()}">{$user->getCanonicalName()}</a>
|
|
»
|
|
<a href="/videos{$user->getId()}">{_videos}</a>
|
|
»
|
|
{_video}
|
|
{/block}
|
|
|
|
{block content}
|
|
<center style="margin-bottom: 8pt;">
|
|
{if $video->getType() === 0}
|
|
<div class="bsdn" data-name="{$video->getName()}" data-author="{$user->getCanonicalName()}">
|
|
<video src="{$video->getURL()}"></video>
|
|
</div>
|
|
{else}
|
|
{var $driver = $video->getVideoDriver()}
|
|
{if !$driver}
|
|
Эта видеозапись не поддерживается в вашей версии OpenVK.
|
|
{else}
|
|
{$driver->getEmbed()|noescape}
|
|
{/if}
|
|
{/if}
|
|
</center>
|
|
|
|
<hr/>
|
|
|
|
<div style="width: 100%; min-height: 100px;">
|
|
<div style="float: left; min-height: 100px; width: 68%; margin-right: 2%;">
|
|
{include "../components/comments.xml",
|
|
comments => $comments,
|
|
count => $cCount,
|
|
page => $cPage,
|
|
model => "videos",
|
|
parent => $video,
|
|
fromPost => true}
|
|
</div>
|
|
<div style="float: left; min-height: 100px; width: 30%; overflow: hidden; overflow-wrap: break-word;">
|
|
<div>
|
|
<h4>{_information}</h4>
|
|
<span style="color: grey;">{_info_name}:</span>
|
|
{$video->getName()}<br/>
|
|
<span style="color: grey;">{_info_description}:</span>
|
|
{$video->getDescription() ?? "(" . tr("none") . ")"}<br/>
|
|
<span style="color: grey;">{_info_uploaded_by}:</span>
|
|
<a href="{$user->getURL()}">{$user->getFullName()}</a><br/>
|
|
<span style="color: grey;">{_info_upload_date}:</span>
|
|
{$video->getPublicationTime()}
|
|
</div>
|
|
<br/>
|
|
<div n:if="isset($thisUser) && $thisUser->getId() === $user->getId()">
|
|
<h4>{_actions}</h4>
|
|
<a href="/video{$video->getPrettyId()}/edit" class="profile_link" style="display:block;width:96%;">
|
|
{_edit}
|
|
</a>
|
|
<a href="/video{$video->getPrettyId()}/remove" class="profile_link" style="display:block;width:96%;">
|
|
{_delete}
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{/block}
|