private function set_modal_config() {

		if ( ! empty( $this->struct['config'] ) ) {
			$attributes = array();
			foreach ( $this->struct['config'] as $att => $value ) {
				$attributes[ 'data-' . $att ] = $value;
			}
			$this->attributes['data-config'] = json_encode( $attributes );

		}
	}
private function set_modal_config() {

		if ( ! empty( $this->struct['config'] ) ) {
			$attributes = array();
			foreach ( $this->struct['config'] as $att => $value ) {
				$attributes[ 'data-' . $att ] = $value;
			}
			$this->attributes['data-config'] = json_encode( $attributes );

		}
	}
private function set_modal_config ( ) { if ( ! empty ( $ this -> struct [ 'config' ] ) ) { $ attributes = array ( ) ; foreach ( $ this -> struct [ 'config' ] as $ att => $ value ) { $ attributes [ 'data-' . $ att ] = $ value ; } $ this -> attributes [ 'data-config' ] = json_encode ( $ attributes ) ; } }
Sets the wrappers data attributes

@since 1.0.0
@access private
Sets the wrappers data attributes