<?php
/**
 *
 * @package Travel Tour
 */

if ( 'posts' == get_option( 'show_on_front' ) ) {
    include( get_home_template() );
} else {
    // Check if the current page uses template-home.php
    $page_id = get_option( 'page_on_front' );
    $page_template = get_page_template_slug( $page_id );
    
    if ( $page_template === 'template-home.php' ) {
        get_template_part( 'template', 'home' );
    } else {
        include( get_page_template() );
    }    
}