Changeset 2505326
- Timestamp:
- 03/29/2021 03:01:05 PM (5 years ago)
- Location:
- showpass/trunk
- Files:
-
- 3 edited
-
js/showpass-calendar.js (modified) (11 diffs)
-
showpass-wordpress-plugin-shortcode.php (modified) (1 diff)
-
showpass-wordpress-plugin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
showpass/trunk/js/showpass-calendar.js
r2324732 r2505326 7 7 if (isMobile == true) { 8 8 $('#view-select .week').hide(); 9 }10 11 function initializeTooltip() {12 $('.show-tooltip').tooltipster({13 interactive: true,14 minWidth: 300,15 maxWidth: 320,16 contentCloning: true17 });18 9 } 19 10 … … 143 134 let only_parents = $('#only-parents').val(); 144 135 let hide_children = $('#hide-children').val(); 145 136 146 137 147 138 // Set values for display toggle … … 164 155 url = url + "&hide_children=" + hide_children; 165 156 } 166 157 167 158 if(only_parents) { 168 159 url = url + "&only_parents=" + only_parents; … … 238 229 239 230 let external_link = event.external_link; 240 231 241 232 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'>" + 242 233 "<span class='showpass-image-banner showpass-hide-mobile' style='background-image: url(" + image_thumb + ");'></span>" + … … 329 320 url = url + "&hide_children=" + hide_children; 330 321 } 331 322 332 323 if(only_parents) { 333 324 url = url + "&only_parents=" + only_parents; … … 395 386 current_day = 0; 396 387 $('.loader-home').hide(); 397 initializeTooltip();398 388 399 389 } … … 444 434 url = url + "&hide_children=" + hide_children; 445 435 } 446 436 447 437 if(only_parents) { 448 438 url = url + "&only_parents=" + only_parents; … … 529 519 } 530 520 $('.loader-home').hide(); 531 initializeTooltip();532 521 533 522 } … … 572 561 $('.showpass-month-view').css('border-right', '0px'); 573 562 renderCalendar(year_now, month_now + 1); 574 initializeTooltip();575 563 } else { 576 564 // RENDER & SHOW BOTH WEEKLY & MONTHLY & DAILY … … 609 597 $('body').on('click', '.multiple-event-popup, .mobile-event-popup.multiple', function (e) { 610 598 let length = $(this).attr('data-length'); 611 599 612 600 if (length > 1) { 613 601 let container = $(this).parent().find('.showpass-calendar-item-event-container'); … … 625 613 'show-description': $('#option_show_widget_description').val() || 'false' 626 614 }; 627 615 628 616 // Overwrite tracking-id if set in URL 629 617 if (Cookies.get('affiliate')) { 630 618 params['tracking-id'] = Cookies.get('affiliate'); 631 619 } 632 620 633 621 showpass.tickets.eventPurchaseWidget(slug, params); 634 622 } 635 636 623 624 637 625 }); 638 626 -
showpass/trunk/showpass-wordpress-plugin-shortcode.php
r2483999 r2505326 950 950 function showpass_scripts(){ 951 951 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); 953 954 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); 955 956 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); 960 960 wp_enqueue_script('moment-showpass'); 961 961 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);964 962 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); 967 964 } 968 965 } -
showpass/trunk/showpass-wordpress-plugin.php
r2483999 r2505326 5 5 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 6 6 Author: Showpass / Up In Code Inc. 7 Version: 3.5. 57 Version: 3.5.6 8 8 Author URI: https://www.showpass.com 9 9 */
Note: See TracChangeset
for help on using the changeset viewer.