Guest User

Untitled

a guest
Jul 2nd, 2018
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.56 KB | None | 0 0
  1. <!-- Testimonail Start -->
  2. <?php $health_data= health_care_get_options(); ?>
  3. <span class="anchor" id="testimonial-section"></span>
  4. <div class="testimonail">
  5. <div class="container-fluid space testimonail-cover">
  6. <div class="container">
  7. <?php if($health_data['testi_heading']!=""){ ?>
  8. <h1 class="white"><?php esc_attr_e($health_data['testi_heading'],'weblizar'); ?></h1>
  9. <?php if($health_data['testi_icon']!=''){ ?>
  10. <div class="ln2 white"></div>
  11. <span class="<?php echo $health_data['testi_icon']; ?> white heart"></span>
  12. <div class="ln3 white"></div>
  13. <?php } ?>
  14. <?php } ?>
  15. <div class="container">
  16. <div class="home_testi">
  17. <div class="swiper-wrapper ">
  18. <?php $all_posts = $health_data['testi_num'];
  19. $args = array( 'post_type' => 'hc_testimonials','posts_per_page' =>$all_posts);
  20. $hc_testimonials = new WP_Query( $args );
  21. if( $hc_testimonials->have_posts() ){ ?>
  22. <?php while ( $hc_testimonials->have_posts() ) : $hc_testimonials->the_post();if(has_post_thumbnail()){ ?>
  23. <div class="swiper-slide">
  24. <div class="row">
  25. <div class="col-xs-4 pics">
  26. <div class="img-thumbnail ">
  27. <?php $defalt_arg =array('class'=>"img-responsive img-circle home_testi_thumb");
  28. the_post_thumbnail('home_testi_thumb', $defalt_arg); ?>
  29. </div>
  30. </div>
  31. <div class="col-xs-8 testimony">
  32. <?php if(get_post_meta( get_the_ID(), 'testimonial_description', true )){ ?>
  33. <blockquote>
  34. "<?php echo get_post_meta( get_the_ID(), 'testimonial_description', true); ?>"
  35. </blockquote>
  36. <?php } ?>
  37. <h4 class="name"><?php the_title(); ?></h4>
  38. <?php if(get_post_meta( get_the_ID(), 'testimonial_designation', true )){ ?>
  39. <span class="pos">(<?php echo get_post_meta( get_the_ID(), 'testimonial_designation', true ); ?>)</span>
  40. <?php } ?>
  41. </div>
  42. </div>
  43. </div>
  44. <?php } ?>
  45. <?php endwhile;
  46. }else{ ?>
  47. <div class="swiper-slide">
  48. <div class="row">
  49. <div class="col-xs-4 pics">
  50. <div class="img-thumbnail ">
  51. <img class="img-responsive img-circle" src="<?php echo get_stylesheet_directory_uri(); ?>/images/client2.png" alt=""/>
  52. </div>
  53. </div>
  54. <div class="col-xs-8 testimony">
  55. <blockquote>
  56. "I am realy satisfied with services of Healthcare Medical Services.
  57. All the Staffs are very friendly and helpful to assist throught
  58. medication procedure. The facilities are good."
  59. </blockquote>
  60. <h4 class="name">Marshall Law</h4>
  61. <span class="pos">(Web Developer)</span>
  62. </div>
  63. </div>
  64. </div>
  65. <div class="swiper-slide">
  66. <div class="row">
  67. <div class="col-xs-4 pics">
  68. <div class="img-thumbnail ">
  69. <img class="img-responsive img-circle" src="<?php echo get_stylesheet_directory_uri(); ?>/images/client1.png" alt=""/>
  70. </div>
  71. </div>
  72. <div class="col-xs-8 testimony">
  73. <blockquote>
  74. "I am realy satisfied with services of Healthcare Medical Services.
  75. All the Staffs are very friendly and helpful to assist throught
  76. medication procedure. The facilities are good."
  77. </blockquote>
  78. <h4 class="name">Marshall Law</h4>
  79. <span class="pos">(Web Developer)</span>
  80. </div>
  81. </div>
  82. </div>
  83. <div class="swiper-slide">
  84. <div class="row">
  85. <div class="col-xs-4 pics">
  86. <div class="img-thumbnail">
  87. <img class="img-responsive img-circle" src="<?php echo get_stylesheet_directory_uri(); ?>/images/client2.png" alt=""/>
  88. </div>
  89. </div>
  90. <div class="col-xs-8 testimony">
  91. <blockquote>
  92. "I am realy satisfied with services of Healthcare Medical Services.
  93. All the Staffs are very friendly and helpful to assist throught
  94. medication procedure. The facilities are good."
  95. </blockquote>
  96. <h4 class="name">Marshall Law</h4>
  97. <span class="pos">(Web Developer)</span>
  98. </div>
  99. </div>
  100. </div>
  101. <?php } ?>
  102. </div>
  103. <div class="swiper-pagination"></div>
  104. </div>
  105. </div>
  106. </div>
  107. </div>
  108. </div>
  109. <script>
  110. var swiper = new Swiper('.home_testi', {
  111. pagination: '.swiper-pagination',
  112. autoplay: true,
  113. speed: 5000,
  114. paginationClickable: true
  115. });
  116. </script>
  117. <!-- Testimonail End -->
Add Comment
Please, Sign In to add comment