options; } public function output() { $output = array(); $options = $this->get_options(); $idx = 0; $id = $this->get_id(); foreach ( $options as $key => $option ) { $is_complex_option = is_array( $option ); $label = $is_complex_option ? $option['label'] : $option; $value = $is_complex_option && isset( $option['value'] ) ? $option['value'] : $key; $output[] = '

'; $idx++; } return implode( $output ); } }