Astra_Builder_Helper::has_mobile_center_column( string $row = 'primary' )
Adds a check to see if the center column should run.
Description
Parameters
- $row
-
(string) (Optional) the name of the row.
Default value: 'primary'
Source
File: inc/core/builder/class-astra-builder-helper.php
public static function has_mobile_center_column( $row = 'primary' ) { $mobile_center = false; $elements = astra_get_option( 'header-mobile-items' ); if ( isset( $elements ) && isset( $elements[ $row ] ) && isset( $elements[ $row ][ $row . '_center' ] ) && is_array( $elements[ $row ][ $row . '_center' ] ) && ! empty( $elements[ $row ][ $row . '_center' ] ) ) { $mobile_center = true; } return $mobile_center; }
Expand full source code Collapse full source code View on Trac