diff --git a/templates/elementproperty/s/field.php b/templates/elementproperty/s/field.php index 777a473..7f229e9 100644 --- a/templates/elementproperty/s/field.php +++ b/templates/elementproperty/s/field.php @@ -9,7 +9,7 @@ use Wt\Core\Templater\Shell; */ $elementPropertyEntity = $this->getContext(); -$blockId = $elementPropertyEntity->getFactory()->getIBlockId(); +$blockId = $elementPropertyEntity->getFactory()->getBlockId(); $code = $elementPropertyEntity->getCode(); $fieldId = 'iblock_' . $blockId . '_prop_' . $code; /** diff --git a/templates/input.php b/templates/input.php index e137688..17e6953 100644 --- a/templates/input.php +++ b/templates/input.php @@ -18,7 +18,7 @@ $isDatepicker = Tools::isTrue($arParams['DATEPICKER']) || is_array($arParams['DA $label = $arParams['LABEL']; if($isDatepicker) { - app()->service()->assets()->setPlugin('datepicker'); + app()->service()->assets()->setPlugin('kit:datepicker'); //include ".con/datepicker.php"; $arParams['ADD_CLASS'] .= ' datepicker-here'; } diff --git a/templates/svg/site/mapPointer.php b/templates/svg/site/mapPointer.php new file mode 100644 index 0000000..bd8dac5 --- /dev/null +++ b/templates/svg/site/mapPointer.php @@ -0,0 +1,21 @@ + + + + + \ No newline at end of file diff --git a/tests/templates.svgTest.php b/tests/templates.svgTest.php index f72b077..199cb10 100644 --- a/tests/templates.svgTest.php +++ b/tests/templates.svgTest.php @@ -14,7 +14,8 @@ if(\Bitrix\Main\Loader::includeModule('wt.core')) { } $APPLICATION->ShowHead(); -$templatePath = app()->service()->templater()->getComponent('kit')->getTemplatePath(); +//$templatePath = app()->service()->templater()->getComponent('kit')->getTemplatePath(); +$templatePath = app()->service()->templater()->getPath() . '/kit/templates'; $templateSvgPath = $templatePath . '/svg';