Changeset 1068215
- Timestamp:
- 01/15/2015 12:34:31 AM (10 years ago)
- Location:
- onscribe/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
onscribe/trunk/assets/onscribe.js
r948453 r1068215 1 2 1 // Namespaces: 3 2 // - settings page: body.settings_page_onscribe-admin … … 11 10 products: null 12 11 } 12 //var host = (onscribe.dev) ? "localhost" : "onscri.be"; 13 var host = "onscri.be"; 13 14 14 15 $(document).ready(function(){ … … 26 27 if( key == "" && secret == "" ) return document.createElement('form').submit.call( $form[0] ); 27 28 // get product details 28 var host = (onscribe.dev) ? "localhost" : "onscri.be"; 29 $.getJSON("//"+ host +"/api/product/info/"+ key, function( result ){ 29 $.getJSON("//"+ host +"/product/info/"+ key, function( result ){ 30 30 if( $.isEmptyObject(result) ) return alert("The product you entered wasn't recognized"); 31 31 // update data -
onscribe/trunk/onscribe.php
r948453 r1068215 2 2 /* 3 3 Plugin Name: Onscribe 4 Version: 0.1. 04 Version: 0.1.1 5 5 Plugin URI: http://www.github.com/onscribe/wordpress/ 6 6 Description: Simple integration for Onscribe. Adds subscription buttons to any webpage. -
onscribe/trunk/readme.txt
r948453 r1068215 4 4 Tags: onscribe, subscription, paypal, wallet, credits, facebook, free, service, subs 5 5 Requires at least: 3.9 6 Tested up to: 3.9.17 Stable tag: 0.1. 06 Tested up to: 4.1 7 Stable tag: 0.1.1 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl.txt … … 50 50 = What are subscriptions for? = 51 51 52 To allow fans of any blog show their support in a meaningful way while blog owners rec ieve an immediate reward for their efforts that's in a recurring format, which creates a more predictable income stream.52 To allow fans of any blog show their support in a meaningful way while blog owners receive an immediate reward for their efforts that's in a recurring format, which creates a more predictable income stream. 53 53 54 54 = Do I need an Onscribe account? = 55 55 56 Yes, signing up is f or free and setting up your Onscribe account is only required once, for yourpeace of mind. You can register any time by visiting: http://onscri.be56 Yes, signing up is free and setting up your Onscribe account is only required once, allowing you to create multiple subscriptions with peace of mind. You can register any time by visiting: http://onscri.be 57 57 58 58 = Can I customize my buttons? = … … 71 71 == Changelog == 72 72 73 = 0.1.1 = 74 * Updated the product info endpoint to match Onscribe v1.3.0 75 76 73 77 = 0.1.0 = 74 78 * Initial release. Adding products and generating shortcodes with a wizard (meta box) … … 77 81 == Upgrade Notice == 78 82 83 = 0.1.1 = 84 Breaking changes in the API as of Onscribe v1.3.0 require you to upgrade. 85 79 86 = 0.1.0 = 80 87 Install to start using Onscribe with your Wordpress blog. -
onscribe/trunk/settings.php
r948453 r1068215 130 130 public function sanitize( $input ) 131 131 { 132 $input["products"] = json_decode( $input["products"] ); 132 133 $input["products"] = ( is_string( $input["products"] ) ) ? json_decode( $input["products"] ) : $input["products"]; 133 134 if( empty( $input["products"] ) ) $input["products"] = array(); 134 135 … … 159 160 public function onscribe_products_list() 160 161 { 161 if( !array_key_exists("products", $this->options) || empty($this->options["products"]) ){162 if( ( is_array($this->options) && !array_key_exists("products", $this->options) ) || empty($this->options["products"]) ){ 162 163 echo "<p>No products registered yet. Please add them using the fields below</p>"; 163 164 return;
Note: See TracChangeset
for help on using the changeset viewer.