Guest User

Untitled

a guest
Nov 28th, 2018
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.83 KB | None | 0 0
  1. <?php spicepress_before_client_section_trigger(); ?>
  2. <?php
  3. $client_section_enable = get_theme_mod('client_section_enable','on');
  4. if($client_section_enable !='off')
  5. {
  6. $client_options = get_theme_mod('spicepress_clients_content');
  7.  
  8. $client_animation_speed = get_theme_mod('client_animation_speed', 3000);
  9. $clientsettings=array('animationSpeed'=>$client_animation_speed);
  10.  
  11.  
  12. wp_register_script('spicepress-client',get_template_directory_uri().'/js/front-page/client.js',array('jquery'));
  13. wp_localize_script('spicepress-client','client_settings',$clientsettings);
  14. wp_enqueue_script('spicepress-client');
  15.  
  16.  
  17.  
  18. ?>
  19. <!--Our Clients-->
  20. <section id="clients" class="clients-section">
  21. <div class="container">
  22. <!-- /Section Title -->
  23. <?php
  24. $home_client_section_title = get_theme_mod('home_client_section_title',__('Meet our clients','spicepress'));
  25. $home_client_section_discription = get_theme_mod('home_client_section_discription','Sea summo mazim ex, ea errem eleifend definitionem vim. Ut nec hinc dolor possim mei ludus efficiendi ei sea summo mazim ex.');
  26. if(($home_client_section_title) || ($home_client_section_discription)!='' ) {
  27. ?>
  28. <!-- Section Title -->
  29. <div class="row">
  30. <div class="col-md-12">
  31. <div class="section-header wow fadeInUp animated animated" data-wow-duration="500ms" data-wow-delay="0ms">
  32. <?php if($home_client_section_title) {?>
  33. <h1 class="widget-title">
  34. <?php echo esc_html($home_client_section_title); ?>
  35. </h1>
  36. <?php } ?>
  37. <div class="widget-separator"><span></span></div>
  38. <?php if($home_client_section_discription) {?>
  39. <p class="wow fadeInDown animated">
  40. <?php echo esc_html($home_client_section_discription); ?>
  41. </p>
  42. <?php } ?>
  43. </div>
  44. </div>
  45. </div>
  46. <!-- /Section Title -->
  47. <?php } ?>
  48.  
  49.  
  50.  
  51.  
  52. <div class="row">
  53. <div id="clients-carousel" class="owl-carousel owl-theme col-md-12 horizontal-nav">
  54.  
  55. <?php
  56. $t=true;
  57. $client_options = json_decode($client_options);
  58. if( $client_options!='' )
  59. {
  60. foreach($client_options as $client_iteam){
  61.  
  62. $title = ! empty( $client_iteam->title ) ? apply_filters( 'spicepress_translate_single_string', $client_iteam->title, 'Client section' ) : '';
  63. $link = ! empty( $client_iteam->link ) ? apply_filters( 'spicepress_translate_single_string', $client_iteam->link, 'Client section' ) : '';
  64. $client_link = ! empty( $client_iteam->link ) ? apply_filters( 'spicepress_translate_single_string', $client_iteam->link, 'Client section' ) : '';
  65. $open_new_tab = $client_iteam->open_new_tab;
  66. $image_url = ! empty( $client_iteam->image_url ) ? apply_filters( 'spicepress_translate_single_string', $client_iteam->image_url, 'Client section' ) : '';
  67.  
  68. ?>
  69.  
  70.  
  71. <div class="item">
  72. <figure class="clients-item">
  73. <a href="<?php echo $client_link; ?>" <?php if($open_new_tab == 'yes'){ echo 'target="_blank"';}?>>
  74. <img src="<?php echo $image_url; ?>" class="img-responsive" >
  75. </a>
  76. </figure>
  77. </div>
  78.  
  79.  
  80.  
  81.  
  82. <?php } } else { ?>
  83.  
  84.  
  85. <div class="item">
  86. <figure class="clients-item">
  87. <a href="#" target="_blank"><img src="<?php echo get_template_directory_uri(); ?>/images/clients/client1.png" class="img-responsive" alt="client" /></a>
  88. </figure>
  89. </div>
  90.  
  91. <div class="item">
  92. <figure class="clients-item">
  93. <a href="#" target="_blank"><img src="<?php echo get_template_directory_uri(); ?>/images/clients/client2.png" class="img-responsive" alt="client" /></a>
  94. </figure>
  95. </div>
  96.  
  97. <div class="item">
  98. <figure class="clients-item">
  99. <a href="#" target="_blank"><img src="<?php echo get_template_directory_uri(); ?>/images/clients/client3.png" class="img-responsive" alt="client" /></a>
  100. </figure>
  101. </div>
  102.  
  103. <div class="item">
  104. <figure class="clients-item">
  105. <a href="#" target="_blank"><img src="<?php echo get_template_directory_uri(); ?>/images/clients/client4.png" class="img-responsive" alt="client" /></a>
  106. </figure>
  107. </div>
  108.  
  109. <div class="item">
  110. <figure class="clients-item">
  111. <a href="#" target="_blank"><img src="<?php echo get_template_directory_uri(); ?>/images/clients/client5.png" class="img-responsive" alt="client" /></a>
  112. </figure>
  113. </div>
  114.  
  115. <div class="item">
  116. <figure class="clients-item">
  117. <a href="#" target="_blank"><img src="<?php echo get_template_directory_uri(); ?>/images/clients/client1.png" class="img-responsive" alt="client" /></a>
  118. </figure>
  119. </div>
  120.  
  121. <div class="item">
  122. <figure class="clients-item">
  123. <a href="#" target="_blank"><img src="<?php echo get_template_directory_uri(); ?>/images/clients/client2.png" class="img-responsive" alt="client" /></a>
  124. </figure>
  125. </div>
  126.  
  127. <div class="item">
  128. <figure class="clients-item">
  129. <a href="#" target="_blank"><img src="<?php echo get_template_directory_uri(); ?>/images/clients/client3.png" class="img-responsive" alt="client" /></a>
  130. </figure>
  131. </div>
  132.  
  133. <div class="item">
  134. <figure class="clients-item">
  135. <a href="#" target="_blank"><img src="<?php echo get_template_directory_uri(); ?>/images/clients/client4.png" class="img-responsive" alt="client" /></a>
  136. </figure>
  137. </div>
  138.  
  139. <div class="item">
  140. <figure class="clients-item">
  141. <a href="#" target="_blank"><img src="<?php echo get_template_directory_uri(); ?>/images/clients/client5.png" class="img-responsive" alt="client" /></a>
  142. </figure>
  143. </div>
  144.  
  145. <?php } ?>
  146.  
  147. </div>
  148.  
  149. <!-- Project Scroll -->
  150. </div>
  151.  
  152. </div>
  153. </section>
  154. <!--/Our Clients-->
  155.  
  156. <div class="clearfix"></div>
  157. <?php } ?>
  158. <?php spicepress_after_client_section_trigger(); ?>
Add Comment
Please, Sign In to add comment