1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-10 23:24:04 +02:00

Flextype Core: Glide/Intervention Image Implementation #61

This commit is contained in:
Awilum
2019-01-04 23:15:15 +03:00
parent f5731fd1da
commit e30fdd1698

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('<?= Images::get(Http::get('entry') . '/' . basename($file), ['w'=>'200']) ?>')"
style="background-image: url('<?= Images::getImageUrl(Http::get('entry') . '/' . basename($file), ['w'=>'200']) ?>')"
<?php else: ?>
style="background: #000;"
<?php endif ?>