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