Changeset 2533191
- Timestamp:
- 05/17/2021 06:08:58 PM (5 years ago)
- Location:
- showpass/trunk
- Files:
-
- 4 edited
-
css/showpass-style.css (modified) (1 diff)
-
js/showpass-custom.js (modified) (1 diff)
-
showpass-wordpress-plugin-shortcode.php (modified) (1 diff)
-
showpass-wordpress-plugin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
showpass/trunk/css/showpass-style.css
r2515969 r2533191 55 55 /* ---- Grid Overrides ---- */ 56 56 57 .showpass-event-card .showpass-event-list .showpass-background-white, .showpass-event-card .showpass-event-layout-list .showpass-background-white{ 57 .showpass-event-card .showpass-event-list .showpass-background-white, 58 .showpass-event-card .showpass-event-layout-list .showpass-background-white, 59 .showpass-event-card .showpass-event-grid .showpass-background-white { 58 60 background-color: white; 59 61 color: black; -
showpass/trunk/js/showpass-custom.js
r2515969 r2533191 100 100 showpass.tickets.calendarWidget(id, params); 101 101 }); 102 103 const embeddedCalendarExists = document.getElementById('showpass-calendar-widget'); 104 if (embeddedCalendarExists) { 105 let script = document.createElement("script"); 106 script.type = "text/javascript"; 107 script.src = 'https://showpass.com/static/dist/sdk.js'; 108 script.onload = function() { 109 const id = embeddedCalendarExists.getAttribute('data-org-id'); 110 let params = { 111 'theme-primary': $('#option_widget_color').val(), 112 }; 113 if (embeddedCalendarExists.getAttribute('data-tags')) { 114 const tags = { 115 tags: embeddedCalendarExists.getAttribute('data-tags') 116 }; 117 params = Object.assign(params, tags); 118 } 119 showpass.tickets.mountCalendarWidget(id, params); 120 }; 121 document.body.appendChild(script); 122 } 102 123 103 124 $('body').on('click', '.open-product-widget', function(e) { -
showpass/trunk/showpass-wordpress-plugin-shortcode.php
r2515969 r2533191 959 959 add_shortcode('showpass_calendar_widget', 'wpshp_calendar_widget'); 960 960 961 //[showpass_embed_calendar] 962 function wpshp_embed_calendar($atts, $content = null) { 963 $organization_id = get_option('option_organization_id'); 964 965 $tags = isset($atts['tags']) ? $atts['tags'] 966 : null; 967 968 if ($organization_id) { 969 return '<div id="showpass-calendar-widget" data-org-id="'.$organization_id.'" data-tags="'.$tags.'"><div>'; 970 } else { 971 return 'Please add your Showpass Organizer ID to your Wordpress Dashboard.'; 972 } 973 } 974 975 add_shortcode('showpass_embed_calendar', 'wpshp_embed_calendar'); 976 961 977 function showpass_scripts(){ 962 978 if (!is_admin()) { -
showpass/trunk/showpass-wordpress-plugin.php
r2515969 r2533191 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.6. 07 Version: 3.6.1 8 8 Author URI: https://www.showpass.com 9 9 */
Note: See TracChangeset
for help on using the changeset viewer.