Файловый менеджер - Редактировать - /home/infrafs/www/wp-content/themes/trackstore/framework/modules/woocommerce/templates/parts/image.php
Назад
<?php $product = trackstore_elated_return_woocommerce_global_variable(); $product_id = $product->get_id(); $product_regular_price = $product->get_regular_price(); $product_sale_price = $product->get_sale_price(); if (get_post_meta($product_id, 'eltd_single_product_new_meta', true) === 'yes'){ ?> <span class="eltd-<?php echo esc_attr($class_name); ?>-new-product"><?php esc_html_e('New', 'trackstore'); ?></span> <?php } ?> <?php if ($product->is_on_sale() && $product->is_in_stock()) { ?> <span class="eltd-<?php echo esc_attr($class_name); ?>-onsale"><?php esc_html_e('Sale', 'trackstore'); ?></span> <?php } ?> <?php if (!$product->is_in_stock()) { ?> <span class="eltd-<?php echo esc_attr($class_name); ?>-out-of-stock"><?php esc_html_e('Out of Stock', 'trackstore'); ?></span> <?php } $product_image_size = 'shop_catalog'; if($image_size === 'full') { $product_image_size = 'full'; } else if ($image_size === 'square') { $product_image_size = 'trackstore_elated_square'; } else if ($image_size === 'landscape') { $product_image_size = 'trackstore_elated_landscape'; } else if ($image_size === 'portrait') { $product_image_size = 'trackstore_elated_portrait'; } else if ($image_size === 'medium') { $product_image_size = 'medium'; } else if ($image_size === 'large') { $product_image_size = 'large'; } else if ($image_size === 'shop_thumbnail') { $product_image_size = 'woocommerce_thumbnail'; } if(has_post_thumbnail()) { the_post_thumbnail(apply_filters( 'trackstore_elated_product_list_image_size', $product_image_size)); }
| ver. 1.4 |
Github
|
.
| PHP 8.2.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка