<?php
/*
Template Name: Contact
*/

get_header();
global $ththeme_option;
if(empty(get_the_post_thumbnail_url())){

	$thumbnail_url = $ththeme_option['page-title-background']['url'];
} else $thumbnail_url = get_the_post_thumbnail_url();
?>

	<!-- Page header -->
	<div class="logisco-page-title-wrap  logisco-style-custom logisco-center-align" style="background-image: url(<?php echo $thumbnail_url; ?>) ;">
        <div class="logisco-header-transparent-substitute"></div>
        <div class="logisco-page-title-overlay"></div>
        <div class="logisco-page-title-container logisco-container">
            <div class="logisco-page-title-content logisco-item-pdlr">
                <h1 class="logisco-page-title" style="font-size: 44px ;text-transform: none ;letter-spacing: 0px ;"><?php the_title(); ?></h1>
            </div>
        </div>
    </div>
	<div class="logisco-page-wrapper" id="logisco-page-wrapper">
        <div class="gdlr-core-page-builder-body">
            <div class="gdlr-core-pbf-wrapper " style="padding: 45px 0px 35px 0px;">
                <div class="gdlr-core-pbf-background-wrap" style="background-color: #ffffff ;"></div>
                <div class="gdlr-core-pbf-wrapper-content gdlr-core-js ">
                    <div class="gdlr-core-pbf-wrapper-container clearfix gdlr-core-container">
                        <div class="gdlr-core-pbf-column gdlr-core-column-30 gdlr-core-column-first">
                        <?php
                        /* Start the Loop */
                        while ( have_posts() ) :
                            the_post();
                            get_template_part( 'template-parts/content/content', 'page' );
                        endwhile; // End of the loop.
                        ?>
                        </div>
                        <div class="gdlr-core-pbf-column gdlr-core-column-30 contact-form">
                            <h5 class="gdlr-core-skin-title " style="font-size: 24px ;letter-spacing: 0px ;text-transform: capitalize; ;">Gửi Lời Nhắn <span class="gdlr-core-title-item-title-divider gdlr-core-skin-divider"></span></h5>
                            <?php echo do_shortcode( $ththeme_option['home-contact-form'] ); ?>
                        </div>
                    </div>
                </div>
            </div>
            <div class="gdlr-core-pbf-wrapper " style="padding: 0px 0px 0px 0px;">
                <div class="gdlr-core-pbf-wrapper-content gdlr-core-js ">
                    <div class="gdlr-core-pbf-wrapper-container clearfix gdlr-core-pbf-wrapper-full-no-space">
                        <div class="gdlr-core-pbf-element">
                            <div class="gdlr-core-wp-google-map-plugin-item gdlr-core-item-pdlr gdlr-core-item-pdb " style="padding-bottom: 0px ;">
                                <div style="overflow:hidden;width: 100%;position: relative;">
                                    <?php echo $ththeme_option['contact-page-map']; ?>
                                    <div style="position: absolute;width: 80%;bottom: 20px;left: 0;right: 0;margin-left: auto;margin-right: auto;color: #000;">

                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

<?php
get_footer();