Plugin Directory

Changeset 2505326


Ignore:
Timestamp:
03/29/2021 03:01:05 PM (5 years ago)
Author:
marcshowpass
Message:

fix scripts

Location:
showpass/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • showpass/trunk/js/showpass-calendar.js

    r2324732 r2505326  
    77        if (isMobile == true) {
    88            $('#view-select .week').hide();
    9         }
    10 
    11         function initializeTooltip() {
    12             $('.show-tooltip').tooltipster({
    13                 interactive: true,
    14                 minWidth: 300,
    15                 maxWidth: 320,
    16                 contentCloning: true
    17             });
    189        }
    1910
     
    143134            let only_parents = $('#only-parents').val();
    144135            let hide_children = $('#hide-children').val();
    145            
     136
    146137
    147138            // Set values for display toggle
     
    164155                    url = url + "&hide_children=" + hide_children;
    165156                }
    166                
     157
    167158                if(only_parents) {
    168159                    url = url + "&only_parents=" + only_parents;
     
    238229
    239230                                let external_link = event.external_link;
    240    
     231
    241232                                let html_card = "<div class='flex-100 showpass-flex-column list-layout-flex showpass-no-border showpass-event-card'><div class='showpass-event-layout-list showpass-layout-flex m15'><div class='card-image showpass-flex-column list-layout-flex showpass-no-border showpass-no-padding p0'>" +
    242233                                    "<span class='showpass-image-banner showpass-hide-mobile' style='background-image: url(" + image_thumb + ");'></span>" +
     
    329320                    url = url + "&hide_children=" + hide_children;
    330321                }
    331                
     322
    332323                if(only_parents) {
    333324                    url = url + "&only_parents=" + only_parents;
     
    395386                        current_day = 0;
    396387                        $('.loader-home').hide();
    397                         initializeTooltip();
    398388
    399389                    }
     
    444434                    url = url + "&hide_children=" + hide_children;
    445435                }
    446                
     436
    447437                if(only_parents) {
    448438                    url = url + "&only_parents=" + only_parents;
     
    529519                        }
    530520                        $('.loader-home').hide();
    531                         initializeTooltip();
    532521
    533522                    }
     
    572561            $('.showpass-month-view').css('border-right', '0px');
    573562            renderCalendar(year_now, month_now + 1);
    574             initializeTooltip();
    575563        } else {
    576564            // RENDER & SHOW BOTH WEEKLY & MONTHLY & DAILY
     
    609597        $('body').on('click', '.multiple-event-popup, .mobile-event-popup.multiple', function (e) {
    610598            let length = $(this).attr('data-length');
    611            
     599
    612600            if (length > 1) {
    613601                let container = $(this).parent().find('.showpass-calendar-item-event-container');
     
    625613                    'show-description': $('#option_show_widget_description').val() || 'false'
    626614                };
    627    
     615
    628616                // Overwrite tracking-id if set in URL
    629617                if (Cookies.get('affiliate')) {
    630618                    params['tracking-id'] = Cookies.get('affiliate');
    631619                }
    632    
     620
    633621                showpass.tickets.eventPurchaseWidget(slug, params);
    634622            }
    635            
    636            
     623
     624
    637625        });
    638626
  • showpass/trunk/showpass-wordpress-plugin-shortcode.php

    r2483999 r2505326  
    950950function showpass_scripts(){
    951951    if (!is_admin()) {
    952         wp_dequeue_script('jquery');
     952        wp_enqueue_style('showpass-style', plugins_url( '/css/showpass-style.css', __FILE__ ), array(), null);
     953        wp_enqueue_style('showpass-flex-box', plugins_url( '/css/showpass-flex-box.css', __FILE__ ), array(), null);
    953954        wp_enqueue_script('showpass-sdk', plugins_url( '/js/showpass-sdk.js', __FILE__ ), array('jquery'), '1.0.0', true );
    954         wp_register_script('showpass-calendar-script', plugins_url( '/js/showpass-calendar.js', __FILE__ ), array('jquery'), '1.0.0', true );
     955        wp_register_script('showpass-calendar-script', plugins_url( '/js/showpass-calendar.js', __FILE__ ), array('jquery'), '1.0.0', true);
    955956        wp_register_script('moment-showpass', plugins_url( '/js/moment.js', __FILE__ ), array(),false, '1.0.1');
    956         wp_register_script('moment-timezone-showpass', plugins_url( '/js/moment-timezone.js', __FILE__ ), array(), false, '1.0.2');
    957         wp_register_script('dateformat-timezone-showpass', plugins_url( '/js/dateFormat.js', __FILE__ ), array(), false, '1.0.3');
    958         wp_register_script('tooltipster', plugins_url( '/js/vendor/tooltipster.js', __FILE__ ), array(), false, '4.2.5');
    959         wp_register_script('showpass-lodash', plugins_url( '/js/vendor/lodash.js', __FILE__ ), array(), '1.8.3');
     957        wp_register_script('moment-timezone-showpass', plugins_url( '/js/moment-timezone.js', __FILE__ ), array(), '1.0.2', true);
     958        wp_register_script('dateformat-timezone-showpass', plugins_url( '/js/dateFormat.js', __FILE__ ), array(), '1.0.3', true);
     959        wp_register_script('showpass-lodash', plugins_url( '/js/vendor/lodash.js', __FILE__ ), array(), '1.8.3', true);
    960960        wp_enqueue_script('moment-showpass');
    961961        wp_enqueue_script('moment-timezone-showpass');
    962         wp_enqueue_style('showpass-style', plugins_url( '/css/showpass-style.css', __FILE__ ), array(), null);
    963         wp_enqueue_style('showpass-flex-box', plugins_url( '/css/showpass-flex-box.css', __FILE__ ), array(), null);
    964962        wp_enqueue_script('js-cookie', plugins_url( '/js/vendor/js.cookie.js', __FILE__ ), array(), '2.2.0', true);
    965         wp_enqueue_script('showpass-custom', plugins_url( '/js/showpass-custom.js', __FILE__ ), array('jquery'), null, false);
    966         wp_enqueue_script('jquery-showpass');
     963        wp_enqueue_script('showpass-custom', plugins_url( '/js/showpass-custom.js', __FILE__ ), array('jquery'), null, true);
    967964    }
    968965}
  • showpass/trunk/showpass-wordpress-plugin.php

    r2483999 r2505326  
    55     Description: List events, display event details and products. Use the Showpass purchase widget for on site ticket & product purchases all with easy to use shortcodes. See our git repo here for full documentation. https://github.com/showpass/showpass-wordpress-plugin
    66     Author: Showpass / Up In Code Inc.
    7      Version: 3.5.5
     7     Version: 3.5.6
    88     Author URI: https://www.showpass.com
    99     */
Note: See TracChangeset for help on using the changeset viewer.