' . $single_widget_column . ''; } $preview_cache_widgets_output .= '
'; } blocksy_add_customizer_preview_cache( function () use ($preview_cache_widgets_output) { return blocksy_html_tag( 'div', [ 'data-id' => 'footer-columns' ], blocksy_footer_widgets_structure( $preview_cache_widgets_output ) ); } ); if ( get_theme_mod('has_widget_area', 'yes') === 'yes' && !empty(trim($footer_widgets_output)) ) { /** * Note to code reviewers: This line doesn't need to be escaped. * Function blocksy_footer_widgets_structure() used here escapes the value properly. */ echo blocksy_footer_widgets_structure($footer_widgets_output); } } function blocksy_footer_widgets_structure( $output ) { $columns_structure = get_theme_mod( 'footer_widgets_structure', '3' ); $divider_output = ''; if ( blocksy_akg( 'style', get_theme_mod( 'widgetsAreaDivider', [ 'width' => 1, 'style' => 'dashed', 'color' => [ 'color' => '#dddddd', ], ]) ) !== 'none' ) { $divider_output = 'data-divider'; } $class = 'footer-widgets-area'; $container_class = 'ct-container'; if (get_theme_mod('footer_widgets_container', 'fixed') !== 'fixed') { $container_class = 'ct-container-fluid'; } $class .= ' ' . blocksy_visibility_classes(get_theme_mod('footer_widgets_visibility', [ 'desktop' => true, 'tablet' => true, 'mobile' => false, ])); ob_start(); ?>