Guest User

Untitled

a guest
Feb 21st, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.43 KB | None | 0 0
  1. <?php
  2. /**
  3. Template Name: Contact
  4. */
  5. get_header();
  6. get_template_part('index','banner');
  7.  
  8. $appointment_options=theme_setup_data();
  9. $contact_setting = wp_parse_args( get_option( 'appointment_options', array() ), $appointment_options );
  10. //echo "<pre>"; print_r($contact_setting); wp_die();
  11. $mapsrc= $contact_setting['contact_google_map_url'];
  12. $mapsrc=$mapsrc.'&amp;output=embed';
  13. ?>
  14. <!-- Contact Section -->
  15. <div class="page-builder">
  16. <div class="container">
  17.  
  18.  
  19. <div class="row">
  20.  
  21. <!--Contact Form-->
  22. <?php if( $contact_setting['contact_google_map_enabled'] == 1) { ?>
  23. <div class="col-md-12"><?php } else { ?><div class="col-md-8"><?php } ?>
  24. <?php
  25. the_post();
  26. the_content();?>
  27. </div>
  28. <!--/Contact Form-->
  29.  
  30.  
  31. <!--Google Map-->
  32. <?php if( $contact_setting['contact_google_map_enabled'] == 0) { ?>
  33. <div class="col-md-4">
  34. <div class="contact-title"><h2><?php echo $contact_setting['contact_google_title'];?></h2></div>
  35. <div class="google-map">
  36. <iframe width="100%" scrolling="no" height="285" frameborder="0" marginheight="0" marginwidth="0" src="<?php echo esc_url($mapsrc); ?>"></iframe>
  37. </div>
  38. </div>
  39. <?php } ?>
  40. <!--Google Map-->
  41.  
  42.  
  43. </div>
  44.  
  45. </div>
  46. </div>
  47. <!-- /Contact Section -->
  48.  
  49. <div class="clearfix"></div>
  50.  
  51. <!-- Contact Detail Section -->
  52. <?php if( $contact_setting['contact-callout-enable'] == 0) { ?>
  53. <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;">
  54. <div class="overlay" style="background: none repeat scroll 0 0 <?php echo ($contact_setting['contact_overlay']!=true?'transparent':'rgba(0, 0, 0, 0.2)'); ?>;">
  55. <div class="container">
  56. <!-- Section Title -->
  57. <div class="row">
  58. <div class="col-md-12">
  59.  
  60. <div class="section-heading-title">
  61. <h1 class="text-color"><?php echo $contact_setting['contact_title']; ?></h1>
  62. <p class="text-color"><?php echo $contact_setting['contact_description']; ?></p>
  63. </div>
  64. </div>
  65. </div>
  66. <!-- /Section Title -->
  67.  
  68. <!-- Contact Area -->
  69. <div class="row">
  70. <div class="col-md-4">
  71. <div class="contact-detail-area">
  72.  
  73. <i class="fa <?php echo $contact_setting['contact_call_icon'];?>"></i>
  74. <h6><?php echo $contact_setting['contact_call_title']; ?></h6>
  75. <address><?php echo $contact_setting['contact_call_description'];?></address>
  76.  
  77. </div>
  78. </div>
  79. <div class="col-md-4">
  80. <div class="contact-detail-area">
  81.  
  82. <i class="fa <?php echo $contact_setting['contact_add_icon']; ?>"></i>
  83. <h6><?php echo $contact_setting['contact_add_title']; ?></h6>
  84. <address><?php echo $contact_setting['contact_add_description']; ?></address>
  85. </div>
  86. </div>
  87. <div class="col-md-4">
  88. <div class="contact-detail-area">
  89. <i class="fa <?php echo $contact_setting['contact_mail_icon']; ?>"></i>
  90. <h6><?php echo $contact_setting['contact_mail_title']; ?></h6>
  91. <address><?php echo $contact_setting['contact_mail_description']; ?></address>
  92. </div>
  93. </div>
  94. </div>
  95.  
  96. <!-- /Contact Area -->
  97. </div>
  98.  
  99. </div>
  100. </div>
  101. <?php } ?>
  102. <!-- /Contact Detail Section -->
  103.  
  104. <div class="clearfix"></div>
  105.  
  106. <!-- Horizontal Callout Section -->
  107.  
  108. <?php if( $contact_setting['check_contact_callout'] == 0) { ?>
  109. <div class="hrtl-callout-section">
  110. <div class="container">
  111.  
  112. <div class="row">
  113. <div class="col-md-<?php if($contact_setting['contact_callout_button'] == null){echo 12;} else{echo 9;}?>">
  114. <h2><?php echo $contact_setting['contact_callout_title']; ?></h2>
  115. <p><?php echo $contact_setting['contact_callout_description']; ?></p>
  116.  
  117. </div>
  118. <?php if($contact_setting['contact_callout_button'] != null): ?>
  119. <div class="col-md-3">
  120.  
  121. <div class="hrtl-btn-area">
  122. <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>
  123. </div>
  124.  
  125. </div>
  126. <?php endif; ?>
  127. </div>
  128. </div>
  129. </div>
  130. <?php } ?>
  131. <!-- /Horizontal Callout Section -->
  132. <div class="clearfix"></div>
  133. <!-- Footer Section -->
  134. <?php get_footer(); ?>
  135. <!-- /Footer Section -->
Add Comment
Please, Sign In to add comment