File manager - Edit - /home/c14075/dragmet-ural.ru/www/bitrix/components/bitrix/main.field.double/templates/main.edit/result_modifier.php
Back
<?php use Bitrix\Main\Text\HtmlFilter; if(!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) die(); /** * @var $component DoubleUfComponent * @var $arResult array * @var $arParams array */ $component = $this->getComponent(); CJSCore::init(['uf']); $attrList = []; if($arResult['userField']['EDIT_IN_LIST'] !== 'Y') { $attrList['disabled'] = 'disabled'; } if($arResult['userField']['SETTINGS']['SIZE'] > 0) { $attrList['size'] = (int)$arResult['userField']['SETTINGS']['SIZE']; } if(array_key_exists('attribute', $arResult['additionalParameters'])) { $attrList = array_merge($attrList, $arResult['additionalParameters']['attribute']); } if(isset($attrList['class']) && is_array($attrList['class'])) { $attrList['class'] = implode(' ', $attrList['class']); } $attrList['class'] = implode(' ',[ $component->getHtmlBuilder()->getCssClassName(), ($attrList['class'] ?? '') ]); $attrList['name'] = $arResult['fieldName']; $attrList['placeholder'] = ( $arParams['userField']['placeholder'] ?? htmlspecialcharsback($arParams['~userField']['EDIT_FORM_LABEL']) ); $attrList['type'] = 'text'; foreach($arResult['value'] as $key => $value) { if($component->isMobileMode()) { $attrList['name'] = str_replace('[]', '[' . $key . ']', $arResult['fieldName']); } $attrList['value'] = $value; $arResult['value'][$key] = [ 'attrList' => $attrList, 'value' => $value ]; }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.37 |
proxy
|
phpinfo
|
Settings