__('Radio Buttons', __FILE__), // Module Title 'summary' => __('Radio buttons for selection of a single item', __FILE__), // Module Summary 'version' => 106, 'permanent' => true, ); } public function init() { $this->set('optionColumns', 0); $this->set('optionWidth', ''); parent::init(); } public function ___render() { $sanitizer = $this->wire()->sanitizer; $defaults = array( 'wbr' => false, 'noSelectLabels' => true, ); $settings = $this->wire()->config->get('InputfieldRadios'); $settings = is_array($settings) ? array_merge($defaults, $settings) : $defaults; $this->checkDefaultValue(); $inline = false; $columns = (int) $this->optionColumns; if($columns === 1) $inline = true; $options = $this->getOptions(); $optionWidth = $this->getOptionWidthCSS($this->optionWidth, $options); $entityEncodeLabels = $this->getSetting('entityEncodeText') === false ? false : true; $liAttr = ''; if($optionWidth) { $liAttr = " style='width:$optionWidth'"; $out = "