Guest User

Untitled

a guest
Jun 12th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.81 KB | None | 0 0
  1. <?php //Template Name: About Us
  2. get_header ();
  3. get_template_part('index', 'bannerstrip');
  4. $current_options = wp_parse_args( get_option( 'busiprof_pro_theme_options', array() ), theme_data_setup() );
  5. ?>
  6.  
  7.  
  8. <div class="clearfix"></div>
  9.  
  10. <!-- About Section -->
  11. <?php if(($current_options['enable_team_section']) == 'on'){ ?>
  12. <section id="section" class="about">
  13. <div class="container">
  14. <div class="row">
  15. <?php if(has_post_thumbnail()): ?>
  16. <div class="col-md-12">
  17. <div class="page-thumb">
  18. <?php the_post_thumbnail(); ?>
  19. </div>
  20. </div>
  21. <?php endif; ?>
  22. <div class="clearfix"></div>
  23. <?php
  24. if( $post->post_content != "" ) { ?>
  25. <div class="col-md-12">
  26. <div class="page-thumb">
  27. <?php
  28. the_post();
  29. the_content();?>
  30. </div>
  31. </div>
  32. <?php } ?>
  33. </div>
  34. <?php if( $post->post_content != "" ) { ?>
  35. <!--Separator-->
  36. <div class="row"><div class="col-md-12"><div class="separator margin20"></div></div></div>
  37. <!--/Separator-->
  38. <?php } ?>
  39. <!-- Team -->
  40.  
  41. <div class="row">
  42. <?php
  43. $arg = array( 'post_type' => 'busiprof_team', 'posts_per_page'=> -1);
  44. $team = new WP_Query( $arg );
  45. if( $team->have_posts() )
  46. {
  47. $i=1;
  48. while ( $team->have_posts() ) : $team->the_post(); ?>
  49. <div class="col-md-4 col-sm-6 col-xs-12">
  50. <div class="team">
  51. <div class="post-thumbnail">
  52. <?php $twitter_url = sanitize_text_field( get_post_meta( get_the_ID(),'twitter_url', true )); ?>
  53. <?php if ($twitter_url !='') { ?>
  54. <div class="twitter-social"><a href="<?php echo $twitter_url ?>">&nbsp;</a></div>
  55. <?php } ?>
  56. <div class="team-gravatar">
  57. <?php $defalt_arg =array('class' => "img-responsive" )?>
  58. <?php if(has_post_thumbnail()):?>
  59. <?php the_post_thumbnail('', $defalt_arg);
  60. endif ;?>
  61. </div>
  62. <?php $team_fb_url = sanitize_text_field(get_post_meta(get_the_ID(),'fb_url',true)); ?>
  63. <?php if ($team_fb_url!='') {?>
  64. <div class="facebook-social"><a href="<?php echo $team_fb_url ?>">&nbsp;</a></div>
  65. <?php } ?>
  66. <?php $team_linked_url = sanitize_text_field (get_post_meta(get_the_ID(),'linked_url',true)); ?>
  67. <?php if($team_linked_url!='') {?>
  68. <div class="linkedin-social"><a href="<?php echo $team_linked_url ;?>">&nbsp;</a></div>
  69. <?php } ?>
  70. </div>
  71. <div class="media-body">
  72. <?php $team_designation = sanitize_text_field( get_post_meta( get_the_ID(), 'busi_designation', true )); ?>
  73. <h4 class="team-name"><?php the_title() ;?> <span class="team-designation"><?php echo "(".$team_designation.")" ;?></span></h4>
  74. <?php $team_description = sanitize_text_field( get_post_meta( get_the_ID(), 'busi_desc', true )); ?>
  75. <p><?php echo $team_description ;?></p>
  76. </div>
  77. </div>
  78. </div>
  79. <?php $i++; endwhile;
  80. } else { ?>
  81. <div class="col-md-6 col-sm-6 col-xs-12">
  82. <div class="team">
  83. <div class="post-thumbnail">
  84. <div class="twitter-social"><a href="#">&nbsp;</a></div>
  85. <div class="team-gravatar"><img src="<?php echo get_template_directory_uri(); ?>/images/item9.jpg" /></div>
  86.  
  87. <div class="facebook-social"><a href="#">&nbsp;</a></div>
  88. <div class="linkedin-social"><a href="#">&nbsp;</a></div>
  89. </div>
  90. <div class="media-body">
  91. <h4 class="team-name"><?php echo 'John Doe'; ?><span class="team-designation">
  92. <?php _e('(DEVELOPER)','busiprof'); ?></span></h4>
  93. <p><?php _e('Here you can add a short bio about the owner, or the staff, of your establishment. Here you can add a short bio about the owner, or the staff, of your establishment. Neque porro quisquam est, qui dolorem ipsum am quaerat voluptatem.','busiprof'); ?> </p>
  94. </div>
  95. </div>
  96. </div>
  97. <div class="col-md-6 col-sm-6 col-xs-12">
  98. <div class="team">
  99. <div class="post-thumbnail">
  100. <div class="twitter-social"><a href="#">&nbsp;</a></div>
  101. <div class="team-gravatar"><img src="<?php echo get_template_directory_uri(); ?>/images/item10.jpg" /></div>
  102. <div class="facebook-social"><a href="#">&nbsp;</a></div>
  103. <div class="linkedin-social"><a href="#">&nbsp;</a></div>
  104. </div>
  105. <div class="media-body">
  106. <h4 class="team-name"><?php echo 'Alice Culan'; ?> <span class="team-designation"><?php _e('(DESIGNER)','busiprof'); ?></span></h4>
  107. <p><?php echo 'This is where you could add a short bio about the owner or staff of your establishment This is where you could add a short bio about the owner. Neque porro quisquam est, qui dolorem ipsum am quaerat voluptatem.'; ?> </p>
  108. </div>
  109. </div>
  110. </div>
  111.  
  112. <div class="clearfix"></div>
  113. <!--Separator--><div class="col-md-12"><div class="separator"></div></div><!--/Separator-->
  114.  
  115. <div class="col-md-6 col-sm-6 col-xs-12">
  116. <div class="team">
  117. <div class="post-thumbnail">
  118. <div class="twitter-social"><a href="#">&nbsp;</a></div>
  119. <div class="team-gravatar"><img src="<?php echo get_template_directory_uri(); ?>/images/item11.jpg" /></div>
  120. <div class="facebook-social"><a href="#">&nbsp;</a></div>
  121. <div class="linkedin-social"><a href="#">&nbsp;</a></div>
  122. </div>
  123. <div class="media-body">
  124. <h4 class="team-name"><?php echo 'Annah Doe'; ?> <span class="team-designation"><?php _e('(DEVELOPER)','busiprof'); ?></span></h4>
  125. <p><?php echo 'This is where you could add a short bio about the owner or staff of your establishment This is where you could add a short bio about the owner. Neque porro quisquam est, qui dolorem ipsum am quaerat voluptatem.'; ?> </p>
  126. </div>
  127. </div>
  128. </div>
  129.  
  130. <div class="col-md-6 col-sm-6 col-xs-12">
  131. <div class="team">
  132. <div class="post-thumbnail">
  133. <div class="twitter-social"><a href="#">&nbsp;</a></div>
  134. <div class="team-gravatar"><img src="<?php echo get_template_directory_uri(); ?>/images/item12.jpg" /></div>
  135. <div class="facebook-social"><a href="#">&nbsp;</a></div>
  136. <div class="linkedin-social"><a href="#">&nbsp;</a></div>
  137. </div>
  138. <div class="media-body">
  139. <h4 class="team-name"><?php echo 'Charlie Sun'; ?> <span class="team-designation">
  140. <?php _e('(DESIGNER)','busiprof'); ?></span></h4>
  141. <p><?php echo 'This is where you could add a short bio about the owner or staff of your establishment This is where you could add a short bio about the owner. Neque porro quisquam est, qui dolorem ipsum am quaerat voluptatem.'; ?> </p>
  142. </div>
  143. </div>
  144. </div>
  145. <?php } ?>
  146.  
  147. </div>
  148. <!-- End of Team -->
  149. <?php } ?>
  150. </div>
  151. </section>
  152. <!-- End of About Section -->
  153.  
  154. <div class="clearfix"></div>
  155.  
  156. <!-- Clients Section -->
  157. <?php
  158. if(($current_options['enable_client_section'])=='on') { get_template_part('index','clientstrip'); }?>
  159. <!-- End of Clients Section -->
  160. <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment