Changeset 3418407
- Timestamp:
- 12/12/2025 04:22:23 PM (4 months ago)
- Location:
- video-wc-gallery
- Files:
-
- 97 added
- 4 edited
-
tags/2.2 (added)
-
tags/2.2/admin (added)
-
tags/2.2/admin/admin-ui-setup.php (added)
-
tags/2.2/admin/basic-setup.php (added)
-
tags/2.2/admin/index.php (added)
-
tags/2.2/functions (added)
-
tags/2.2/functions/do.php (added)
-
tags/2.2/functions/index.php (added)
-
tags/2.2/functions/theme-supports.php (added)
-
tags/2.2/includes (added)
-
tags/2.2/includes/css (added)
-
tags/2.2/includes/css/admin (added)
-
tags/2.2/includes/css/admin/admin.css (added)
-
tags/2.2/includes/css/admin/pricing-modal.css (added)
-
tags/2.2/includes/fontawesome_v6-6-0 (added)
-
tags/2.2/includes/fontawesome_v6-6-0/LICENSE.txt (added)
-
tags/2.2/includes/fontawesome_v6-6-0/css (added)
-
tags/2.2/includes/fontawesome_v6-6-0/css/all.css (added)
-
tags/2.2/includes/fontawesome_v6-6-0/css/all.min.css (added)
-
tags/2.2/includes/fontawesome_v6-6-0/css/brands.css (added)
-
tags/2.2/includes/fontawesome_v6-6-0/css/brands.min.css (added)
-
tags/2.2/includes/fontawesome_v6-6-0/css/fontawesome.css (added)
-
tags/2.2/includes/fontawesome_v6-6-0/css/fontawesome.min.css (added)
-
tags/2.2/includes/fontawesome_v6-6-0/css/regular.css (added)
-
tags/2.2/includes/fontawesome_v6-6-0/css/regular.min.css (added)
-
tags/2.2/includes/fontawesome_v6-6-0/css/solid.css (added)
-
tags/2.2/includes/fontawesome_v6-6-0/css/solid.min.css (added)
-
tags/2.2/includes/fontawesome_v6-6-0/css/svg-with-js.css (added)
-
tags/2.2/includes/fontawesome_v6-6-0/css/svg-with-js.min.css (added)
-
tags/2.2/includes/fontawesome_v6-6-0/css/v4-font-face.css (added)
-
tags/2.2/includes/fontawesome_v6-6-0/css/v4-font-face.min.css (added)
-
tags/2.2/includes/fontawesome_v6-6-0/css/v4-shims.css (added)
-
tags/2.2/includes/fontawesome_v6-6-0/css/v4-shims.min.css (added)
-
tags/2.2/includes/fontawesome_v6-6-0/css/v5-font-face.css (added)
-
tags/2.2/includes/fontawesome_v6-6-0/css/v5-font-face.min.css (added)
-
tags/2.2/includes/fontawesome_v6-6-0/js (added)
-
tags/2.2/includes/fontawesome_v6-6-0/js/all.js (added)
-
tags/2.2/includes/fontawesome_v6-6-0/js/all.min.js (added)
-
tags/2.2/includes/fontawesome_v6-6-0/js/brands.js (added)
-
tags/2.2/includes/fontawesome_v6-6-0/js/brands.min.js (added)
-
tags/2.2/includes/fontawesome_v6-6-0/js/conflict-detection.js (added)
-
tags/2.2/includes/fontawesome_v6-6-0/js/conflict-detection.min.js (added)
-
tags/2.2/includes/fontawesome_v6-6-0/js/fontawesome.js (added)
-
tags/2.2/includes/fontawesome_v6-6-0/js/fontawesome.min.js (added)
-
tags/2.2/includes/fontawesome_v6-6-0/js/regular.js (added)
-
tags/2.2/includes/fontawesome_v6-6-0/js/regular.min.js (added)
-
tags/2.2/includes/fontawesome_v6-6-0/js/solid.js (added)
-
tags/2.2/includes/fontawesome_v6-6-0/js/solid.min.js (added)
-
tags/2.2/includes/fontawesome_v6-6-0/js/v4-shims.js (added)
-
tags/2.2/includes/fontawesome_v6-6-0/js/v4-shims.min.js (added)
-
tags/2.2/includes/fontawesome_v6-6-0/webfonts (added)
-
tags/2.2/includes/fontawesome_v6-6-0/webfonts/fa-brands-400.ttf (added)
-
tags/2.2/includes/fontawesome_v6-6-0/webfonts/fa-brands-400.woff2 (added)
-
tags/2.2/includes/fontawesome_v6-6-0/webfonts/fa-regular-400.ttf (added)
-
tags/2.2/includes/fontawesome_v6-6-0/webfonts/fa-regular-400.woff2 (added)
-
tags/2.2/includes/fontawesome_v6-6-0/webfonts/fa-solid-900.ttf (added)
-
tags/2.2/includes/fontawesome_v6-6-0/webfonts/fa-solid-900.woff2 (added)
-
tags/2.2/includes/fontawesome_v6-6-0/webfonts/fa-v4compatibility.ttf (added)
-
tags/2.2/includes/fontawesome_v6-6-0/webfonts/fa-v4compatibility.woff2 (added)
-
tags/2.2/includes/images (added)
-
tags/2.2/includes/images/vwg-logo.png (added)
-
tags/2.2/includes/js (added)
-
tags/2.2/includes/js/vwg-admin.js (added)
-
tags/2.2/includes/js/vwg-pricing.js (added)
-
tags/2.2/includes/sweetalert2 (added)
-
tags/2.2/includes/sweetalert2/sweetalert2.all.min.js (added)
-
tags/2.2/includes/video-js (added)
-
tags/2.2/includes/video-js/video-js.css (added)
-
tags/2.2/includes/video-js/video-js.min.js (added)
-
tags/2.2/index.php (added)
-
tags/2.2/languages (added)
-
tags/2.2/languages/index.php (added)
-
tags/2.2/languages/video-wc-gallery.pot (added)
-
tags/2.2/license.txt (added)
-
tags/2.2/loader.php (added)
-
tags/2.2/public (added)
-
tags/2.2/public/index.php (added)
-
tags/2.2/readme.txt (added)
-
tags/2.2/uninstall.php (added)
-
tags/2.2/update.php (added)
-
tags/2.2/video-wc-gallery.php (added)
-
tags/2.2/woocommerce-overwrite (added)
-
tags/2.2/woocommerce-overwrite/assets (added)
-
tags/2.2/woocommerce-overwrite/assets/css (added)
-
tags/2.2/woocommerce-overwrite/assets/css/flatsome-gallery.css (added)
-
tags/2.2/woocommerce-overwrite/assets/js (added)
-
tags/2.2/woocommerce-overwrite/assets/js/flexslider (added)
-
tags/2.2/woocommerce-overwrite/assets/js/flexslider/jquery.flexslider.js (added)
-
tags/2.2/woocommerce-overwrite/assets/js/frontend (added)
-
tags/2.2/woocommerce-overwrite/assets/js/frontend/single-product.js (added)
-
tags/2.2/woocommerce-overwrite/templates (added)
-
tags/2.2/woocommerce-overwrite/templates/single-product (added)
-
tags/2.2/woocommerce-overwrite/templates/single-product/flatsome (added)
-
tags/2.2/woocommerce-overwrite/templates/single-product/flatsome/product-gallery-thumbnails-flatsome-theme.php (added)
-
tags/2.2/woocommerce-overwrite/templates/single-product/flatsome/product-image-flatsome-theme.php (added)
-
tags/2.2/woocommerce-overwrite/templates/single-product/flatsome/product-image-vertical-flatsome-theme.php (added)
-
tags/2.2/woocommerce-overwrite/templates/single-product/product-image.php (added)
-
trunk/functions/theme-supports.php (modified) (6 diffs)
-
trunk/includes/js/vwg-pricing.js (modified) (2 diffs)
-
trunk/readme.txt (modified) (5 diffs)
-
trunk/video-wc-gallery.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
video-wc-gallery/trunk/functions/theme-supports.php
r3254550 r3418407 13 13 * Active theme checker for different logic 14 14 * 15 * @since 1.1815 * @since 2.2 16 16 */ 17 17 function vwg_active_theme_checker() … … 20 20 if (function_exists('flatsome_setup') || stripos(wp_get_theme()->get('Name'), 'Flatsome') !== false) { 21 21 $use_different_logic = 'Flatsome'; 22 } elseif (function_exists('blocksy') || defined('BLOCKSY_VERSION') || class_exists('Blocksy_Manager')) { 23 $use_different_logic = 'Blocksy'; 22 24 } else { 23 25 $use_different_logic = 'default'; … … 31 33 * Overwrite woocommerce templates for different themes 32 34 * 33 * @since 1.1835 * @since 2.2 34 36 */ 35 37 function vwg_custom_wc_template_overwrite_for_themes($located, $template_name, $args, $template_path, $default_path) … … 48 50 $located = VWG_VIDEO_WOO_GALLERY_DIR . 'woocommerce-overwrite/templates/single-product/flatsome/product-gallery-thumbnails-flatsome-theme.php'; 49 51 } 52 } elseif (vwg_active_theme_checker() === 'Blocksy') { 53 if ($template_name === 'single-product/product-image.php') { 54 // Use our default Woo template (contains the video-first hook) 55 $located = VWG_VIDEO_WOO_GALLERY_DIR . 'woocommerce-overwrite/templates/single-product/product-image.php'; 56 } 50 57 } 51 58 } else { … … 62 69 63 70 /** 64 * Modify part template for theme71 * Flatsome Modify part template for theme 65 72 * 66 73 * @since 1.18 … … 82 89 add_filter('wc_get_template_part', 'vwg_wc_template_part_modify', 10, 3); 83 90 91 92 93 /** 94 * Blocksy compatibility: force default Woo gallery when product has videos 95 * 96 * @since 2.2 97 */ 98 function vwg_blocksy_force_default_gallery( $use_default ) { 99 $is_blocksy = function_exists( 'blocksy' ) || defined( 'BLOCKSY_VERSION' ) || class_exists( 'Blocksy_Manager' ); 100 if ( ! $is_blocksy ) { 101 return $use_default; 102 } 103 104 $opt = get_option('vwg_settings_group'); 105 if ( isset($opt['vwg_settings_show_first']) && $opt['vwg_settings_show_first'] == 1 ) { 106 return true; 107 } 108 109 global $product; 110 if ( ! is_object( $product ) ) { 111 $product = wc_get_product( get_the_ID() ); 112 } 113 114 if ( ! is_object( $product ) || ! method_exists( $product, 'get_id' ) ) { 115 return $use_default; 116 } 117 118 $videos = get_post_meta( $product->get_id(), 'vwg_video_url', true ); 119 if ( ! empty( $videos ) ) { 120 return true; 121 } 122 123 return $use_default; 124 } 125 add_filter( 'blocksy:woocommerce:product-view:use-default', 'vwg_blocksy_force_default_gallery', 5, 1 ); 126 127 /** 128 * Blocksy: override gallery content with our template when show_first or videos exist 129 * 130 * @since 2.2 131 */ 132 function vwg_blocksy_gallery_override_content( $content, $product, $gallery_images, $is_single ) { 133 if ( vwg_active_theme_checker() !== 'Blocksy' ) { 134 return $content; 135 } 136 137 $opt = get_option('vwg_settings_group'); 138 $show_first = isset($opt['vwg_settings_show_first']) && $opt['vwg_settings_show_first'] == 1; 139 140 $has_videos = ( is_object( $product ) && method_exists( $product, 'get_id' ) ) 141 ? get_post_meta( $product->get_id(), 'vwg_video_url', true ) 142 : ''; 143 144 if ( ! $show_first && empty( $has_videos ) ) { 145 return $content; 146 } 147 148 ob_start(); 149 wc_get_template( 150 'single-product/product-image.php', 151 array(), 152 '', 153 VWG_VIDEO_WOO_GALLERY_DIR 154 ); 155 return ob_get_clean(); 156 } 157 add_filter( 'blocksy:woocommerce:product-view:content', 'vwg_blocksy_gallery_override_content', 5, 4 ); 158 -
video-wc-gallery/trunk/includes/js/vwg-pricing.js
r3415839 r3418407 2 2 3 3 /** 4 * @since 2. 1Function show modal pricing info4 * @since 2.2 Function show modal pricing info 5 5 */ 6 6 const selectorTrigger = [ … … 122 122 <i class="fas fa-undo-alt"></i> 123 123 </div> 124 <h3> 14-DayMoney Back Guarantee</h3>125 <p>If you're not satisfied, we offer a full refund within 14days. No questions asked.</p>124 <h3>7-Days Money Back Guarantee</h3> 125 <p>If you're not satisfied, we offer a full refund within 7 days. No questions asked.</p> 126 126 </div> 127 127 </div> -
video-wc-gallery/trunk/readme.txt
r3415839 r3418407 6 6 Tested up to: 6.9 7 7 Requires PHP: 7.4 8 Stable tag: 2. 18 Stable tag: 2.2 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 32 32 33 33 **FREE Version Limitations:** 34 * Limited to 20 products with video 34 35 * Limited to 2 videos per product 35 36 * WordPress Media Library videos only (no YouTube support) 36 37 * Basic video icons only 37 38 * Basic thumbnail generation 39 * Basic SEO video 38 40 39 41 **🚀 Upgrade to PRO Version:** … … 41 43 42 44 **PRO Version Features:** 45 * **Unlimited products with video 43 46 * **Up to 6 videos per product** - Showcase products from multiple angles 44 47 * **YouTube video integration** - Embed videos directly from YouTube … … 94 97 Video Gallery for WooCommerce is compatible with most WordPress themes and plugins, although some may require additional customization. It is designed to seamlessly integrate with Woocommerce, ensuring a smooth user experience. 95 98 = Is there a PRO version with more features? = 96 Yes! The PRO version unlocks advanced features including up to 6 videos per product, YouTube integration, custom SVG icons, optimized thumbnails, SEO settings, and priority support. Visit [Video Gallery for WooCommerce PRO](https://nitramix.com/projects/video-gallery-for-woocommerce/) to learn more and purchase.99 Yes! The PRO version unlocks advanced features including Unlimited products with video, up to 6 videos per product, YouTube integration, custom SVG icons, optimized thumbnails, SEO settings, and priority support. Visit [Video Gallery for WooCommerce PRO](https://nitramix.com/projects/video-gallery-for-woocommerce/) to learn more and purchase. 97 100 = What's the difference between FREE and PRO versions? = 98 The FREE version supports basic video functionality with up to 2 videos per product. The PRO version includes unlimited videos, YouTube support, custom icons, advanced SEO, and premium support.101 The FREE version supports basic video functionality with limit 20 products with vide and up to 2 videos per product. The PRO version includes unlimited videos, YouTube support, custom icons, advanced SEO, and premium support. 99 102 100 103 == Screenshots == … … 109 112 110 113 == Changelog == 114 115 = 2.2 = 116 * **Added:** Added basic support for Blocksy theme 117 **Release date: December 12, 2025** 111 118 112 119 = 2.1 = -
video-wc-gallery/trunk/video-wc-gallery.php
r3415839 r3418407 7 7 * Author URI: https://nitramix.com/ 8 8 * Requires Plugins: woocommerce 9 * Version: 2. 19 * Version: 2.2 10 10 * Text Domain: video-wc-gallery 11 11 * Domain Path: /languages … … 20 20 * Define constants 21 21 * 22 * @since 2. 122 * @since 2.2 23 23 */ 24 if ( ! defined( 'VWG_VERSION_NUM' ) ) define( 'VWG_VERSION_NUM' , '2. 1' ); // Plugin version constant24 if ( ! defined( 'VWG_VERSION_NUM' ) ) define( 'VWG_VERSION_NUM' , '2.2' ); // Plugin version constant 25 25 if ( ! defined( 'VWG_VIDEO_WOO_GALLERY' ) ) define( 'VWG_VIDEO_WOO_GALLERY' , trim( dirname( plugin_basename( __FILE__ ) ), '/' ) ); // Name of the plugin folder eg - 'video-wc-gallery' 26 26 if ( ! defined( 'VWG_VIDEO_WOO_GALLERY_DIR' ) ) define( 'VWG_VIDEO_WOO_GALLERY_DIR' , plugin_dir_path( __FILE__ ) ); // Plugin directory absolute path with the trailing slash. Useful for using with includes eg - /var/www/html/wp-content/plugins/video-wc-gallery/
Note: See TracChangeset
for help on using the changeset viewer.