403Webshell
Server IP : 51.91.236.193  /  Your IP : 216.73.216.224
Web Server : Apache
System : Linux webm010.cluster128.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64
User : institutah ( 16501)
PHP Version : 7.2.34
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/institutah/www/wp-content/themes/makali/woocommerce/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/institutah/www/wp-content/themes/makali/woocommerce//archive-product.php
<?php
/**
 * The Template for displaying product archives, including the main shop page which is a post type archive
 *
 * This template can be overridden by copying it to yourtheme/woocommerce/archive-product.php.
 *
 * HOWEVER, on occasion WooCommerce will need to update template files and you
 * (the theme developer) will need to copy the new files to your theme to
 * maintain compatibility. We try to do this as little as possible, but it does
 * happen. When this occurs the version of the template file will be bumped and
 * the readme will list any important changes.
 *
 * @see 	    https://docs.woothemes.com/document/template-structure/
 * @author 		WooThemes
 * @package 	WooCommerce/Templates
 * @version     31.4.0
 */
if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}
get_header('shop');
global $wp_query, $woocommerce_loop;
$makali_opt = get_option( 'makali_opt' );
$shoplayout = 'sidebar';
if(isset($makali_opt['shop_layout']) && $makali_opt['shop_layout']!=''){
	$shoplayout = $makali_opt['shop_layout'];
}
if(isset($_GET['layout']) && $_GET['layout']!=''){
	$shoplayout = $_GET['layout'];
}
$shopsidebar = 'left';
if(isset($makali_opt['sidebarshop_pos']) && $makali_opt['sidebarshop_pos']!=''){
	$shopsidebar = $makali_opt['sidebarshop_pos'];
}
if(isset($_GET['sidebar']) && $_GET['sidebar']!=''){
	$shopsidebar = $_GET['sidebar'];
}
if ( !is_active_sidebar( 'sidebar-shop' ) )  {
	$shoplayout = 'fullwidth';
}
$makali_shop_main_extra_class = NULl;
if($shopsidebar=='left') {
	$makali_shop_main_extra_class = 'order-lg-last';
}
$main_column_class = NULL;
switch($shoplayout) {
	case 'fullwidth':
		Makali_Class::makali_shop_class('shop-fullwidth');
		$shopcolclass = 12;
		$shopsidebar = 'none';
		$productcols = 4;
		break;
	default:
		Makali_Class::makali_shop_class('shop-sidebar');
		$shopcolclass = 9;
		$productcols = 3;
}
$makali_viewmode = Makali_Class::makali_show_view_mode();
?>
<div class="main-container">
	<div class="page-content">
		<div class="breadcrumb-container">
			<div class="container">
				<?php
					/**
					 * Hook: woocommerce_before_main_content.
					 *
					 * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content)
					 * @hooked woocommerce_breadcrumb - 20
					 * @hooked WC_Structured_Data::generate_website_data() - 30
					 */
					do_action( 'woocommerce_before_main_content' );
				?>
			</div>
		</div>
		<div class="shop_content">
			<div class="container shop_content-inner">
				<?php if( is_shop()){ ?>
					<div class="shop_tabs"> 
						<?php
						$cargs = array(
							'taxonomy'     => 'product_cat',
							'child_of'     => 0,
							'parent'       => 0,
							'orderby'      => 'name',
							'show_count'   => 0,
							'pad_counts'   => 0,
							'hierarchical' => 0,
							'title_li'     => '',
							'hide_empty'   => 0
						);
						$pcategories = get_categories( $cargs );
						if($pcategories){ 
							$shop_page_url = get_permalink( wc_get_page_id( 'shop' ) );
						?>
							<ul>
								<li class="active"><a href="<?php echo esc_attr($shop_page_url);?>"><?php esc_html_e('All', 'makali');?></a></li>
								<?php
								foreach($pcategories as $pcategoy) { ?>
									<li><a href="<?php echo get_term_link($pcategoy->slug, 'product_cat'); ?>"><?php echo esc_html($pcategoy->name); ?></a></li>
								 <?php } ?>
							</ul>
							<?php
						} ?> 
					</div>
				<?php } ?>
				<div class="row">
					<div id="archive-product" class="page-content col-12 <?php echo 'col-lg-'.$shopcolclass; ?> <?php echo esc_attr($makali_viewmode);?> <?php echo ''.$main_column_class; ?> <?php echo esc_attr($makali_shop_main_extra_class);?>">
						<div class="archive-border">
							<!-- shop banner -->
							<?php if( is_shop()){ ?>
								<?php if(isset($makali_opt['shop_banner']['url']) && ($makali_opt['shop_banner']['url'])!=''){ ?>
									<div class="shop-banner">
										<img src="<?php echo esc_url($makali_opt['shop_banner']['url']); ?>" alt="<?php esc_attr_e('Shop banner','makali') ?>" />
									</div>
								<?php } ?>
							<?php } ?>
							<?php if (is_product_category()) {
								if(isset($makali_opt['show_category_image']) && $makali_opt['show_category_image'] == true)  {
									global $wp_query;
									$cat = $wp_query->get_queried_object();
									$thumbnail_id = get_term_meta( $cat->term_id, 'thumbnail_id', true );
									$image = wp_get_attachment_url( $thumbnail_id );
									if ( $image ) {
										echo '<div class="shop-banner"><img src="' . esc_url($image) . '" alt=" ' . esc_attr( $cat->name ) . ' " /></div>';
									}
								} else { ?>
									<?php if(isset($makali_opt['shop_banner']['url']) && ($makali_opt['shop_banner']['url'])!=''){ ?>
										<div class="shop-banner">
											<img src="<?php echo esc_url($makali_opt['shop_banner']['url']); ?>" alt="<?php esc_attr_e('Shop banner','makali') ?>" />
										</div>
									<?php } ?>
								<?php } ?>
							<?php } ?>
							<!-- end shop banner -->
							<?php if ( apply_filters( 'woocommerce_show_page_title', true ) ) : ?>
								<header class="entry-header shop-title">
									<h1 class="entry-title"><?php woocommerce_page_title(); ?></h1>
								</header>
							<?php endif; ?>
							<?php if ( woocommerce_products_will_display() ) { ?>
								<div class="toolbar">
									<div class="toolbar-inner">
										<div class="view-mode">
											<label><?php esc_html_e('View on', 'makali');?></label>
											<a href="#" class="grid <?php if($makali_viewmode=='grid-view'){ echo ' active';} ?>" title="<?php echo esc_attr__( 'Grid', 'makali' ); ?>"><?php esc_html_e('Grid', 'makali');?></a>
											<a href="#" class="list <?php if($makali_viewmode=='list-view'){ echo ' active';} ?>" title="<?php echo esc_attr__( 'List', 'makali' ); ?>"><?php esc_html_e('List', 'makali');?></a>
										</div>
										<?php
											/**
											 * Hook: woocommerce_before_shop_loop.
											 *
											 * @hooked wc_print_notices - 10
											 * @hooked woocommerce_result_count - 20
											 * @hooked woocommerce_catalog_ordering - 30
											 */
											do_action( 'woocommerce_before_shop_loop' );
										?>
										<div class="clearfix"></div>
									</div>
								</div>
							<?php } ?>
							<?php
								/**
								* remove message from 'woocommerce_before_shop_loop' and show here
								*/
								do_action( 'woocommerce_show_message' );
							?>
							<?php if ( have_posts() ) : ?>	
								<?php //woocommerce_product_loop_start(); ?>
								<div class="shop-products products <?php echo esc_attr($makali_viewmode);?> <?php echo esc_attr($shoplayout);?>">
									<?php $woocommerce_loop['columns'] = $productcols; ?>
									<?php woocommerce_product_subcategories();
									//reset loop
									$woocommerce_loop['loop'] = 0; ?>
									<div class="shop-products-inner">
										<div class="row">
											<?php while ( have_posts() ) : the_post(); ?>
												<?php wc_get_template_part( 'content', 'product-archive' ); ?>
											<?php endwhile; // end of the loop. ?>
										</div>
									</div>
								</div>
								<?php //woocommerce_product_loop_end(); ?>
								<?php if ( woocommerce_products_will_display() ) { ?>
								<?php
									/**
									 * woocommerce_before_shop_loop hook
									 *
									 * @hooked woocommerce_result_count - 20
									 * @hooked woocommerce_catalog_ordering - 30
									 */
									do_action( 'woocommerce_after_shop_loop' );
									//do_action( 'woocommerce_before_shop_loop' );
								?>
								<div class="clearfix"></div>
								<?php } ?>
							<?php elseif ( ! woocommerce_product_subcategories( array( 'before' => woocommerce_product_loop_start( false ), 'after' => woocommerce_product_loop_end( false ) ) ) ) : ?>
								<?php wc_get_template( 'loop/no-products-found.php' ); ?>
							<?php endif; ?>
						<?php
							/**
							 * woocommerce_after_main_content hook
							 *
							 * @hooked woocommerce_output_content_wrapper_end - 10 (outputs closing divs for the content)
							 */
							do_action( 'woocommerce_after_main_content' );
						?>
						</div>
					</div>
					<?php if($shoplayout!='fullwidth' && is_active_sidebar('sidebar-shop')): ?>
						<?php get_sidebar('shop'); ?>
					<?php endif; ?>
				</div>
			</div> 
		</div>
	</div>
	<!-- brand logo -->
	<?php 
		if(isset($makali_opt['inner_brand']) && function_exists('makali_brands_shortcode') && shortcode_exists( 'Makali' ) ){
			if($makali_opt['inner_brand'] && isset($makali_opt['brand_logos'][0]) && $makali_opt['brand_logos'][0]['thumb']!=null) { ?>
				<div class="inner-brands">
					<div class="container">
						<?php if(isset($makali_opt['inner_brand_title']) && $makali_opt['inner_brand_title']!=''){ ?>
							<div class="title">
								<h3><?php echo esc_html( $makali_opt['inner_brand_title'] ); ?></h3>
							</div>
						<?php } ?>
						<?php echo do_shortcode('[Makali]'); ?>
					</div>
				</div>
			<?php }
		}
	?>
	<!-- end brand logo --> 
</div>
<?php get_footer( 'shop' ); ?>

Youez - 2016 - github.com/yon3zu
LinuXploit