<?php
/**
 *  For Displaying Posts 
 *
 *
 * @package Felicityhealth
 * @since Felicityhealth 1.0
 */
?>
<?php 
    get_header();
 ?>

<?php
$categories = get_categories( array(
    'orderby' => 'name',
    'order'   => 'ASC',
) );

$args = array(
    'post_type' => 'products',
    'order' => 'ASC',
    'orderby' => 'ID',
);
$products = new WP_Query($args);
?>
                
 
  
<section class="feature">
    <div class="feature_wrap__qIpNk feature_large__tYZiB">
        <div class="feature_copy__eRDg_ feature_copy-left__IWPST">
            <div class="prose_prose__r5u4D">
                <h1 class="heading_heading__ooopW heading_b2__geFx_ heading_purple"><?= the_archive_title() ?></h1>
                <h2 class="heading_heading__ooopW heading_h1__OimJX inherit"> <?php echo __( 'The Felicity Apps - take your business with you', 'felicityhealth' );?></h2>
                <p class="text_text__ySj__ text_b2__Q6Iai">
                <?php echo __( "Designed especially for people who run health institutions or are self employed, it means you won't end your day with a mountain of paperwork. ", 'felicityhealth' );?></p>
            </div>
            <div class="group">
                <div class="buttonGroup_row1__rBgaL">
                    <div class="pos1">
                        <a class="button_button__Yaq9u button_large__xOVkf button_primary__aMXk2" href="#apps"><?php echo __( 'Explore Apps', 'felicityhealth' );?></a>
                    </div> 
                </div>
             </div>
        </div>
        <div class="feature_asset__7ZoNZ feature_asset-left__XBVtD">
            <img style="--aspect-ratio:1280 / 960" src="<?= site_url() ?>/wp-content/uploads/2022/10/hero2.jpeg" alt="<?= the_archive_title() ?>" width="1280" height="960" class="image_image__Ge1OD" >
        </div>
    </div>
</section>

<section id="spacer_spacer" class="spacer_spacer"><div class="spacer_hr"></div></section>
 
<section id="apps">
     <!-- loop items -->
    <?php  if ( $products->have_posts() ) : ?>
        <?php while ( $products->have_posts() )  : $products->the_post(); ?>
            <?php get_template_part( 'template-parts/content-product' );?>
            <section class="spacer_spacer"><div class="spacer_hr"></div></section>
        <?php endwhile; ?>
    <?php endif; ?>
</section>



<?php get_template_part( 'template-parts/snippets/EcosystemModule' );?>
 
<?php get_footer(); ?>
 