'footer', 'data-section-id' => $section_id, ); $current_template = brandy_get_footer_template(); $device = isset( $args['device'] ) ? $args['device'] : 'desktop'; $cols = $current_template['placements'][ $device ][ $row ]; $cols_has_element = array_filter( $cols, function( $col ) { return count( $col ) > 0; } ); if ( count( $cols_has_element ) <= 0 ) { return; } $settings = $current_template['row_configurations'][ $row ]; $hidden_classes = brandy_enabled_devices_classes( $settings['enabled_devices'] ); $hidden_classes = brandy_enabled_devices_classes( $settings['enabled_devices'] ); if ( ! is_customize_preview() && ! in_array( $device, $settings['enabled_devices'], true ) ) { return; } $row_layout = isset( $current_template['settings']['layout'] ) ? $current_template['settings']['layout'] : 'full-width'; $attributes['id'] = "brandy-$row-footer"; $attributes['class'] = "brandy-child-footer brandy-$row-footer $hidden_classes " . brandy_get_editable_class( 'row' ); $attributes['class'] .= 'full-width' !== $row_layout ? ' is-boxed' : ''; $attributes['data-layout'] = $row_layout; if ( ! empty( $settings['is_constrained'] ) ) { $attributes['data-is-constrained'] = 'true'; } if ( ! empty( $settings['split_container'] ) ) { $attributes['data-split-container'] = 'true'; } ?>