<?php
/**
 * Page template.
 *
 * @package ALFASMART
 */

get_header();

if (alfasmart_is_translated_page('about')) {
    get_template_part('template-parts/pages/PageAbout');
} elseif (alfasmart_is_translated_page('contact')) {
    get_template_part('template-parts/pages/PageContact');
} elseif (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
        <section class="as-inner-hero" aria-labelledby="page-title-<?php the_ID(); ?>">
            <div class="video-shape" aria-hidden="true">
                <video class="as-inner-hero-video" src="<?php echo esc_url(alfasmart_img('breadcrumb.mp4')); ?>" autoplay muted loop playsinline></video>
            </div>
            <div class="container as-section-container">
                <div class="as-inner-hero-content as-reveal">
                    <p class="as-section-kicker"><?php esc_html_e('Page', 'alfasmart'); ?></p>
                    <h1 class="as-inner-title" id="page-title-<?php the_ID(); ?>"><?php the_title(); ?></h1>
                </div>
            </div>
        </section>
        <section class="as-about-details-section">
            <div class="container as-section-container">
                <div class="as-about-text-card as-reveal">
                    <?php the_content(); ?>
                </div>
            </div>
        </section>
        <?php
    }
}

get_footer();
