Guest User

Untitled

a guest
Mar 24th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.89 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 } ?>
  48. </ul>
  49. <?php } ?>
  50. </div>
  51. </div>
  52. </div>
  53. <!--/About Section-->
  54.  
  55. <!-- Team Section -->
  56. <div class="container">
  57. <div class="row">
  58. <div class="section_heading_title">
  59. <h1><?php if($current_options['about_team_title']!='') { echo $current_options['about_team_title']; } ?></h1>
  60. <div class="pagetitle-separator">
  61. <div class="pagetitle-separator-border">
  62. <div class="pagetitle-separator-box"></div>
  63. </div>
  64. </div>
  65. <p><?php if($current_options['about_team_description']!='') { echo $current_options['about_team_description']; } ?></p>
  66. </div>
  67. </div>
  68.  
  69. <div class="row team-section">
  70. <?php
  71. $count_posts = wp_count_posts( 'wallstreet_team')->publish;
  72. $arg = array( 'post_type' => 'wallstreet_team','posts_per_page' =>$count_posts);
  73. $team = new WP_Query( $arg );
  74. $i=1;
  75. if($team->have_posts())
  76. { while($team->have_posts() ) : $team->the_post();
  77. $designation_meta_save = sanitize_text_field( get_post_meta( get_the_ID(), 'designation_meta_save', true ));
  78. $description_meta_save = sanitize_text_field( get_post_meta( get_the_ID(), 'description_meta_save', true ));
  79. $fb_meta_save = sanitize_text_field( get_post_meta( get_the_ID(), 'fb_meta_save', true ));
  80. $fb_meta_save_chkbx = sanitize_text_field( get_post_meta( get_the_ID(), 'fb_meta_save_chkbx', true ));
  81. $skype_meta_save = sanitize_text_field( get_post_meta( get_the_ID(), 'skype_meta_save', true ));
  82. $skype_meta_save_chkbx = sanitize_text_field( get_post_meta( get_the_ID(), 'skype_meta_save_chkbx', true ));
  83. $google_meta_save = sanitize_text_field( get_post_meta( get_the_ID(), 'google_meta_save', true ));
  84. $google_meta_save_chkbx = sanitize_text_field( get_post_meta( get_the_ID(), 'google_meta_save_chkbx', true ));
  85. $rss_meta_save = sanitize_text_field( get_post_meta( get_the_ID(), 'rss_meta_save', true ));
  86. $rss_meta_save_chkbx = sanitize_text_field( get_post_meta( get_the_ID(), 'rss_meta_save_chkbx', true ));
  87. $lnkd_meta_save = sanitize_text_field( get_post_meta( get_the_ID(), 'lnkd_meta_save', true ));
  88. $lnkd_meta_save_chkbx = sanitize_text_field( get_post_meta( get_the_ID(), 'lnkd_meta_save_chkbx', true ));
  89. $twt_meta_save = sanitize_text_field( get_post_meta( get_the_ID(), 'twt_meta_save', true ));
  90. $twt_meta_save_chkbx = sanitize_text_field( get_post_meta( get_the_ID(), 'twt_meta_save_chkbx', true ));
  91. ?>
  92. <div class="col-md-3 col-sm-6 team-effect"></div>
  93. <div class="col-md-3 col-sm-6 team-effect">
  94. <?php
  95. $defalt_arg =array('class' => "img-responsive");
  96. if(has_post_thumbnail()){
  97. ?>
  98. <div class="team-box">
  99. <?php the_post_thumbnail('', $defalt_arg); ?>
  100. </div>
  101. <?php } ?>
  102. <div class="team-area">
  103. <h5><?php the_title(); ?><span><?php if(!empty($designation_meta_save)){ echo $designation_meta_save; } ?></span></h5>
  104. <div class="desi-seperate"></div>
  105. <p><?php if(!empty($description_meta_save)){ echo $description_meta_save; } ?></p>
  106. <ul class="team-social-icons">
  107. <?php
  108. if($fb_meta_save){
  109. if($fb_meta_save_chkbx)
  110. { $target ="_blank"; } else { $target ="_self"; } ?>
  111. <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>
  112. <?php } ?>
  113. <?php
  114. if($skype_meta_save){
  115. if($skype_meta_save_chkbx)
  116. { $target ="_blank"; } else { $target ="_self"; } ?>
  117. <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>
  118. <?php } ?>
  119. <?php
  120. if($google_meta_save){
  121. if($google_meta_save_chkbx)
  122. { $target ="_blank"; } else { $target ="_self"; } ?>
  123. <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>
  124. <?php } ?>
  125. <?php
  126. if($rss_meta_save){
  127. if($rss_meta_save_chkbx)
  128. { $target ="_blank"; } else { $target ="_self"; } ?>
  129. <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>
  130. <?php } ?>
  131. <?php
  132. if($lnkd_meta_save){
  133. if($lnkd_meta_save_chkbx)
  134. { $target ="_blank"; } else { $target ="_self"; } ?>
  135. <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>
  136. <?php } ?>
  137. <?php
  138. if($twt_meta_save){
  139. if($twt_meta_save_chkbx)
  140. { $target ="_blank"; } else { $target ="_self"; } ?>
  141. <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>
  142. <?php } ?>
  143. </ul>
  144. </div>
  145. </div>
  146. <?php if($i%4==0)
  147. { echo "<div class='clearfix'></div>"; }
  148. $i++; endwhile;
  149. }
  150. else
  151. {
  152. $team_title = array('Danial Creg', 'Alexia Doe' , 'John Doe', 'Beatrix Doe');
  153. $team_designation = array( __('FOUNDER','wallstreet'), __('DEVELOPER','wallstreet'), __('DESIGNER','wallstreet'), __('DEVELOPER','wallstreet'));
  154. for($i=1 ; $i<=4 ; $i++ )
  155. { ?>
  156. <div class="col-md-3 col-sm-6 team-effect">
  157. <div class="team-box">
  158. <img class="img-responsive" src="<?php echo WEBRITI_TEMPLATE_DIR_URI; ?>/images/team/team<?php echo $i; ?>.jpg">
  159. </div>
  160. <div class="team-area">
  161. <h5><?php echo $team_title[$i-1];?> <span><?php echo $team_designation[$i-1];?></span></h5>
  162. <div class="desi-seperate"></div>
  163. <p><?php echo 'Lorem ipsum dolor sit amet, conet adipis cing. Lorem ipsum dolore sit amet, consectetur adipisicings elit'; ?></p>
  164. <ul class="team-social-icons">
  165. <li><a href="#"><i class="fa fa-facebook"></i></a></li>
  166. <li><a><i class="fa fa-skype"></i></a></li>
  167. <li><a><i class="fa fa-google-plus"></i></a></li>
  168. <li><a><i class="fa fa-rss"></i></a></li>
  169. <li><a><i class="fa fa-linkedin"></i></a></li>
  170. <li><a><i class="fa fa-twitter"></i></a></li>
  171. </ul>
  172. </div>
  173. </div>
  174. <?php }
  175. } ?>
  176. </div>
  177. <?php get_template_part('index', 'calloutarea'); ?>
  178. </div>
  179. <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment