Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Jul 2nd, 2018 17 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. <!-- Clients Start-->
  2. <?php $health_data= health_care_get_options(); ?>
  3. <span class="anchor" id="client-section"></span>
  4. <div class="container-fluid space clients">
  5.     <div class="container">
  6.         <?php if($health_data['client_heading']!=""){ ?>
  7.             <h1 class="color"><?php esc_attr_e($health_data['client_heading'],'weblizar'); ?></h1>
  8.             <?php if($health_data['client_icon']!=''){ ?>
  9.             <div class="ln2 color"></div>
  10.             <span class="<?php echo $health_data['client_icon']; ?> color heart"></span>
  11.             <div class="ln3 color"></div>
  12.         <?php } ?>
  13.         <?php } ?>
  14.         <?php if($health_data['client_desc']!=""){ ?>
  15.             <p class="desc"><?php esc_attr_e($health_data['client_desc'],'weblizar'); ?></p>
  16.         <?php } ?>
  17.          <div class="hc_homeclient">
  18.             <div class="swiper-wrapper">
  19. <?php $all_posts = $health_data['client_count'];
  20. $args = array( 'post_type' => 'hc_clients','posts_per_page' =>$all_posts);
  21. $client = new WP_Query( $args );
  22. if( $client->have_posts() ){ ?>
  23. <?php while ( $client->have_posts() ) : $client->the_post();  ?>
  24. <?php if(has_post_thumbnail()): ?>
  25. <div class="swiper-slide">
  26.                     <?php $defalt_arg =array('class'=>"img-responsive home_client_thumb"); ?>
  27.                     <?php if(get_post_meta( get_the_ID(), 'client_link', true )){ ?>
  28.                     <a href="<?php echo get_post_meta( get_the_ID(), 'client_link', true ); ?>" title="<?php the_title(); ?>" <?php if(get_post_meta( get_the_ID(),'client_link_target', true )) { echo "target='_blank'"; }?>><?php the_post_thumbnail('home_client_thumb', $defalt_arg); ?></a>
  29.                     <?php }else{ ?>
  30.                     <?php the_post_thumbnail('home_client_thumb', $defalt_arg); ?>
  31.                     <?php } ?>
  32. </div>
  33. <?php endif; ?>
  34. <?php endwhile; ?>      
  35. <?php }else{
  36. for($i=1; $i<=4; $i++){ ?>
  37. <div class="swiper-slide">
  38.     <img class="img-responsive" src="<?php echo get_stylesheet_directory_uri(); ?>/images/client/c<?php echo $i; ?>.png" alt="client" />
  39. </div>
  40. <?php }
  41. } ?>
  42.             </div>
  43.             <div class="swiper-pagination"></div>
  44.         </div>
  45.     </div>
  46. </div>
  47. <script>
  48. var swiper = new Swiper('.hc_homeclient', {
  49.         pagination: '.swiper-pagination',
  50.         slidesPerView: 4,
  51.         paginationClickable: true,
  52.         autoplay: true,
  53.         speed: 5000,
  54.         spaceBetween: 0,
  55.         breakpoints: {
  56.             1024: {
  57.                 slidesPerView: 4,
  58.             },
  59.             768: {
  60.                 slidesPerView: 3,
  61.            },
  62.             640: {
  63.                 slidesPerView: 2,
  64.            },
  65.             320: {
  66.                 slidesPerView: 2,
  67.            }
  68.         }
  69.     });
  70. </script>
  71. <!-- Clients End -->
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top