HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: /var/www/html/delstar/wp-content/themes/construction/woocommerce.php
<?php
/**
 * Custom Woocommerce shop page.
 *
 * @package WPCharming
 */

global $woocommerce;
$page_layout = get_post_meta( wc_get_page_id('shop'), '_wpc_page_layout', true );
$hide_page_title = get_post_meta( wc_get_page_id('shop'), '_wpc_hide_page_title', true );

if ( $page_layout != 'full-screen' ) {
	$container_class = 'container';
	$content_area_class = 'content-area';
} else {
	$container_class = '';
	$content_area_class = 'content-area-full';
}

get_header() ?>
		
		<?php
		if(is_shop() || is_product_category() || is_product_tag() || is_product()) {
			wpcharming_get_page_header(wc_get_page_id('shop'));
		}
		?>

		<?php 
		global $post;
		wpcharming_get_page_header($post->ID);
		?>
		
		<?php
		if ( $hide_page_title != 'on' ) {
			if ( $woocommerce && is_shop() || $woocommerce && is_product() || $woocommerce && is_product_category() || $woocommerce && is_product_tag() ) {
				?>
				<div class="page-title-wrap">
					<div class="container">
						<h1 class="page-entry-title left">
							<?php woocommerce_page_title(); ?>
						</h1>
						<div class="shop-elements right">
							<a href="<?php echo wc_get_cart_url(); ?>" class="portfolio-next" title="<?php echo __('Your Shopping Cart', 'wpcharming') ?>"><i class="fa fa-shopping-cart"></i></a>
						</div>
					</div>
				</div>
				<?php
			}
		}
		?>

		<?php wpcharming_breadcrumb(); ?>

		<div id="content-wrap" class="<?php echo esc_attr( $container_class ); ?> <?php echo wpcharming_get_layout_class(); ?>">
			<div id="primary" class="<?php echo esc_attr( $content_area_class ); ?>">
				<main id="main" class="site-main" role="main">

					<?php woocommerce_content(); ?>

				</main><!-- #main -->
			</div><!-- #primary -->
			
			<?php echo wpcharming_get_sidebar(); ?>
				
		</div> <!-- /#content-wrap -->

<?php
get_footer();