/home/techb158/l2hypotheques.com/wp-content/plugins/codestar-framework/fields/checkbox
NameSizeModeActions
checkbox.php33470644editdlrm
Edit: /home/techb158/l2hypotheques.com/wp-content/plugins/codestar-framework/fields/checkbox/checkbox.php (3347B)
field, array( 'inline' => false, 'query_args' => array(), ) ); $inline_class = ( $args['inline'] ) ? ' class="csf--inline-list"' : ''; echo $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 ''; foreach ( $options as $option_key => $option_value ) { if ( is_array( $option_value ) && ! empty( $option_value ) ) { echo '
  • '; echo '
      '; echo '
    • '. esc_attr( $option_key ) .'
    • '; foreach ( $option_value as $sub_key => $sub_value ) { $checked = ( in_array( $sub_key, $value ) ) ? ' checked' : ''; echo '
    • '; echo ''; echo '
    • '; } echo '
    '; echo '
  • '; } else { $checked = ( in_array( $option_key, $value ) ) ? ' checked' : ''; echo '
  • '; echo ''; echo '
  • '; } } echo ''; } else { echo ( ! empty( $this->field['empty_message'] ) ) ? esc_attr( $this->field['empty_message'] ) : esc_html__( 'No data available.', 'csf' ); } } else { echo ''; } echo $this->field_after(); } } }