diff --git a/wp-tipsy-payment-info/ReadMe.txt b/wordpress-plugin/tipsy-payments/readme.txt similarity index 55% rename from wp-tipsy-payment-info/ReadMe.txt rename to wordpress-plugin/tipsy-payments/readme.txt index 74d827b..d062160 100755 --- a/wp-tipsy-payment-info/ReadMe.txt +++ b/wordpress-plugin/tipsy-payments/readme.txt @@ -1,15 +1,15 @@ -=== Plugin Name === -Contributors: schilippe -Tags: code insert, head tag, tipsy +=== Tipsy Payment Info === +Contributors: schilippe, geekysoft +Tags: tipsy, monetization, micropayments, paypal, dwolla Requires at least: 2.1 -Tested up to: 4 -Stable tag: 2.0 +Tested up to: 4.7.2 +Stable tag: 2.1 -Inserts Tipsy Payment Info into head tag of wordpress webpage +Enables micropayments from visitors with the [Tipsy browser extension](http://tipsy.csail.mit.edu/). == Description == -This plugin makes it easy for content creators to include the necessary information in their page's source so that they can be paid by Tipsy users. It opens as a simple form under the Tools menu. +This plugin makes it easy for content creators to include the necessary information in their page's source so that they can be paid by Tipsy users. Invisible metadata with payment information is added to your pages, so Tipsy works with any and all theme. == Installation == diff --git a/wordpress-plugin/tipsy-payments/tipsy-payments.php b/wordpress-plugin/tipsy-payments/tipsy-payments.php new file mode 100755 index 0000000..ba8fe91 --- /dev/null +++ b/wordpress-plugin/tipsy-payments/tipsy-payments.php @@ -0,0 +1,56 @@ +

Insert Tipsy Payment Info


" ; + $inputs .= "
" . wp_nonce_field('update-options'); + $inputs .= "

Enter your PayPal email:


" ; + $inputs .= "

Enter your Dwolla key :


" ; + $inputs .= " +
"; + echo $inputs; +} + +function tipsy_inject($content){ + $ppe = esc_html(get_option(tipsy_paypal_email)); + $dwk = esc_html(get_option(tipsy_dwolla_key)); + + if ($ppe === '' && $dwk === '' ) { + return; + } + $string = ' diff --git a/wp-tipsy-payment-info/TipsyInjection.php b/wp-tipsy-payment-info/TipsyInjection.php deleted file mode 100755 index c50578b..0000000 --- a/wp-tipsy-payment-info/TipsyInjection.php +++ /dev/null @@ -1,51 +0,0 @@ -

Insert Tipsy Payment Info


" ; - $inputs .= "
" . wp_nonce_field('update-options'); - $inputs .= "

Enter your PayPal email:


" ; - $inputs .= "

Enter your Dwolla key :


" ; - $inputs .= " -
"; - echo $inputs; -} - -function inject($content){ - $ppe = get_option(paypal_email); - $dwk = get_option(dwolla_key); - - if ($ppe === '' && $dwk === '' ) { - return; - } - $string = "