HEX
Server: Apache
System: Linux sg2plzcpnl508499.prod.sin2.secureserver.net 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User: s76vzjg2kvav (10209820)
PHP: 8.4.18
Disabled: NONE
Upload Files
File: /home/s76vzjg2kvav/public_html/clients/alepdigital/wp-content/themes/neromax/woocommerce.php
<?php
if (class_exists('NeroMax_Addons_Plugin_Hooks')){ 
	if (class_exists('WooCommerce')) {
		if ( is_singular('product') ) {
			if (isset(get_option( 'vaajo_layoutdef' )['single_wcproduct_layout_section'])) {
				$page_layoutdef_section = esc_attr( sprintf(get_option( 'vaajo_layoutdef' )['single_wcproduct_layout_section']) );
			}else{
				$page_layoutdef_section = esc_attr( 'full-width' );
			}
			if ($page_layoutdef_section == 'full-width'){
				$neromax_layout_class = ' ' . 'col-md-12 wc-full-width';
			}else{
				$neromax_layout_class = ' ' . 'col-md-9';
			}
		}else {
			if (isset(get_option( 'vaajo_layoutdef' )['shop_layout_section'])){
				$page_layoutdef_section = esc_attr( sprintf(get_option( 'vaajo_layoutdef' )['shop_layout_section']) );
			}else{
				$page_layoutdef_section = esc_attr( 'left-sidebar' );
			}
			if ($page_layoutdef_section == 'full-width'){
				$neromax_layout_class = ' ' . 'col-md-12 wc-full-width';
			}else{
				$neromax_layout_class = ' ' . 'col-md-9';
			}
		}
	}
}
if (class_exists('NeroMax_Addons_Plugin_Hooks')) { 
	if(!empty($neromax_layout_class)) { 
		if ( is_active_sidebar( 'wc-sidebar-widget' ) ) { 
			$column_width = esc_attr(  $neromax_layout_class ); 
		}else{ 
			$column_width = esc_attr( 'col-md-12' ); 
		} 
	} 
}else{ 
	if (! is_active_sidebar( 'wc-sidebar-widget' ) ) { 
		$column_width = esc_attr( 'col-md-12' ); 
	}else{ 
		$column_width = esc_attr( 'col-md-9' );
	} 
}
get_header();
?>
	<div id="primary" class="content-area">
		<div class="container">
			<div class="row wc_row">
			<?php 
			if (class_exists('NeroMax_Addons_Plugin_Hooks')){
				if ($page_layoutdef_section == 'left-sidebar') { 
					?>
					<div class="col-md-3">
						<?php if ( is_active_sidebar( 'wc-sidebar-widget' ) ) :
							dynamic_sidebar( 'wc-sidebar-widget' );
						endif;
						?>
					</div>
				<?php
				} 
			}else{ ?>
				<div class="col-md-3">
					<?php 
					if ( is_active_sidebar( 'wc-sidebar-widget' ) ) :
						dynamic_sidebar( 'wc-sidebar-widget' );
					endif;
					?>
				</div>
			<?php } ?>
				<div class="order-md-1 <?php echo esc_attr( $column_width ); ?>">
				<main id="main" class="site-main">
         	 <?php
				function neromax_wrapper_start() {
					echo '<section id="main">';
				}

					woocommerce_content();
					
				function neromax_wrapper_end() {
					echo '</section>';
				}  ?>

					</main>
				</div>
				<?php
			if (class_exists('NeroMax_Addons_Plugin_Hooks')) {  
				if ($page_layoutdef_section == 'right-sidebar') { ?>
				<div class="col-md-3">
					<?php
					if ( is_active_sidebar( 'wc-sidebar-widget' ) ) :
						dynamic_sidebar( 'wc-sidebar-widget' );
					endif;
					?>
				</div>
			<?php } 
			} ?>
		</div>
	</div>
</div>
<?php
get_footer();