????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 3.144.252.203 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-IMAGE.PHP // ----------------------------------------------------------------------------- // @version 2.6.3 // ============================================================================= // Template Changes // ---------------- // 01. Add product sale flash. // 02. Add classes to linked image (.x-img, .x-img-link, .x-img-thumbnail, // and .man). // 03. Add class to image (.x-img-thumbnail) and update text domain. if ( ! defined( 'ABSPATH' ) ) { exit; } global $post, $product; ?> <div class="images"> <?php woocommerce_show_product_sale_flash(); // 01 if ( has_post_thumbnail() ) { $attachment_count = count( $product->get_gallery_attachment_ids() ); $gallery = $attachment_count > 0 ? '[product-gallery]' : ''; $props = wc_get_product_attachment_props( get_post_thumbnail_id(), $post ); $image = get_the_post_thumbnail( $post->ID, apply_filters( 'single_product_large_thumbnail_size', 'shop_single' ), array( 'title' => $props['title'], 'alt' => $props['alt'], ) ); echo apply_filters( 'woocommerce_single_product_image_html', sprintf( '<a href="%s" itemprop="image" class="woocommerce-main-image zoom x-img x-img-link x-img-thumbnail man" title="%s" data-rel="prettyPhoto%s">%s</a>', // 02 esc_url( $props['url'] ), esc_attr( $props['caption'] ), $gallery, $image ), $post->ID ); } else { echo apply_filters( 'woocommerce_single_product_image_html', sprintf( '<img src="%s" class="x-img-thumbnail" alt="%s" />', wc_placeholder_img_src(), __( 'Placeholder', '__x__' ) ), $post->ID ); // 03 } do_action( 'woocommerce_product_thumbnails' ); ?> </div>