Changeset 3245229
- Timestamp:
- 02/23/2025 03:44:15 PM (13 months ago)
- Location:
- product-variant-table-for-woocommerce
- Files:
-
- 52 added
- 11 edited
-
assets/banner-1544x500.jpg (modified) (previous)
-
assets/banner-772x250.jpg (modified) (previous)
-
tags/1.7.0 (added)
-
tags/1.7.0/admin (added)
-
tags/1.7.0/admin/css (added)
-
tags/1.7.0/admin/css/pvtfw_backend.css (added)
-
tags/1.7.0/admin/js (added)
-
tags/1.7.0/admin/js/pvtfw_backend.js (added)
-
tags/1.7.0/inc (added)
-
tags/1.7.0/inc/admin (added)
-
tags/1.7.0/inc/admin/class_pvtfw_advance.php (added)
-
tags/1.7.0/inc/admin/class_pvtfw_form.php (added)
-
tags/1.7.0/inc/admin/class_pvtfw_settings.php (added)
-
tags/1.7.0/inc/admin/class_pvtfw_styling.php (added)
-
tags/1.7.0/inc/class_pvtfw_common.php (added)
-
tags/1.7.0/inc/compatibility.php (added)
-
tags/1.7.0/inc/frontend (added)
-
tags/1.7.0/inc/frontend/class_pvtfw_allocation.php (added)
-
tags/1.7.0/inc/frontend/class_pvtfw_available_btn.php (added)
-
tags/1.7.0/inc/frontend/class_pvtfw_cart.php (added)
-
tags/1.7.0/inc/frontend/class_pvtfw_print_table.php (added)
-
tags/1.7.0/inc/style.php (added)
-
tags/1.7.0/inc/table-parts (added)
-
tags/1.7.0/inc/table-parts/content-tbody.php (added)
-
tags/1.7.0/inc/table-parts/content-thead.php (added)
-
tags/1.7.0/inc/wpxtension (added)
-
tags/1.7.0/inc/wpxtension/wpx-menu.php (added)
-
tags/1.7.0/inc/wpxtension/wpx-setting-fields.php (added)
-
tags/1.7.0/inc/wpxtension/wpx-sidebar.php (added)
-
tags/1.7.0/inc/wpxtension/wpxtension-admin-rtl.css (added)
-
tags/1.7.0/inc/wpxtension/wpxtension-admin.css (added)
-
tags/1.7.0/inc/wpxtension/wpxtension-admin.min-rtl.css (added)
-
tags/1.7.0/inc/wpxtension/wpxtension-admin.min.css (added)
-
tags/1.7.0/languages (added)
-
tags/1.7.0/languages/product-variant-table-for-woocommerce.pot (added)
-
tags/1.7.0/product-variant-table-for-woocommerce.php (added)
-
tags/1.7.0/public (added)
-
tags/1.7.0/public/css (added)
-
tags/1.7.0/public/css/pvtfw_frontend.css (added)
-
tags/1.7.0/public/css/pvtfw_table_breakdown.css (added)
-
tags/1.7.0/public/font (added)
-
tags/1.7.0/public/font/font (added)
-
tags/1.7.0/public/font/font/fontello.eot (added)
-
tags/1.7.0/public/font/font/fontello.svg (added)
-
tags/1.7.0/public/font/font/fontello.ttf (added)
-
tags/1.7.0/public/font/font/fontello.woff (added)
-
tags/1.7.0/public/font/font/fontello.woff2 (added)
-
tags/1.7.0/public/font/fontello.css (added)
-
tags/1.7.0/public/js (added)
-
tags/1.7.0/public/js/pvtfw_frontend.js (added)
-
tags/1.7.0/public/js/pvtfw_subtotal_calc.js (added)
-
tags/1.7.0/readme.txt (added)
-
tags/1.7.0/uninstall.php (added)
-
trunk/admin/js/pvtfw_backend.js (modified) (2 diffs)
-
trunk/inc/admin/class_pvtfw_advance.php (modified) (1 diff)
-
trunk/inc/admin/class_pvtfw_styling.php (added)
-
trunk/inc/compatibility.php (modified) (3 diffs)
-
trunk/inc/table-parts/content-tbody.php (modified) (1 diff)
-
trunk/languages/product-variant-table-for-woocommerce.pot (modified) (9 diffs)
-
trunk/product-variant-table-for-woocommerce.php (modified) (5 diffs)
-
trunk/public/css/pvtfw_frontend.css (modified) (3 diffs)
-
trunk/public/css/pvtfw_table_breakdown.css (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
product-variant-table-for-woocommerce/trunk/admin/js/pvtfw_backend.js
r3238050 r3245229 23 23 $('div.form-section#'+target).show(); 24 24 25 // Adding the target as a class for the submit <p> tag 26 $('p.submit').attr('data-taget', target); 27 25 28 26 29 $('div.form-section input[name=pvtfw_variant_table_tab]').val(target); 30 31 // Checking if the nav a has a class "lock" 32 if( $(this).hasClass('lock') ){ 33 // If has a lock class, hide the submit <p> block using the target 34 $('p.submit[data-taget="'+target+'"]').hide(); 35 } 36 else{ 37 $('p.submit[data-taget ="'+target+'"]').show(); 38 } 27 39 28 40 }); … … 118 130 } 119 131 132 // Color Picker 133 $('.color-field').wpColorPicker(); 134 120 135 121 136 })(jQuery); -
product-variant-table-for-woocommerce/trunk/inc/admin/class_pvtfw_advance.php
r3238050 r3245229 288 288 function new_setting_tab($tab, $curTab){ 289 289 290 $tab .= "<a href='#advanced' data-target='advanced' class='nav-tab ".($curTab==='advanced' ? 'nav-tab-active' : null)."'>".PVTFW_COMMON::badge('Pro', 'return').__('Advanced', 'product-variant-table-for-woocommerce')."</a>"; 290 $lock_class = !PVTFW_TABLE::is_pvtfw_pro_Active() ? esc_attr( 'lock' ) : ''; 291 292 $tab .= "<a href='#advanced' data-target='advanced' class='nav-tab ".($curTab==='advanced' ? 'nav-tab-active ' : null).$lock_class."'>".PVTFW_COMMON::badge('Pro', 'return').__('Advanced', 'product-variant-table-for-woocommerce')."</a>"; 291 293 292 294 return $tab; -
product-variant-table-for-woocommerce/trunk/inc/compatibility.php
r3242771 r3245229 395 395 * @since 1.5.5 396 396 * @updated 1.6.4.1 397 * @updated 1.7.0 397 398 * ============================================================================= 398 399 */ … … 401 402 function pvt_cart_button_condition( $args, $stock_info ){ 402 403 403 $single_variation = wc_get_product( $args['variant_id'] ); 404 405 if( $args['stock_status'] === 'instock' || $args['stock_status'] === 'onbackorder' ){ 406 echo wp_kses_post( 407 sprintf('<button data-product-id="%s" data-url="%s" data-product="%s" data-variant="%s" class="%s"> 404 if( $args['stock_status'] === 'instock' || $args['stock_status'] === 'onbackorder' ){ 405 echo wp_kses_post( 406 sprintf('<button data-product-id="%s" data-url="%s" data-product="%s" data-variant="%s" class="%s"> 407 <span class="pvtfw-btn-text">%s</span> 408 <div class="spinner-wrap"><span class="pvt-icon-spinner"></span></div> 409 </button>%s', 410 $args['product_id'], 411 $args['cart_url'], 412 $args['product_url'], 413 $args['variant_id'], 414 /** 415 * 416 * Hook: pvtfw_add_to_cart_btn_classes 417 * Hook: pvtfw_cart_btn_text 418 * 419 * @since version 1.4.16 420 * 421 **/ 422 apply_filters( 'pvtfw_add_to_cart_btn_classes', 423 wp_is_block_theme() ? 'wp-block-button__link wp-element-button wc-block-components-product-button__button pvtfw_variant_table_cart_btn' : 'pvtfw_variant_table_cart_btn button alt' 424 ), 425 apply_filters( 'pvtfw_cart_btn_text', 426 427 /* 428 * @note: If it is coming from plugin settings it will not translate. Because, dynamic text 429 * is not translatable. 430 * 431 * @recommendation: Contact through our support forum 432 * 433 * @link: https://localise.biz/wordpress/plugin/intro#content 434 */ 435 $args['text'] 436 437 ), 438 $args['stock_status'] === 'onbackorder' ? 439 apply_filters('pvtfw_cart_btn_after_backorder_text', 440 $args['availability_html'] 441 ) : '' 442 ) 443 ); 444 } 445 if( $args['stock_status'] === 'outofstock' ){ 446 echo wp_kses_post( 447 sprintf('<button class="%s" disabled> 408 448 <span class="pvtfw-btn-text">%s</span> 409 449 <div class="spinner-wrap"><span class="pvt-icon-spinner"></span></div> 410 </button>%s', 411 $args['product_id'], 412 $args['cart_url'], 413 $args['product_url'], 414 $args['variant_id'], 450 </button>', 415 451 /** 416 452 * 417 453 * Hook: pvtfw_add_to_cart_btn_classes 418 * Hook: pvtfw_ cart_btn_text454 * Hook: pvtfw_stock_btn_text 419 455 * 420 456 * @since version 1.4.16 457 * 458 * @version 1.4.18 { hook renamed to `pvtfw_stock_btn_text` from `pvtfw_cart_btn_text` } 421 459 * 422 460 **/ … … 424 462 wp_is_block_theme() ? 'wp-block-button__link wp-element-button wc-block-components-product-button__button pvtfw_variant_table_cart_btn' : 'pvtfw_variant_table_cart_btn button alt' 425 463 ), 426 apply_filters( 'pvtfw_cart_btn_text', 427 428 /* 429 * @note: If it is coming from plugin settings it will not translate. Because, dynamic text 430 * is not translatable. 431 * 432 * @recommendation: Contact through our support forum 433 * 434 * @link: https://localise.biz/wordpress/plugin/intro#content 435 */ 436 $args['text'] 437 438 ), 439 $args['stock_status'] === 'onbackorder' ? 440 apply_filters('pvtfw_cart_btn_after_backorder_text', 441 wc_get_stock_html( $single_variation ) 442 ) : '' 443 ) 444 ); 445 } 446 if( $args['stock_status'] === 'outofstock' ){ 447 echo wp_kses_post( 448 sprintf('<button class="%s" disabled> 449 <span class="pvtfw-btn-text">%s</span> 450 <div class="spinner-wrap"><span class="pvt-icon-spinner"></span></div> 451 </button>', 452 /** 453 * 454 * Hook: pvtfw_add_to_cart_btn_classes 455 * Hook: pvtfw_stock_btn_text 456 * 457 * @since version 1.4.16 458 * 459 * @version 1.4.18 { hook renamed to `pvtfw_stock_btn_text` from `pvtfw_cart_btn_text` } 460 * 461 **/ 462 apply_filters( 'pvtfw_add_to_cart_btn_classes', 463 wp_is_block_theme() ? 'wp-block-button__link wp-element-button wc-block-components-product-button__button pvtfw_variant_table_cart_btn' : 'pvtfw_variant_table_cart_btn button alt' 464 ), 465 apply_filters( 'pvtfw_stock_btn_text', $stock_info ) 466 ) 467 ); 468 } 469 470 471 } 472 } 473 474 475 464 apply_filters( 'pvtfw_stock_btn_text', $stock_info ) 465 ) 466 ); 467 } 468 469 470 } 471 } 472 473 474 -
product-variant-table-for-woocommerce/trunk/inc/table-parts/content-tbody.php
r3218412 r3245229 124 124 **/ 125 125 $options['action'][] = array( 126 'product_id' => $product_id, 127 'cart_url' => $cart_url, 128 'product_url' => $product_url, 129 'variant_id' => $variant_id, 130 'stock_status' => $single_variation->get_stock_status(), 131 'text' => $text 126 'product_id' => $product_id, 127 'cart_url' => $cart_url, 128 'product_url' => $product_url, 129 'variant_id' => $variant_id, 130 'stock_status' => $single_variation->get_stock_status(), 131 'text' => $text, 132 'availability_html' => wc_get_stock_html( $single_variation ), 132 133 ); 133 134 endif; -
product-variant-table-for-woocommerce/trunk/languages/product-variant-table-for-woocommerce.pot
r3242771 r3245229 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: PVT - Product Variation Table for WooCommerce 1. 6.4.1\n"5 "Project-Id-Version: PVT - Product Variation Table for WooCommerce 1.7.0\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/product-variant-table-for-woocommerce\n" 7 "Last-Translator: WPXtension <wpxtension@gmail.com>\n"8 "Language-Team: LANGUAGE <LL@li.org>\n"7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 8 "Language-Team: WPXtension <wpxtension@gmail.com>\n" 9 9 "MIME-Version: 1.0\n" 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2025-02- 18T16:38:30+00:00\n"12 "POT-Creation-Date: 2025-02-23T08:26:03+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.10.0\n" … … 16 16 17 17 #. Plugin Name of the plugin 18 #: C:\Users\USER\Local Sites\pvt\app\public\wp-content\plugins\product-variant-table-for-woocommerce\product-variant-table-for-woocommerce.php18 #: product-variant-table-for-woocommerce.php 19 19 msgid "PVT - Product Variation Table for WooCommerce" 20 20 msgstr "" 21 21 22 22 #. Plugin URI of the plugin 23 #: C:\Users\USER\Local Sites\pvt\app\public\wp-content\plugins\product-variant-table-for-woocommerce\product-variant-table-for-woocommerce.php23 #: product-variant-table-for-woocommerce.php 24 24 msgid "https://wpxtension.com/product/product-variation-table-for-woocommerce/" 25 25 msgstr "" 26 26 27 27 #. Description of the plugin 28 #: C:\Users\USER\Local Sites\pvt\app\public\wp-content\plugins\product-variant-table-for-woocommerce\product-variant-table-for-woocommerce.php28 #: product-variant-table-for-woocommerce.php 29 29 msgid "Display WooCommerce product variations in a nicely formatted and customizable table on the single product page." 30 30 msgstr "" 31 31 32 32 #. Author of the plugin 33 #: C:\Users\USER\Local Sites\pvt\app\public\wp-content\plugins\product-variant-table-for-woocommerce\product-variant-table-for-woocommerce.php33 #: product-variant-table-for-woocommerce.php 34 34 msgid "WPXtension" 35 35 msgstr "" 36 36 37 37 #. Author URI of the plugin 38 #: C:\Users\USER\Local Sites\pvt\app\public\wp-content\plugins\product-variant-table-for-woocommerce\product-variant-table-for-woocommerce.php38 #: product-variant-table-for-woocommerce.php 39 39 msgid "https://wpxtension.com/" 40 40 msgstr "" … … 43 43 #: inc/admin/class_pvtfw_advance.php:132 44 44 #: inc/admin/class_pvtfw_advance.php:242 45 #: inc/admin/class_pvtfw_styling.php:37 46 #: inc/admin/class_pvtfw_styling.php:70 47 #: inc/admin/class_pvtfw_styling.php:115 48 #: inc/admin/class_pvtfw_styling.php:160 45 49 msgid "Unlock all features >>>" 46 50 msgstr "" … … 54 58 msgstr "" 55 59 56 #: inc/admin/class_pvtfw_advance.php:29 060 #: inc/admin/class_pvtfw_advance.php:292 57 61 msgid "Advanced" 58 62 msgstr "" … … 199 203 200 204 #: inc/admin/class_pvtfw_settings.php:81 201 #: product-variant-table-for-woocommerce.php: 387205 #: product-variant-table-for-woocommerce.php:416 202 206 msgid "Settings" 203 207 msgstr "" … … 215 219 msgstr "" 216 220 221 #: inc/admin/class_pvtfw_styling.php:205 222 msgid "Styling" 223 msgstr "" 224 217 225 #: inc/class_pvtfw_common.php:36 218 #: inc/table-parts/content-tbody.php:16 5226 #: inc/table-parts/content-tbody.php:166 219 227 msgid "Thumbnail" 220 228 msgstr "" 221 229 222 230 #: inc/class_pvtfw_common.php:37 223 #: inc/table-parts/content-tbody.php:17 3231 #: inc/table-parts/content-tbody.php:174 224 232 msgid "SKU" 225 233 msgstr "" 226 234 227 235 #: inc/class_pvtfw_common.php:38 228 #: inc/table-parts/content-tbody.php:1 89236 #: inc/table-parts/content-tbody.php:190 229 237 msgid "Description" 230 238 msgstr "" 231 239 232 240 #: inc/class_pvtfw_common.php:39 233 #: inc/table-parts/content-tbody.php:19 7234 #: inc/table-parts/content-tbody.php:29 7241 #: inc/table-parts/content-tbody.php:198 242 #: inc/table-parts/content-tbody.php:298 235 243 #: inc/table-parts/content-thead.php:93 236 244 msgid "Attributes" … … 238 246 239 247 #: inc/class_pvtfw_common.php:40 240 #: inc/table-parts/content-tbody.php:20 5248 #: inc/table-parts/content-tbody.php:206 241 249 msgid "Dimensions" 242 250 msgstr "" 243 251 244 252 #: inc/class_pvtfw_common.php:41 245 #: inc/table-parts/content-tbody.php:21 3253 #: inc/table-parts/content-tbody.php:214 246 254 msgid "Weight" 247 255 msgstr "" 248 256 249 257 #: inc/class_pvtfw_common.php:42 250 #: inc/table-parts/content-tbody.php:22 1258 #: inc/table-parts/content-tbody.php:222 251 259 msgid "Stock" 252 260 msgstr "" 253 261 254 262 #: inc/class_pvtfw_common.php:43 255 #: inc/table-parts/content-tbody.php:18 1263 #: inc/table-parts/content-tbody.php:182 256 264 msgid "Price" 257 265 msgstr "" … … 261 269 #: inc/compatibility.php:203 262 270 #: inc/compatibility.php:271 263 #: inc/table-parts/content-tbody.php:2 29264 #: inc/table-parts/content-tbody.php:32 5271 #: inc/table-parts/content-tbody.php:230 272 #: inc/table-parts/content-tbody.php:326 265 273 msgid "Quantity" 266 274 msgstr "" 267 275 268 276 #: inc/class_pvtfw_common.php:45 269 #: inc/table-parts/content-tbody.php:23 7270 #: inc/table-parts/content-tbody.php:36 2277 #: inc/table-parts/content-tbody.php:238 278 #: inc/table-parts/content-tbody.php:363 271 279 #: inc/table-parts/content-thead.php:90 272 280 msgid "Action" … … 331 339 msgstr "" 332 340 333 #: product-variant-table-for-woocommerce.php: 393341 #: product-variant-table-for-woocommerce.php:422 334 342 msgid "Go Premium" 335 343 msgstr "" 336 344 337 #: product-variant-table-for-woocommerce.php:4 12345 #: product-variant-table-for-woocommerce.php:441 338 346 msgid "Help & Support" 339 347 msgstr "" 340 348 341 #: product-variant-table-for-woocommerce.php:4 13349 #: product-variant-table-for-woocommerce.php:442 342 350 msgid "Documentation" 343 351 msgstr "" 344 352 345 353 #. translators: %1$s: Main wrapper start, %2$s: Main wrapper end, %3$s: Bold wrapper start, %4$s: Bold wrapper end, %5$s: Pro Plugin Version 346 #: product-variant-table-for-woocommerce.php:4 67354 #: product-variant-table-for-woocommerce.php:496 347 355 msgid "%1$sYou are running an older version of %3$s\"PVT - Product Variation Table for WooCommerce - Pro\"%4$s. Please upgrade to %3$s %5$s %4$s or higher.%2$s" 348 356 msgstr "" 349 357 350 358 #. translators: %s: Pro Plugin Version 351 #: product-variant-table-for-woocommerce.php: 483359 #: product-variant-table-for-woocommerce.php:512 352 360 msgid "You are running an older version of \"PVT - Product Variation Table for WooCommerce - Pro\". Please upgrade to %s or higher." 353 361 msgstr "" -
product-variant-table-for-woocommerce/trunk/product-variant-table-for-woocommerce.php
r3242771 r3245229 8 8 Text Domain: product-variant-table-for-woocommerce 9 9 Domain Path: /languages 10 Version: 1. 6.4.110 Version: 1.7.0 11 11 Requires at least: 4.7.0 12 12 Requires PHP: 5.6.20 … … 33 33 */ 34 34 35 define("PVTFW_VARIANT_TABLE_VERSION", '1. 6.4.1');36 define("PVTFW_REQUIRED_PRO_VERSION", '1. 6.0');35 define("PVTFW_VARIANT_TABLE_VERSION", '1.7.0'); 36 define("PVTFW_REQUIRED_PRO_VERSION", '1.7.0'); 37 37 define("PVTFW_DIR", plugin_dir_path(__FILE__) ); 38 38 define("PVTFW_FILE", plugin_basename(__FILE__)); … … 130 130 require_once PVTFW_DIR.'inc/admin/class_pvtfw_settings.php'; 131 131 require_once PVTFW_DIR.'inc/admin/class_pvtfw_advance.php'; 132 require_once PVTFW_DIR.'inc/admin/class_pvtfw_styling.php'; 132 133 133 134 require_once PVTFW_DIR.'inc/frontend/class_pvtfw_print_table.php'; … … 253 254 */ 254 255 public function register_settings(){ 255 register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_place' ); 256 register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_columns'); 257 register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_show_available_options_btn'); 258 register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_available_options_btn_text'); 259 register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_show_available_options_text'); 260 register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_cart_btn_text'); 261 register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_show_table_header'); 262 register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_qty_layout'); 263 register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_sub_total'); 264 register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_scroll_to_top'); 265 register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_cart_notice'); 266 register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_full_table'); 267 register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_scrollable_x'); 268 register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_min_width'); 269 register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_tab'); 270 } 256 register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_place', 'sanitize_text_field' ); 257 register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_columns', array( $this, 'sanitize_array' ) ); // phpcs:disable PluginCheck.CodeAnalysis.SettingSanitization.register_settingDynamic 258 //--> Sanitized the option inside the `sanitize_array` method 259 register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_show_available_options_btn', 'sanitize_text_field'); 260 register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_available_options_btn_text', 'sanitize_text_field'); 261 register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_show_available_options_text', 'sanitize_text_field'); 262 register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_cart_btn_text', 'sanitize_text_field'); 263 register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_show_table_header', 'sanitize_text_field'); 264 register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_qty_layout', 'sanitize_text_field'); 265 register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_sub_total', 'sanitize_text_field'); 266 register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_scroll_to_top', 'sanitize_text_field'); 267 register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_cart_notice', 'sanitize_text_field'); 268 register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_full_table', 'sanitize_text_field'); 269 register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_scrollable_x', 'sanitize_text_field'); 270 register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_min_width', 'sanitize_text_field'); 271 register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_tab', 'sanitize_text_field'); 272 } 273 274 /** 275 *==================================================== 276 * Sanitize the array 277 * 278 * @param array $options The address input. 279 * 280 * @return array $santized_options The sanitized input. 281 *==================================================== 282 */ 283 public function sanitize_array( $options ) : array{ 284 285 // Initialize the new array that will hold the sanitize values 286 $santized_options = array(); 287 288 // Loop through the options and sanitize each of the values 289 foreach ( $options as $key => $value ) { 290 $santized_options[ $key ] = ( isset( $options[ $key ] ) ) ? 291 sanitize_text_field( $value ) : 292 ''; 293 } 294 295 return $santized_options; 296 } 271 297 272 298 … … 298 324 $scrollableTableX = PVTFW_COMMON::pvtfw_get_options()->scrollableTableX; 299 325 326 wp_enqueue_style('wp-color-picker'); 327 300 328 wp_enqueue_script('jquery-ui-sortable'); 301 wp_enqueue_script('pvtfw-admin-scripts', plugins_url('admin/js/pvtfw_backend.js', __FILE__), array('jquery'), PVTFW_VARIANT_TABLE_VERSION, true); 329 330 wp_enqueue_script('pvtfw-admin-scripts', plugins_url('admin/js/pvtfw_backend.js', __FILE__), array('jquery', 'wp-color-picker'), PVTFW_VARIANT_TABLE_VERSION, true); 302 331 wp_localize_script( 'pvtfw-admin-scripts', 'table_object', 303 332 array( -
product-variant-table-for-woocommerce/trunk/public/css/pvtfw_frontend.css
r3005788 r3245229 19 19 } 20 20 21 22 .pvtfw_variant_table_block table.variant th { 21 .pvtfw_variant_table_block table.variant{ 22 table-layout: fixed; 23 } 24 25 .pvtfw_variant_table_block table.variant, 26 .pvtfw_variant_table_block table.variant thead th, 27 .pvtfw_variant_table_block table.variant tbody td, 28 .pvtfw_variant_table_block table.variant tfoot td { 29 border: var( --pvtfw-table-border-color, #eee ) solid var( --pvtfw-table-border-width, 1px ); 30 border-collapse: collapse; 31 } 32 33 34 .pvtfw_variant_table_block table.variant thead th { 23 35 cursor: pointer; 24 36 white-space: nowrap; 25 37 display: table-cell; 26 border: #eee solid 1px; 27 padding: 10px; 38 padding: var( --pvtfw-table-header-padding, 10px ); 28 39 vertical-align: middle; 29 40 font-weight: normal; 41 text-align: var( --pvtfw-table-header-alignment, left ); 42 } 43 44 .pvtfw_variant_table_block table.variant:not( .has-background ) thead th{ 45 background-color: var( --pvtfw-table-header-bg-color, #f8f8f8 ); 46 color: var( --pvtfw-table-header-text-color, #6d6d6d ); 30 47 } 31 48 … … 100 117 } 101 118 102 .pvtfw_variant_table_block table.variant t d {119 .pvtfw_variant_table_block table.variant tbody td { 103 120 display: table-cell; 104 border: #eee solid 1px; 105 padding: 10px; 121 padding: var( --pvtfw-table-body-padding, 10px ); 106 122 vertical-align: middle; 123 text-align: var( --pvtfw-table-body-alignment, left ); 124 background-color: transparent !important; 125 color: var( --pvtfw-table-body-text-color, #6d6d6d ); 126 } 127 128 .pvtfw_variant_table_block table.variant tbody tr:nth-child(even) { 129 background-color: var( --pvtfw-table-body-bg-color-even, #ffffff ); 107 130 } 108 131 109 132 .pvtfw_variant_table_block table.variant tbody tr:nth-child(odd) { 110 background-color: #f8f8f8;111 } 112 113 .pvtfw_variant_table_block table.variant th .dsc .arrow {133 background-color: var( --pvtfw-table-body-bg-color-odd, #fbfbfb ); 134 } 135 136 .pvtfw_variant_table_block table.variant thead th.dsc .arrow { 114 137 border-left: 4px solid transparent; 115 138 border-right: 4px solid transparent; 116 border-bottom: 4px solid #666666;117 } 118 119 .pvtfw_variant_table_block table.variant th .asc .arrow {139 border-bottom: 4px solid var( --pvtfw-table-header-arrow-color, #666666 ); 140 } 141 142 .pvtfw_variant_table_block table.variant thead th.asc .arrow { 120 143 border-left: 4px solid transparent; 121 144 border-right: 4px solid transparent; 122 border-top: 4px solid #666666;145 border-top: 4px solid var( --pvtfw-table-header-arrow-color, #666666 ); 123 146 } 124 147 … … 161 184 .pvtfw_variant_table_block table.variant td .added_to_cart { 162 185 display: none; 163 }164 165 /* Pagination Style */166 .pvtfw_variant_table_block table.variant a.btn.active {167 background-color: var(--wp--preset--color--cyan-bluish-gray);168 color: var(--wp--preset--color--white);169 display: inline-block;170 width: 25px;171 text-align: center;172 186 } 173 187 -
product-variant-table-for-woocommerce/trunk/public/css/pvtfw_table_breakdown.css
r2886289 r3245229 2 2 3 3 @media screen and (max-width: 767px) { 4 .pvtfw_variant_table_block table.variant t d:before {4 .pvtfw_variant_table_block table.variant tbody td:before { 5 5 content: attr(data-title); 6 6 text-transform: uppercase; … … 16 16 display: table-cell; 17 17 } 18 .pvtfw_variant_table_block table.variant t d {18 .pvtfw_variant_table_block table.variant tbody td { 19 19 max-width: none; 20 20 display: table; -
product-variant-table-for-woocommerce/trunk/readme.txt
r3242771 r3245229 5 5 Tested up to: 6.7 6 6 Requires PHP: 5.6.20 7 Stable tag: 1. 6.4.17 Stable tag: 1.7.0 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 74 74 🎨 Support for the Min/Max Step control plugin empowers you to apply those rules inside the variation table too. 75 75 🎨 Have a long list of variations! Apply vertical scrolling for a better user experience. 76 🎨 Display Ajax Variation Table Popup using `Display Rule` 77 🎨 Customize the Variation Table design (Header, Table Body, and Footer) as you want. 76 78 77 79 … … 177 179 == Changelog == 178 180 179 = 1.6.4.1 [18-02-2025] Tuesday = 180 * Update: Availability condition. 181 181 = 1.7.0 [22-02-2025] Sunday = 182 * Update: Settings framework. 183 * Update:`$options` array. 184 * Update: Availability text condition and optimize the code at compatiblilty.php. 185 * Update: Scripts and added necessary trigger. 186 * Check: WPCS. 182 187 183 188 [See changelog for all versions.](https://github.com/WPXtension/product-variation-table-for-woocommerce/blob/main/changelog-free.md)
Note: See TracChangeset
for help on using the changeset viewer.