123456789101112131415161718192021222324252627282930313233 |
- <?php
- /**
- * Template Name: Why
- */
- ?>
- <?php get_template_part( 'part', 'header' ) ?>
- <body>
- <?php get_template_part( 'part', 'nav' ) ?>
- <?php
- if(have_posts()): while (have_posts()): the_post();
- global $post;
- $thumb = get_the_post_thumbnail_url( $post, 'full' );
- ?>
- <div id="banner-swiper" class="swiper">
- <div class="swiper-wrapper">
- <div class="swiper-slide banner" style="--bg-sm: url('<?php echo $thumb; ?>'); --bg-md: url('<?php echo $thumb; ?>')"></div>
- </div>
- <div class="swiper-pagination"></div>
- </div>
- <div class="section">
- <div class="inner">
- <h2><?php the_title( ) ?></h2>
- <?php the_content( ) ?>
- <button class="ptc-button" data-action="buy">Join PTC Care Plus</button>
- </div>
- </div>
- <?php endwhile; else: endif; ?>
- <?php get_template_part( 'part', 'footer' ) ?>
- </body>
- </html>
|