protected function get_option(array $attrs, $value, $k, $v, $default, $i, $checked = 0) { if ($v === '%text%') { if (!empty($value)) { $checked = !in_array($value, $this->config['args']['values']); $v = $checked ? $value : $v; $disabled = $checked; } else { $checked = false; $is_custom = false; $disabled = 'disabled'; } $result = parent::get_option($attrs, $value, $k, $v, $default, $i, $checked); $result .= \Cibulka::Base('HTML', 'input', array('type' => 'text', 'disabled' => $disabled, 'class' => 'radio-text', 'value' => $checked ? $value : '')); } else { $result = parent::get_option($attrs, $value, $k, $v, $default, $i, $checked); } return $result; }