Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/yandex.market/lib/ui/userfield/view/ |
Upload File : |
<?php namespace Yandex\Market\Ui\UserField\View; use Yandex\Market; class Radio extends EnumControl { public static function getControl($options, $value, array $attributes = [], array $settings = []) { return static::getOptionsHtml($options, $value, $attributes, $settings); } protected static function openGroup($title, $isFirst) { return sprintf( '<strong style="display: block; margin: %s 0 5px">%s</strong>', $isFirst ? '0' : '10px', htmlspecialcharsbx($title) ); } protected static function closeGroup() { return ''; } protected static function option(array $option, array $attributes, $isSelected) { $attributesString = Market\Ui\UserField\Helper\Attributes::stringify($attributes); $id = htmlspecialcharsbx($option['ID']); $value = htmlspecialcharsbx($option['VALUE']); if ($isSelected) { $attributesString .= ' checked'; } return <<<EOL <label> <input type="radio" value="{$id}" {$attributesString} /> $value </label> <br> EOL; } }