Changeset 3352830
- Timestamp:
- 08/29/2025 05:46:01 PM (6 months ago)
- Location:
- stylish-price-list
- Files:
-
- 18 edited
- 1 copied
-
tags/7.2.1 (copied) (copied from stylish-price-list/trunk)
-
tags/7.2.1/admin/class-spl-license-page.php (modified) (1 diff)
-
tags/7.2.1/admin/tabs/views/tabs-form/logo-footer.php (modified) (1 diff)
-
tags/7.2.1/admin/tabs/views/tabs-form/logo-header.php (modified) (1 diff)
-
tags/7.2.1/admin/tabs/views/tabs-form/pricelist-form.php (modified) (2 diffs)
-
tags/7.2.1/assets/js/pricelist-admin.js (modified) (3 diffs)
-
tags/7.2.1/changelog.txt (modified) (1 diff)
-
tags/7.2.1/readme.txt (modified) (1 diff)
-
tags/7.2.1/shortcode/pricelist-frontend.php (modified) (3 diffs)
-
tags/7.2.1/stylish-price-list.php (modified) (2 diffs)
-
trunk/admin/class-spl-license-page.php (modified) (1 diff)
-
trunk/admin/tabs/views/tabs-form/logo-footer.php (modified) (1 diff)
-
trunk/admin/tabs/views/tabs-form/logo-header.php (modified) (1 diff)
-
trunk/admin/tabs/views/tabs-form/pricelist-form.php (modified) (2 diffs)
-
trunk/assets/js/pricelist-admin.js (modified) (3 diffs)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/shortcode/pricelist-frontend.php (modified) (3 diffs)
-
trunk/stylish-price-list.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
stylish-price-list/tags/7.2.1/admin/class-spl-license-page.php
r3307244 r3352830 270 270 <div class="text-center"> 271 271 <?php 272 $action = empty( $opt ) || $opt['license'] !== 'valid'? 'active' : 'deactivate';272 $action = empty( $opt ) || ( isset( $opt['license'] ) && $opt['license'] !== 'valid' ) ? 'active' : 'deactivate'; 273 273 ?> 274 274 <div class="scc-license-intro-hero w-50 mx-auto"> -
stylish-price-list/tags/7.2.1/admin/tabs/views/tabs-form/logo-footer.php
r3257166 r3352830 8 8 <?php 9 9 $opt = get_option( 'spllk_opt' ); 10 if ( empty( $opt ) || $opt['license'] !== 'valid') {10 if ( empty( $opt ) || ( isset( $opt['license'] ) && $opt['license'] !== 'valid' ) ) { 11 11 echo '<p class="free_version">You are using the <span class="highlighted">free (demo)</span> version of the plugin. Click <span class="highlighted"><a href="https://stylishpricelist.com?utm_source=inside-plugin&utm_medium=buy-premium-cta-banner">here</a></span> to buy the pro version.</p>'; 12 12 } -
stylish-price-list/tags/7.2.1/admin/tabs/views/tabs-form/logo-header.php
r3307244 r3352830 16 16 <?php 17 17 $opt = get_option( 'spllk_opt' ); 18 if ( empty( $opt ) ) {18 if ( empty( $opt ) || ( isset( $opt['license'] ) && $opt['license'] !== 'valid' ) ) { 19 19 ?> 20 20 <span class="spl_plug_ver">Demo</span> 21 21 <?php 22 22 } 23 if ( ! empty( $opt ) ) {23 if ( ! empty( $opt ) && ( isset( $opt['license'] ) && $opt['license'] === 'valid' ) ) { 24 24 ?> 25 25 <span class="spl_plug_ver">Premium</span> -
stylish-price-list/tags/7.2.1/admin/tabs/views/tabs-form/pricelist-form.php
r3318295 r3352830 999 999 <?php 1000 1000 $opt = get_option( 'spllk_opt' ); 1001 if ( empty( $opt ) ) {1001 if ( empty( $opt ) || ( isset( $opt['license'] ) && $opt['license'] !== 'valid' ) ) { 1002 1002 ?> 1003 1003 <span class="spl_plug_ver">Demo</span> 1004 1004 <?php 1005 1005 } 1006 if ( ! empty( $opt ) ) {1006 if ( ! empty( $opt ) && ( isset( $opt['license'] ) && $opt['license'] === 'valid' ) ) { 1007 1007 ?> 1008 1008 <span class="spl_plug_ver">Premium</span> … … 2197 2197 <?php 2198 2198 $opt = get_option( 'spllk_opt' ); 2199 if ( empty( $opt ) || $opt['license'] !== 'valid') {2199 if ( empty( $opt ) ) { 2200 2200 echo '<div class="free_version alert alert2 bg-warning"> 2201 2201 <p>You are using the <span class="highlighted">free (demo)</span> version of the plugin. Click <span class="highlighted"><a href="https://stylishpricelist.com?utm_source=inside-plugin&utm_medium=buy-premium-cta-banner">here</a></span> to buy the premium version.</p> 2202 <p class="text-danger d-none" id="edit-page-alert">Your License key has been expired. Some features might not work properly. Please renew. <a href="'. esc_attr( admin_url('admin.php?page=stylish_price_list_license') ) . '">Go to license manager</a></p> 2202 </div>'; 2203 } 2204 if ( ( isset( $opt['license'] ) && $opt['license'] !== 'valid' ) ) { 2205 echo '<div class="free_version alert alert2 bg-warning"> 2206 <p class="text-danger" id="edit-page-alert">Your License key has been expired. Some features might not work properly. Please renew. <a href="'. esc_attr( admin_url('admin.php?page=stylish_price_list_license') ) . '">Go to license manager</a></p> 2203 2207 </div>'; 2204 2208 } -
stylish-price-list/tags/7.2.1/assets/js/pricelist-admin.js
r3318295 r3352830 441 441 // initiate tooltip 442 442 443 window.onload = function($) { 443 // Function to initialize the plugin once dependencies are available 444 function initializeStylishPriceListBackend(maxAttempts = 50) { // Max 5 seconds (50 * 100ms) 445 // Prevent multiple initializations 446 if (window.splInitialized) { 447 return; 448 } 449 450 // Check if required dependencies are available 451 if (typeof window.splSettings === 'undefined' || !window.splSettings || 452 typeof window.itemFieldTooltipImages === 'undefined' || !window.itemFieldTooltipImages) { 453 // If we've tried too many times, give up 454 if (maxAttempts <= 0) { 455 console.warn('Stylish Price List: Dependencies not available after maximum attempts'); 456 return; 457 } 458 // Wait a bit and try again 459 setTimeout(() => initializeStylishPriceListBackend(maxAttempts - 1), 100); 460 return; 461 } 462 463 // All dependencies are available, proceed with initialization 444 464 jQuery('[title]').tooltip(); 445 465 jQuery( '[data-tooltip-image-key]' ).tooltip({ … … 450 470 content: function() { 451 471 const {tooltipImageKey} = this.querySelector('[data-tooltip-image-key]').dataset; 452 const imageLink = itemFieldTooltipImages[tooltipImageKey]; 453 return `<img src=${imageLink} style="height: 430px;">`; 454 } 455 }); 456 if ( splSettings.maxList === 1 ) { 472 // Safety check for itemFieldTooltipImages 473 if ( typeof window.itemFieldTooltipImages !== 'undefined' && window.itemFieldTooltipImages ) { 474 const imageLink = window.itemFieldTooltipImages[tooltipImageKey]; 475 return `<img src=${imageLink} style="height: 430px;">`; 476 } 477 return ''; 478 } 479 }); 480 481 // Safety check for splSettings before using it 482 if ( typeof window.splSettings !== 'undefined' && window.splSettings && window.splSettings.maxList === 1 ) { 457 483 jQuery( '.service-advance-settings .upload-btn' ).text( 'This feature is available in the PRO version.' ); 458 484 jQuery( '.service-advance-settings input.service_button' ).attr( 'disabled', true ); … … 616 642 } 617 643 644 // Mark as initialized to prevent multiple runs 645 window.splInitialized = true; 646 618 647 619 648 }; 649 650 // Start the initialization process 651 initializeStylishPriceListBackend(); 652 653 // Also try to initialize when DOM is ready as a backup 654 jQuery(document).ready(function() { 655 // If not already initialized, try again 656 if (!window.splInitialized && typeof window.splSettings !== 'undefined' && window.splSettings) { 657 initializeStylishPriceListBackend(); 658 } 659 }); 620 660 621 661 jQuery(document).on('click', '.delete-icon', function() { -
stylish-price-list/tags/7.2.1/changelog.txt
r3327519 r3352830 1 = 7.2.1 - 2025-08-29 2 * Fixed style one button hover color settings not being applied 3 * Fixed click to upload button failing after using the save button in the price list editor 4 1 5 = 7.2.0 - 2025-07-14 2 6 * fix style 4 category text and item titles text white background -
stylish-price-list/tags/7.2.1/readme.txt
r3327519 r3352830 4 4 Tags: qr code menu, pricing table, restaurant menu, table builder, price list builder 5 5 Plugin URL: https://stylishpricelist.com 6 Version: 7.2. 06 Version: 7.2.1 7 7 Donate link: https://stylishpricelist.com 8 8 Requires at least: 4.0 9 Tested up to: 6.8. 19 Tested up to: 6.8.2 10 10 Requires PHP: 5.6 11 Stable tag: 7.2. 011 Stable tag: 7.2.1 12 12 License: GPLv2 or later 13 13 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
stylish-price-list/tags/7.2.1/shortcode/pricelist-frontend.php
r3327519 r3352830 4196 4196 color: <?php echo esc_attr($price_color); ?> !important; 4197 4197 border: 1px solid <?php echo esc_attr($price_color); ?> !important; 4198 4199 } 4200 #spl_<?php echo esc_attr($id); ?>.price_wrapper .spl_book_now_btn_style_1:hover { 4201 border: 1px solid <?php echo esc_attr( $hover_color ); ?>; 4202 background:<?php echo esc_attr( $hover_color ); ?>; 4203 border: 1px solid <?php echo esc_attr( $hover_color ); ?>; 4198 4204 } 4199 4205 … … 4544 4550 width:76px; 4545 4551 height:28px; 4546 border: 1px solid #E6A900;4547 4552 background:white; 4548 4553 border-radius:5px !important; 4549 border: 1px solid #E6A900 !important;4550 4554 text-decoration:none; 4551 4555 color:#E6A900 !important; … … 4556 4560 width:76px; 4557 4561 height:28px; 4558 border: 1px solid #E6A900;4559 background:#E6A900;4560 4562 border-radius:5px !important; 4561 border: 1px solid #E6A900;4562 4563 text-decoration:none; 4563 4564 color:white !important; 4564 fon-size:12px;4565 4566 4565 } 4567 4566 .df-spl-level .style-1{ -
stylish-price-list/tags/7.2.1/stylish-price-list.php
r3327519 r3352830 7 7 Plugin URI: https://stylishpricelist.com/ 8 8 Description: Build a stylish price list for your business 9 Version: 7.2. 09 Version: 7.2.1 10 10 Author: Designful 11 11 Author URI: https://stylishpricelist.com/ … … 15 15 Text Domain: spl 16 16 */ 17 define( 'STYLISH_PRICE_LIST_VERSION', '7.2. 0' );17 define( 'STYLISH_PRICE_LIST_VERSION', '7.2.1' ); 18 18 define( 'STYLISH_PRICE_LIST_BETA', false ); 19 19 define( 'SPL_URL', plugin_dir_url( __FILE__ ) ); -
stylish-price-list/trunk/admin/class-spl-license-page.php
r3307244 r3352830 270 270 <div class="text-center"> 271 271 <?php 272 $action = empty( $opt ) || $opt['license'] !== 'valid'? 'active' : 'deactivate';272 $action = empty( $opt ) || ( isset( $opt['license'] ) && $opt['license'] !== 'valid' ) ? 'active' : 'deactivate'; 273 273 ?> 274 274 <div class="scc-license-intro-hero w-50 mx-auto"> -
stylish-price-list/trunk/admin/tabs/views/tabs-form/logo-footer.php
r3257166 r3352830 8 8 <?php 9 9 $opt = get_option( 'spllk_opt' ); 10 if ( empty( $opt ) || $opt['license'] !== 'valid') {10 if ( empty( $opt ) || ( isset( $opt['license'] ) && $opt['license'] !== 'valid' ) ) { 11 11 echo '<p class="free_version">You are using the <span class="highlighted">free (demo)</span> version of the plugin. Click <span class="highlighted"><a href="https://stylishpricelist.com?utm_source=inside-plugin&utm_medium=buy-premium-cta-banner">here</a></span> to buy the pro version.</p>'; 12 12 } -
stylish-price-list/trunk/admin/tabs/views/tabs-form/logo-header.php
r3307244 r3352830 16 16 <?php 17 17 $opt = get_option( 'spllk_opt' ); 18 if ( empty( $opt ) ) {18 if ( empty( $opt ) || ( isset( $opt['license'] ) && $opt['license'] !== 'valid' ) ) { 19 19 ?> 20 20 <span class="spl_plug_ver">Demo</span> 21 21 <?php 22 22 } 23 if ( ! empty( $opt ) ) {23 if ( ! empty( $opt ) && ( isset( $opt['license'] ) && $opt['license'] === 'valid' ) ) { 24 24 ?> 25 25 <span class="spl_plug_ver">Premium</span> -
stylish-price-list/trunk/admin/tabs/views/tabs-form/pricelist-form.php
r3318295 r3352830 999 999 <?php 1000 1000 $opt = get_option( 'spllk_opt' ); 1001 if ( empty( $opt ) ) {1001 if ( empty( $opt ) || ( isset( $opt['license'] ) && $opt['license'] !== 'valid' ) ) { 1002 1002 ?> 1003 1003 <span class="spl_plug_ver">Demo</span> 1004 1004 <?php 1005 1005 } 1006 if ( ! empty( $opt ) ) {1006 if ( ! empty( $opt ) && ( isset( $opt['license'] ) && $opt['license'] === 'valid' ) ) { 1007 1007 ?> 1008 1008 <span class="spl_plug_ver">Premium</span> … … 2197 2197 <?php 2198 2198 $opt = get_option( 'spllk_opt' ); 2199 if ( empty( $opt ) || $opt['license'] !== 'valid') {2199 if ( empty( $opt ) ) { 2200 2200 echo '<div class="free_version alert alert2 bg-warning"> 2201 2201 <p>You are using the <span class="highlighted">free (demo)</span> version of the plugin. Click <span class="highlighted"><a href="https://stylishpricelist.com?utm_source=inside-plugin&utm_medium=buy-premium-cta-banner">here</a></span> to buy the premium version.</p> 2202 <p class="text-danger d-none" id="edit-page-alert">Your License key has been expired. Some features might not work properly. Please renew. <a href="'. esc_attr( admin_url('admin.php?page=stylish_price_list_license') ) . '">Go to license manager</a></p> 2202 </div>'; 2203 } 2204 if ( ( isset( $opt['license'] ) && $opt['license'] !== 'valid' ) ) { 2205 echo '<div class="free_version alert alert2 bg-warning"> 2206 <p class="text-danger" id="edit-page-alert">Your License key has been expired. Some features might not work properly. Please renew. <a href="'. esc_attr( admin_url('admin.php?page=stylish_price_list_license') ) . '">Go to license manager</a></p> 2203 2207 </div>'; 2204 2208 } -
stylish-price-list/trunk/assets/js/pricelist-admin.js
r3318295 r3352830 441 441 // initiate tooltip 442 442 443 window.onload = function($) { 443 // Function to initialize the plugin once dependencies are available 444 function initializeStylishPriceListBackend(maxAttempts = 50) { // Max 5 seconds (50 * 100ms) 445 // Prevent multiple initializations 446 if (window.splInitialized) { 447 return; 448 } 449 450 // Check if required dependencies are available 451 if (typeof window.splSettings === 'undefined' || !window.splSettings || 452 typeof window.itemFieldTooltipImages === 'undefined' || !window.itemFieldTooltipImages) { 453 // If we've tried too many times, give up 454 if (maxAttempts <= 0) { 455 console.warn('Stylish Price List: Dependencies not available after maximum attempts'); 456 return; 457 } 458 // Wait a bit and try again 459 setTimeout(() => initializeStylishPriceListBackend(maxAttempts - 1), 100); 460 return; 461 } 462 463 // All dependencies are available, proceed with initialization 444 464 jQuery('[title]').tooltip(); 445 465 jQuery( '[data-tooltip-image-key]' ).tooltip({ … … 450 470 content: function() { 451 471 const {tooltipImageKey} = this.querySelector('[data-tooltip-image-key]').dataset; 452 const imageLink = itemFieldTooltipImages[tooltipImageKey]; 453 return `<img src=${imageLink} style="height: 430px;">`; 454 } 455 }); 456 if ( splSettings.maxList === 1 ) { 472 // Safety check for itemFieldTooltipImages 473 if ( typeof window.itemFieldTooltipImages !== 'undefined' && window.itemFieldTooltipImages ) { 474 const imageLink = window.itemFieldTooltipImages[tooltipImageKey]; 475 return `<img src=${imageLink} style="height: 430px;">`; 476 } 477 return ''; 478 } 479 }); 480 481 // Safety check for splSettings before using it 482 if ( typeof window.splSettings !== 'undefined' && window.splSettings && window.splSettings.maxList === 1 ) { 457 483 jQuery( '.service-advance-settings .upload-btn' ).text( 'This feature is available in the PRO version.' ); 458 484 jQuery( '.service-advance-settings input.service_button' ).attr( 'disabled', true ); … … 616 642 } 617 643 644 // Mark as initialized to prevent multiple runs 645 window.splInitialized = true; 646 618 647 619 648 }; 649 650 // Start the initialization process 651 initializeStylishPriceListBackend(); 652 653 // Also try to initialize when DOM is ready as a backup 654 jQuery(document).ready(function() { 655 // If not already initialized, try again 656 if (!window.splInitialized && typeof window.splSettings !== 'undefined' && window.splSettings) { 657 initializeStylishPriceListBackend(); 658 } 659 }); 620 660 621 661 jQuery(document).on('click', '.delete-icon', function() { -
stylish-price-list/trunk/changelog.txt
r3327519 r3352830 1 = 7.2.1 - 2025-08-29 2 * Fixed style one button hover color settings not being applied 3 * Fixed click to upload button failing after using the save button in the price list editor 4 1 5 = 7.2.0 - 2025-07-14 2 6 * fix style 4 category text and item titles text white background -
stylish-price-list/trunk/readme.txt
r3327519 r3352830 4 4 Tags: qr code menu, pricing table, restaurant menu, table builder, price list builder 5 5 Plugin URL: https://stylishpricelist.com 6 Version: 7.2. 06 Version: 7.2.1 7 7 Donate link: https://stylishpricelist.com 8 8 Requires at least: 4.0 9 Tested up to: 6.8. 19 Tested up to: 6.8.2 10 10 Requires PHP: 5.6 11 Stable tag: 7.2. 011 Stable tag: 7.2.1 12 12 License: GPLv2 or later 13 13 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
stylish-price-list/trunk/shortcode/pricelist-frontend.php
r3327519 r3352830 4196 4196 color: <?php echo esc_attr($price_color); ?> !important; 4197 4197 border: 1px solid <?php echo esc_attr($price_color); ?> !important; 4198 4199 } 4200 #spl_<?php echo esc_attr($id); ?>.price_wrapper .spl_book_now_btn_style_1:hover { 4201 border: 1px solid <?php echo esc_attr( $hover_color ); ?>; 4202 background:<?php echo esc_attr( $hover_color ); ?>; 4203 border: 1px solid <?php echo esc_attr( $hover_color ); ?>; 4198 4204 } 4199 4205 … … 4544 4550 width:76px; 4545 4551 height:28px; 4546 border: 1px solid #E6A900;4547 4552 background:white; 4548 4553 border-radius:5px !important; 4549 border: 1px solid #E6A900 !important;4550 4554 text-decoration:none; 4551 4555 color:#E6A900 !important; … … 4556 4560 width:76px; 4557 4561 height:28px; 4558 border: 1px solid #E6A900;4559 background:#E6A900;4560 4562 border-radius:5px !important; 4561 border: 1px solid #E6A900;4562 4563 text-decoration:none; 4563 4564 color:white !important; 4564 fon-size:12px;4565 4566 4565 } 4567 4566 .df-spl-level .style-1{ -
stylish-price-list/trunk/stylish-price-list.php
r3327519 r3352830 7 7 Plugin URI: https://stylishpricelist.com/ 8 8 Description: Build a stylish price list for your business 9 Version: 7.2. 09 Version: 7.2.1 10 10 Author: Designful 11 11 Author URI: https://stylishpricelist.com/ … … 15 15 Text Domain: spl 16 16 */ 17 define( 'STYLISH_PRICE_LIST_VERSION', '7.2. 0' );17 define( 'STYLISH_PRICE_LIST_VERSION', '7.2.1' ); 18 18 define( 'STYLISH_PRICE_LIST_BETA', false ); 19 19 define( 'SPL_URL', plugin_dir_url( __FILE__ ) );
Note: See TracChangeset
for help on using the changeset viewer.