File: /home/vhosts/harpoeditore.it/httpdocs/wp-content/themes/mindig/woocommerce/global/list-or-grid.php
<?php
/**
* Shop list or grid
*/
if ( is_single() || yit_get_option( 'shop-grid-list-option' ) == 'no' || yit_get_option( 'shop-view-type' ) == 'masonry_item' || ! have_posts() ) return;
global $woocommerce_loop;
$shop_view = wc_get_loop_prop('view');
if ( empty( $shop_view ) ) {
wc_set_loop_prop('view', yit_get_option('shop-view-type', 'grid'));
$shop_view = yit_get_option('shop-view-type', 'grid');
}
?>
<p id="list-or-grid">
<span class="view-title"><?php _e( 'view style:', 'yit' ) ?></span>
<a class="grid-view<?php if ( $shop_view == 'grid' ) echo ' active'; ?>" href="<?php echo esc_url( add_query_arg( 'view', 'grid' ) ) ?>" title="<?php _e( 'Switch to grid view', 'yit' ) ?>">
<i class="glyphicon glyphicon-th-large"></i>
</a>
<a class="list-view<?php if ( $shop_view == 'list' ) echo ' active'; ?>" href="<?php echo esc_url( add_query_arg( 'view', 'list' ) ) ?>" title="<?php _e( 'Switch to list view', 'yit' ) ?>">
<i class="glyphicon glyphicon-align-justify"></i>
</a>
</p>