File: /home/mmickelson/inspirationdigital.com.old/wp-content/themes/shop-isle/content-contact.php
<?php
/**
* The template used for displaying page content in template-contact.php
*
* @package shop-isle
*/
?>
<section class="module">
<div class="container">
<div class="row">
<?php
$shop_isle_contact_page_form_shortcode = get_theme_mod('shop_isle_contact_page_form_shortcode');
$is_content = $post->post_content !== "" ? true : false;
$is_shotcode = !empty($shop_isle_contact_page_form_shortcode) ? true : false;
if( $is_shotcode ){
echo '<div class="col-xs-12 ' . ( $is_content ? 'col-sm-6' : 'col-sm-12' ) . ' contact-page-form">';
echo do_shortcode($shop_isle_contact_page_form_shortcode);
echo '</div>';
}
if( $is_content ) {
echo '<div class="col-xs-12 ' . ( $is_shotcode ? 'col-sm-6' : 'col-sm-12' ) .'">';
the_content();
echo '</div>';
}
?>
</div><!-- .row -->
</div>
</section>
<!-- Contact end -->
<!-- Map start -->
<?php
$shop_isle_contact_page_map_shortcode = get_theme_mod('shop_isle_contact_page_map_shortcode');
if( !empty($shop_isle_contact_page_map_shortcode) ):
echo '<section id="map-section">';
echo '<div id="map">'.do_shortcode($shop_isle_contact_page_map_shortcode).'</div>';
echo '</section>';
endif;
?>
<!-- Map end -->