Guest User

Untitled

a guest
Jan 14th, 2019
19
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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-5 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-7 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. <?php
  92. $defalt_arg =array('class' => "img-responsive");
  93. if(has_post_thumbnail()) {
  94. the_post_thumbnail('',$defalt_arg);
  95. }
  96. ?>
  97. <!--Google map-->
  98. <?php if( $current_options['contact_google_map_enabled'] == 'on' ) { ?>
  99. <div class="row">
  100. <div class="col-md-12">
  101. <?php if( $current_options['google_map_url'] != '' ) { ?>
  102. <div class="google-map">
  103. <iframe width="100%" height="380" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="<?php echo $mapsrc ?>"></iframe>
  104. </div>
  105. <?php } ?>
  106. </div>
  107. </div>
  108. <?php } ?>
  109. <!--/End of Google map-->
  110.  
  111. </div>
  112. </section>
  113. <!-- End of Contact Section -->
  114.  
  115. <div class="clearfix"></div>
  116. <?php if( $current_options['contact_client_enabled'] == 'on' ) { ?>
  117. <!-- Clients Section -->
  118. <?php get_template_part('index','clientstrip'); ?>
  119. <!-- End of Clients Section -->
  120. <?php } ?>
  121. <?php get_footer(); ?>
RAW Paste Data