createElement('div')); $text = $this->GetOptionValue('Text', ''); $text = \str_replace('$$', '', $text); $check = $container->CreateAndAppendChild('label'); $check->SetHtml('✔ '); $label = $container->CreateAndAppendChild('label'); $label->SetText($text);; return $container; } public function InternalToText() { $text = $this->GetOptionValue('Text', ''); $text = \str_replace('$$', '', $text); if($this->GetValue()) $text = __('Yes, ') . $text; else $text = __('No, ') . $text; return $text; } }