30 Oct '14, 3pm

Collecting Donations With WordPress: Bitcoin

<?php /* Plugin Name: Bitcoin Donate Plugin URI: http://code.tutsplus.com Description: Simple Bitcoin donation plugin. Version: 1.0.0 Author: Sam Berson Author URI: http://www.samberson.com/ */ function bitcoin_donate_shortcode() { $donate_options = get_option( 'bitcoin_donate_options' ); $address = $donate_options['bitcoin_address']; $counter = $donate_options['bitcoin_counter']; ob_start(); ?> <script src="http://coinwidget.com/widget/coin.js"></script> <script> CoinWidgetCom.go({ wallet_address: '<?php echo $address; ?>', currency: 'bitcoin', counter: '<?php echo $counter; ?>', alignment: 'bl', qrcode: true, auto_show: false, lbl_button: '<?php _e( 'Donate', 'bitcoin_donate' ) ?>', lbl_address: '<?php _e( 'My Bitcoin Address:', 'bitcoin_donate' ) ?>', lbl_count: 'donations', lbl_amount: 'BTC' }); </script> <?php return ob_get_clean(); } add_shortcode( 'donate', 'bitcoin...

Full article: http://code.tutsplus.com/tutorials/collecting-donations-w...

Tweets

Top 12 #WordPress Portfolio Themes for Creative...

hackerspace.lifehacker.com 30 Oct '14, 12pm

Boasting a clean, minimalistic design with a bold and carefully thought typography, Senna let's your works shine and play ...