mirror of
https://bitbucket.org/bellord13/kit.git
synced 2026-11-13 19:06:11 +03:00
fix
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
use \Wt\Core\Templater\Tools as TemplaterTools;
|
use \Wt\Core\Templater\Tools as TemplaterTools;
|
||||||
|
use Wt\Core\Tools as Tools;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var array $arParams
|
* @var array $arParams
|
||||||
@@ -9,11 +10,11 @@ use \Wt\Core\Templater\Tools as TemplaterTools;
|
|||||||
* type : button | reset | submit
|
* type : button | reset | submit
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$preloader = \Wt\Core\Tools::isTrue($arParams['PRELOADER']);
|
$preloader = Tools::isTrue($arParams['PRELOADER']);
|
||||||
|
|
||||||
|
|
||||||
?><button
|
?><button
|
||||||
<?if(\Wt\Core\Tools::isTrue($arParams['DISABLED'])){?>disabled<?}?>
|
<?if(Tools::isTrue($arParams['DISABLED'])){?>disabled<?}?>
|
||||||
aria-label="<?=$arParams['LABEL']?>"
|
aria-label="<?=$arParams['LABEL']?>"
|
||||||
type="<?=$arParams['TYPE']?:'button'?>"
|
type="<?=$arParams['TYPE']?:'button'?>"
|
||||||
<?if($arParams['ID']){?>id="<?=$arParams['ID']?>"<?}?>
|
<?if($arParams['ID']){?>id="<?=$arParams['ID']?>"<?}?>
|
||||||
|
|||||||
@@ -1,11 +1,17 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
use Wt\Core\Tools;
|
||||||
|
use Wt\Core\Type\Str;
|
||||||
|
|
||||||
|
|
||||||
app()->service()->assets()->setPlugin('collapse');
|
app()->service()->assets()->setPlugin('collapse');
|
||||||
$arParams['ID'] = $arParams['ID']?:'collapse_'.\Wt\Core\Type\Str::random(6);
|
$arParams['ID'] = $arParams['ID']?: ('collapse_' . Str::random(6));
|
||||||
?>
|
?>
|
||||||
<div class="accordion" id="<?=$arParams['ID']?>">
|
<div class="accordion" id="<?=$arParams['ID']?>">
|
||||||
<?foreach ($arParams['ITEMS'] as $key => $data) {
|
<?foreach ($arParams['ITEMS'] as $key => $data) {
|
||||||
$data['ID'] = $data['ID']?:$arParams['ID'].'_'.$key;
|
$data['ID'] = $data['ID']?:$arParams['ID'].'_'.$key;
|
||||||
$data['SHOW'] = \Wt\Core\Tools::isTrue($data['SHOW']);
|
$data['SHOW'] = Tools::isTrue($data['SHOW']);
|
||||||
?>
|
?>
|
||||||
<div class="accordion-item">
|
<div class="accordion-item">
|
||||||
<h4 class="accordion-header" id="<?=$data['ID'].'_header'?>">
|
<h4 class="accordion-header" id="<?=$data['ID'].'_header'?>">
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@ use \Wt\Core\Templater\Tools as TemplaterTools;
|
|||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<h5 class="modal-title"><?=$arParams['TITLE']?></h5>
|
<h5 class="modal-title"><?=$arParams['TITLE']?></h5>
|
||||||
<button type="button" class="btn-close kit-icon" data-bs-dismiss="modal" aria-label="Close">
|
<button type="button" class="btn-close kit-icon" data-bs-dismiss="modal" aria-label="Close">
|
||||||
<svg class xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"></path></svg>
|
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"></path></svg>
|
||||||
</button>
|
</button>
|
||||||
<?=$arParams['HEADER']?>
|
<?=$arParams['HEADER']?>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
<?
|
<?
|
||||||
|
|
||||||
|
use \Wt\Core\Media\Webp;
|
||||||
use \Wt\Core\Templater\Tools as TemplaterTools;
|
use \Wt\Core\Templater\Tools as TemplaterTools;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<picture class="kit-picture <?=$arParams['CLASS']?>">
|
<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()) {
|
if($webp->make()->isSuccess()) {
|
||||||
?><source srcset="<?=$webp->getPathOut(true)?>" type="image/webp"><?
|
?><source srcset="<?=$webp->getPathOut(true)?>" type="image/webp"><?
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
<?
|
<?
|
||||||
|
|
||||||
|
use \Wt\Core\Media\Webp;
|
||||||
use \Wt\Core\Templater\Tools as TemplaterTools;
|
use \Wt\Core\Templater\Tools as TemplaterTools;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<picture class="kit-picture <?=$arParams['CLASS']?>">
|
<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()) {
|
if($webp->make()->isSuccess()) {
|
||||||
?><source class="owl-lazy" data-srcset="<?=$webp->getPathOut(true)?>" type="image/webp"><?
|
?><source class="owl-lazy" data-srcset="<?=$webp->getPathOut(true)?>" type="image/webp"><?
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user