Advertisement
delvinkrasniqi

Untitled

Dec 13th, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.71 KB | None | 0 0
  1. <!--
  2. Template Name: Single Page
  3. -->
  4.  
  5. <?php get_header();?>
  6. <div class="singlepage_bg" style="background-image:url(<?php the_field('singlepage_bg');?>)">
  7. <div class="container">
  8. <div class="col-4">
  9. <h1><?php the_field('singlepage_heading');?></h1>
  10. <p><?php the_field('singlepage_paragraph');?></p>
  11. </div>
  12. </div>
  13. </div>
  14.  
  15. <!-- Section1 -->
  16. <div class="single_section1">
  17. <div class="container">
  18. <div class="row">
  19. <div class="col-12">
  20. <img src="<?php the_field('single_section1_image');?>">
  21. </div>
  22. <div class="col-12">
  23. <h1><?php the_field('single_section1_title');?></h1>
  24. </div>
  25. <div class="col-12">
  26. <p><?php the_field('single_section1_text');?></p>
  27. </div>
  28. </div>
  29. </div>
  30. </div>
  31. <div class="single_section2">
  32. <div class="container">
  33. <div class="container">
  34. <div class="slickslider">
  35. <?php
  36. $args = array(
  37. 'post_type' => 'unsereprojekte',
  38. 'posts_per_page' => '-1',
  39. );
  40. $loop = new WP_Query($args);
  41. while ($loop->have_posts()) :
  42. $loop->the_post();
  43. ?>
  44. <div class="image_partner text-center">
  45. <?php the_post_thumbnail(); ?>
  46. <p id="data"><?php echo get_the_date( 'd-m-Y' ); ?></p>
  47. <p><?php the_content(); ?></p>
  48. </div>
  49. <?php
  50. endwhile;
  51. wp_reset_postdata();
  52. ?>
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. <script type="text/javascript" src="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.js"></script>
  58. <script>
  59. jQuery('.slickslider').slick({
  60. dots: true,
  61. infinite: true,
  62. slidesToShow: 4,
  63. slidesToScroll: 4,
  64. responsive: [
  65. {
  66. breakpoint: 1024,
  67. settings: {
  68. slidesToShow: 3,
  69. slidesToScroll: 3,
  70. infinite: true,
  71. dots: true
  72. }
  73. },
  74. {
  75. breakpoint: 1200,
  76. settings: {
  77. slidesToShow: 5,
  78. slidesToScroll: 5,
  79. infinite: true,
  80. dots: true
  81. }
  82. },
  83. {
  84. breakpoint: 770,
  85. settings: {
  86. slidesToShow: 2,
  87. slidesToScroll: 2,
  88. autoplay:true,
  89. dots:false,
  90. }
  91. },
  92. {
  93. breakpoint: 480,
  94. settings: {
  95. slidesToShow: 1,
  96. slidesToScroll: 1,
  97. dots:false,
  98. autoplay:true
  99.  
  100. }
  101. }
  102. ]
  103. });
  104. </script>
  105. <?php get_footer();?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement