<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}
?>
<?php if ( ! is_single() ) {
	if ( class_exists( 'WooCommerce' ) ) {
		if ( is_woocommerce() ) { ?>
<!--            <h1 class="page-title entry-title shop-title">--><?php //woocommerce_page_title() ?><!--</h1>-->
		<?php } elseif ( is_home() ) { ?>
			<?php if ( is_front_page() ) { ?>
                <h1 class="page-title entry-title"><?php esc_html_e( 'Latest Posts', 'draly-dropshipping-starter' ) ?></h1>
			<?php } else { ?>
                <h1 class="page-title entry-title"><?php single_post_title() ?></h1>
			<?php }
		} elseif ( is_page() ) { ?>
            <h1 class="page-title entry-title"><?php single_post_title() ?></h1>
		<?php } elseif ( is_search() ) { ?>
            <h1 class="page-title entry-title blog-title"><?php printf( esc_html__( 'Search Results for: %s', 'draly-dropshipping-starter' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
		<?php } else { ?>
            <h1 class="page-title entry-title"><?php the_archive_title() ?></h1>
			<?php the_archive_description( '<div class="taxonomy-description">', '</div>' ); ?>
			<?php
		}
	} elseif ( is_home() ) { ?>
		<?php if ( is_front_page() ) { ?>
            <h1 class="page-title entry-title"><?php esc_html_e( 'Latest Posts', 'draly-dropshipping-starter' ) ?></h1>
		<?php } else { ?>
            <h1 class="page-title entry-title"><?php single_post_title() ?></h1>
		<?php }
	} elseif ( is_page() ) { ?>
        <h1 class="page-title entry-title"><?php single_post_title() ?></h1>
	<?php } elseif ( is_search() ) { ?>
        <h1 class="page-title entry-title blog-title"><?php printf( esc_html__( 'Search Results for: %s', 'draly-dropshipping-starter' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
	<?php } else { ?>
        <h1 class="page-title entry-title"><?php the_archive_title() ?></h1>
		<?php
	}
}

