Plugin Directory

Changeset 1068215


Ignore:
Timestamp:
01/15/2015 12:34:31 AM (10 years ago)
Author:
kdiweb
Message:

Onscribe Version 0.1.1

Location:
onscribe/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • onscribe/trunk/assets/onscribe.js

    r948453 r1068215  
    1 
    21// Namespaces:
    32// - settings page: body.settings_page_onscribe-admin
     
    1110    products: null
    1211}
     12//var host = (onscribe.dev) ? "localhost" : "onscri.be";
     13var host = "onscri.be";
    1314
    1415$(document).ready(function(){
     
    2627        if( key == "" && secret == "" ) return document.createElement('form').submit.call( $form[0] );
    2728        // 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 ){
    3030            if( $.isEmptyObject(result) ) return alert("The product you entered wasn't recognized");
    3131            // update data
  • onscribe/trunk/onscribe.php

    r948453 r1068215  
    22/*
    33Plugin Name: Onscribe
    4 Version: 0.1.0
     4Version: 0.1.1
    55Plugin URI: http://www.github.com/onscribe/wordpress/
    66Description: Simple integration for Onscribe. Adds subscription buttons to any webpage.
  • onscribe/trunk/readme.txt

    r948453 r1068215  
    44Tags: onscribe, subscription, paypal, wallet, credits, facebook, free, service, subs
    55Requires at least: 3.9
    6 Tested up to: 3.9.1
    7 Stable tag: 0.1.0
     6Tested up to: 4.1
     7Stable tag: 0.1.1
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl.txt
     
    5050= What are subscriptions for? =
    5151
    52 To allow fans of any blog show their support in a meaningful way while blog owners recieve an immediate reward for their efforts that's in a recurring format, which creates a more predictable income stream.
     52To 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.
    5353
    5454= Do I need an Onscribe account? =
    5555
    56 Yes, signing up is for free and setting up your Onscribe account is only required once, for your peace of mind. You can register any time by visiting: http://onscri.be
     56Yes, 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
    5757
    5858= Can I customize my buttons? =
     
    7171== Changelog ==
    7272
     73= 0.1.1 =
     74* Updated the product info endpoint to match Onscribe v1.3.0
     75
     76
    7377= 0.1.0 =
    7478* Initial release. Adding products and generating shortcodes with a wizard (meta box)
     
    7781== Upgrade Notice ==
    7882
     83= 0.1.1 =
     84Breaking changes in the API as of Onscribe v1.3.0 require you to upgrade.
     85
    7986= 0.1.0 =
    8087Install to start using Onscribe with your Wordpress blog.
  • onscribe/trunk/settings.php

    r948453 r1068215  
    130130    public function sanitize( $input )
    131131    {
    132         $input["products"] = json_decode( $input["products"] );
     132
     133        $input["products"] = ( is_string( $input["products"] ) ) ? json_decode( $input["products"] ) : $input["products"];
    133134        if( empty( $input["products"] ) ) $input["products"] = array();
    134135
     
    159160    public function onscribe_products_list()
    160161    {
    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"]) ){
    162163            echo "<p>No products registered yet. Please add them using the fields below</p>";
    163164            return;
Note: See TracChangeset for help on using the changeset viewer.