<?php get_header();
		while(have_posts()) {
		    the_post(); 
?>
        
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

        <?php if (( class_exists( 'WooCommerce' ) ) && ( is_cart() || is_checkout() || is_account_page() )) { get_template_part( 'template-parts/content/woocommerce-content' ); } 
                else { ?>

            <div class="page-banner">
                <div class="<?php if (empty(get_theme_mod( 'wpdevart_ai_and_saas_agency_wda_single_page_banner_gradient_color' ))) 
                                { echo esc_attr( 'wpdevart-page-banner__bg' ); } 
                                    else { echo esc_attr('wpdevart-page-banner__bg-gradient'); } ?>">
                </div>
                <div class="container <?php if ( get_theme_mod( 'wpdevart_ai_and_saas_agency_wda_single_page_banner_width' ) == 'narrow' ) { echo esc_attr('wpdevart-banner-narrow-container'); } ?>">
                    <div class="page-banner-content"><h1 class="page-banner__title"><?php echo esc_html(get_the_title()); ?></h1>
                        <?php if ( get_theme_mod( 'wpdevart_ai_and_saas_agency_wda_page_banner_author_display' ) == '1' ) { ?>
                            <p class="wpdevart-banner-page-entry-text"><?php echo esc_html__('By ', 'ai-and-saas-agency-wda'); ?><span class="wpdevart-banner-page-entry-meta"><?php the_author_posts_link(); ?></span><?php echo esc_html(' / '); ?> <span class="wpdevart-banner-entry-date"><?php echo esc_html(get_the_time('F j, Y')); ?></span><?php echo esc_html(' / '); ?><span class="wpdevart-banner-page-entry-meta"><a href="<?php comments_link(); ?>"><?php $wpdevartCommentsNumber = get_comments_number(); if ($wpdevartCommentsNumber == 0 ) {echo esc_html__('No Comments', 'ai-and-saas-agency-wda');} else if ($wpdevartCommentsNumber == 1 ) { echo esc_html($wpdevartCommentsNumber); echo esc_html__(' Comment', 'ai-and-saas-agency-wda');} else { echo esc_html($wpdevartCommentsNumber); echo esc_html__(' Comments', 'ai-and-saas-agency-wda');} ?></a></span></p>
                        <?php } ?>
                        <?php if ( get_theme_mod( 'wpdevart_ai_and_saas_agency_wda_page_breadcrumbs_display_option' ) == '1' ) { ?>
                            <ul class="wpdevart-breadcrumbs-single-page"><?php if ( function_exists('wpdevart_breadcrumbs') ) { wpdevart_breadcrumbs();} ?></ul>
                        <?php } ?>
                    </div>
                </div>
            </div>
            <div class="wpdevart-main-container">
            <div role="main" class="container <?php if (( get_theme_mod( 'wpdevart_ai_and_saas_agency_wda_single_page_layout' ) != 'sidebarnone' ) && ( get_theme_mod( 'wpdevart_ai_and_saas_agency_wda_single_page_layout' ) == 'sidebarleft' ))
                                                        { echo esc_attr('container-with-sidebar wpdevart-main-content-sidebarleft'); } 
                                                    else if (( get_theme_mod( 'wpdevart_ai_and_saas_agency_wda_single_page_layout' ) != 'sidebarnone' ) && ( get_theme_mod( 'wpdevart_ai_and_saas_agency_wda_single_page_layout' ) != 'sidebarleft' )) 
                                                        { echo esc_attr('container-with-sidebar'); } 
                                                    ?> wpdevart-main-content" id="content_navigator">
                <div class="generic-content <?php if ( get_theme_mod( 'wpdevart_ai_and_saas_agency_wda_single_page_layout' ) == 'sidebarnone' ) { echo esc_attr('generic-content-full-width'); } ?>">
                    <?php get_template_part( 'template-parts/content/generic-content' ); ?>
                </div>
                <?php if ( get_theme_mod( 'wpdevart_ai_and_saas_agency_wda_single_page_layout' ) != 'sidebarnone' ) { get_template_part( 'template-parts/sidebar/sidebar-default' ); } ?>
            </div>
            </div>

        <?php } ?>

    </article>

<?php } get_footer(); ?>