You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

42 regels
853 B

  1. <?php
  2. $GLOBALS['TL_BODY'][] = '<script src="files/theme/assets/js/slick.min.js"></script>';
  3. $GLOBALS['TL_BODY'][] = "<script>
  4. $('.mod_newslist').slick({
  5. infinite: true,
  6. slidesToShow: 4,
  7. slidesToScroll: 1,
  8. responsive: [
  9. {
  10. breakpoint: 768,
  11. settings: {
  12. infinite: true,
  13. slidesToScroll: 1,
  14. slidesToShow: 3
  15. }
  16. },
  17. {
  18. breakpoint: 480,
  19. settings: {
  20. infinite: true,
  21. slidesToScroll: 1,
  22. slidesToShow: 2
  23. }
  24. }
  25. ]
  26. });
  27. </script>";
  28. ?>
  29. <?php $this->extend('block_unsearchable'); ?>
  30. <?php $this->block('content'); ?>
  31. <?php if (empty($this->articles)): ?>
  32. <p class="empty"><?= $this->empty ?></p>
  33. <?php else: ?>
  34. <?= implode('', $this->articles) ?>
  35. <?= $this->pagination ?>
  36. <?php endif; ?>
  37. <?php $this->endblock(); ?>