Changeset 2399608
- Timestamp:
- 10/14/2020 03:41:49 PM (5 years ago)
- Location:
- servicebot/trunk
- Files:
-
- 1 added
- 4 edited
-
includes/class-servicebot.php (modified) (1 diff)
-
public/widgets/class-servicebot-billing-page-widget.php (added)
-
public/widgets/class-servicebot-subscription-portal-widget.php (modified) (2 diffs)
-
public/widgets/js/servicebot-subscription-portal-widget.js (modified) (2 diffs)
-
servicebot.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
servicebot/trunk/includes/class-servicebot.php
r2196039 r2399608 122 122 */ 123 123 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-servicebot-public.php'; 124 124 /** 125 * The class responsible for defining all things related to the sb billing page widget 126 */ 127 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/widgets/class-servicebot-billing-page-widget.php'; 125 128 /** 126 129 * The class responsible for defining all things related to the sb subscription portal widget -
servicebot/trunk/public/widgets/class-servicebot-subscription-portal-widget.php
r2228789 r2399608 147 147 extract( $args ); 148 148 149 // Check the widget options 149 // Check the widget options 150 $billing_page_id = isset( $instance['billing_page_id'] ) ? apply_filters( 'widget_billing_page_id', $instance['billing_page_id'] ) : ''; 150 151 $title = isset( $instance['title'] ) ? apply_filters( 'widget_title', $instance['title'] ) : ''; 151 152 $servicebot_id = $this->servicebot_id; … … 226 227 'php_props_sp_widget', 227 228 array( 229 'billing_page_id' => $billing_page_id, 228 230 'livemode' => $this->livemode, 229 231 'servicebot_id' => $this->servicebot_id, -
servicebot/trunk/public/widgets/js/servicebot-subscription-portal-widget.js
r2228773 r2399608 32 32 console.log("loaded servicebot widget js", php_props_sp_widget); 33 33 34 const { livemode, servicebot_id, hash, service, tier, interval, email,34 const { billing_page_id, livemode, servicebot_id, hash, service, tier, interval, email, 35 35 customer_id, subscription_id, coupon, options, create_user, is_logged_in, 36 36 logged_in_email, login_redirect_url, admin_ajax_url, embed_type, js_version } = php_props_sp_widget; … … 90 90 if(parsedOptions.disableTiers && typeof parsedOptions.disableTiers == 'string') 91 91 parsedOptions.disableTiers = parsedOptions.disableTiers.split(','); 92 93 window.servicebotSettings = { 94 'servicebot_id': servicebot_id,95 'email': logged_in_email || email || '',96 'hash': hash,97 'service': service,98 'coupon': coupon,99 'options' : parsedOptions,100 'handleResponse' : handleResponse,101 'type': embed_type,102 'metadata': {103 'embed_type': embed_type,104 'plugin_type': 'wordpress',105 'plugin_version': js_version,92 93 94 if(billing_page_id){ 95 window.servicebotSettings = { 96 'billing_page_id': billing_page_id, 97 'email': logged_in_email || email || '', 98 'hash': hash, 99 'handleResponse' : handleResponse, 100 'metadata': { 101 'serverside_config': true, 102 'widget_type': embed_type, 103 'plugin_type': 'wordpress', 104 'plugin_version': js_version, 105 } 106 106 } 107 107 }else{ 108 window.servicebotSettings = { 109 'servicebot_id': servicebot_id, 110 'email': logged_in_email || email || '', 111 'hash': hash, 112 'service': service, 113 'coupon': coupon, 114 'options' : parsedOptions, 115 'handleResponse' : handleResponse, 116 'metadata': { 117 'widget_type': embed_type, 118 'plugin_type': 'wordpress', 119 'plugin_version': js_version, 120 } 121 122 } 108 123 } 109 124 -
servicebot/trunk/servicebot.php
r2251085 r2399608 17 17 * Plugin URI: http://www.wpexplorer.com/servicebot/ 18 18 * Description: This is a short description of what the plugin does. It's displayed in the WordPress admin area. 19 * Version: 1.1. 619 * Version: 1.1.7 20 20 * Author: Servicebot 21 21 * Author URI: https://servicebot.io … … 36 36 * Rename this for your plugin and update it as you release new versions. 37 37 */ 38 define( 'SERVICEBOT_VERSION', '1.1. 6' );38 define( 'SERVICEBOT_VERSION', '1.1.7' ); 39 39 40 40 /**
Note: See TracChangeset
for help on using the changeset viewer.