feat(docs): add unavailable book preview (bc pos-

-sible xss). uncomment if sure
This commit is contained in:
mrilyew 2025-01-27 21:12:09 +03:00
parent 0fb18e34f5
commit b713c964a3

View file

@ -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}">