element_before(); echo $this->element_prepend(); $defaults = array( 'add_button' => esc_attr__( 'Add to gallery', 'exopite-sof' ), 'media_frame_title' => esc_attr__( 'Select images for gallery', 'exopite-sof' ), 'media_frame_button' => esc_attr__( 'Add', 'exopite-sof' ), 'media_type' => 'image', ); $options = ( isset( $field['options'] ) && is_array( $field['options'] ) ) ? $field['options'] : array(); $options = wp_parse_args( $options, $defaults ); $value = $this->element_value(); echo ''; echo $this->element_append(); echo $this->element_after(); } } }