Changeset 2421969
- Timestamp:
- 11/20/2020 01:47:03 AM (5 years ago)
- Location:
- very-simple-paypal-donation-form/trunk
- Files:
-
- 6 edited
-
lib/class.vsdf-main.php (modified) (1 diff)
-
lib/class.vsdf-settings.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
views/donationform.php (modified) (2 diffs)
-
views/settings.php (modified) (1 diff)
-
vs_donor_form.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
very-simple-paypal-donation-form/trunk/lib/class.vsdf-main.php
r2044834 r2421969 76 76 'paypal_email' => '', 77 77 'the_currency' => 'USD', 78 'the_currency_symbol' => '$', 78 79 'the_amounts' => '5, 25, 50, 100', 79 80 'default_checked_amount' => '25', -
very-simple-paypal-donation-form/trunk/lib/class.vsdf-settings.php
r2044834 r2421969 51 51 52 52 add_settings_field( 53 'the_currency_symbol', 54 __( 'Currency Symbol', 'vsdf' ), 55 array($this, 'the_currency_symbol_render'), 56 'vsdf_page', 57 'vsdf_donation_settings' 58 ); 59 60 add_settings_field( 53 61 'the_amounts', 54 62 __( 'Amount Options', 'vsdf' ), … … 127 135 $options = $vsdf->get_options(); 128 136 ?> 129 <input type='text' id="the_currency" name='vsdf_settings[the_currency]' value='<?php echo $options['the_currency']; ?>' >137 <input type='text' id="the_currency" name='vsdf_settings[the_currency]' value='<?php echo $options['the_currency']; ?>' style="width: 50px;"> 130 138 <br /> 131 139 <div class="note">A list of currency codes can be found on <a href="https://developer.paypal.com/docs/integration/direct/rest/currency-codes/" target-"_blank">PayPal's website</a>.</div> 140 <?php 141 } 142 143 function the_currency_symbol_render( ) { 144 global $vsdf; 145 $options = $vsdf->get_options(); 146 ?> 147 <input type='text' id="the_currency_symbol" name='vsdf_settings[the_currency_symbol]' value='<?php echo $options['the_currency_symbol']; ?>' style="width: 30px;"> 132 148 <?php 133 149 } -
very-simple-paypal-donation-form/trunk/readme.txt
r2044836 r2421969 3 3 Tags: donate, paypal, shortcode 4 4 Requires at least: 4.4 5 Tested up to: 5. 16 Stable tag: 1. 25 Tested up to: 5.5 6 Stable tag: 1.3 7 7 8 8 Put a simple PayPal donation form on any post or page with a shortcode. … … 31 31 == Changelog == 32 32 33 = 1.3 = 34 * You can now specify a currency symbol to display on the form. 35 33 36 = 1.2 = 34 37 * You can now specify currency. -
very-simple-paypal-donation-form/trunk/views/donationform.php
r2044834 r2421969 13 13 $radios .= '<input class="hidden radio-label" type="radio" name="radio_amount" value="'.$amt.'" id="amount-'.$amt.'" '; 14 14 if ($checked == $amt) $radios .= 'checked="checked"'; 15 $radios .= '/><label class="button-label" for="amount-'.$amt.'"><h1> $'.$amt.'</h1></label>';15 $radios .= '/><label class="button-label" for="amount-'.$amt.'"><h1>'.$options['the_currency_symbol'].$amt.'</h1></label>'; 16 16 $css .= '#amount-'.$amt.':checked + .button-label { background: #0bd451; color: #efefef; } 17 17 #amount-'.$amt.':checked + .button-label:hover { background: #05ae40; color: #e2e2e2; }'; … … 24 24 <label class="button-label" for="amount-other"><h1>Other</h1></label> 25 25 <div class="pre_dollar"><input type="number" id="amount-typed" name="amount-typed" value="<?php echo $options['other_amount']; ?>" /></div> 26 <style type="text/css">#vsdf_form .pre_dollar:before { content: '<?php echo $options['the_currency_symbol'] ?>';}</style> 26 27 </div> 27 28 -
very-simple-paypal-donation-form/trunk/views/settings.php
r1841023 r2421969 37 37 html += '<label for="vsdf_settings[default_checked_amount]" class="amountsradio"><input type="radio" name="vsdf_settings[default_checked_amount]" value="'+amounts[i].trim()+'"'; 38 38 if (radioValue == amounts[i].trim()) html += ' checked="checked"'; 39 html += '> $'+amounts[i].trim()+'</label> ';39 html += '>'+jQuery('#the_currency_symbol').val()+amounts[i].trim()+'</label> '; 40 40 } 41 41 jQuery('.amountsradio').parent().html(html); -
very-simple-paypal-donation-form/trunk/vs_donor_form.php
r2044834 r2421969 5 5 * Author: Aaron Hodge Silver 6 6 * Author URI: http://springthistle.com/ 7 * Version: 1. 27 * Version: 1.3 8 8 9 9 This program is free software: you can redistribute it and/or modify
Note: See TracChangeset
for help on using the changeset viewer.