Plugin Directory

Changeset 3352830


Ignore:
Timestamp:
08/29/2025 05:46:01 PM (6 months ago)
Author:
designful
Message:

Update to version 7.2.1 from GitHub

Location:
stylish-price-list
Files:
18 edited
1 copied

Legend:

Unmodified
Added
Removed
  • stylish-price-list/tags/7.2.1/admin/class-spl-license-page.php

    r3307244 r3352830  
    270270                        <div class="text-center">
    271271                            <?php
    272                             $action = empty( $opt ) || $opt['license'] !== 'valid' ? 'active' : 'deactivate';
     272                            $action = empty( $opt ) || ( isset( $opt['license'] ) && $opt['license'] !== 'valid' ) ? 'active' : 'deactivate';
    273273                            ?>
    274274                            <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  
    88            <?php
    99            $opt = get_option( 'spllk_opt' );
    10             if ( empty( $opt ) || $opt['license'] !== 'valid' ) {
     10            if ( empty( $opt ) || ( isset( $opt['license'] ) && $opt['license'] !== 'valid' ) ) {
    1111                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>';
    1212            }
  • stylish-price-list/tags/7.2.1/admin/tabs/views/tabs-form/logo-header.php

    r3307244 r3352830  
    1616        <?php
    1717        $opt = get_option( 'spllk_opt' );
    18         if ( empty( $opt ) ) {
     18        if ( empty( $opt ) || ( isset( $opt['license'] ) && $opt['license'] !== 'valid' ) ) {
    1919            ?>
    2020            <span class="spl_plug_ver">Demo</span>
    2121            <?php
    2222        }
    23         if ( ! empty( $opt ) ) {
     23        if ( ! empty( $opt ) && ( isset( $opt['license'] ) && $opt['license'] === 'valid' ) ) {
    2424            ?>
    2525            <span class="spl_plug_ver">Premium</span>
  • stylish-price-list/tags/7.2.1/admin/tabs/views/tabs-form/pricelist-form.php

    r3318295 r3352830  
    999999        <?php
    10001000        $opt = get_option( 'spllk_opt' );
    1001         if ( empty( $opt ) ) {
     1001        if ( empty( $opt ) || ( isset( $opt['license'] ) && $opt['license'] !== 'valid' ) ) {
    10021002            ?>
    10031003            <span class="spl_plug_ver">Demo</span>
    10041004            <?php
    10051005        }
    1006         if ( ! empty( $opt ) ) {
     1006        if ( ! empty( $opt ) && ( isset( $opt['license'] ) && $opt['license'] === 'valid' ) ) {
    10071007            ?>
    10081008            <span class="spl_plug_ver">Premium</span>
     
    21972197            <?php
    21982198            $opt = get_option( 'spllk_opt' );
    2199             if ( empty( $opt ) || $opt['license'] !== 'valid' ) {
     2199            if ( empty( $opt ) ) {
    22002200                echo '<div class="free_version alert alert2 bg-warning">
    22012201                    <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>
    22032207                </div>';
    22042208            }
  • stylish-price-list/tags/7.2.1/assets/js/pricelist-admin.js

    r3318295 r3352830  
    441441// initiate tooltip
    442442
    443 window.onload = function($) {
     443// Function to initialize the plugin once dependencies are available
     444function 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
    444464    jQuery('[title]').tooltip();
    445465    jQuery( '[data-tooltip-image-key]' ).tooltip({
     
    450470        content: function() {
    451471            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 ) {
    457483        jQuery( '.service-advance-settings .upload-btn' ).text( 'This feature is available in the PRO version.' );
    458484        jQuery( '.service-advance-settings input.service_button' ).attr( 'disabled', true );
     
    616642    }
    617643   
     644    // Mark as initialized to prevent multiple runs
     645    window.splInitialized = true;
     646   
    618647   
    619648};
     649
     650// Start the initialization process
     651initializeStylishPriceListBackend();
     652
     653// Also try to initialize when DOM is ready as a backup
     654jQuery(document).ready(function() {
     655    // If not already initialized, try again
     656    if (!window.splInitialized && typeof window.splSettings !== 'undefined' && window.splSettings) {
     657        initializeStylishPriceListBackend();
     658    }
     659});
    620660   
    621661    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
    15= 7.2.0 - 2025-07-14
    26* fix style 4 category text and item titles text white background
  • stylish-price-list/tags/7.2.1/readme.txt

    r3327519 r3352830  
    44Tags: qr code menu, pricing table, restaurant menu, table builder, price list builder
    55Plugin URL: https://stylishpricelist.com
    6 Version: 7.2.0
     6Version: 7.2.1
    77Donate link: https://stylishpricelist.com
    88Requires at least: 4.0
    9 Tested up to: 6.8.1
     9Tested up to: 6.8.2
    1010Requires PHP: 5.6
    11 Stable tag: 7.2.0
     11Stable tag: 7.2.1
    1212License: GPLv2 or later
    1313License URI: https://www.gnu.org/licenses/gpl-2.0.html
  • stylish-price-list/tags/7.2.1/shortcode/pricelist-frontend.php

    r3327519 r3352830  
    41964196        color: <?php echo esc_attr($price_color); ?> !important;
    41974197        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 ); ?>;
    41984204    }
    41994205
     
    45444550        width:76px;
    45454551        height:28px;
    4546         border: 1px solid  #E6A900;
    45474552        background:white;
    45484553        border-radius:5px !important;
    4549         border: 1px solid #E6A900 !important;
    45504554        text-decoration:none;
    45514555        color:#E6A900 !important;
     
    45564560        width:76px;
    45574561        height:28px;
    4558         border: 1px solid  #E6A900;
    4559         background:#E6A900;
    45604562        border-radius:5px !important;
    4561         border: 1px solid #E6A900;
    45624563        text-decoration:none;
    45634564        color:white !important;
    4564         fon-size:12px;
    4565 
    45664565    }
    45674566    .df-spl-level .style-1{
  • stylish-price-list/tags/7.2.1/stylish-price-list.php

    r3327519 r3352830  
    77        Plugin URI:  https://stylishpricelist.com/
    88        Description: Build a stylish price list for your business
    9         Version:     7.2.0
     9        Version:     7.2.1
    1010        Author:      Designful
    1111        Author URI:  https://stylishpricelist.com/
     
    1515        Text Domain: spl
    1616    */
    17         define( 'STYLISH_PRICE_LIST_VERSION', '7.2.0' );
     17        define( 'STYLISH_PRICE_LIST_VERSION', '7.2.1' );
    1818        define( 'STYLISH_PRICE_LIST_BETA', false );
    1919        define( 'SPL_URL', plugin_dir_url( __FILE__ ) );
  • stylish-price-list/trunk/admin/class-spl-license-page.php

    r3307244 r3352830  
    270270                        <div class="text-center">
    271271                            <?php
    272                             $action = empty( $opt ) || $opt['license'] !== 'valid' ? 'active' : 'deactivate';
     272                            $action = empty( $opt ) || ( isset( $opt['license'] ) && $opt['license'] !== 'valid' ) ? 'active' : 'deactivate';
    273273                            ?>
    274274                            <div class="scc-license-intro-hero w-50 mx-auto">
  • stylish-price-list/trunk/admin/tabs/views/tabs-form/logo-footer.php

    r3257166 r3352830  
    88            <?php
    99            $opt = get_option( 'spllk_opt' );
    10             if ( empty( $opt ) || $opt['license'] !== 'valid' ) {
     10            if ( empty( $opt ) || ( isset( $opt['license'] ) && $opt['license'] !== 'valid' ) ) {
    1111                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>';
    1212            }
  • stylish-price-list/trunk/admin/tabs/views/tabs-form/logo-header.php

    r3307244 r3352830  
    1616        <?php
    1717        $opt = get_option( 'spllk_opt' );
    18         if ( empty( $opt ) ) {
     18        if ( empty( $opt ) || ( isset( $opt['license'] ) && $opt['license'] !== 'valid' ) ) {
    1919            ?>
    2020            <span class="spl_plug_ver">Demo</span>
    2121            <?php
    2222        }
    23         if ( ! empty( $opt ) ) {
     23        if ( ! empty( $opt ) && ( isset( $opt['license'] ) && $opt['license'] === 'valid' ) ) {
    2424            ?>
    2525            <span class="spl_plug_ver">Premium</span>
  • stylish-price-list/trunk/admin/tabs/views/tabs-form/pricelist-form.php

    r3318295 r3352830  
    999999        <?php
    10001000        $opt = get_option( 'spllk_opt' );
    1001         if ( empty( $opt ) ) {
     1001        if ( empty( $opt ) || ( isset( $opt['license'] ) && $opt['license'] !== 'valid' ) ) {
    10021002            ?>
    10031003            <span class="spl_plug_ver">Demo</span>
    10041004            <?php
    10051005        }
    1006         if ( ! empty( $opt ) ) {
     1006        if ( ! empty( $opt ) && ( isset( $opt['license'] ) && $opt['license'] === 'valid' ) ) {
    10071007            ?>
    10081008            <span class="spl_plug_ver">Premium</span>
     
    21972197            <?php
    21982198            $opt = get_option( 'spllk_opt' );
    2199             if ( empty( $opt ) || $opt['license'] !== 'valid' ) {
     2199            if ( empty( $opt ) ) {
    22002200                echo '<div class="free_version alert alert2 bg-warning">
    22012201                    <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>
    22032207                </div>';
    22042208            }
  • stylish-price-list/trunk/assets/js/pricelist-admin.js

    r3318295 r3352830  
    441441// initiate tooltip
    442442
    443 window.onload = function($) {
     443// Function to initialize the plugin once dependencies are available
     444function 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
    444464    jQuery('[title]').tooltip();
    445465    jQuery( '[data-tooltip-image-key]' ).tooltip({
     
    450470        content: function() {
    451471            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 ) {
    457483        jQuery( '.service-advance-settings .upload-btn' ).text( 'This feature is available in the PRO version.' );
    458484        jQuery( '.service-advance-settings input.service_button' ).attr( 'disabled', true );
     
    616642    }
    617643   
     644    // Mark as initialized to prevent multiple runs
     645    window.splInitialized = true;
     646   
    618647   
    619648};
     649
     650// Start the initialization process
     651initializeStylishPriceListBackend();
     652
     653// Also try to initialize when DOM is ready as a backup
     654jQuery(document).ready(function() {
     655    // If not already initialized, try again
     656    if (!window.splInitialized && typeof window.splSettings !== 'undefined' && window.splSettings) {
     657        initializeStylishPriceListBackend();
     658    }
     659});
    620660   
    621661    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
    15= 7.2.0 - 2025-07-14
    26* fix style 4 category text and item titles text white background
  • stylish-price-list/trunk/readme.txt

    r3327519 r3352830  
    44Tags: qr code menu, pricing table, restaurant menu, table builder, price list builder
    55Plugin URL: https://stylishpricelist.com
    6 Version: 7.2.0
     6Version: 7.2.1
    77Donate link: https://stylishpricelist.com
    88Requires at least: 4.0
    9 Tested up to: 6.8.1
     9Tested up to: 6.8.2
    1010Requires PHP: 5.6
    11 Stable tag: 7.2.0
     11Stable tag: 7.2.1
    1212License: GPLv2 or later
    1313License URI: https://www.gnu.org/licenses/gpl-2.0.html
  • stylish-price-list/trunk/shortcode/pricelist-frontend.php

    r3327519 r3352830  
    41964196        color: <?php echo esc_attr($price_color); ?> !important;
    41974197        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 ); ?>;
    41984204    }
    41994205
     
    45444550        width:76px;
    45454551        height:28px;
    4546         border: 1px solid  #E6A900;
    45474552        background:white;
    45484553        border-radius:5px !important;
    4549         border: 1px solid #E6A900 !important;
    45504554        text-decoration:none;
    45514555        color:#E6A900 !important;
     
    45564560        width:76px;
    45574561        height:28px;
    4558         border: 1px solid  #E6A900;
    4559         background:#E6A900;
    45604562        border-radius:5px !important;
    4561         border: 1px solid #E6A900;
    45624563        text-decoration:none;
    45634564        color:white !important;
    4564         fon-size:12px;
    4565 
    45664565    }
    45674566    .df-spl-level .style-1{
  • stylish-price-list/trunk/stylish-price-list.php

    r3327519 r3352830  
    77        Plugin URI:  https://stylishpricelist.com/
    88        Description: Build a stylish price list for your business
    9         Version:     7.2.0
     9        Version:     7.2.1
    1010        Author:      Designful
    1111        Author URI:  https://stylishpricelist.com/
     
    1515        Text Domain: spl
    1616    */
    17         define( 'STYLISH_PRICE_LIST_VERSION', '7.2.0' );
     17        define( 'STYLISH_PRICE_LIST_VERSION', '7.2.1' );
    1818        define( 'STYLISH_PRICE_LIST_BETA', false );
    1919        define( 'SPL_URL', plugin_dir_url( __FILE__ ) );
Note: See TracChangeset for help on using the changeset viewer.