Astra_Builder_Helper::is_footer_row_empty( string $row = 'primary' )
Check if Footer Zone is empty.
Description
Parameters
- $row
-
(string) (Optional) row.
Default value: 'primary'
Return
(bool)
Source
File: inc/core/builder/class-astra-builder-helper.php
public static function is_footer_row_empty( $row = 'primary' ) { $sides = false; $elements = astra_get_option( 'footer-desktop-items' ); if ( isset( $elements ) && isset( $elements[ $row ] ) ) { for ( $i = 1; $i <= 5; $i++ ) { if ( isset( $elements[ $row ][ $row . '_' . $i ] ) && is_array( $elements[ $row ][ $row . '_' . $i ] ) && ! empty( $elements[ $row ][ $row . '_' . $i ] ) ) { $sides = true; break; } } } return $sides; }
Expand full source code Collapse full source code View on Trac