field, [ 'inline' => false, 'query_args' => [], ] ); $inline_class = ( $args['inline'] ) ? 'adminify--inline-list' : ''; echo wp_kses_post( $this->field_before() ); if ( isset( $this->field['options'] ) ) { $value = ( is_array( $this->value ) ) ? $this->value : array_filter( (array) $this->value ); $options = $this->field['options']; $options = ( is_array( $options ) ) ? $options : array_filter( $this->field_data( $options, false, $args['query_args'] ) ); if ( is_array( $options ) && ! empty( $options ) ) { echo ''; } else { if ( ! empty( $this->field['empty_message'] ) ) { echo esc_attr( $this->field['empty_message'] ); } else { echo esc_html__( 'No data available.', 'adminify' ); } } } else { echo ''; } echo wp_kses_post( $this->field_after() ); } } }