HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux wordpress-ubuntu-s-2vcpu-4gb-fra1-01 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/shoetique/wp-content/themes/north-wp/woocommerce/content-product-small.php
<?php
/**
 * The template for displaying product content within loops.
 *
 * Override this template by copying it to yourtheme/woocommerce/content-product.php
 *
 * @author 		WooThemes
 * @package 	WooCommerce/Templates
 * @version     1.6.4
 */

global $product, $woocommerce_loop;

$attachment_ids = $product->get_gallery_attachment_ids();

// Store loop count we're currently on
if ( empty( $woocommerce_loop['loop'] ) )
	$woocommerce_loop['loop'] = 0;

// Store column count for displaying the grid
if ( empty( $woocommerce_loop['columns'] ) )
	$woocommerce_loop['columns'] = apply_filters( 'loop_shop_columns', 4 );

// Ensure visibilty
if ( ! $product->is_visible() )
	return;

// Increase loop count
$woocommerce_loop['loop']++;
$catalog_mode = ot_get_option('shop_catalog_mode', 'off');
$shop_product_listing = (isset($_GET['shop_product_listing']) ? htmlspecialchars($_GET['shop_product_listing']) : ot_get_option('shop_product_listing', 'style1'));
?>


<article <?php post_class("small-5 medium-3 columns " . $shop_product_listing); ?>>

<?php do_action( 'woocommerce_before_shop_loop_item' ); ?>
	<?php
		$image_html = "";

		if ( has_post_thumbnail() ) {
			$image_html = wp_get_attachment_image( get_post_thumbnail_id(), 'shop_catalog' );					
		}
	?>
	<?php if ($shop_product_listing == 'style1') { ?>
		<figure class="fresco">
			<?php do_action( 'thb_product_badge'); ?>
			<?php echo $image_html; ?>			
			<div class="overlay"></div>
			<div class="buttons">
				<?php echo thb_wishlist_button(); ?>
				<div class="post-title<?php if ($catalog_mode == 'on') { echo ' catalog-mode'; } ?>">
					<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
				</div>
				<?php if ($catalog_mode != 'on') { ?>
					<?php
						/**
						 * woocommerce_after_shop_loop_item_title hook
						 *
						 * @hooked woocommerce_template_loop_price - 10
						 */
						do_action( 'woocommerce_after_shop_loop_item_title' );
					?>
					<?php do_action( 'woocommerce_after_shop_loop_item' ); ?>
				<?php } ?>
			</div>
		</figure>
	<?php } else if ($shop_product_listing == 'style2') { ?>
		<figure class="fresco">
			<?php do_action( 'thb_product_badge'); ?>
			<a href="<?php the_permalink(); ?>"><?php echo $image_html; ?></a>
		</figure>
		<div class="post-title<?php if ($catalog_mode == 'on') { echo ' catalog-mode'; } ?>">
			<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
		</div>
		<?php if ($catalog_mode != 'on') { ?>
			<?php
				/**
				 * woocommerce_after_shop_loop_item_title hook
				 *
				 * @hooked woocommerce_template_loop_price - 10
				 */
				do_action( 'woocommerce_after_shop_loop_item_title' );
			?>
			<?php do_action( 'woocommerce_after_shop_loop_item' ); ?>
		<?php } ?>
	<?php } ?>
</article><!-- end product -->