Astra_Builder_Helper::has_center_column( string $row = 'main', string $builder_type = 'header', string $device = 'desktop' )
Check if Center column element exists.
Description
Parameters
- $row
-
(string) (Optional) the name of the row.
Default value: 'main'
- $builder_type
-
(string) (Optional) the type of the builder.
Default value: 'header'
- $device
-
(string) (Optional) Device.
Default value: 'desktop'
Source
File: inc/core/builder/class-astra-builder-helper.php
public static function has_center_column( $row = 'main', $builder_type = 'header', $device = 'desktop' ) { $center = false; $elements = astra_get_option( $builder_type . '-' . $device . '-items' ); if ( isset( $elements ) && isset( $elements[ $row ] ) && isset( $elements[ $row ][ $row . '_center' ] ) && is_array( $elements[ $row ][ $row . '_center' ] ) && ! empty( $elements[ $row ][ $row . '_center' ] ) ) { $center = true; } return $center; }
Expand full source code Collapse full source code View on Trac