Files
kit/tests/cheatsheetTest.php
T
2023-11-18 02:26:27 +03:00

51 lines
1.8 KiB
PHP

<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");?>
<?
if(\Bitrix\Main\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();
}
$APPLICATION->ShowHead();
/**
* @param $name
* @param $filePath
*/
function includeSection ($name, $filePath){
?><div class="kit-section"><h2><?=$name?></h2><? include $filePath; ?></div><?
}
?>
<script>
kit.ready(['popover', 'datepicker'], function () {
});
</script>
<div class="kit-wrapper">
<h1 style="text-align: center;">BX.KIT FRONT-END FRAMEWORK</h1>
<?
includeSection('Text samples',__DIR__ . '/cheatSheet/text.php');
includeSection('Tooltip',__DIR__ . '/cheatSheet/tooltip.php');
includeSection('Popover',__DIR__ . '/cheatSheet/popover.php');
includeSection('Modals',__DIR__ . '/cheatSheet/modals.php');
includeSection('Color fields',__DIR__ . '/cheatSheet/field/color.php');
includeSection('Tel fields',__DIR__ . '/cheatSheet/field/tel.php');
includeSection('Number fields',__DIR__ . '/cheatSheet/field/number.php');
includeSection('Select fields',__DIR__ . '/cheatSheet/field/select.php');
includeSection('Checkbox fields',__DIR__ . '/cheatSheet/field/checkbox.php');
includeSection('Radio fields',__DIR__ . '/cheatSheet/field/radio.php');
includeSection('Text fields',__DIR__ . '/cheatSheet/field/text.php');
includeSection('Textarea fields',__DIR__ . '/cheatSheet/field/textarea.php');
includeSection('File fields',__DIR__ . '/cheatSheet/field/file.php');
includeSection('Buttons',__DIR__ . '/cheatSheet/button/buttons.php');
?>
</div>
<?