<?php

if ( get_theme_mod( 'travel_tour_info_section_display', true ) ) {
    $title = get_theme_mod( 'travel_tour_info_section_title', '' );
    $bg_color = get_theme_mod( 'travel_tour_info_section_bg_color', '#fff' );
    $blocks = get_theme_mod( 'travel_tour_quick_info_blocks', '' );
    if ( !empty( $blocks ) && is_array( $blocks ) ) {
        set_query_var( 'title', $title );
        set_query_var( 'bg_color', $bg_color );
        set_query_var( 'blocks', $blocks );
        get_template_part( 'layouts/homepage/info/info-layout', 'one' );
    }
}