Plugin Directory

Changeset 3098219


Ignore:
Timestamp:
06/05/2024 09:50:26 PM (22 months ago)
Author:
marcshowpass
Message:

push 3.8.11

Location:
showpass
Files:
54 added
7 edited

Legend:

Unmodified
Added
Removed
  • showpass/trunk/inc/image-formatter.class.php

    r2865314 r3098219  
    1313      if (get_option('option_use_showpass_beta')) {
    1414        $this->cloudfront_base_url = 'https://db9zval7bk53o.cloudfront.net/';
     15      } else if (get_option('option_use_showpass_demo')) {
     16        $this->cloudfront_base_url = 'https://d2sv1t07lr5mwo.cloudfront.net/';
    1517      }
    1618    }
  • showpass/trunk/js/showpass-calendar.js

    r2813893 r3098219  
    77        let useBeta = $('#option_use_showpass_beta').val();
    88
     9        let useDemo = $('#option_use_showpass_demo').val();
     10
    911        if (useBeta) {
    1012            apiURL = 'https://beta.showpass.com/api'
     13        } else if (useDemo) {
     14            apiURL = 'https://demo.showpass.com/api'
    1115        }
    1216
  • showpass/trunk/js/showpass-custom.js

    r3089681 r3098219  
    132132
    133133                let useBeta = $('#option_use_showpass_beta').val();
     134                let useDemo = $('#option_use_showpass_demo').val();
    134135                if (useBeta) {
    135136                    script.src = 'https://beta.showpass.com/static/dist/sdk.js';
     137                } else if (useDemo) {
     138                    script.src = 'https://demo.showpass.com/static/dist/sdk.js';
    136139                }
    137140
  • showpass/trunk/readme.txt

    r3089681 r3098219  
    33Requires at least: 4.9
    44Tested up to: 6.4.3
    5 Stable tag: 3.8.10
     5Stable tag: 3.8.11
    66Requires PHP: 5.4.45
    77Contributors: marcshowpass, spapril, spzachary, cgarrovillosp
  • showpass/trunk/showpass-wordpress-plugin-admin-page.php

    r3089681 r3098219  
    6363        <small>CAUTION: This is for testing purposes only.</small><br /><br />
    6464
     65        <input type="checkbox" name="option_use_showpass_demo" value="true"
     66            <?php checked('true', get_option('option_use_showpass_demo'), true); ?> />
     67        <label for="main_api_url">Connect to demo.showpass.com</label><br />
     68        <small>CAUTION: This is for demo purposes only.</small><br /><br />
     69
    6570        <?php submit_button(); ?>
    6671
  • showpass/trunk/showpass-wordpress-plugin-shortcode.php

    r3089681 r3098219  
    55**************************/
    66if (get_option('option_use_showpass_beta')) {
    7     define('SHOWPASS_API_URL', 'https://beta.showpass.com/api');
     7  define('SHOWPASS_API_URL', 'https://beta.showpass.com/api');
     8} else if (get_option('option_use_showpass_demo')) {
     9  define('SHOWPASS_API_URL', 'https://demo.showpass.com/api');
    810} else {
    9     define('SHOWPASS_API_URL', 'https://www.showpass.com/api');
     11  define('SHOWPASS_API_URL', 'https://www.showpass.com/api');
    1012}
    1113define('SHOWPASS_ACTUAL_LINK', strtok($_SERVER["REQUEST_URI"],'?'));
     
    10011003        wp_enqueue_style('showpass-style', plugins_url( '/css/showpass-style.css', __FILE__ ), array(), null);
    10021004        wp_enqueue_style('showpass-flex-box', plugins_url( '/css/showpass-flex-box.css', __FILE__ ), array(), null);
    1003         if (get_option('option_use_showpass_beta')) {
    1004             wp_enqueue_script('showpass-beta-sdk', plugins_url( '/js/showpass-beta-sdk.js', __FILE__ ), array('jquery'), null, true );
    1005         } else {
    1006             wp_enqueue_script('showpass-sdk', plugins_url( '/js/showpass-sdk.js', __FILE__ ), array('jquery'), null, true );
    1007         }
     1005      if (get_option('option_use_showpass_beta')) {
     1006        wp_enqueue_script('showpass-beta-sdk', plugins_url( '/js/showpass-beta-sdk.js', __FILE__ ), array('jquery'), null, true );
     1007      } else if (get_option('option_use_showpass_demo')){
     1008        wp_enqueue_script('showpass-demo-sdk', plugins_url( '/js/showpass-demo-sdk.js', __FILE__ ), array('jquery'), null, true );
     1009      } else {
     1010        wp_enqueue_script('showpass-sdk', plugins_url( '/js/showpass-sdk.js', __FILE__ ), array('jquery'), null, true );
     1011      }
    10081012        wp_register_script('showpass-calendar-script', plugins_url( '/js/showpass-calendar.js', __FILE__ ), array('jquery'), '3.8.7', true);
    10091013        wp_register_script('moment-showpass', plugins_url( '/js/moment.js', __FILE__ ), array(), '1.0.1', true);
     
    10261030  echo '<input type="hidden" id="option_widget_color" value="'.get_option('option_widget_color').'">';
    10271031  echo '<input type="hidden" id="option_use_showpass_beta" value="'.get_option('option_use_showpass_beta').'">';
     1032  echo '<input type="hidden" id="option_use_showpass_demo" value="'.get_option('option_use_showpass_demo').'">';
    10281033}
    10291034
  • showpass/trunk/showpass-wordpress-plugin.php

    r3089681 r3098219  
    66 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
    77 Author: Showpass / Up In Code Inc.
    8  Version: 3.8.10
     8 Version: 3.8.11
    99 Author URI: https://www.showpass.com
    1010 */
     
    5252    register_setting('wpshp-settings-group', 'option_disable_verify_ssl');
    5353    register_setting('wpshp-settings-group', 'option_use_showpass_beta');
     54    register_setting('wpshp-settings-group', 'option_use_showpass_demo');
    5455    register_setting('wpshp-settings-group', 'option_showpass_access_token');
    5556    register_setting('wpshp-settings-group', 'option_showpass_default_button_class');
Note: See TracChangeset for help on using the changeset viewer.