related to #1657 svg support in batch manager unit

This commit is contained in:
Matthieu Leproux
2022-05-16 17:02:22 +02:00
parent e60ac77933
commit cac159e154
2 changed files with 2 additions and 1 deletions

View File

@@ -58,7 +58,7 @@ jQuery("a.preview-box").colorbox( {
<legend>{$element.LEGEND}</legend>
<span class="thumb">
<a href="{$element.FILE_SRC}" class="preview-box icon-zoom-in" title="{$element.LEGEND|@htmlspecialchars}"><img src="{$element.TN_SRC}" alt=""></a>
<a href="{$element.FILE_SRC}" class="preview-box icon-zoom-in" title="{$element.LEGEND|@htmlspecialchars}"><img src="{$element.TN_SRC}" alt="" {if $current.is_svg}style="{if $current.width < 100}min-width: 100px;{/if}{if $current.height < 100} min-height: 100px; {/if}" {/if}></a>
<a href="{$element.U_EDIT}" class="icon-pencil">{'Edit'|@translate}</a>
</span>

View File

@@ -40,6 +40,7 @@
// picture_ext : file extensions for picture file, must be a subset of
// file_ext
// Add 'svg' to this array to support svg images.
$conf['picture_ext'] = array('jpg','jpeg','png','gif');
// file_ext : file extensions (case sensitive) authorized