<?php
/**
 * Template part for displaying Contact Section
 *
 * @package Spiral_Lite_One_Page
 */

include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
$contact_subtitle = get_theme_mod( 'spiral_lite_one_page_contact_section_subtitle', __( "Don't hesitate to get in touch with us", 'spiral-lite-one-page' ) );
$contact_pretitle = get_theme_mod( 'spiral_lite_one_page_contact_section_pretitle', __( "Pellentesque sapien purus, sagittis eu accumsan convallis, vehicula ut lectus. Fusce accumsan <strong>purus pretium ligula</strong> vehicula, ut interdum nisl vulputate. Vivamus ultrices luctus quam eu feugiat", 'spiral-lite-one-page' ) );
$contact_section_form  = get_theme_mod( 'spirallite_one_page_contact_section_form' );

?>

 <!-- Title-->
 <div class="text-center">
				
				<h1 class="title"><?php echo esc_html( get_theme_mod( 'spiral_lite_one_page_contact_section_page_title', 'CONTACT US' ) ); ?></h1>

				<div class="icon"><i class="fa fa-<?php echo esc_html( get_theme_mod( 'spiral_lite_one_page_contact_section_icon', 'envelope' ) ); ?>"></i></div>
                    <?php

if ( ! empty( $contact_subtitle ) ) : ?>
    <h2 class="subtitle" style="color: #666666;"><?php echo esc_html( $contact_subtitle ); ?></h2>
<?php endif; ?>

<?php if ( ! empty( $contact_pretitle ) ) :?>
    <p class="pretitle"><?php echo wp_kses_post( $contact_pretitle ); ?></p>
<?php endif; ?>
                 </div> <!-- End Title -->

                 <?php if( is_plugin_active( 'contact-form-7/wp-contact-form-7.php' ) ){ ?>
        <?php 
            echo do_shortcode( wp_kses_post( $contact_section_form ) );?>    
</div>
<?php } ?>

