page-feature.php 978 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * Template Name: Feature
  4. */
  5. ?>
  6. <?php get_template_part( 'part', 'header' ) ?>
  7. <body class="bg-gray">
  8. <?php get_template_part( 'part', 'nav' ) ?>
  9. <?php
  10. if(have_posts()): while (have_posts()): the_post();
  11. global $post;
  12. $thumb = get_the_post_thumbnail_url( $post, 'full' );
  13. ?>
  14. <div id="banner-swiper" class="swiper">
  15. <div class="swiper-wrapper">
  16. <div class="swiper-slide banner" style="--bg-sm: url('https://test.ptcrepair.com.au/wp-content/uploads/2022/05/s-5.jpg'); --bg-md: url('https://test.ptcrepair.com.au/wp-content/uploads/2022/05/s-5.jpg')"></div>
  17. </div>
  18. <div class="swiper-pagination"></div>
  19. </div>
  20. <div class="section">
  21. <div class="inner">
  22. <h2><?php the_title( ); ?></h2>
  23. <?php the_content() ?>
  24. <button class="ptc-button" data-action="buy">BUY NOW</button>
  25. </div>
  26. </div>
  27. <?php endwhile; else: endif; ?>
  28. <?php get_template_part( 'part', 'footer' ) ?>
  29. </body>
  30. </html>