page-why.php 891 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * Template Name: Why
  4. */
  5. ?>
  6. <?php get_template_part( 'part', 'header' ) ?>
  7. <body>
  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('<?php echo $thumb; ?>'); --bg-md: url('<?php echo $thumb; ?>')"></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">Join PTC Care Plus</button>
  25. </div>
  26. </div>
  27. <?php endwhile; else: endif; ?>
  28. <?php get_template_part( 'part', 'footer' ) ?>
  29. </body>
  30. </html>