element_before(); if( isset( $this->field['options'] ) ) { $options = $this->field['options']; $class = $this->element_class(); $options = ( is_array( $options ) ) ? $options : array_filter( $this->element_data( $options ) ); $extra_name = ( isset( $this->field['attributes']['multiple'] ) ) ? '[]' : ''; $chosen_rtl = ( is_rtl() && strpos( $class, 'chosen' ) ) ? 'chosen-rtl' : ''; if (is_array($this->element_value())) { $oldValue = implode(',', $this->element_value()); } else { $oldValue = $this->element_value(); } echo ''; if (strpos( $class, 'chosen' )) { $event1 = "ActionSelectAll(event)"; $event2 = "ActionUnSelectAll(event)"; echo ''; echo ''; } } echo $this->element_after(); } }