Guest User

Untitled

a guest
Mar 29th, 2019
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.47 KB | None | 0 0
  1. <?php $current_options = wp_parse_args( get_option( 'busiprof_pro_theme_options', array() ), theme_data_setup() );
  2.  
  3. if( $current_options['home_team_section_enabled'] == 'on' ) { ?>
  4. <!-- Additional Section One - Team -->
  5. <?php if( $current_options['home_team_back_image_enabled'] == 'on' ) { ?>
  6. <section id="section" class="team-section" style="background:rgba(0, 0, 0, 0) url('<?php echo $current_options['team_background_image']; ?>') repeat <?php echo $current_options['team_image_attachment']; ?> 0 0;">
  7. <div class="overlay" style="background: none repeat scroll 0 0 <?php echo ($current_options['team_image_overlay']!=true?'transparent':'rgba(0, 0, 0, 0.7)'); ?>;">
  8. <?php }
  9. else { ?>
  10. <section id="section" class="bg-color team-bg">
  11. <?php } ?>
  12.  
  13.  
  14. <div class="container">
  15. <!-- Section Title -->
  16. <div class="row">
  17. <div class="col-md-12">
  18. <div class="section-title">
  19. <?php if( $current_options['team_head'] != '' ) {?>
  20. <h1 class="section-heading"><?php echo $current_options['team_head'];?></h1>
  21. <?php } if( $current_options['team_tagline'] != '' ) {?>
  22. <p><?php echo $current_options['team_tagline']; ?></p>
  23. <?php } ?>
  24. </div>
  25. </div>
  26. </div>
  27. <!-- /Section Title -->
  28.  
  29. <!-- Team -->
  30. <div class="row">
  31. <?php $arg = array( 'post_type' => 'busiprof_team', 'posts_per_page'=> $current_options['team_list']);
  32. $team = new WP_Query( $arg );
  33. if( $team->have_posts() )
  34. {
  35. $i=1;
  36. while ( $team->have_posts() ) : $team->the_post(); ?>
  37. <div class="col-md-12 col-sm-6 col-xs-12">
  38. <div class="team">
  39. <div class="post-thumbnail">
  40. <?php $twitter_url = sanitize_text_field( get_post_meta( get_the_ID(),'twitter_url', true )); ?>
  41. <?php if ($twitter_url !='') { ?>
  42. <div class="twitter-social"><a href="<?php echo $twitter_url ?>">&nbsp;</a></div>
  43. <?php } ?>
  44. <div class="team-gravatar">
  45. <?php $defalt_arg =array('class' => "img-responsive" )?>
  46. <?php if(has_post_thumbnail()):?>
  47. <?php the_post_thumbnail('', $defalt_arg);
  48. endif ;?>
  49. </div>
  50. <?php $team_fb_url = sanitize_text_field(get_post_meta(get_the_ID(),'fb_url',true)); ?>
  51. <?php if ($team_fb_url!='') {?>
  52. <div class="facebook-social"><a href="<?php echo $team_fb_url ?>">&nbsp;</a></div>
  53. <?php } ?>
  54. <?php $team_linked_url = sanitize_text_field (get_post_meta(get_the_ID(),'linked_url',true)); ?>
  55. <?php if($team_linked_url!='') {?>
  56. <div class="linkedin-social"><a href="<?php echo $team_linked_url ;?>">&nbsp;</a></div>
  57. <?php } ?>
  58. </div>
  59. <div class="media-body">
  60. <?php $team_designation = sanitize_text_field( get_post_meta( get_the_ID(), 'busi_designation', true )); ?>
  61. <h4 class="team-name"><?php the_title() ;?> <span class="team-designation"><?php echo "(".$team_designation.")" ;?></span></h4>
  62. <?php $team_description = sanitize_text_field( get_post_meta( get_the_ID(), 'busi_desc', true )); ?>
  63. <p><?php echo $team_description ;?></p>
  64. </div>
  65. </div>
  66. </div>
  67. <?php $i++; endwhile; } else {
  68. $team_title = array('Robert Johnson','Natelie Portman','Annah Doe','Charlie Sun');
  69. $team_image= array('item9','item10','item11','item12');
  70. $team_designation = array('(CEO & Founder)', '(Developer)', '(Sales Executive)','(Team Leader)');
  71. for($i=0;$i<4;$i++)
  72. { ?>
  73. <div class="col-md-6 col-sm-6 col-xs-12">
  74. <div class="team">
  75. <div class="post-thumbnail">
  76. <div class="twitter-social"><a href="#">&nbsp;</a></div>
  77. <div class="team-gravatar"><img src="<?php echo get_template_directory_uri(); ?>/images/<?php echo $team_image[$i]; ?>.jpg"></div>
  78.  
  79. <div class="facebook-social"><a href="#">&nbsp;</a></div>
  80. <div class="linkedin-social"><a href="#">&nbsp;</a></div>
  81. </div>
  82. <div class="media-body">
  83. <h4 class="team-name"><?php echo $team_title[$i]; ?> <span class="team-designation"><?php echo $team_designation[$i]; ?></span></h4>
  84. <p><?php echo _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>
  85. </div>
  86. </div>
  87. </div>
  88.  
  89. <?php } ?>
  90. <div class="clearfix"></div>
  91. <?php } ?>
  92. </div>
  93. <!-- End of Team -->
  94. </div>
  95.  
  96. </section>
  97. <!-- End of Additional Section One - Team -->
  98. <div class="clearfix"></div>
  99. <?php } ?>
Add Comment
Please, Sign In to add comment