Guest User

Untitled

a guest
Mar 26th, 2018
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.85 KB | None | 0 0
  1. <?php
  2. //Template Name: Contact
  3. get_header();
  4. get_template_part('index', 'bannerstrip');
  5.  
  6. $current_options = wp_parse_args( get_option( 'busiprof_pro_theme_options', array() ), theme_data_setup() );
  7.  
  8. $mapsrc = $current_options['google_map_url'];
  9. $mapsrc = $mapsrc.'&amp;output=embed';
  10. ?>
  11.  
  12.  
  13. <div class="clearfix"></div>
  14.  
  15. <!-- Contact Section -->
  16. <section id="section" class="contact">
  17. <div class="container">
  18.  
  19. <div class="row">
  20. <!--Contact Info-->
  21. <?php if( $current_options['contact_info_enabled'] == 'on' ) { ?>
  22. <div class="col-md-7 col-xs-12">
  23. <div class="contact">
  24. <div class="post-thumbnail">
  25. <?php if( $current_options['footer_twitter_link'] != '' ) { ?>
  26. <div class="twitter-social"><a href="<?php echo $current_options['footer_twitter_link']; ?>">&nbsp;</a></div>
  27. <?php } ?>
  28. <div class="contact-gravatar">
  29. <div class="contact_left_ic_img"><img class="aboutroundimg" src="<?php echo BUSI_TEMPLATE_DIR_URI .'/images/contact_ic1.png'?>"></div>
  30. </div>
  31. <?php if( $current_options['footer_facebook_link'] != '' ) { ?>
  32. <div class="facebook-social"><a href="<?php echo $current_options['footer_facebook_link']; ?>">&nbsp;</a></div>
  33. <?php } if( $current_options['footer_linkedin_link'] != '' ) { ?>
  34. <div class="linkedin-social"><a href="<?php echo $current_options['footer_linkedin_link']; ?>">&nbsp;</a></div>
  35. <?php } ?>
  36. </div>
  37. <div class="media-body">
  38. <address>
  39. <p><?php
  40. if( $current_options['contact_address_1'] )
  41. echo $current_options['contact_address_1'];
  42. ?><br>
  43. <?php
  44. if( $current_options['contact_address_2'] )
  45. echo $current_options['contact_address_2'];
  46. ?></p>
  47.  
  48. <?php
  49. if( $current_options['contact_number'] != '' )
  50. {
  51. ?>
  52. <p><strong><?php _e('Phone','busiprof'); ?></strong> <?php echo $current_options['contact_number']; ?></p>
  53. <?php }
  54. if( $current_options['contact_fax_number'] != '' )
  55. {
  56. ?>
  57. <p><strong><?php _e('Fax','busiprof'); ?></strong> <?php echo $current_options['contact_fax_number']; ?></p>
  58. <?php }
  59. if( $current_options['contact_email'] != '' ) { ?>
  60. <p><strong><?php _e('Email','busiprof'); ?></strong> <a ><?php echo $current_options['contact_email']; ?></a></p>
  61. <?php }
  62. if( $current_options['contact_website'] != '' )
  63. {
  64. ?>
  65. <p><strong><?php _e('Website','busiprof'); ?></strong> <a ><?php echo $current_options['contact_website']; ?></a></p>
  66. <?php } ?>
  67. </address>
  68. </div>
  69. </div>
  70. </div>
  71. <!--/End of Contact Info-->
  72.  
  73. <!--Contact Form-->
  74. <div class="col-md-5 col-xs-12">
  75. <div class="contact-form">
  76. <?php the_post(); the_content(); ?>
  77. </div>
  78. </div>
  79. <?php } else { ?>
  80. <!--Contact Form-->
  81. <div class="col-md-12 col-xs-12">
  82. <div class="contact-form">
  83. <?php the_post(); the_content(); ?>
  84. </div>
  85. </div>
  86. <?php } ?>
  87.  
  88. <!--/End of Contact Form-->
  89.  
  90. </div>
  91.  
  92. <!--Google map-->
  93. <?php if( $current_options['contact_google_map_enabled'] == 'on' ) { ?>
  94. <div class="row">
  95. <div class="col-md-12">
  96. <?php if( $current_options['google_map_url'] != '' ) { ?>
  97. <div class="google-map">
  98. <iframe width="100%" height="380" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="<?php echo $mapsrc ?>"></iframe>
  99. </div>
  100. <?php } ?>
  101. </div>
  102. </div>
  103. <?php } ?>
  104. <!--/End of Google map-->
  105.  
  106. </div>
  107. </section>
  108. <!-- End of Contact Section -->
  109.  
  110. <div class="clearfix"></div>
  111. <?php if( $current_options['contact_client_enabled'] == 'on' ) { ?>
  112. <!-- Clients Section -->
  113. <?php get_template_part('index','clientstrip'); ?>
  114. <!-- End of Clients Section -->
  115. <?php } ?>
  116. <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment