field['class'] ) ) ? implode( ' ', explode( ' ', $this->field['class'] ) ) : ''; echo $this->element_before(); if ( isset( $this->field['options'] ) ) { $options = $this->field['options']; $options = ( is_array( $options ) ) ? $options : array_filter( $this->element_data( $options ) ); $style = ( isset( $this->field['style'] ) ) ? $this->field['style'] : ''; if ( ! empty( $options ) ) { echo 'element_class() . '>'; foreach ( $options as $key => $value ) { switch ( $style ) { case 'fancy': echo '
  • '; echo ''; echo '
  • '; break; default: echo '
  • '; break; } } echo ''; } } else { $label = ( isset( $this->field['label'] ) ) ? $this->field['label'] : ''; switch ( $this->field['style'] ) { case 'fancy': echo ''; break; default: echo ''; break; } } echo $this->element_after(); } } }