| @@ 854-859 (lines=6) @@ | ||
| 851 | ); |
|
| 852 | ||
| 853 | // Add alignment if provided. |
|
| 854 | if ( |
|
| 855 | ! empty( $attr['align'] ) |
|
| 856 | && in_array( $attr['align'], array( 'left', 'center', 'right', 'wide', 'full' ), true ) |
|
| 857 | ) { |
|
| 858 | array_push( $classes, 'align' . $attr['align'] ); |
|
| 859 | } |
|
| 860 | ||
| 861 | // Add custom classes if provided in the block editor. |
|
| 862 | if ( ! empty( $attr['className'] ) ) { |
|
| @@ 42-47 (lines=6) @@ | ||
| 39 | ); |
|
| 40 | ||
| 41 | // Add alignment if provided. |
|
| 42 | if ( |
|
| 43 | ! empty( $attr['align'] ) |
|
| 44 | && in_array( $attr['align'], array( 'left', 'center', 'right', 'wide', 'full' ), true ) |
|
| 45 | ) { |
|
| 46 | $classes[] = 'align' . $attr['align']; |
|
| 47 | } |
|
| 48 | ||
| 49 | // Add custom classes if provided in the block editor. |
|
| 50 | if ( ! empty( $attr['className'] ) ) { |
|