Initial Commit N° : 003 - V.4.3.5

This commit is contained in:
2025-03-28 14:51:03 +01:00
parent 579b475021
commit 1ec9986b28
78 changed files with 1974 additions and 10329 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
*
* @author NasaTheme
* @package Elessi-theme/WooCommerce
* @version 3.0.0
* @version 9.7.0
*/
if (!defined('ABSPATH')) :
exit; // Exit if accessed directly
+4 -3
View File
@@ -4,7 +4,7 @@
*
* @author NasaTheme
* @package Elessi-theme/WooCommerce
* @version 9.0.0
* @version 9.7.0
*/
if (!defined('ABSPATH')) :
exit; // Exit if accessed directly
@@ -70,7 +70,6 @@ if (isset($nasa_opt['product_detail_layout']) && in_array($nasa_opt['product_det
$slideHoz = true;
endif;
if (isset($nasa_opt['product_detail_layout']) && in_array($nasa_opt['product_detail_layout'], array('new')) && isset($nasa_opt['product_thumbs_style']) && $nasa_opt['product_thumbs_style'] === 'hoz' && isset($nasa_opt['product_image_style']) && $nasa_opt['product_image_style'] === 'slide') :
$slideHoz = true;
endif;
@@ -236,11 +235,13 @@ $wrapper_classes = apply_filters(
endforeach;
endif;
?>
<?php if ($video_url) : ?>
<!-- Video product -->
<div class="item-wrap">
<div class="nasa-item-main-video-wrap nasa-item-main-image-wrap" data-key="<?php echo (int) $_i+1; ?>">
<?php $video_poster_url = $video_poster_url ? $video_poster_url : wc_placeholder_img_src();?>
<?php echo do_shortcode('[video src="' . esc_url($video_url) . '" preload="auto" poster="'.$video_poster_url.'"]'); ?>
<?php echo do_shortcode('[video src="' . esc_url($video_url) . '" preload="auto" poster="' . $video_poster_url . '"]'); ?>
<img class="ns-video-size" src="<?php echo esc_url($video_poster_url); ?>" alt="<?php echo esc_attr($video_title); ?>" />
</div>