mirror of
https://bitbucket.org/bellord13/kit.git
synced 2026-11-13 19:06:11 +03:00
fix
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
<?
|
||||
|
||||
use \Wt\Core\Media\Webp;
|
||||
use \Wt\Core\Templater\Tools as TemplaterTools;
|
||||
|
||||
?>
|
||||
<picture class="kit-picture <?=$arParams['CLASS']?>">
|
||||
<?
|
||||
$webp = new \Wt\Core\Media\Webp($_SERVER['DOCUMENT_ROOT'] . $arParams['SRC']);
|
||||
$webp = new Webp($_SERVER['DOCUMENT_ROOT'] . $arParams['SRC']);
|
||||
if($webp->make()->isSuccess()) {
|
||||
?><source srcset="<?=$webp->getPathOut(true)?>" type="image/webp"><?
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user