Files
kit/tests/templaterTest.php
T
2026-02-15 19:38:58 +03:00

72 lines
2.2 KiB
PHP

<?php
use Bitrix\Main\Loader;
require($_SERVER['DOCUMENT_ROOT']. '/bitrix/modules/main/include/prolog_before.php');?>
<?php
if(Loader::includeModule('wt.core')) {
app()->service()->assets()->setPlugins([
'kit:config',
'kit:flex-kit',
'kit:core',
'kit:bsCore',
'kit:collapse',
'kit:site',
'kit:toolkit',
'kit:theme',
])->render();
}
/**
* @global CMain $APPLICATION
*/
$APPLICATION->ShowHead();
?>
<div class="kit-wrapper">
<div class="flex-list" style="--col-count: 3">
<div class="flex-list-item"><?php
service()->templater()->render('kit:input', [
'TYPE' => 'text',
'HINT' => '',
'ID' => '',
'VALUE' => '"',
'LABEL' => 'value = дв ковычки',
]); ?>
</div>
<div class="flex-list-item"><?php
service()->templater()->render('kit:input', [
'TYPE' => 'text',
'HINT' => '',
'ID' => '',
'VALUE' => '\'',
'LABEL' => 'value = одинарные ковычки',
]); ?>
</div>
<div class="flex-list-item"><?php
service()->templater()->render('kit:input', [
'TYPE' => 'text',
'HINT' => '',
'ID' => '',
'VALUE' => '\'~!@#$%^&*()_+<>?\'" <i>i</i>',
'LABEL' => 'value = спецсимволы',
]); ?>
</div>
<div class="flex-list-item"><?php
service()->templater()->render('kit:input', [
'TYPE' => 'text',
'HINT' => '',
'ID' => '',
'VALUE' => '\\/<>"\'',
'LABEL' => 'value = лев пр слеши, лев пр стрелки, дв од кав',
]); ?>
</div>
<div class="flex-list-item"><?php
service()->templater()->render('kit:input', [
'TYPE' => 'text',
'HINT' => '',
'ID' => '',
'VALUE' => '&quot;&amp;',
'LABEL' => 'value = &quot',
]); ?>
</div>
</div>
</div>