Guest User

Untitled

a guest
Dec 9th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. <div class="t-quote animated fadeInUp">
  2. <?php the_field('default_quote'); ?>
  3. </div>
  4. <div class="hide quote-block">
  5. <?php
  6. if ( have_rows('quote') ):
  7. while ( have_rows('quote') ) : the_row();
  8. ?>
  9. <div class="quote-text"><?php the_sub_field('quote_text'); ?></div>
  10. <?php
  11. endwhile;
  12. endif;
  13. ?>
  14. </div>
  15.  
  16. $('.slider-bg ul').carouFredSel({
  17. items: 1,
  18. pagination: {
  19. container: '.pager',
  20. anchorBuilder: function(nr) {
  21. return "<a href='#' class='pag'><i class='fa fa-circle' aria-hidden='true'></i></a>";
  22. }
  23. },
  24. responsive: true,
  25. auto: { timeoutDuration: 5000 },
  26. scroll: {
  27. items: 1,
  28. fx: "crossfade",
  29. duration: 1000,
  30. pauseOnHover: false,
  31. onAfter: function(t) {
  32. var quote = quotes[Math.floor(Math.random() * quotes.length)];
  33. $('.t-quote').html("<div class='animated fadeInUp'>" + quote + "</div>");
  34. }
  35. }
  36. });
Add Comment
Please, Sign In to add comment