Changeset 2324732
- Timestamp:
- 06/15/2020 10:49:15 PM (6 years ago)
- Location:
- showpass/trunk
- Files:
-
- 4 edited
-
js/showpass-calendar.js (modified) (2 diffs)
-
showpass-wordpress-plugin-admin-page.php (modified) (1 diff)
-
showpass-wordpress-plugin-shortcode.php (modified) (1 diff)
-
showpass-wordpress-plugin.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
showpass/trunk/js/showpass-calendar.js
r2321924 r2324732 452 452 method: "GET", 453 453 url: url, 454 success: function (data) { 455 console.log(data); 454 success: function(data) { 456 455 if (first_day_of_the_month == 7) { 457 456 for (let j = first_day_of_the_month - 6; j <= days_in_month; j++) { … … 493 492 let image_event = data.results[i].image || default_square; 494 493 let tmp = month_event + '_' + day_event; 495 console.log(event_slug);496 494 let html_tmp = "<div class='showpass-calendar-item-single' data-slug='" + event_slug + "' data-month='" + month + "' data-day='" + day_event + "' data-year='" + year + "' style='background:url(" + image_event + ") no-repeat;'><div class='space-filler'></div></div>"; 497 495 $('#event_on_' + tmp).append(html_tmp); -
showpass/trunk/showpass-wordpress-plugin-admin-page.php
r2240115 r2324732 37 37 <label for="main_api_url">Show Product/Event description tab in the purchase widget.</label><br/><br/> 38 38 39 <input type="checkbox" name="option_disable_verify_ssl" value="true" <?php checked('true', get_option('option_disable_verify_ssl'), true); ?>/> 40 <label for="main_api_url">Disable SSL verification when connecting to the API..</label><br /> 41 <small>Disable to fix Local SSL Expired issue on servers running an older operating system</small><br/><br/> 42 39 43 <?php submit_button(); ?> 40 44 -
showpass/trunk/showpass-wordpress-plugin-shortcode.php
r2321924 r2324732 12 12 /* making connection and taking the data from API */ 13 13 function call_showpass_api($url) { 14 14 15 $args = array( 15 'timeout' => 30,16 'verify_ssl' => true16 'timeout' => 30, 17 'sslverify' => true 17 18 ); 19 20 if (get_option('option_disable_verify_ssl')) { 21 $args['sslverify'] = false; 22 }; 23 18 24 $response = wp_safe_remote_get($url, $args); 19 25 $http_code = wp_remote_retrieve_response_code($response); -
showpass/trunk/showpass-wordpress-plugin.php
r2321924 r2324732 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.4. 57 Version: 3.4.6 8 8 Author URI: https://www.showpass.com 9 9 */ … … 49 49 register_setting('wpshp-settings-group', 'option_keep_shopping'); 50 50 register_setting('wpshp-settings-group', 'option_show_widget_description'); 51 register_setting('wpshp-settings-group', 'option_disable_verify_ssl'); 51 52 } 52 53
Note: See TracChangeset
for help on using the changeset viewer.