Changeset 1764533
- Timestamp:
- 11/12/2017 09:12:42 PM (7 years ago)
- Location:
- peerraiser
- Files:
-
- 13 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
peerraiser/tags/1.1.6
- Property svn:ignore
-
old new 1 1 README.md 2 Thumbs.db3 .github/*4 2 .git 5 .gitattributes6 3 .gitignore
-
- Property svn:ignore
-
peerraiser/tags/1.1.6/README.txt
r1723790 r1764533 3 3 Tags: peer to peer, fundraising, donation, donation plugin, nonprofit, donate, crowdfunding, social fundraising, charity, nate allen, fundraising plugin, giving, stripe, donations, non-profit, church, gifts, campaigns, donation plugins, teams, peer raiser 4 4 Requires at least: 4.4.0 5 Tested up to: 4.8. 16 Stable tag: 1.1. 55 Tested up to: 4.8. 6 Stable tag: 1.1. 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 56 56 == Changelog == 57 57 58 59 60 58 61 = 1.1.5 = 59 62 * Use get_option to get the peerraiser_slug value 60 63 61 64 = 1.1.4 = 62 * Fix issue with variable in empty() function65 * Fix issue with variable in empty() function 63 66 64 67 = 1.1.3 = 65 * Add support for more currencies66 * Fix donation widget so it doesn't show test donations68 * Add support for more currencies 69 * Fix donation widget so it doesn't show test donations 67 70 68 71 = 1.1.2 = 69 * Delete donor meta when donor is deleted70 * Delete donation meta when donation is deleted72 * Delete donor meta when donor is deleted 73 * Delete donation meta when donation is deleted 71 74 72 75 = 1.1.1 = 73 * Add default widgets to sidebars when plugin is installed76 * Add default widgets to sidebars when plugin is installed 74 77 75 78 = 1.1.0 = 76 * Add 'participant_id' column to the donations database79 * Add 'participant_id' column to the donations database 77 80 78 81 = 1.0.7 = 79 82 * If only one campaign is available, that campaign is now pre-selected on donation page 80 * Exclud etest donations when getting total donations81 * Fix filter peerraiser_donor_updated_{$key} not firing properly83 * Exclud test donations when getting total donations 84 * Fix filter peerraiser_donor_updated_{$key} not firing properly 82 85 83 86 = 1.0.6 = 84 * Fix issue with Step 1 not showing check mark when account connected85 * Fix link to add a new campaign in Step 287 * Fix issue with Step 1 not showing check mark when account connected 88 * Fix link to add a new campaign in Step 2 86 89 87 90 = 1.0.5 = 88 * Fix issue with connection controller using staging server instead of live server91 * Fix issue with connection controller using staging server instead of live server 89 92 90 93 = 1.0.4 = 91 * Convert some custom post types to custom tables94 * Convert some custom post types to custom tables 92 95 93 96 = 1.0.4 = -
peerraiser/tags/1.1.6/application/controller/frontend/class-shortcode.php
r1712702 r1764533 35 35 'currency_symbol' => peerraiser_get_currency_symbol(), 36 36 'currency_position' => $plugin_options['currency_position'], 37 37 38 'campaign_select_class' => $this->get_campaign_select_class(), 38 39 'fundraiser_select_class' => $this->get_fundraiser_select_class(), -
peerraiser/tags/1.1.6/application/model/admin/class-settings.php
r1712702 r1764533 167 167 'type' => 'text', 168 168 'default_cb' => array( $this, 'get_field_value' ), 169 170 171 172 173 174 169 175 ), 170 176 ) … … 434 440 break; 435 441 442 443 444 445 436 446 case 'fundraiser_slug': 437 447 $field_value = ( isset($plugin_options[$field['id']]) ) ? $plugin_options[$field['id']] : 'give'; -
peerraiser/tags/1.1.6/assets/css/peerraiser-frontend.css
r1723800 r1764533 11 11 margin: 0 auto; 12 12 } 13 14 15 16 13 17 .signup-form-wrapper, 14 18 .login-form-wrapper { 15 19 margin-bottom: 20px; 16 20 background-color: #fff; 17 border: 1px solid transparent;21 border: 1px solid ; 18 22 border-radius: 4px; 19 border-color: #bce8f1;20 23 -webkit-box-shadow: 0 1px 1px rgba(0,0,0,.05); 21 24 box-shadow: 0 1px 1px rgba(0,0,0,.05); … … 68 71 text-decoration: none; 69 72 background: 0 0; 70 font-size: 11 .2px;73 font-size: 11px; 71 74 line-height: 16px; 72 75 display: block; … … 112 115 line-height: 1.428571429; 113 116 color: #555; 114 background-color: #fff; 115 background-image: none; 117 background: #fff none; 116 118 border: 1px solid #ccc; 117 119 border-radius: 4px; … … 169 171 vertical-align: middle; 170 172 cursor: pointer; 171 background-image: none;172 border: 1px solid transparent;173 173 white-space: nowrap; 174 174 padding: 6px 12px; … … 179 179 -moz-user-select: none; 180 180 -ms-user-select: none; 181 -o-user-select: none;182 181 user-select: none; 183 182 color: #fff; 184 background -color: #5cb85c;185 border -color:#4cae4c;183 background; 184 border #4cae4c; 186 185 text-transform: none; 187 186 } … … 216 215 .peerraiser-registration-form .error-message { 217 216 background-color: #f2dede; 218 border-color: #ebccd1;219 217 color: #a94442; 220 218 padding: 15px; … … 263 261 font-size: 14px; 264 262 display: block; 265 padding: 10px 20px;266 263 color: #fff; 267 264 border-top: 1px solid rgba(255,255,255, 0.25); … … 269 266 outline: 0; 270 267 border-bottom: 0; 271 padding -left:40px;268 padding 40px; 272 269 text-decoration: none; 273 270 } … … 293 290 -webkit-box-shadow: inset 0 3px 5px rgba(0,0,0,0.125); 294 291 box-shadow: inset 0 3px 5px rgba(0,0,0,0.125); 292 293 294 295 295 } 296 296 .peerraiser-dashboard .fundraisers { … … 364 364 display: inline-block; 365 365 font: normal normal normal 14px/1 FontAwesome; 366 font-size: inherit;367 366 text-rendering: auto; 368 367 -webkit-font-smoothing: antialiased; … … 700 699 display: inline-block; 701 700 overflow: hidden; 702 cursor: pointer;703 701 } 704 702 .peerraiser-image-upload .file-label span { … … 718 716 background: url('../images/upload.png') no-repeat 6px center #767676; 719 717 display: inline-block; 720 padding: 0.625rem 1.25rem; 721 padding-left: 32px; 718 padding: 0.625rem 1.25rem 0.625rem 32px; 722 719 border-right: 1px solid #bbb; 723 720 } … … 881 878 -o-transition: all .2s ease-in-out; 882 879 transition: all .2s ease-in-out; 883 text-align: center;884 880 width: auto; 885 881 } … … 924 920 text-transform: uppercase; 925 921 font-weight: normal; 926 letter-spacing: 1 .25px;922 letter-spacing: 1px; 927 923 } 928 924 .peerraiser-top-fundraisers a, … … 948 944 margin-left: 0; 949 945 padding-left: 0; 950 list-style: inside; 951 list-style-type: decimal; 946 list-style: decimal inside; 952 947 } 953 948 .peerraiser-thermometer-container { … … 961 956 width: 100%; 962 957 background-color: #eee; 963 box-shadow: inset 0 px1px 3px rgba(0,0,0,0.2);958 box-shadow: inset 0 1px 3px rgba(0,0,0,0.2); 964 959 margin-bottom: .25rem; 965 960 } … … 968 963 display: block; 969 964 float: left; 970 width: 0 %;965 width: 0; 971 966 background: #3798d9; 972 box-shadow: inset 0 px-1px 2px rgba(0,0,0,0.1);967 box-shadow: inset 0 -1px 2px rgba(0,0,0,0.1); 973 968 -webkit-transition: width 0.8s ease-in-out; 974 969 transition: width 0.8s ease-in-out; … … 1082 1077 -moz-user-select: none; 1083 1078 -ms-user-select: none; 1084 -o-user-select: none;1085 1079 user-select: none; 1086 1080 } … … 1170 1164 line-height: 1.25; 1171 1165 color: #464a4c; 1172 background-color: #f7f7f7; 1173 background-image: none; 1166 background: #f7f7f7 none; 1174 1167 -webkit-background-clip: padding-box; 1175 1168 background-clip: padding-box; 1176 border: 1px solid rgba(0,0,0,.15);1177 1169 border-radius: .25rem; 1178 border -color:rgba(0, 0, 0, 0.15);1170 border rgba(0, 0, 0, 0.15); 1179 1171 } 1180 1172 form.peerraiser-donation-form .peerraiser-donation-amount-other .peerraiser-donation-input:focus { … … 1209 1201 -moz-user-select: none; 1210 1202 -ms-user-select: none; 1211 -o-user-select: none;1212 1203 user-select: none; 1213 1204 } -
peerraiser/tags/1.1.6/peerraiser.php
r1723790 r1764533 4 4 * Plugin URI: https://PeerRaiser.com 5 5 * Description: PeerRaiser makes it easy to create powerful peer-to-peer fundraising campaigns on your own WordPress site. 6 * Version: 1.1. 56 * Version: 1.1. 7 7 * Author: Nate Allen 8 8 * Author URI: https://peerraiser.com/ -
peerraiser/tags/1.1.6/views/frontend/donation-form.php
r1713869 r1764533 13 13 </section> 14 14 15 <section class="peerraiser-fundraiser-selection <?php echo $peerraiser['fundraiser_select_class']; ?>"<?php if ( isset( $_GET['campaign']) && empty( $peerraiser['fundraisers'] ) ) echo ' style="display:none;"'; ?>> 16 <select name="fundraiser" id="fundraiser_select"> 17 <option value=""><?php _e( 'Select a Fundraiser to Support (optional)', 'peerraiser' ); ?></option> 18 <?php foreach( $peerraiser['fundraisers'] as $fundraiser ) : ?> 19 <option value="<?php echo $fundraiser->fundraiser_slug; ?>" <?php selected( get_query_var( 'peerraiser_fundraiser' ), $fundraiser->fundraiser_slug ) ?>><?php echo $fundraiser->fundraiser_name; ?></option> 20 <?php endforeach; ?> 21 </select> 22 </section> 15 <?php if ( count( $peerraiser['fundraisers'] ) > 0 ) : ?> 16 <section class="peerraiser-fundraiser-selection <?php echo $peerraiser['fundraiser_select_class']; ?>"<?php if ( isset( $_GET['campaign']) && empty( $peerraiser['fundraisers'] ) ) echo ' style="display:none;"'; ?>> 17 <select name="fundraiser" id="fundraiser_select"> 18 <option value=""><?php _e( 'Select a Fundraiser to Support (optional)', 'peerraiser' ); ?></option> 19 <?php foreach( $peerraiser['fundraisers'] as $fundraiser ) : ?> 20 <option value="<?php echo $fundraiser->fundraiser_slug; ?>" <?php selected( get_query_var( 'peerraiser_fundraiser' ), $fundraiser->fundraiser_slug ) ?>><?php echo $fundraiser->fundraiser_name; ?></option> 21 <?php endforeach; ?> 22 </select> 23 </section> 24 <?php endif; ?> 23 25 24 26 <section class="peerraiser-donation-amounts"> … … 26 28 <?php // TODO: Add setting for donation amounts instead of hard coding them ?> 27 29 <ul class="peerraiser-donation-amount-buttons"> 28 <li class="default-amounts"><input type="radio" name="donation_amount" value="25" class="peerraiser-donation-button" id="button_1" ><label for="button_1"><?php echo peerraiser_money_format( 25, true, false ); ?></label>30 <li class="default-amounts"><input type="radio" name="donation_amount" value="25" class="peerraiser-donation-button" id="button_1"><label for="button_1"><?php echo peerraiser_money_format( 25, true, false ); ?></label> 29 31 <li class="default-amounts"><input type="radio" name="donation_amount" value="50" class="peerraiser-donation-button" id="button_2"><label for="button_2"><?php echo peerraiser_money_format( 50, true, false ); ?></label> 30 32 <li class="default-amounts"><input type="radio" name="donation_amount" value="100" class="peerraiser-donation-button" id="button_3"><label for="button_3"><?php echo peerraiser_money_format( 100, true, false ); ?></label> … … 37 39 <?php endif; ?> 38 40 39 40 <?php if ( $peerraiser['currency_position'] === 'before' ) : ?> 41 <?php /* translators: 1: Currency symbol 2: Donation amount */ ?> 42 <?php $field_placeholder = sprintf( __( 'Other Amount (%1$s%2$s Min)', 'peerraiser' ), $peerraiser['currency_symbol'], '10' ); ?> 43 <?php else : ?> 44 <?php /* translators: 1: Donation amount 2: Currency symbol */ ?> 45 <?php $field_placeholder = sprintf( __( 'Other Amount (%1$s%2$s Min)', 'peerraiser' ), '10', $peerraiser['currency_symbol'] ); ?> 46 <?php endif; ?> 41 <?php if ( $peerraiser['donation_minimum'] ) : ?> 42 <?php if ( $peerraiser['currency_position'] === 'before' ) : ?> 43 <?php /* translators: 1: Currency symbol 2: Minimum donation amount */ ?> 44 <?php $field_placeholder = sprintf( __( 'Other Amount (%1$s%2$s Min)', 'peerraiser' ), $peerraiser['currency_symbol'], $peerraiser['donation_minimum'] ); ?> 45 <?php else : ?> 46 <?php /* translators: 1: Minimum donation amount 2: Currency symbol */ ?> 47 <?php $field_placeholder = sprintf( __( 'Other Amount (%1$s%2$s Min)', 'peerraiser' ), $peerraiser['donation_minimum'], $peerraiser['currency_symbol'] ); ?> 48 <?php endif; ?> 49 <?php else : ?> 50 <?php $field_placeholder = __( 'Other Amount', 'peerraiser' ); ?> 51 <?php endif; ?> 47 52 <input name="other_amount" class="peerraiser-donation-input" value="" maxlength="8" type="number" autocomplete="off" placeholder="<?php echo $field_placeholder; ?>" data-minimum="10" aria-label="Enter Donation Amount USD Min. $10"> 48 53 -
peerraiser/trunk
- Property svn:ignore
-
old new 1 1 README.md 2 Thumbs.db3 .github/*4 2 .git 5 .gitattributes6 3 .gitignore
-
- Property svn:ignore
-
peerraiser/trunk/README.txt
r1723790 r1764533 3 3 Tags: peer to peer, fundraising, donation, donation plugin, nonprofit, donate, crowdfunding, social fundraising, charity, nate allen, fundraising plugin, giving, stripe, donations, non-profit, church, gifts, campaigns, donation plugins, teams, peer raiser 4 4 Requires at least: 4.4.0 5 Tested up to: 4.8. 16 Stable tag: 1.1. 55 Tested up to: 4.8. 6 Stable tag: 1.1. 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 56 56 == Changelog == 57 57 58 59 60 58 61 = 1.1.5 = 59 62 * Use get_option to get the peerraiser_slug value 60 63 61 64 = 1.1.4 = 62 * Fix issue with variable in empty() function65 * Fix issue with variable in empty() function 63 66 64 67 = 1.1.3 = 65 * Add support for more currencies66 * Fix donation widget so it doesn't show test donations68 * Add support for more currencies 69 * Fix donation widget so it doesn't show test donations 67 70 68 71 = 1.1.2 = 69 * Delete donor meta when donor is deleted70 * Delete donation meta when donation is deleted72 * Delete donor meta when donor is deleted 73 * Delete donation meta when donation is deleted 71 74 72 75 = 1.1.1 = 73 * Add default widgets to sidebars when plugin is installed76 * Add default widgets to sidebars when plugin is installed 74 77 75 78 = 1.1.0 = 76 * Add 'participant_id' column to the donations database79 * Add 'participant_id' column to the donations database 77 80 78 81 = 1.0.7 = 79 82 * If only one campaign is available, that campaign is now pre-selected on donation page 80 * Exclud etest donations when getting total donations81 * Fix filter peerraiser_donor_updated_{$key} not firing properly83 * Exclud test donations when getting total donations 84 * Fix filter peerraiser_donor_updated_{$key} not firing properly 82 85 83 86 = 1.0.6 = 84 * Fix issue with Step 1 not showing check mark when account connected85 * Fix link to add a new campaign in Step 287 * Fix issue with Step 1 not showing check mark when account connected 88 * Fix link to add a new campaign in Step 2 86 89 87 90 = 1.0.5 = 88 * Fix issue with connection controller using staging server instead of live server91 * Fix issue with connection controller using staging server instead of live server 89 92 90 93 = 1.0.4 = 91 * Convert some custom post types to custom tables94 * Convert some custom post types to custom tables 92 95 93 96 = 1.0.4 = -
peerraiser/trunk/application/controller/frontend/class-shortcode.php
r1712702 r1764533 35 35 'currency_symbol' => peerraiser_get_currency_symbol(), 36 36 'currency_position' => $plugin_options['currency_position'], 37 37 38 'campaign_select_class' => $this->get_campaign_select_class(), 38 39 'fundraiser_select_class' => $this->get_fundraiser_select_class(), -
peerraiser/trunk/application/model/admin/class-settings.php
r1712702 r1764533 167 167 'type' => 'text', 168 168 'default_cb' => array( $this, 'get_field_value' ), 169 170 171 172 173 174 169 175 ), 170 176 ) … … 434 440 break; 435 441 442 443 444 445 436 446 case 'fundraiser_slug': 437 447 $field_value = ( isset($plugin_options[$field['id']]) ) ? $plugin_options[$field['id']] : 'give'; -
peerraiser/trunk/assets/css/peerraiser-frontend.css
r1723800 r1764533 11 11 margin: 0 auto; 12 12 } 13 14 15 16 13 17 .signup-form-wrapper, 14 18 .login-form-wrapper { 15 19 margin-bottom: 20px; 16 20 background-color: #fff; 17 border: 1px solid transparent;21 border: 1px solid ; 18 22 border-radius: 4px; 19 border-color: #bce8f1;20 23 -webkit-box-shadow: 0 1px 1px rgba(0,0,0,.05); 21 24 box-shadow: 0 1px 1px rgba(0,0,0,.05); … … 68 71 text-decoration: none; 69 72 background: 0 0; 70 font-size: 11 .2px;73 font-size: 11px; 71 74 line-height: 16px; 72 75 display: block; … … 112 115 line-height: 1.428571429; 113 116 color: #555; 114 background-color: #fff; 115 background-image: none; 117 background: #fff none; 116 118 border: 1px solid #ccc; 117 119 border-radius: 4px; … … 169 171 vertical-align: middle; 170 172 cursor: pointer; 171 background-image: none;172 border: 1px solid transparent;173 173 white-space: nowrap; 174 174 padding: 6px 12px; … … 179 179 -moz-user-select: none; 180 180 -ms-user-select: none; 181 -o-user-select: none;182 181 user-select: none; 183 182 color: #fff; 184 background -color: #5cb85c;185 border -color:#4cae4c;183 background; 184 border #4cae4c; 186 185 text-transform: none; 187 186 } … … 216 215 .peerraiser-registration-form .error-message { 217 216 background-color: #f2dede; 218 border-color: #ebccd1;219 217 color: #a94442; 220 218 padding: 15px; … … 263 261 font-size: 14px; 264 262 display: block; 265 padding: 10px 20px;266 263 color: #fff; 267 264 border-top: 1px solid rgba(255,255,255, 0.25); … … 269 266 outline: 0; 270 267 border-bottom: 0; 271 padding -left:40px;268 padding 40px; 272 269 text-decoration: none; 273 270 } … … 293 290 -webkit-box-shadow: inset 0 3px 5px rgba(0,0,0,0.125); 294 291 box-shadow: inset 0 3px 5px rgba(0,0,0,0.125); 292 293 294 295 295 } 296 296 .peerraiser-dashboard .fundraisers { … … 364 364 display: inline-block; 365 365 font: normal normal normal 14px/1 FontAwesome; 366 font-size: inherit;367 366 text-rendering: auto; 368 367 -webkit-font-smoothing: antialiased; … … 700 699 display: inline-block; 701 700 overflow: hidden; 702 cursor: pointer;703 701 } 704 702 .peerraiser-image-upload .file-label span { … … 718 716 background: url('../images/upload.png') no-repeat 6px center #767676; 719 717 display: inline-block; 720 padding: 0.625rem 1.25rem; 721 padding-left: 32px; 718 padding: 0.625rem 1.25rem 0.625rem 32px; 722 719 border-right: 1px solid #bbb; 723 720 } … … 881 878 -o-transition: all .2s ease-in-out; 882 879 transition: all .2s ease-in-out; 883 text-align: center;884 880 width: auto; 885 881 } … … 924 920 text-transform: uppercase; 925 921 font-weight: normal; 926 letter-spacing: 1 .25px;922 letter-spacing: 1px; 927 923 } 928 924 .peerraiser-top-fundraisers a, … … 948 944 margin-left: 0; 949 945 padding-left: 0; 950 list-style: inside; 951 list-style-type: decimal; 946 list-style: decimal inside; 952 947 } 953 948 .peerraiser-thermometer-container { … … 961 956 width: 100%; 962 957 background-color: #eee; 963 box-shadow: inset 0 px1px 3px rgba(0,0,0,0.2);958 box-shadow: inset 0 1px 3px rgba(0,0,0,0.2); 964 959 margin-bottom: .25rem; 965 960 } … … 968 963 display: block; 969 964 float: left; 970 width: 0 %;965 width: 0; 971 966 background: #3798d9; 972 box-shadow: inset 0 px-1px 2px rgba(0,0,0,0.1);967 box-shadow: inset 0 -1px 2px rgba(0,0,0,0.1); 973 968 -webkit-transition: width 0.8s ease-in-out; 974 969 transition: width 0.8s ease-in-out; … … 1082 1077 -moz-user-select: none; 1083 1078 -ms-user-select: none; 1084 -o-user-select: none;1085 1079 user-select: none; 1086 1080 } … … 1170 1164 line-height: 1.25; 1171 1165 color: #464a4c; 1172 background-color: #f7f7f7; 1173 background-image: none; 1166 background: #f7f7f7 none; 1174 1167 -webkit-background-clip: padding-box; 1175 1168 background-clip: padding-box; 1176 border: 1px solid rgba(0,0,0,.15);1177 1169 border-radius: .25rem; 1178 border -color:rgba(0, 0, 0, 0.15);1170 border rgba(0, 0, 0, 0.15); 1179 1171 } 1180 1172 form.peerraiser-donation-form .peerraiser-donation-amount-other .peerraiser-donation-input:focus { … … 1209 1201 -moz-user-select: none; 1210 1202 -ms-user-select: none; 1211 -o-user-select: none;1212 1203 user-select: none; 1213 1204 } -
peerraiser/trunk/peerraiser.php
r1723790 r1764533 4 4 * Plugin URI: https://PeerRaiser.com 5 5 * Description: PeerRaiser makes it easy to create powerful peer-to-peer fundraising campaigns on your own WordPress site. 6 * Version: 1.1. 56 * Version: 1.1. 7 7 * Author: Nate Allen 8 8 * Author URI: https://peerraiser.com/ -
peerraiser/trunk/views/frontend/donation-form.php
r1713869 r1764533 13 13 </section> 14 14 15 <section class="peerraiser-fundraiser-selection <?php echo $peerraiser['fundraiser_select_class']; ?>"<?php if ( isset( $_GET['campaign']) && empty( $peerraiser['fundraisers'] ) ) echo ' style="display:none;"'; ?>> 16 <select name="fundraiser" id="fundraiser_select"> 17 <option value=""><?php _e( 'Select a Fundraiser to Support (optional)', 'peerraiser' ); ?></option> 18 <?php foreach( $peerraiser['fundraisers'] as $fundraiser ) : ?> 19 <option value="<?php echo $fundraiser->fundraiser_slug; ?>" <?php selected( get_query_var( 'peerraiser_fundraiser' ), $fundraiser->fundraiser_slug ) ?>><?php echo $fundraiser->fundraiser_name; ?></option> 20 <?php endforeach; ?> 21 </select> 22 </section> 15 <?php if ( count( $peerraiser['fundraisers'] ) > 0 ) : ?> 16 <section class="peerraiser-fundraiser-selection <?php echo $peerraiser['fundraiser_select_class']; ?>"<?php if ( isset( $_GET['campaign']) && empty( $peerraiser['fundraisers'] ) ) echo ' style="display:none;"'; ?>> 17 <select name="fundraiser" id="fundraiser_select"> 18 <option value=""><?php _e( 'Select a Fundraiser to Support (optional)', 'peerraiser' ); ?></option> 19 <?php foreach( $peerraiser['fundraisers'] as $fundraiser ) : ?> 20 <option value="<?php echo $fundraiser->fundraiser_slug; ?>" <?php selected( get_query_var( 'peerraiser_fundraiser' ), $fundraiser->fundraiser_slug ) ?>><?php echo $fundraiser->fundraiser_name; ?></option> 21 <?php endforeach; ?> 22 </select> 23 </section> 24 <?php endif; ?> 23 25 24 26 <section class="peerraiser-donation-amounts"> … … 26 28 <?php // TODO: Add setting for donation amounts instead of hard coding them ?> 27 29 <ul class="peerraiser-donation-amount-buttons"> 28 <li class="default-amounts"><input type="radio" name="donation_amount" value="25" class="peerraiser-donation-button" id="button_1" ><label for="button_1"><?php echo peerraiser_money_format( 25, true, false ); ?></label>30 <li class="default-amounts"><input type="radio" name="donation_amount" value="25" class="peerraiser-donation-button" id="button_1"><label for="button_1"><?php echo peerraiser_money_format( 25, true, false ); ?></label> 29 31 <li class="default-amounts"><input type="radio" name="donation_amount" value="50" class="peerraiser-donation-button" id="button_2"><label for="button_2"><?php echo peerraiser_money_format( 50, true, false ); ?></label> 30 32 <li class="default-amounts"><input type="radio" name="donation_amount" value="100" class="peerraiser-donation-button" id="button_3"><label for="button_3"><?php echo peerraiser_money_format( 100, true, false ); ?></label> … … 37 39 <?php endif; ?> 38 40 39 40 <?php if ( $peerraiser['currency_position'] === 'before' ) : ?> 41 <?php /* translators: 1: Currency symbol 2: Donation amount */ ?> 42 <?php $field_placeholder = sprintf( __( 'Other Amount (%1$s%2$s Min)', 'peerraiser' ), $peerraiser['currency_symbol'], '10' ); ?> 43 <?php else : ?> 44 <?php /* translators: 1: Donation amount 2: Currency symbol */ ?> 45 <?php $field_placeholder = sprintf( __( 'Other Amount (%1$s%2$s Min)', 'peerraiser' ), '10', $peerraiser['currency_symbol'] ); ?> 46 <?php endif; ?> 41 <?php if ( $peerraiser['donation_minimum'] ) : ?> 42 <?php if ( $peerraiser['currency_position'] === 'before' ) : ?> 43 <?php /* translators: 1: Currency symbol 2: Minimum donation amount */ ?> 44 <?php $field_placeholder = sprintf( __( 'Other Amount (%1$s%2$s Min)', 'peerraiser' ), $peerraiser['currency_symbol'], $peerraiser['donation_minimum'] ); ?> 45 <?php else : ?> 46 <?php /* translators: 1: Minimum donation amount 2: Currency symbol */ ?> 47 <?php $field_placeholder = sprintf( __( 'Other Amount (%1$s%2$s Min)', 'peerraiser' ), $peerraiser['donation_minimum'], $peerraiser['currency_symbol'] ); ?> 48 <?php endif; ?> 49 <?php else : ?> 50 <?php $field_placeholder = __( 'Other Amount', 'peerraiser' ); ?> 51 <?php endif; ?> 47 52 <input name="other_amount" class="peerraiser-donation-input" value="" maxlength="8" type="number" autocomplete="off" placeholder="<?php echo $field_placeholder; ?>" data-minimum="10" aria-label="Enter Donation Amount USD Min. $10"> 48 53
Note: See TracChangeset
for help on using the changeset viewer.