whoami7 - Manager
:
/
home
/
qbizpnmr
/
alfalahacademy.net
/
wp-content
/
themes
/
kipso
/
woocommerce
/
Upload File:
files >> /home/qbizpnmr/alfalahacademy.net/wp-content/themes/kipso/woocommerce/archive-product.php
<?php /** * The Template for displaying product archives, including the main shop page which is a post type archive. * * Override this template by copying it to yourtheme/woocommerce/archive-product.php * * @author WooThemes * @package WooCommerce/Templates * @version 3.4.0 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly get_header(); $page_id = kipso_id(); $sidebar_layout_config = kipso_get_option('woo_sidebar_config', ''); $left_sidebar = kipso_get_option('woo_left_sidebar', ''); $right_sidebar = kipso_get_option('woo_right_sidebar', ''); if(is_shop()){ $sidebar_layout_config = get_post_meta( $page_id, 'kipso_sidebar_config', true); $left_sidebar = get_post_meta($page_id, 'kipso_left_sidebar', true); $right_sidebar = get_post_meta($page_id, 'kipso_right_sidebar', true); if ($sidebar_layout_config == "") { $sidebar_layout_config = kipso_get_option('woo_sidebar_config', ''); } if ($left_sidebar == "") { $left_sidebar = kipso_get_option('woo_left_sidebar', ''); } if ($right_sidebar == "") { $right_sidebar = kipso_get_option('woo_right_sidebar', ''); } } $left_sidebar_config = array('active' => false); $right_sidebar_config = array('active' => false); $main_content_config = array('class' => 'col-lg-12 col-xs-12'); if(isset($_GET['sb']) && $_GET['sb']){ $sidebar_layout_config = $_GET['sb']; } $sidebar_config = kipso_sidebar_global($sidebar_layout_config, $left_sidebar, $right_sidebar); extract($sidebar_config); $woo_display = kipso_display_modes_value(); ?> <section id="wp-main-content" class="clearfix main-page"> <?php /** * woocommerce_before_main_content hook * * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content) * @hooked woocommerce_breadcrumb - 20 */ do_action( 'woocommerce_before_main_content' ); ?> <div class="container"> <div class="main-page-content row"> <div class="content-page <?php echo esc_attr($main_content_config['class']); ?>"> <div id="wp-content" class="wp-content"> <?php if ( apply_filters( 'woocommerce_show_page_title', true ) ) : ?> <h1 class="page-title hidden"><?php woocommerce_page_title(); ?></h1> <?php endif; ?> <?php do_action( 'woocommerce_archive_description' ); ?> <?php woocommerce_product_subcategories(); ?> <?php if ( have_posts() ) : ?> <div class="shop-loop-container"> <div class="gvawooaf-before-products layout-<?php echo esc_attr($woo_display) ?>"> <div class="woocommerce-filter clearfix"> <?php /** * woocommerce_before_shop_loop hook * * @hooked woocommerce_result_count - 20 * @hooked woocommerce_catalog_ordering - 30 */ do_action( 'woocommerce_before_shop_loop' ); ?> </div> <?php do_action('kipso_woocommerce_active_filter' ); ?> <?php woocommerce_product_loop_start(); ?> <?php while ( have_posts() ) : the_post(); ?> <?php wc_get_template_part( 'content', 'product' ); ?> <?php endwhile; // end of the loop. ?> <?php woocommerce_product_loop_end(); ?> <?php /** * woocommerce_after_shop_loop hook * * @hooked woocommerce_pagination - 10 */ do_action( 'woocommerce_after_shop_loop' ); ?> </div> </div> <?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; ?> </div> </div> <!-- Left sidebar --> <?php if($left_sidebar_config['active']): ?> <div class="sidebar wp-sidebar sidebar-left <?php echo esc_attr($left_sidebar_config['class']); ?>"> <?php do_action( 'kipso_before_sidebar' ); ?> <div class="sidebar-inner"> <?php dynamic_sidebar($left_sidebar_config['name'] ); ?> </div> <?php do_action( 'kipso_after_sidebar' ); ?> </div> <?php endif ?> <!-- Right Sidebar --> <?php if($right_sidebar_config['active']): ?> <div class="sidebar wp-sidebar sidebar-right <?php echo esc_attr($right_sidebar_config['class']); ?>"> <?php do_action( 'kipso_before_sidebar' ); ?> <div class="sidebar-inner"> <?php dynamic_sidebar($right_sidebar_config['name'] ); ?> </div> <?php do_action( 'kipso_after_sidebar' ); ?> </div> <?php endif ?> </div> </div> <?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' ); ?> </section> <?php get_footer(); ?>
Copyright ©2021 || Defacer Indonesia