mirror of
https://github.com/openvk/openvk
synced 2025-01-30 19:45:28 +03:00
2d83003b6c
* create document entity * add upload, previews, most of api methods * ui start * better ui, search, uploading (icons by myslivets) Co-Authored-By: Daniel <60743585+myslivets@users.noreply.github.com> * add editing functions * add viewer and gallery * preparations for picker * things * add counter on tab * add tags * fix gif processing * fix png processing * picker * addd search * add fast uploader * openvk midn. support, change midn.photomodal color * fix low register format chekc * add gif play on click * unauthorized limitations --------- Co-authored-by: Daniel <60743585+myslivets@users.noreply.github.com>
25 lines
1.5 KiB
XML
25 lines
1.5 KiB
XML
{var $preview = $doc->hasPreview() ? $doc->getPreview() : NULL}
|
|
{var $copied = !isset($club) ? $doc->isCopiedBy($thisUser) : $doc->isCopiedBy($club)}
|
|
{var $modifiable = $doc->canBeModifiedBy($thisUser)}
|
|
|
|
<a href="/doc{$doc->getPrettyId()}?key={$doc->getAccessKey()}" n:class="docMainItem, viewerOpener, docGalleryItem, $scroll_context ? scroll_node, $embed ? embeddable" data-id="{$doc->getPrettiestId()}">
|
|
<img class="docGalleryItem_main_preview" loading="lazy" src="{$preview->getURLBySizeId('medium')}" alt="gallery photo">
|
|
{if $embed}
|
|
<div class="play-button">
|
|
<div class="play-button-ico"></div>
|
|
</div>
|
|
<img class="docGalleryItem_gif_preview" loading="lazy" src="{$doc->getURL()}" alt="gif photo view">
|
|
{/if}
|
|
|
|
<div class="doc_top_panel doc_shown_by_hover" n:if="$thisUser">
|
|
<div class="doc_volume_action" n:if="!$modifiable" id="report_icon"></div>
|
|
<div class="doc_volume_action" n:if="$modifiable" id="edit_icon"></div>
|
|
<div class="doc_volume_action" n:if="!$copied || $copied && $copyImportance" id="add_icon"></div>
|
|
<div class="doc_volume_action" n:if="$copied && !$copyImportance" id="remove_icon"></div>
|
|
</div>
|
|
|
|
<div n:class="doc_bottom_panel, doc_shown_by_hover, doc_content, $showInfo ? info_shown">
|
|
<span class="doc_bottom_panel_name noOverflow doc_name">{$doc->getName()}</span>
|
|
<span class="doc_bottom_panel_size">{readable_filesize($doc->getFilesize())}</span>
|
|
</div>
|
|
</a>
|