Advertisement
Guest User

Untitled

a guest
Sep 25th, 2016
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. <section id="services">
  2. <div class="container">
  3. <div class="row">
  4. <div class="col-lg-12 text-center">
  5. <div class="title">
  6.  
  7. <h1 class="section-heading text-uppercase">
  8. <?php the_field('service_section_title'); ?>
  9. </h1>
  10.  
  11. <p class="text-faded">
  12. <?php the_field('service_section_description'); ?>
  13. </p>
  14.  
  15. <div class="btn btn-primary btn-sm">
  16. <a href="<?php the_field('service_section_button_link'); ?>">Learn more</a>
  17. </div>
  18.  
  19. </div>
  20.  
  21. </div>
  22. </div>
  23. </div>
  24. <div class="container">
  25. <div class="row services">
  26. <?php
  27.  
  28. if( have_rows('services') ):
  29.  
  30. while ( have_rows('services') ) : the_row();
  31.  
  32. $image = get_field('service_icon');
  33.  
  34. /*if( !empty($image) ):*/ ?>
  35. <div class="col-lg-4 col-md-6 col-sm-12 col-xs-12 text-center">
  36. <div class="service-box hvr-float">
  37. <img class="img-responsive center-block" src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" />
  38.  
  39. <div class="service-title">
  40. <h3>
  41. <?php the_field('service_title'); ?>
  42. </h3>
  43.  
  44. </div>
  45. <p class="text-muted text-justify">
  46. <?php the_field('service_description');?>
  47. </p>
  48. </div>
  49. </div>
  50.  
  51. <?php
  52. endwhile;
  53.  
  54. else :
  55.  
  56. // no rows found
  57.  
  58. endif;
  59.  
  60. ?>
  61. </div>
  62. </div>
  63. </section>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement