Plugin Directory

Changeset 3020137


Ignore:
Timestamp:
01/11/2024 05:36:18 AM (2 years ago)
Author:
wpscripts
Message:

Plugin version updated to 1.4.8.2

Location:
food-store
Files:
348 added
11 edited

Legend:

Unmodified
Added
Removed
  • food-store/trunk/assets/js/frontend/wfs-checkout.js

    r2978955 r3020137  
    3737    $("body").on("click", ".checkout-asap-block a", function (e) {
    3838      e.preventDefault();
    39       let serviceTime = $(this).attr("href");
     39      let serviceTime = $(this).attr("aria-controls");
    4040      let serviceASAP = serviceTime.includes("asap");
    4141      if (serviceASAP) {
     
    7979    });
    8080  });
     81
     82  //Toggle service nav container
     83  $(document).on("click", "#wfs_checkout_fields .nav-link", function (e) {
     84    e.preventDefault();
     85    let selectedServiceTime = $(this).attr("aria-controls");
     86    $(this)
     87      .parents("#wfs_checkout_fields")
     88      .find(".tab-pane")
     89      .removeClass("active show");
     90    $(this)
     91      .parents("#wfs_checkout_fields")
     92      .find(".tab-pane#" + selectedServiceTime + "")
     93      .addClass("active show");
     94  });
    8195});
  • food-store/trunk/assets/js/frontend/wfs.js

    r2978955 r3020137  
    640640        .find(".asap-block-" + selected_service)
    641641        .find(".nav-link.active")
    642         .attr("href");
     642        .attr("aria-controls");
    643643
    644644      var check_selected_method = selected_method.includes("asap")
     
    758758    }
    759759  });
     760
     761  //Modal toggle tabs container
     762  $(document).on("click", ".wfsmodal .nav-link", function (e) {
     763    e.preventDefault();
     764    let _this = jQuery(this);
     765    let ariaControls = _this.attr("aria-controls");
     766    let checkServicePane = _this.parents(".service-tab-pane");
     767
     768    _this.parents(".nav-tabs").find(".nav-link").removeClass("active show");
     769    _this.addClass("active show");
     770
     771    if (checkServicePane.length > 0) {
     772      _this
     773        .parents(".service-tab-pane")
     774        .find(".tab-pane")
     775        .removeClass("active show");
     776      _this
     777        .parents(".service-tab-pane")
     778        .find(".tab-pane#" + ariaControls + " ")
     779        .addClass("active show");
     780    } else {
     781      $(".wfsmodal").find(".service-tab-pane").removeClass("active show");
     782      _this
     783        .parents(".wfsmodal")
     784        .find(".service-tab-pane#" + ariaControls + " ")
     785        .addClass("active show");
     786    }
     787  });
    760788});
  • food-store/trunk/food-store.php

    r3005408 r3020137  
    99 * Plugin Name: Food Store - Online Food Delivery & Pickup
    1010 * Description: Food Store is complete online food ordering platform with all your favourite WooCommerce functionalities.
    11  * Version: 1.4.8.1
     11 * Version: 1.4.8.2
    1212 * Author: WP Scripts
    1313 * Text Domain: food-store
  • food-store/trunk/includes/class-food-store.php

    r3005408 r3020137  
    2121     * @var string
    2222     */
    23     public $version = '1.4.8.1';
     23    public $version = '1.4.8.2';
    2424
    2525    /**
     
    164164     */
    165165    public function frontend_includes() {
    166 
    167166        include_once WFS_ABSPATH . 'includes/class-wfs-frontend.php';
    168167        include_once WFS_ABSPATH . 'includes/class-wfs-frontend-scripts.php';
  • food-store/trunk/includes/class-wfs-services.php

    r2978955 r3020137  
    599599        $field = '<ul class="form-row nav-tabs nav checkout-asap-block wfs-schedule-nav-group" role="tablist">
    600600                        <li class="nav-item">
    601                           <a class="nav-link active" data-toggle="tab" href="#'.$service_type.'_asap" role="tab" aria-controls="'.$service_type.'_asap" aria-selected="true" >'.$asap_label.'</a>
     601                          <a class="nav-link active" data-toggle="tab" role="tab" aria-controls="'.$service_type.'_asap" aria-selected="true" >'.$asap_label.'</a>
    602602                          </li>
    603603                          <li class="nav-item">
    604                           <a class="nav-link" data-toggle="tab" href="#'.$service_type.'_schedule" role="tab" aria-controls="'.$service_type.'_schedule" aria-selected="false">'.$order_later_label.'</a>
     604                          <a class="nav-link" data-toggle="tab" role="tab" aria-controls="'.$service_type.'_schedule" aria-selected="false">'.$order_later_label.'</a>
    605605                          </li>
    606606                      </ul>
  • food-store/trunk/includes/freemius/includes/class-freemius.php

    r3005408 r3020137  
    13581358
    13591359        function _run_garbage_collector() {
    1360             // @todo - Remove this check once the garbage collector is ready to be out of beta.
    1361             if ( true !== fs_get_optional_constant( 'WP_FS__ENABLE_GARBAGE_COLLECTOR', false ) ) {
     1360            if ( true !== fs_get_optional_constant( 'WP_FS__ENABLE_GARBAGE_COLLECTOR', true ) ) {
    13621361                return;
    13631362            }
  • food-store/trunk/includes/freemius/includes/class-fs-garbage-collector.php

    r3005408 r3020137  
    282282
    283283            foreach ( $users as $user_id => $user ) {
    284                 if ( ! isset( $user_has_install[ $user_id ] ) ) {
     284                if ( ! isset( $user_has_install_map[ $user_id ] ) ) {
    285285                    unset( $users[ $user_id ] );
    286286
  • food-store/trunk/includes/freemius/start.php

    r3005408 r3020137  
    1616     * @var string
    1717     */
    18     $this_sdk_version = '2.6.0';
     18    $this_sdk_version = '2.6.2';
    1919
    2020    #region SDK Selection Logic --------------------------------------------------------------------
     
    4747    $file_path    = fs_normalize_path( __FILE__ );
    4848    $fs_root_path = dirname( $file_path );
     49
     50    // @todo: Remove this code after a few months when WP 6.3 usage is low enough.
     51    global $wp_version;
    4952
    5053    if (
     
    5457         * @see theme-previews.php:wp_get_theme_preview_path()
    5558         *
    56          * @todo If this behavior is fixed in the core, we will remove this workaround.
     59         * @todo This behavior is already fixed in the core (WP 6.3.2+), and this code can be removed after a few months when WP 6.3 usage is low enough.
    5760         * @since WP 6.3.0
    5861         */
     62        version_compare( $wp_version, '6.3', '>=' ) &&
     63        version_compare( $wp_version, '6.3.1', '<=' ) &&
    5964        (
    6065            'site-editor.php' === basename( $_SERVER['SCRIPT_FILENAME'] ) ||
  • food-store/trunk/readme.txt

    r3005408 r3020137  
    55Requires PHP: 7.1
    66Requires at least: 4.0
    7 Tested up to: 6.3
    8 Stable tag: 1.4.8.1
     7Tested up to: 6.4
     8Stable tag: 1.4.8.2
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    131131
    132132== Changelog ==
     133
     134= 1.4.8.2 - 11-01-2024 =
     135* Fix - Service type selection issue with divi theme
     136* Fix - Checkout service type toggle issue with divi theme
     137* Updated Freemius SDK 2.6.2
     138* Code cleanup
    133139
    134140= 1.4.8.1 - 05-12-2023 =
     
    479485== Upgrade Notice ==
    480486
    481 = 1.4.8 =
     487= 1.4.8.1
    482488New version is available. Thank you for trying out our new features. Reach us anytime to report any bug or getting support.
  • food-store/trunk/templates/services/asap-block.php

    r2807676 r3020137  
    1818  <ul class="nav-tabs nav wfs-schedule-nav-group" role="tablist">
    1919    <li class="nav-item">
    20       <a class="nav-link active" data-toggle="tab" href="#<?php echo $service_type; ?>_asap" role="tab" aria-controls="<?php echo $service_type; ?>_asap" aria-selected="true"><?php echo wfs_get_asap_label(); ?></a>
     20      <a class="nav-link active" data-toggle="tab" role="tab" aria-controls="<?php echo $service_type; ?>_asap" aria-selected="true"><?php echo wfs_get_asap_label(); ?></a>
    2121    </li>
    2222    <li class="nav-item">
    23       <a class="nav-link" data-toggle="tab" href="#<?php echo $service_type; ?>_schedule" role="tab" aria-controls="<?php echo $service_type; ?>_schedule" aria-selected="false"><?php echo wfs_get_order_later_label(); ?></a>
     23      <a class="nav-link" data-toggle="tab" role="tab" aria-controls="<?php echo $service_type; ?>_schedule" aria-selected="false"><?php echo wfs_get_order_later_label(); ?></a>
    2424    </li>
    2525  </ul>
  • food-store/trunk/templates/services/service-types.php

    r2807676 r3020137  
    2525
    2626  <li class="nav-item">
    27     <a class="nav-link active" id="pickup-tab" data-toggle="tab" href="#pickup" role="tab" aria-controls="pickup" aria-selected="true">
     27    <a class="nav-link active" id="pickup-tab" data-toggle="tab" role="tab" aria-controls="pickup" aria-selected="true">
    2828      <?php echo wfs_get_service_label('pickup'); ?>
    2929    </a>
     
    3131
    3232  <li class="nav-item">
    33     <a class="nav-link" id="delivery-tab" data-toggle="tab" href="#delivery" role="tab" aria-controls="delivery" aria-selected="false">
     33    <a class="nav-link" id="delivery-tab" data-toggle="tab" role="tab" aria-controls="delivery" aria-selected="false">
    3434      <?php echo wfs_get_service_label('delivery'); ?>
    3535    </a>
Note: See TracChangeset for help on using the changeset viewer.