'header', 'data-section-id' => $section_id, ); $current_template = brandy_get_header_template(); $settings = $current_template['row_configurations'][ $row ]; $hidden_classes = brandy_get_enabled_device_classes( $settings['enabled_devices'] ); if ( ! is_customize_preview() && ! in_array( $device, $settings['enabled_devices'], true ) ) { return; } $columns = $current_template['placements'][ 'tablet' === $device ? 'mobile' : $device ][ $row ]; $row_layout = $current_template['settings']['layout'] ?? 'full-width'; $columns_has_element = array_filter( $columns, function( $col ) { return count( $col ) > 0; } ); if ( count( $columns_has_element ) <= 0 ) { return; } $attributes['id'] = "brandy-$row-header"; $attributes['class'] = "brandy-child-header brandy-$row-header $hidden_classes " . brandy_get_editable_class( 'row' ); $attributes['data-layout'] = $row_layout; ?>