Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- Template Name: Contact
- */
- get_header();
- get_template_part('index','banner');
- $appointment_options=theme_setup_data();
- $contact_setting = wp_parse_args( get_option( 'appointment_options', array() ), $appointment_options );
- //echo "<pre>"; print_r($contact_setting); wp_die();
- $mapsrc= $contact_setting['contact_google_map_url'];
- $mapsrc=$mapsrc.'&output=embed';
- ?>
- <!-- Contact Section -->
- <div class="page-builder">
- <div class="container">
- <div class="row">
- <!--Contact Form-->
- <?php if( $contact_setting['contact_google_map_enabled'] == 1) { ?>
- <div class="col-md-12"><?php } else { ?><div class="col-md-8"><?php } ?>
- <?php
- the_post();
- the_content();?>
- </div>
- <!--/Contact Form-->
- <!--Google Map-->
- <?php if( $contact_setting['contact_google_map_enabled'] == 0) { ?>
- <div class="col-md-4">
- <div class="contact-title"><h2><?php echo $contact_setting['contact_google_title'];?></h2></div>
- <div class="google-map">
- <iframe width="100%" scrolling="no" height="285" frameborder="0" marginheight="0" marginwidth="0" src="<?php echo esc_url($mapsrc); ?>"></iframe>
- </div>
- </div>
- <?php } ?>
- <!--Google Map-->
- </div>
- </div>
- </div>
- <!-- /Contact Section -->
- <div class="clearfix"></div>
- <!-- Contact Detail Section -->
- <?php if( $contact_setting['contact-callout-enable'] == 0) { ?>
- <div class="contact-detail-section" style="background: url('<?php echo $contact_setting['contact_callout_back']; ?>') repeat <?php echo $contact_setting['contact_attachment']; ?> 0 0 rgba(0, 0, 0, 0); background-size:cover;">
- <div class="overlay" style="background: none repeat scroll 0 0 <?php echo ($contact_setting['contact_overlay']!=true?'transparent':'rgba(0, 0, 0, 0.2)'); ?>;">
- <div class="container">
- <!-- Section Title -->
- <div class="row">
- <div class="col-md-12">
- <div class="section-heading-title">
- <h1 class="text-color"><?php echo $contact_setting['contact_title']; ?></h1>
- <p class="text-color"><?php echo $contact_setting['contact_description']; ?></p>
- </div>
- </div>
- </div>
- <!-- /Section Title -->
- <!-- Contact Area -->
- <div class="row">
- <div class="col-md-4">
- <div class="contact-detail-area">
- <i class="fa <?php echo $contact_setting['contact_call_icon'];?>"></i>
- <h6><?php echo $contact_setting['contact_call_title']; ?></h6>
- <address><?php echo $contact_setting['contact_call_description'];?></address>
- </div>
- </div>
- <div class="col-md-4">
- <div class="contact-detail-area">
- <i class="fa <?php echo $contact_setting['contact_add_icon']; ?>"></i>
- <h6><?php echo $contact_setting['contact_add_title']; ?></h6>
- <address><?php echo $contact_setting['contact_add_description']; ?></address>
- </div>
- </div>
- <div class="col-md-4">
- <div class="contact-detail-area">
- <i class="fa <?php echo $contact_setting['contact_mail_icon']; ?>"></i>
- <h6><?php echo $contact_setting['contact_mail_title']; ?></h6>
- <address><?php echo $contact_setting['contact_mail_description']; ?></address>
- </div>
- </div>
- </div>
- <!-- /Contact Area -->
- </div>
- </div>
- </div>
- <?php } ?>
- <!-- /Contact Detail Section -->
- <div class="clearfix"></div>
- <!-- Horizontal Callout Section -->
- <?php if( $contact_setting['check_contact_callout'] == 0) { ?>
- <div class="hrtl-callout-section">
- <div class="container">
- <div class="row">
- <div class="col-md-<?php if($contact_setting['contact_callout_button'] == null){echo 12;} else{echo 9;}?>">
- <h2><?php echo $contact_setting['contact_callout_title']; ?></h2>
- <p><?php echo $contact_setting['contact_callout_description']; ?></p>
- </div>
- <?php if($contact_setting['contact_callout_button'] != null): ?>
- <div class="col-md-3">
- <div class="hrtl-btn-area">
- <a href="<?php echo $contact_setting['contact_callout_button_link']; ?>" <?php if( $contact_setting['contact_callout_link_target'] == 1) { echo "target='_blank'"; } ?> class="hrtl-btn"><?php echo $contact_setting['contact_callout_button']; ?></a>
- </div>
- </div>
- <?php endif; ?>
- </div>
- </div>
- </div>
- <?php } ?>
- <!-- /Horizontal Callout Section -->
- <div class="clearfix"></div>
- <!-- Footer Section -->
- <?php get_footer(); ?>
- <!-- /Footer Section -->
Add Comment
Please, Sign In to add comment