| @@ 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'] ) ) { |
|
| @@ 192-197 (lines=6) @@ | ||
| 189 | ); |
|
| 190 | ||
| 191 | // Add alignment if provided. |
|
| 192 | if ( |
|
| 193 | ! empty( $attr['align'] ) |
|
| 194 | && in_array( $attr['align'], array( 'left', 'center', 'right', 'wide', 'full' ), true ) |
|
| 195 | ) { |
|
| 196 | $classes[] = 'align' . $attr['align']; |
|
| 197 | } |
|
| 198 | ||
| 199 | // Add custom classes if provided in the block editor. |
|
| 200 | if ( ! empty( $attr['className'] ) ) { |
|