Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/walla3t.corals.io/wp-content/themes/apper/woocommerce/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/walla3t.corals.io/wp-content/themes/apper/woocommerce/quick-view-image.php
<?php
/**
 * Quick view image template.
 *
 * @package Apper WordPress theme
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

global $post, $product, $woocommerce; ?>

<div class="owp-qv-image flexslider images">
	<ul class="owp-qv-slides slides">
		<?php
		if ( has_post_thumbnail() ) {
			$attachment_ids = $product->get_gallery_image_ids();
			$props          = wc_get_product_attachment_props( get_post_thumbnail_id(), $post );
			$image          = get_the_post_thumbnail(
				$post->ID, 'shop_single', array(
					'title' => $props['title'],
					'alt'   => $props['alt'],
				)
			);
			echo
				sprintf(
					'<li class="%s">%s</li>',
					'woocommerce-product-gallery__image',
					$image
				);

			if ( $attachment_ids ) {
				$loop = 0;

				foreach ( $attachment_ids as $attachment_id ) {

					$props = wc_get_product_attachment_props( $attachment_id, $post );

					if ( ! $props['url'] ) {
						continue;
					}

					echo
						sprintf(
							'<li class="%s">%s</li>',
							'woocommerce-product-gallery__image',
							wp_get_attachment_image( $attachment_id, 'shop_single', 0, $props )
						);

					$loop++;
				}
			}
		} else {
			echo sprintf( '<li><img src="%s" alt="%s" /></li>', wc_placeholder_img_src(), esc_html__( 'Placeholder', 'apper' ) );
		} ?>
	</ul>
</div>

Spamworldpro Mini