mirror of
https://github.com/openvk/openvk
synced 2025-01-30 19:45:28 +03:00
feat(docs): add unavailable book preview (bc pos-
-sible xss). uncomment if sure
This commit is contained in:
parent
0fb18e34f5
commit
b713c964a3
1 changed files with 2 additions and 0 deletions
|
@ -28,6 +28,8 @@
|
||||||
<img class="main_doc_block" alt="doc image" src="{$doc->getPreview()->getURLBySizeId('original')}" />
|
<img class="main_doc_block" alt="doc image" src="{$doc->getPreview()->getURLBySizeId('original')}" />
|
||||||
{elseif $doc->isAudio()}
|
{elseif $doc->isAudio()}
|
||||||
<audio src="{$doc->getURL()}" controls></audio>
|
<audio src="{$doc->getURL()}" controls></audio>
|
||||||
|
{*{elseif $doc->isBook()}
|
||||||
|
<iframe src="{$doc->getURL()}" frameborder="0"></iframe>*}
|
||||||
{else}
|
{else}
|
||||||
<a href="{$doc->getURL()}" download="{downloadable_name($doc->getName())}">
|
<a href="{$doc->getURL()}" download="{downloadable_name($doc->getName())}">
|
||||||
<input class="button" type="button" value="{_download_file}">
|
<input class="button" type="button" value="{_download_file}">
|
||||||
|
|
Loading…
Reference in a new issue