1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-11 23:54:06 +02:00

Flextype Core: Glide/Intervention Image Implementation #61

This commit is contained in:
Awilum
2019-01-04 03:25:22 +03:00
parent 7f5dde7bad
commit c837288e9a

View File

@@ -46,7 +46,7 @@ use function Flextype\Component\I18n\__;
<a href="javascript:;"
<?php $file_ext = substr(strrchr($file, '.'), 1) ?>
<?php if(in_array($file_ext, ['jpeg', 'png', 'gif', 'jpg'])): ?>
style="background-image: url('<?= Http::getBaseUrl() . '/site/entries/' . Http::get('entry') . '/' . basename($file) ?>')"
style="background-image: url('<?= Images::get(Http::get('entry') . '/' . basename($file), ['w'=>'200']) ?>')"
<?php else: ?>
style="background: #000;"
<?php endif ?>