sdobwm

Untitled

Oct 23rd, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.40 KB | None | 0 0
  1. <?php
  2. /**
  3. Template Name: About Us
  4. */
  5. get_header();?>
  6. <?php $wallstreet_pro_options=theme_data_setup();
  7. $current_options = wp_parse_args( get_option( 'wallstreet_pro_options', array() ), $wallstreet_pro_options ); ?>
  8. <!-- Page Title Section -->
  9. <?php get_template_part('index', 'banner'); ?>
  10. <!-- /Page Title Section -->
  11. <!-- /Page Title Section -->
  12. <!--About Section-->
  13. <div class="container">
  14. <div class="row about-section">
  15. <?php the_post();
  16. if(has_post_thumbnail()){
  17. $defalt_arg =array('class' => "img-responsive"); ?>
  18. <div class="col-md-6">
  19. <?php the_post_thumbnail('', $defalt_arg); ?>
  20. </div>
  21. <?php } ?>
  22. <div class="col-md-6">
  23. <?php the_content(); ?>
  24. <?php if($current_options['about_social_media_enabled']==true) { ?>
  25. <ul class="about-social-icons">
  26. <?php
  27. if($current_options['social_media_twitter_link']!='') { ?>
  28. <li><a href="<?php echo esc_url($current_options['social_media_twitter_link']); ?>" <?php if($current_options['twitter_link_new_tab']==true){ echo "target='_blank'"; } ?> ><i class="fa fa-twitter"></i></a></li>
  29. <?php } if($current_options['social_media_facebook_link']!='') { ?>
  30. <li><a href="<?php echo esc_url($current_options['social_media_facebook_link']); ?>" <?php if($current_options['facebook_link_new_tab']==true){ echo "target='_blank'"; } ?> ><i class="fa fa-facebook"></i></a></li>
  31. <?php } if($current_options['social_media_googleplus_link']!='') { ?>
  32. <li><a href="<?php echo esc_url($current_options['social_media_googleplus_link']); ?>" <?php if($current_options['google_link_new_tab']==true){ echo "target='_blank'"; } ?> ><i class="fa fa-google-plus"></i></a></li>
  33. <?php } if($current_options['social_media_linkedin_link']!='') { ?>
  34. <li><a href="<?php echo esc_url($current_options['social_media_linkedin_link']); ?>" <?php if($current_options['linkdin_link_new_tab']==true){ echo "target='_blank'"; } ?> ><i class="fa fa-linkedin"></i></a></li>
  35. <?php } if($current_options['social_media_pinterest_link']!='') { ?>
  36. <li><a href="<?php echo esc_url($current_options['social_media_pinterest_link']); ?>" <?php if($current_options['pintrest_link_new_tab']==true){ echo "target='_blank'"; } ?> ><i class="fa fa-pinterest"></i></a></li>
  37. <?php } if($current_options['social_media_youtube_link']!='') { ?>
  38. <li><a href="<?php echo esc_url($current_options['social_media_youtube_link']); ?>" <?php if($current_options['youtube_link_new_tab']==true){ echo "target='_blank'"; } ?> ><i class="fa fa-youtube"></i></a></li>
  39. <?php } if($current_options['social_media_skype_link']!='') { ?>
  40. <li><a href="<?php echo esc_url($current_options['social_media_skype_link']); ?>" <?php if($current_options['skype_link_new_tab']==true){ echo "target='_blank'"; } ?> ><i class="fa fa-skype"></i></a></li>
  41. <?php } if($current_options['social_media_rssfeed_link']!='') { ?>
  42. <li><a href="<?php echo esc_url($current_options['social_media_rssfeed_link']); ?>" <?php if($current_options['rss_link_new_tab']==true){ echo "target='_blank'"; } ?> ><i class="fa fa-rss"></i></a></li>
  43. <?php } if($current_options['social_media_wordpress_link']!='') { ?>
  44. <li><a href="<?php echo esc_url($current_options['social_media_wordpress_link']); ?>" <?php if($current_options['wp_link_new_tab']==true){ echo "target='_blank'"; } ?> ><i class="fa fa-wordpress"></i></a></li>
  45. <?php } if($current_options['social_media_dropbox_link']!='') { ?>
  46. <li><a href="<?php echo esc_url($current_options['social_media_dropbox_link']); ?>" <?php if($current_options['db_link_new_tab']==true){ echo "target='_blank'"; } ?> ><i class="fa fa-dropbox"></i></a></li>
  47. <?php } if($current_options['social_media_instagram_link']!='') { ?>
  48. <li><a href="<?php echo esc_url($current_options['social_media_instagram_link']); ?>" <?php if($current_options['insta_link_new_tab']==true){ echo "target='_blank'"; } ?> ><i class="fa fa-instagram"></i></a></li>
  49. <?php } if($current_options['social_media_vimeo_link']!='') { ?>
  50. <li><a href="<?php echo esc_url($current_options['social_media_vimeo_link']); ?>" <?php if($current_options['vimeo_link_new_tab']==true){ echo "target='_blank'"; } ?> ><i class="fa fa-vimeo"></i></a></li>
  51. <?php } ?>
  52. </ul>
  53. <?php } ?>
  54. </div>
  55. </div>
  56. </div>
  57. <!--/About Section-->
  58.  
  59. <!-- Team Section -->
  60. <div class="container">
  61. <div class="row">
  62. <div class="section_heading_title">
  63. <h1><?php if($current_options['about_team_title']!='') { echo $current_options['about_team_title']; } ?></h1>
  64. <div class="pagetitle-separator">
  65. <div class="pagetitle-separator-border">
  66. <div class="pagetitle-separator-box"></div>
  67. </div>
  68. </div>
  69. <p><?php if($current_options['about_team_description']!='') { echo $current_options['about_team_description']; } ?></p>
  70. </div>
  71. </div>
  72.  
  73. <div class="row team-section">
  74. <?php
  75. $count_posts = wp_count_posts( 'wallstreet_team')->publish;
  76. $arg = array( 'post_type' => 'wallstreet_team','posts_per_page' =>$count_posts);
  77. $team = new WP_Query( $arg );
  78. $i=1;
  79. if($team->have_posts())
  80. { while($team->have_posts() ) : $team->the_post();
  81. $designation_meta_save = sanitize_text_field( get_post_meta( get_the_ID(), 'designation_meta_save', true ));
  82. $description_meta_save = sanitize_text_field( get_post_meta( get_the_ID(), 'description_meta_save', true ));
  83. $fb_meta_save = sanitize_text_field( get_post_meta( get_the_ID(), 'fb_meta_save', true ));
  84. $fb_meta_save_chkbx = sanitize_text_field( get_post_meta( get_the_ID(), 'fb_meta_save_chkbx', true ));
  85. $skype_meta_save = sanitize_text_field( get_post_meta( get_the_ID(), 'skype_meta_save', true ));
  86. $skype_meta_save_chkbx = sanitize_text_field( get_post_meta( get_the_ID(), 'skype_meta_save_chkbx', true ));
  87. $google_meta_save = sanitize_text_field( get_post_meta( get_the_ID(), 'google_meta_save', true ));
  88. $google_meta_save_chkbx = sanitize_text_field( get_post_meta( get_the_ID(), 'google_meta_save_chkbx', true ));
  89. $rss_meta_save = sanitize_text_field( get_post_meta( get_the_ID(), 'rss_meta_save', true ));
  90. $rss_meta_save_chkbx = sanitize_text_field( get_post_meta( get_the_ID(), 'rss_meta_save_chkbx', true ));
  91. $lnkd_meta_save = sanitize_text_field( get_post_meta( get_the_ID(), 'lnkd_meta_save', true ));
  92. $lnkd_meta_save_chkbx = sanitize_text_field( get_post_meta( get_the_ID(), 'lnkd_meta_save_chkbx', true ));
  93. $twt_meta_save = sanitize_text_field( get_post_meta( get_the_ID(), 'twt_meta_save', true ));
  94. $twt_meta_save_chkbx = sanitize_text_field( get_post_meta( get_the_ID(), 'twt_meta_save_chkbx', true ));
  95. ?>
  96. <div class="col-md-4 col-sm-6 team-effect">
  97. <?php
  98. $defalt_arg =array('class' => "img-responsive");
  99. if(has_post_thumbnail()){
  100. ?>
  101. <div class="team-box">
  102. <?php the_post_thumbnail('', $defalt_arg); ?>
  103. </div>
  104. <?php } ?>
  105. <div class="team-area">
  106. <h5><?php the_title(); ?><span><?php if(!empty($designation_meta_save)){ echo $designation_meta_save; } ?></span></h5>
  107. <div class="desi-seperate"></div>
  108. <p><?php if(!empty($description_meta_save)){ echo $description_meta_save; } ?></p>
  109. <ul class="team-social-icons">
  110. <?php
  111. if($fb_meta_save){
  112. if($fb_meta_save_chkbx)
  113. { $target ="_blank"; } else { $target ="_self"; } ?>
  114. <li><a href="<?php if($fb_meta_save){ echo esc_html($fb_meta_save); } ?>" target="<?php echo $target; ?>"><i class="fa fa-facebook"></i></a></li>
  115. <?php } ?>
  116. <?php
  117. if($skype_meta_save){
  118. if($skype_meta_save_chkbx)
  119. { $target ="_blank"; } else { $target ="_self"; } ?>
  120. <li><a href="<?php if($skype_meta_save){ echo esc_html($skype_meta_save); } ?>" target="<?php echo $target; ?>"><i class="fa fa-skype"></i></a></li>
  121. <?php } ?>
  122. <?php
  123. if($google_meta_save){
  124. if($google_meta_save_chkbx)
  125. { $target ="_blank"; } else { $target ="_self"; } ?>
  126. <li><a href="<?php if($google_meta_save){ echo esc_html($google_meta_save); } ?>" target="<?php echo $target; ?>"><i class="fa fa-google-plus"></i></a></li>
  127. <?php } ?>
  128. <?php
  129. if($rss_meta_save){
  130. if($rss_meta_save_chkbx)
  131. { $target ="_blank"; } else { $target ="_self"; } ?>
  132. <li><a href="<?php if($rss_meta_save){ echo esc_html($rss_meta_save); } ?>" target="<?php echo $target; ?>"><i class="fa fa-rss"></i></a></li>
  133. <?php } ?>
  134. <?php
  135. if($lnkd_meta_save){
  136. if($lnkd_meta_save_chkbx)
  137. { $target ="_blank"; } else { $target ="_self"; } ?>
  138. <li><a href="<?php if($lnkd_meta_save){ echo esc_html($lnkd_meta_save); } ?>" target="<?php echo $target; ?>"><i class="fa fa-linkedin"></i></a></li>
  139. <?php } ?>
  140. <?php
  141. if($twt_meta_save){
  142. if($twt_meta_save_chkbx)
  143. { $target ="_blank"; } else { $target ="_self"; } ?>
  144. <li><a href="<?php if($twt_meta_save){ echo esc_html($twt_meta_save); } ?>" target="<?php echo $target; ?>"><i class="fa fa-twitter"></i></a></li>
  145. <?php } ?>
  146. </ul>
  147. </div>
  148. </div>
  149. <?php if($i%3==0)
  150. { echo "<div class='clearfix'></div>"; }
  151. $i++; endwhile;
  152. }
  153. else
  154. {
  155. $team_title = array('Danial Creg', 'Alexia Doe' , 'John Doe', 'Beatrix Doe');
  156. $team_designation = array( __('FOUNDER','wallstreet'), __('DEVELOPER','wallstreet'), __('DESIGNER','wallstreet'), __('DEVELOPER','wallstreet'));
  157. for($i=1 ; $i<=4 ; $i++ )
  158. { ?>
  159. <div class="col-md-3 col-sm-6 team-effect">
  160. <div class="team-box">
  161. <img class="img-responsive" src="<?php echo WEBRITI_TEMPLATE_DIR_URI; ?>/images/team/team<?php echo $i; ?>.jpg">
  162. </div>
  163. <div class="team-area">
  164. <h5><?php echo $team_title[$i-1];?> <span><?php echo $team_designation[$i-1];?></span></h5>
  165. <div class="desi-seperate"></div>
  166. <p><?php echo 'Lorem ipsum dolor sit amet, conet adipis cing. Lorem ipsum dolore sit amet, consectetur adipisicings elit'; ?></p>
  167. <ul class="team-social-icons">
  168. <li><a href="#"><i class="fa fa-facebook"></i></a></li>
  169. <li><a><i class="fa fa-skype"></i></a></li>
  170. <li><a><i class="fa fa-google-plus"></i></a></li>
  171. <li><a><i class="fa fa-rss"></i></a></li>
  172. <li><a><i class="fa fa-linkedin"></i></a></li>
  173. <li><a><i class="fa fa-twitter"></i></a></li>
  174. </ul>
  175. </div>
  176. </div>
  177. <?php }
  178. } ?>
  179. </div>
  180. <?php get_template_part('index', 'calloutarea'); ?>
  181. </div>
  182. <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment