Guest User

Untitled

a guest
Jun 30th, 2018
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.22 KB | None | 0 0
  1. <?php //Template name: About Us 2
  2. get_header();
  3. get_template_part('blog','cover');
  4. $health_data= health_care_get_options();
  5. if ( have_posts()){
  6. while ( have_posts() ): the_post(); ?>
  7. <!-- About Start -->
  8. <div class="container-fluid space">
  9. <div class="container about-us">
  10. <?php if(has_post_thumbnail()): ?>
  11. <div class="col-md-12 no-pad">
  12. <?php $class=array('class'=>'img-responsive');
  13. the_post_thumbnail('portfolio_detail_thumb', $class); ?>
  14. </div>
  15. <?php endif; ?>
  16. <div class="col-md-12">
  17. <?php the_content(); ?>
  18. </div>
  19. </div>
  20. </div>
  21. <?php endwhile; } ?>
  22. <!-- Doctors Start -->
  23. <?php $health_data= health_care_get_options(); ?>
  24. <div class="container-fluid space">
  25. <div class="container about-doctors">
  26. <?php if($health_data['member_heading']!=''){ ?>
  27. <h1 class="color"><?php echo $health_data['member_heading']; ?></h1>
  28. <?php if($health_data['member_icon']!=''){ ?>
  29. <div class="ln2 color"></div>
  30. <span class="<?php echo $health_data['member_icon']; ?> color heart"></span>
  31. <div class="ln3 color"></div>
  32. <?php } ?>
  33. <?php } ?>
  34. <div class="button-group filter-button-group">
  35. <?php $args = array( 'post_type' => 'hc_deptts','posts_per_page' =>-1);
  36. $member_cats= new WP_Query($args);
  37. $i=0;
  38. if( $member_cats->have_posts() ){ ?>
  39. <?php while ( $member_cats->have_posts() ) : $member_cats->the_post(); ?>
  40. <button class="button <?php if($i==0) echo 'is-checked'; ?>" data-filter=".<?php echo str_replace(' ', '_', get_the_title()); ?>"><?php echo get_the_title(); ?><span class="<?php echo get_post_meta( get_the_ID(), 'deptt_icon', true ); ?> icon"></span></button>
  41. <?php $i++;
  42. endwhile;
  43. } ?>
  44. </div>
  45. <?php $args = array( 'post_type' => 'hc_member','posts_per_page' =>-1);
  46. $members= new WP_Query($args);
  47. if( $members->have_posts() ){ ?>
  48. <div class="grid">
  49. <?php while ( $members->have_posts() ) : $members->the_post();
  50. $member_cat= get_post_meta( get_the_ID(), 'member_cat', true );
  51. $cats=explode(" ,",$member_cat); ?>
  52. <?php if(has_post_thumbnail()): ?>
  53. <div class="element-item col-md-4 col-sm-6 wl-gallery doctors-detail <?php foreach($cats as $cat){ echo str_replace(' ', '_', $cat).' '; } ?>" data-category="transition" >
  54. <div class="col-md-12 about-doc">
  55. <div class="col-md-12 about-doc-details">
  56. <div class="img-thumbnail">
  57. <?php $defalt_arg =array('class'=>"img-responsive img-circle");
  58. the_post_thumbnail('home_member_thumb', $defalt_arg);
  59. ?>
  60. </div>
  61. <div class="row about-doctors-detail">
  62. <div class="ln white"></div>
  63. <span class="fa fa-heart white heart"></span>
  64. <h3><?php the_title(); ?></h3>
  65. <h3><?php $member_desig = sanitize_text_field( get_post_meta( get_the_ID(), 'member_post', true )); echo $member_desig; ?></h3>
  66. <div class="ln3 white"></div>
  67.  
  68. <p><?php the_excerpt(); ?></p>
  69. <div class="social">
  70. <?php $member_twitter = sanitize_text_field( get_post_meta( get_the_ID(), 'member_twitter', true ));
  71. if($member_twitter!=''){ ?>
  72. <a href="<?php echo $member_twitter; ?>"><span class="fa fa-twitter icon"></span></a>
  73. <?php }
  74. $member_fb = sanitize_text_field( get_post_meta( get_the_ID(), 'member_fb', true ));
  75. if($member_fb!=''){ ?>
  76. <a href="<?php echo $member_fb; ?>"><span class="fa fa-facebook icon"></span></a>
  77. <?php }
  78. $member_google = sanitize_text_field( get_post_meta( get_the_ID(), 'member_google', true ));
  79. if($member_google!=''){ ?>
  80. <a href="<?php echo $member_google; ?>"><span class="fa fa-google-plus icon"></span></a>
  81. <?php } ?>
  82. </div>
  83. <?php $member_exp = sanitize_text_field( get_post_meta( get_the_ID(), 'member_exp', true ));
  84. if($member_exp!=''){?>
  85. <div class="col-md-12 about-doc-link">
  86. <a href="" class="btn"><?php echo $member_exp; ?></a>
  87. </div>
  88. <?php } ?>
  89. <div class="ln2"></div>
  90. <a href="<?php the_permalink(); ?>" class="view"><?php _e('View Profile','weblizar'); ?></a>
  91. </div>
  92. </div>
  93. </div>
  94. </div>
  95. <?php endif;
  96. endwhile; ?>
  97. </div>
  98. <?php } ?>
  99. </div>
  100. </div>
  101. <!-- Doctors End -->
  102. <!-- Testimonial -->
  103. <div class="container-fluid space">
  104. <div class="container about-client-say">
  105. <?php if($health_data['testi_heading']!=""){ ?>
  106. <h1 class="color"><?php echo $health_data['testi_heading']; ?></h1>
  107. <?php if($health_data['testi_icon']!=''){ ?>
  108. <div class="ln2 color"></div>
  109. <span class="<?php echo $health_data['testi_icon']; ?> color heart"></span>
  110. <div class="ln3 color"></div>
  111. <?php } ?>
  112. <?php } ?>
  113. </div>
  114. <div class="row client">
  115. <div class="container">
  116. <?php $args = array( 'post_type' => 'hc_testimonials','posts_per_page' =>-1);
  117. $hc_testimonials = new WP_Query( $args );
  118. if( $hc_testimonials->have_posts() ){ ?>
  119. <div class="about_testi">
  120. <div id="about-testi" class="swiper-wrapper gallery">
  121. <?php while ( $hc_testimonials->have_posts() ) : $hc_testimonials->the_post(); ?>
  122. <div class="swiper-slide">
  123. <div class="row">
  124. <div class="col-xs-12 client-say">
  125. <div class="col-xs-3 about-pics">
  126. <?php if(has_post_thumbnail()){ ?>
  127. <div class="img-thumbnail">
  128. <?php $defalt_arg =array('class'=>"img-responsive img-circle");
  129. the_post_thumbnail('home_testi_thumb', $defalt_arg); ?>
  130. </div>
  131. <?php } ?>
  132. </div>
  133. <div class="col-xs-9">
  134. <h2><?php the_title(); ?>
  135. <?php if(get_post_meta( get_the_ID(), 'testimonial_designation', true )){ ?>
  136. {<?php echo get_post_meta( get_the_ID(), 'testimonial_designation', true ); ?>}
  137. <?php } ?></h2>
  138. <?php if(get_post_meta( get_the_ID(), 'testimonial_description', true )){ ?>
  139. <p class="desc">
  140. "<?php echo get_post_meta( get_the_ID(), 'testimonial_description', true); ?>"
  141. </p>
  142. <?php } ?>
  143. </div>
  144. </div>
  145. </div>
  146. </div>
  147. <?php endwhile; ?>
  148. </div>
  149. </div>
  150. <?php } ?>
  151. </div>
  152. </div>
  153. </div>
  154. <!-- Client Say -->
  155. <?php get_template_part('home', 'clients');
  156. get_template_part('home', 'appointment');
  157. get_footer(); ?>
Add Comment
Please, Sign In to add comment