Changeset 3425488
- Timestamp:
- 12/22/2025 04:02:18 PM (3 months ago)
- Location:
- showpass
- Files:
-
- 54 added
- 3 edited
-
tags/4.0.7 (added)
-
tags/4.0.7/build-blocks (added)
-
tags/4.0.7/build-blocks/index.asset.php (added)
-
tags/4.0.7/build-blocks/index.css (added)
-
tags/4.0.7/build-blocks/index.js (added)
-
tags/4.0.7/build-blocks/style-index.css (added)
-
tags/4.0.7/css (added)
-
tags/4.0.7/css/showpass-calendar-style.css (added)
-
tags/4.0.7/css/showpass-flex-box.css (added)
-
tags/4.0.7/css/showpass-meta-box.css (added)
-
tags/4.0.7/css/showpass-style.css (added)
-
tags/4.0.7/css/vendor (added)
-
tags/4.0.7/css/vendor/tooltipster.css (added)
-
tags/4.0.7/images (added)
-
tags/4.0.7/images/arrow_left.png (added)
-
tags/4.0.7/images/arrow_left_white.png (added)
-
tags/4.0.7/images/arrow_right.png (added)
-
tags/4.0.7/images/arrow_right_white.png (added)
-
tags/4.0.7/images/default-banner.jpg (added)
-
tags/4.0.7/images/default-square.jpg (added)
-
tags/4.0.7/images/down-arrow.png (added)
-
tags/4.0.7/images/icon.png (added)
-
tags/4.0.7/inc (added)
-
tags/4.0.7/inc/button-logic.php (added)
-
tags/4.0.7/inc/button-verbiage.php (added)
-
tags/4.0.7/inc/default-detail.php (added)
-
tags/4.0.7/inc/default-grid.php (added)
-
tags/4.0.7/inc/default-list.php (added)
-
tags/4.0.7/inc/default-membership-grid.php (added)
-
tags/4.0.7/inc/default-pricing-table.php (added)
-
tags/4.0.7/inc/default-product-grid.php (added)
-
tags/4.0.7/inc/default-product-list.php (added)
-
tags/4.0.7/inc/image-formatter.class.php (added)
-
tags/4.0.7/js (added)
-
tags/4.0.7/js/dateFormat.js (added)
-
tags/4.0.7/js/moment-timezone.js (added)
-
tags/4.0.7/js/moment.js (added)
-
tags/4.0.7/js/showpass-beta-sdk.js (added)
-
tags/4.0.7/js/showpass-calendar.js (added)
-
tags/4.0.7/js/showpass-custom.js (added)
-
tags/4.0.7/js/showpass-demo-sdk.js (added)
-
tags/4.0.7/js/showpass-edit-form-js.js (added)
-
tags/4.0.7/js/showpass-sdk.js (added)
-
tags/4.0.7/js/vendor (added)
-
tags/4.0.7/js/vendor/js.cookie.js (added)
-
tags/4.0.7/js/vendor/lodash.js (added)
-
tags/4.0.7/js/vendor/tooltipster.js (added)
-
tags/4.0.7/readme.txt (added)
-
tags/4.0.7/showpass-wordpress-custom-api.php (added)
-
tags/4.0.7/showpass-wordpress-edit-section.php (added)
-
tags/4.0.7/showpass-wordpress-plugin-admin-page.php (added)
-
tags/4.0.7/showpass-wordpress-plugin-blocks.php (added)
-
tags/4.0.7/showpass-wordpress-plugin-shortcode.php (added)
-
tags/4.0.7/showpass-wordpress-plugin.php (added)
-
trunk/js/showpass-custom.js (modified) (11 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/showpass-wordpress-plugin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
showpass/trunk/js/showpass-custom.js
r3394633 r3425488 20 20 "show-specific-tickets": 21 21 $(element).attr("data-show-specific-tickets") || "", 22 "lang":23 $(element).attr("data-lang") || "",22 lang: $(element).attr("data-lang") || "", 23 "redirect-url": encodeURIComponent(window.location.href), 24 24 }; 25 25 }; … … 111 111 var qs = getQueryStrings(); 112 112 113 if (qs.auto) { 113 if (qs.affirm) { 114 let params = getParams(); 115 showpass.tickets.checkoutWidget(params); 116 } else if (qs.auto) { 114 117 var slug = qs.auto; 115 118 let params = { … … 122 125 setTimeout(function () { 123 126 Cookies.remove("auto"); 127 params["redirect-url"] = encodeURIComponent( 128 window.location.href 129 ); 124 130 showpass.tickets.eventPurchaseWidget(slug, params); 125 131 }, 500); … … 136 142 "keep-shopping": false, 137 143 tags: $(this).attr("data-tags"), 138 is_attraction: $(this).attr("data-is-attraction") === 'true' ? true : false, 144 is_attraction: 145 $(this).attr("data-is-attraction") === "true" 146 ? true 147 : false, 139 148 event_id: $(this).attr("data-event-id"), 149 140 150 lang: $(this).attr("data-lang"), 141 151 }; 142 152 153 params["redirect-url"] = encodeURIComponent( 154 window.location.href 155 ); 143 156 showpass.tickets.calendarWidget(id, params); 144 157 }); … … 189 202 params = Object.assign(params, tags); 190 203 } 191 if (embeddedCalendarWidget.getAttribute("data-is-attraction")) { 192 const is_attraction = embeddedCalendarWidget.getAttribute("data-is-attraction") === 'true' ? true : false; 204 if ( 205 embeddedCalendarWidget.getAttribute( 206 "data-is-attraction" 207 ) 208 ) { 209 const is_attraction = 210 embeddedCalendarWidget.getAttribute( 211 "data-is-attraction" 212 ) === "true" 213 ? true 214 : false; 193 215 params.is_attraction = is_attraction; 194 216 } 195 if (embeddedCalendarWidget.getAttribute("data-event-id")) { 196 const event_id = embeddedCalendarWidget.getAttribute("data-event-id"); 217 if ( 218 embeddedCalendarWidget.getAttribute( 219 "data-event-id" 220 ) 221 ) { 222 const event_id = 223 embeddedCalendarWidget.getAttribute( 224 "data-event-id" 225 ); 197 226 params.event_id = event_id; 198 227 } … … 207 236 params = Object.assign(params, lang); 208 237 } 238 params["redirect-url"] = encodeURIComponent( 239 window.location.href 240 ); 209 241 showpass.tickets.calendarWidget( 210 242 id, … … 222 254 "theme-dark": 223 255 $("#option_theme_dark").val() || "", 224 "lang": 225 embeddedCartWidget.getAttribute("data-lang") || "", 256 lang: 257 embeddedCartWidget.getAttribute( 258 "data-lang" 259 ) || "", 226 260 }; 261 params["redirect-url"] = encodeURIComponent( 262 window.location.href 263 ); 227 264 showpass.tickets.checkoutWidget( 228 265 params, … … 238 275 239 276 let params = getParams(widget); 240 241 277 if (widgetType === "product") { 242 278 showpass.tickets.productPurchaseWidget( … … 265 301 // Wait for showpass SDK to be available, then initialize widgets 266 302 function waitForShowpass() { 267 if (typeof showpass !== 'undefined' && showpass.tickets) { 303 if ( 304 typeof showpass !== "undefined" && 305 showpass.tickets 306 ) { 268 307 initializeWidgets(); 269 308 } else { … … 272 311 } 273 312 } 274 313 275 314 waitForShowpass(); 276 315 } … … 527 566 // Look for any Showpass iframes within the added node 528 567 if (node.getElementsByTagName) { 529 const iframes = node.getElementsByTagName('iframe'); 568 const iframes = 569 node.getElementsByTagName("iframe"); 530 570 for (let iframe of iframes) { 531 if (iframe.src && iframe.src.includes("showpass.com") && !iframe.dataset.decorated) { 571 if ( 572 iframe.src && 573 iframe.src.includes( 574 "showpass.com" 575 ) && 576 !iframe.dataset.decorated 577 ) { 532 578 decorateIframe(iframe); 533 579 } -
showpass/trunk/readme.txt
r3394633 r3425488 3 3 Requires at least: 4.9 4 4 Tested up to: 6.8.2 5 Stable tag: 4.0. 65 Stable tag: 4.0.7 6 6 Requires PHP: 5.4.45 7 7 Contributors: marcshowpass, spapril, spzachary, cgarrovillosp … … 56 56 == Changelog == 57 57 58 = 4.0.7 = 59 * Force redirect-url param for Affirm support 60 58 61 = 4.0.6 = 59 62 * Add French language support for widgets -
showpass/trunk/showpass-wordpress-plugin.php
r3394633 r3425488 6 6 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 7 7 Author: Showpass / Up In Code Inc. 8 Version: 4.0. 68 Version: 4.0.7 9 9 Author URI: https://www.showpass.com 10 10 */ 11 11 12 define('SHOWPASS_PLUGIN_VERSION', '4.0. 6');12 define('SHOWPASS_PLUGIN_VERSION', '4.0.7'); 13 13 14 14 if (! defined('ABSPATH')) {
Note: See TracChangeset
for help on using the changeset viewer.