Plugin Directory

Changeset 1764533

Timestamp:
11/12/2017 09:12:42 PM (7 years ago)
Author:
nateallen
Message:

Update to version 1.1.6

Location:
peerraiser
Files:
13 edited
1 copied

Legend:

Unmodified
Added
Removed
  • peerraiser/tags/1.1.6

    • Property svn:ignore
      •  

        old new  
        11README.md
        2 Thumbs.db
        3 .github/*
        42.git
        5 .gitattributes
        63.gitignore
  • peerraiser/tags/1.1.6/README.txt

    r1723790 r1764533  
    33Tags: 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
    44Requires at least: 4.4.0
    5 Tested up to: 4.8.1
    6 Stable tag: 1.1.5
     5Tested up to: 4.8.
     6Stable tag: 1.1.
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5656== Changelog ==
    5757
     58
     59
     60
    5861= 1.1.5 =
    5962* Use get_option to get the peerraiser_slug value
    6063
    6164= 1.1.4 =
    62 * Fix issue with variable in empty() function
     65* Fix issue with variable in empty() function
    6366
    6467= 1.1.3 =
    65 * Add support for more currencies
    66 * Fix donation widget so it doesn't show test donations
     68* Add support for more currencies
     69* Fix donation widget so it doesn't show test donations
    6770
    6871= 1.1.2 =
    69 * Delete donor meta when donor is deleted
    70 * Delete donation meta when donation is deleted
     72* Delete donor meta when donor is deleted
     73* Delete donation meta when donation is deleted
    7174
    7275= 1.1.1 =
    73 * Add default widgets to sidebars when plugin is installed
     76* Add default widgets to sidebars when plugin is installed
    7477
    7578= 1.1.0 =
    76 * Add 'participant_id' column to the donations database
     79* Add 'participant_id' column to the donations database
    7780
    7881= 1.0.7 =
    7982* If only one campaign is available, that campaign is now pre-selected on donation page
    80 * Exclude test donations when getting total donations
    81 * Fix filter peerraiser_donor_updated_{$key} not firing properly
     83* Exclud test donations when getting total donations
     84* Fix filter peerraiser_donor_updated_{$key} not firing properly
    8285
    8386= 1.0.6 =
    84 * Fix issue with Step 1 not showing check mark when account connected
    85 * Fix link to add a new campaign in Step 2
     87* Fix issue with Step 1 not showing check mark when account connected
     88* Fix link to add a new campaign in Step 2
    8689
    8790= 1.0.5 =
    88 * Fix issue with connection controller using staging server instead of live server
     91* Fix issue with connection controller using staging server instead of live server
    8992
    9093= 1.0.4 =
    91 * Convert some custom post types to custom tables
     94* Convert some custom post types to custom tables
    9295
    9396= 1.0.4 =
  • peerraiser/tags/1.1.6/application/controller/frontend/class-shortcode.php

    r1712702 r1764533  
    3535            'currency_symbol' => peerraiser_get_currency_symbol(),
    3636            'currency_position' => $plugin_options['currency_position'],
     37
    3738            'campaign_select_class' => $this->get_campaign_select_class(),
    3839            'fundraiser_select_class' => $this->get_fundraiser_select_class(),
  • peerraiser/tags/1.1.6/application/model/admin/class-settings.php

    r1712702 r1764533  
    167167                        'type' => 'text',
    168168                        'default_cb' => array( $this, 'get_field_value' ),
     169
     170
     171
     172
     173
     174
    169175                    ),
    170176                )
     
    434440                break;
    435441
     442
     443
     444
     445
    436446            case 'fundraiser_slug':
    437447                $field_value = ( isset($plugin_options[$field['id']]) ) ? $plugin_options[$field['id']] : 'give';
  • peerraiser/tags/1.1.6/assets/css/peerraiser-frontend.css

    r1723800 r1764533  
    1111    margin: 0 auto;
    1212}
     13
     14
     15
     16
    1317.signup-form-wrapper,
    1418.login-form-wrapper {
    1519    margin-bottom: 20px;
    1620    background-color: #fff;
    17     border: 1px solid transparent;
     21    border: 1px solid ;
    1822    border-radius: 4px;
    19     border-color: #bce8f1;
    2023    -webkit-box-shadow: 0 1px 1px rgba(0,0,0,.05);
    2124    box-shadow: 0 1px 1px rgba(0,0,0,.05);
     
    6871    text-decoration: none;
    6972    background: 0 0;
    70     font-size: 11.2px;
     73    font-size: 11px;
    7174    line-height: 16px;
    7275    display: block;
     
    112115    line-height: 1.428571429;
    113116    color: #555;
    114     background-color: #fff;
    115     background-image: none;
     117    background: #fff none;
    116118    border: 1px solid #ccc;
    117119    border-radius: 4px;
     
    169171    vertical-align: middle;
    170172    cursor: pointer;
    171     background-image: none;
    172     border: 1px solid transparent;
    173173    white-space: nowrap;
    174174    padding: 6px 12px;
     
    179179    -moz-user-select: none;
    180180    -ms-user-select: none;
    181     -o-user-select: none;
    182181    user-select: none;
    183182    color: #fff;
    184     background-color: #5cb85c;
    185     border-color: #4cae4c;
     183    background;
     184    border #4cae4c;
    186185    text-transform: none;
    187186}
     
    216215.peerraiser-registration-form .error-message {
    217216    background-color: #f2dede;
    218     border-color: #ebccd1;
    219217    color: #a94442;
    220218    padding: 15px;
     
    263261    font-size: 14px;
    264262    display: block;
    265     padding: 10px 20px;
    266263    color: #fff;
    267264    border-top: 1px solid rgba(255,255,255, 0.25);
     
    269266    outline: 0;
    270267    border-bottom: 0;
    271     padding-left: 40px;
     268    padding 40px;
    272269    text-decoration: none;
    273270}
     
    293290    -webkit-box-shadow: inset 0 3px 5px rgba(0,0,0,0.125);
    294291    box-shadow: inset 0 3px 5px rgba(0,0,0,0.125);
     292
     293
     294
    295295}
    296296.peerraiser-dashboard .fundraisers {
     
    364364    display: inline-block;
    365365    font: normal normal normal 14px/1 FontAwesome;
    366     font-size: inherit;
    367366    text-rendering: auto;
    368367    -webkit-font-smoothing: antialiased;
     
    700699    display: inline-block;
    701700    overflow: hidden;
    702     cursor: pointer;
    703701}
    704702.peerraiser-image-upload .file-label span {
     
    718716    background: url('../images/upload.png') no-repeat 6px center #767676;
    719717    display: inline-block;
    720     padding: 0.625rem 1.25rem;
    721     padding-left: 32px;
     718    padding: 0.625rem 1.25rem 0.625rem 32px;
    722719    border-right: 1px solid #bbb;
    723720}
     
    881878    -o-transition: all .2s ease-in-out;
    882879    transition: all .2s ease-in-out;
    883     text-align: center;
    884880    width: auto;
    885881}
     
    924920    text-transform: uppercase;
    925921    font-weight: normal;
    926     letter-spacing: 1.25px;
     922    letter-spacing: 1px;
    927923}
    928924.peerraiser-top-fundraisers a,
     
    948944    margin-left: 0;
    949945    padding-left: 0;
    950     list-style: inside;
    951     list-style-type: decimal;
     946    list-style: decimal inside;
    952947}
    953948.peerraiser-thermometer-container {
     
    961956    width: 100%;
    962957    background-color: #eee;
    963     box-shadow: inset 0px 1px 3px rgba(0,0,0,0.2);
     958    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
    964959    margin-bottom: .25rem;
    965960}
     
    968963    display: block;
    969964    float: left;
    970     width: 0%;
     965    width: 0;
    971966    background: #3798d9;
    972     box-shadow: inset 0px -1px 2px rgba(0,0,0,0.1);
     967    box-shadow: inset 0 -1px 2px rgba(0,0,0,0.1);
    973968    -webkit-transition: width 0.8s ease-in-out;
    974969    transition: width 0.8s ease-in-out;
     
    10821077    -moz-user-select: none;
    10831078    -ms-user-select: none;
    1084     -o-user-select: none;
    10851079    user-select: none;
    10861080}
     
    11701164    line-height: 1.25;
    11711165    color: #464a4c;
    1172     background-color: #f7f7f7;
    1173     background-image: none;
     1166    background: #f7f7f7 none;
    11741167    -webkit-background-clip: padding-box;
    11751168    background-clip: padding-box;
    1176     border: 1px solid rgba(0,0,0,.15);
    11771169    border-radius: .25rem;
    1178     border-color: rgba(0, 0, 0, 0.15);
     1170    border rgba(0, 0, 0, 0.15);
    11791171}
    11801172form.peerraiser-donation-form .peerraiser-donation-amount-other .peerraiser-donation-input:focus {
     
    12091201    -moz-user-select: none;
    12101202    -ms-user-select: none;
    1211     -o-user-select: none;
    12121203    user-select: none;
    12131204}
  • peerraiser/tags/1.1.6/peerraiser.php

    r1723790 r1764533  
    44 * Plugin URI:  https://PeerRaiser.com
    55 * Description: PeerRaiser makes it easy to create powerful peer-to-peer fundraising campaigns on your own WordPress site.
    6  * Version:     1.1.5
     6 * Version:     1.1.
    77 * Author:      Nate Allen
    88 * Author URI:  https://peerraiser.com/
  • peerraiser/tags/1.1.6/views/frontend/donation-form.php

    r1713869 r1764533  
    1313    </section>
    1414
    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; ?>
    2325
    2426    <section class="peerraiser-donation-amounts">
     
    2628        <?php // TODO: Add setting for donation amounts instead of hard coding them ?>
    2729        <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>
    2931            <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>
    3032            <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>
     
    3739            <?php endif; ?>
    3840
    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; ?>
    4752            <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">
    4853
  • peerraiser/trunk

    • Property svn:ignore
      •  

        old new  
        11README.md
        2 Thumbs.db
        3 .github/*
        42.git
        5 .gitattributes
        63.gitignore
  • peerraiser/trunk/README.txt

    r1723790 r1764533  
    33Tags: 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
    44Requires at least: 4.4.0
    5 Tested up to: 4.8.1
    6 Stable tag: 1.1.5
     5Tested up to: 4.8.
     6Stable tag: 1.1.
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5656== Changelog ==
    5757
     58
     59
     60
    5861= 1.1.5 =
    5962* Use get_option to get the peerraiser_slug value
    6063
    6164= 1.1.4 =
    62 * Fix issue with variable in empty() function
     65* Fix issue with variable in empty() function
    6366
    6467= 1.1.3 =
    65 * Add support for more currencies
    66 * Fix donation widget so it doesn't show test donations
     68* Add support for more currencies
     69* Fix donation widget so it doesn't show test donations
    6770
    6871= 1.1.2 =
    69 * Delete donor meta when donor is deleted
    70 * Delete donation meta when donation is deleted
     72* Delete donor meta when donor is deleted
     73* Delete donation meta when donation is deleted
    7174
    7275= 1.1.1 =
    73 * Add default widgets to sidebars when plugin is installed
     76* Add default widgets to sidebars when plugin is installed
    7477
    7578= 1.1.0 =
    76 * Add 'participant_id' column to the donations database
     79* Add 'participant_id' column to the donations database
    7780
    7881= 1.0.7 =
    7982* If only one campaign is available, that campaign is now pre-selected on donation page
    80 * Exclude test donations when getting total donations
    81 * Fix filter peerraiser_donor_updated_{$key} not firing properly
     83* Exclud test donations when getting total donations
     84* Fix filter peerraiser_donor_updated_{$key} not firing properly
    8285
    8386= 1.0.6 =
    84 * Fix issue with Step 1 not showing check mark when account connected
    85 * Fix link to add a new campaign in Step 2
     87* Fix issue with Step 1 not showing check mark when account connected
     88* Fix link to add a new campaign in Step 2
    8689
    8790= 1.0.5 =
    88 * Fix issue with connection controller using staging server instead of live server
     91* Fix issue with connection controller using staging server instead of live server
    8992
    9093= 1.0.4 =
    91 * Convert some custom post types to custom tables
     94* Convert some custom post types to custom tables
    9295
    9396= 1.0.4 =
  • peerraiser/trunk/application/controller/frontend/class-shortcode.php

    r1712702 r1764533  
    3535            'currency_symbol' => peerraiser_get_currency_symbol(),
    3636            'currency_position' => $plugin_options['currency_position'],
     37
    3738            'campaign_select_class' => $this->get_campaign_select_class(),
    3839            'fundraiser_select_class' => $this->get_fundraiser_select_class(),
  • peerraiser/trunk/application/model/admin/class-settings.php

    r1712702 r1764533  
    167167                        'type' => 'text',
    168168                        'default_cb' => array( $this, 'get_field_value' ),
     169
     170
     171
     172
     173
     174
    169175                    ),
    170176                )
     
    434440                break;
    435441
     442
     443
     444
     445
    436446            case 'fundraiser_slug':
    437447                $field_value = ( isset($plugin_options[$field['id']]) ) ? $plugin_options[$field['id']] : 'give';
  • peerraiser/trunk/assets/css/peerraiser-frontend.css

    r1723800 r1764533  
    1111    margin: 0 auto;
    1212}
     13
     14
     15
     16
    1317.signup-form-wrapper,
    1418.login-form-wrapper {
    1519    margin-bottom: 20px;
    1620    background-color: #fff;
    17     border: 1px solid transparent;
     21    border: 1px solid ;
    1822    border-radius: 4px;
    19     border-color: #bce8f1;
    2023    -webkit-box-shadow: 0 1px 1px rgba(0,0,0,.05);
    2124    box-shadow: 0 1px 1px rgba(0,0,0,.05);
     
    6871    text-decoration: none;
    6972    background: 0 0;
    70     font-size: 11.2px;
     73    font-size: 11px;
    7174    line-height: 16px;
    7275    display: block;
     
    112115    line-height: 1.428571429;
    113116    color: #555;
    114     background-color: #fff;
    115     background-image: none;
     117    background: #fff none;
    116118    border: 1px solid #ccc;
    117119    border-radius: 4px;
     
    169171    vertical-align: middle;
    170172    cursor: pointer;
    171     background-image: none;
    172     border: 1px solid transparent;
    173173    white-space: nowrap;
    174174    padding: 6px 12px;
     
    179179    -moz-user-select: none;
    180180    -ms-user-select: none;
    181     -o-user-select: none;
    182181    user-select: none;
    183182    color: #fff;
    184     background-color: #5cb85c;
    185     border-color: #4cae4c;
     183    background;
     184    border #4cae4c;
    186185    text-transform: none;
    187186}
     
    216215.peerraiser-registration-form .error-message {
    217216    background-color: #f2dede;
    218     border-color: #ebccd1;
    219217    color: #a94442;
    220218    padding: 15px;
     
    263261    font-size: 14px;
    264262    display: block;
    265     padding: 10px 20px;
    266263    color: #fff;
    267264    border-top: 1px solid rgba(255,255,255, 0.25);
     
    269266    outline: 0;
    270267    border-bottom: 0;
    271     padding-left: 40px;
     268    padding 40px;
    272269    text-decoration: none;
    273270}
     
    293290    -webkit-box-shadow: inset 0 3px 5px rgba(0,0,0,0.125);
    294291    box-shadow: inset 0 3px 5px rgba(0,0,0,0.125);
     292
     293
     294
    295295}
    296296.peerraiser-dashboard .fundraisers {
     
    364364    display: inline-block;
    365365    font: normal normal normal 14px/1 FontAwesome;
    366     font-size: inherit;
    367366    text-rendering: auto;
    368367    -webkit-font-smoothing: antialiased;
     
    700699    display: inline-block;
    701700    overflow: hidden;
    702     cursor: pointer;
    703701}
    704702.peerraiser-image-upload .file-label span {
     
    718716    background: url('../images/upload.png') no-repeat 6px center #767676;
    719717    display: inline-block;
    720     padding: 0.625rem 1.25rem;
    721     padding-left: 32px;
     718    padding: 0.625rem 1.25rem 0.625rem 32px;
    722719    border-right: 1px solid #bbb;
    723720}
     
    881878    -o-transition: all .2s ease-in-out;
    882879    transition: all .2s ease-in-out;
    883     text-align: center;
    884880    width: auto;
    885881}
     
    924920    text-transform: uppercase;
    925921    font-weight: normal;
    926     letter-spacing: 1.25px;
     922    letter-spacing: 1px;
    927923}
    928924.peerraiser-top-fundraisers a,
     
    948944    margin-left: 0;
    949945    padding-left: 0;
    950     list-style: inside;
    951     list-style-type: decimal;
     946    list-style: decimal inside;
    952947}
    953948.peerraiser-thermometer-container {
     
    961956    width: 100%;
    962957    background-color: #eee;
    963     box-shadow: inset 0px 1px 3px rgba(0,0,0,0.2);
     958    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
    964959    margin-bottom: .25rem;
    965960}
     
    968963    display: block;
    969964    float: left;
    970     width: 0%;
     965    width: 0;
    971966    background: #3798d9;
    972     box-shadow: inset 0px -1px 2px rgba(0,0,0,0.1);
     967    box-shadow: inset 0 -1px 2px rgba(0,0,0,0.1);
    973968    -webkit-transition: width 0.8s ease-in-out;
    974969    transition: width 0.8s ease-in-out;
     
    10821077    -moz-user-select: none;
    10831078    -ms-user-select: none;
    1084     -o-user-select: none;
    10851079    user-select: none;
    10861080}
     
    11701164    line-height: 1.25;
    11711165    color: #464a4c;
    1172     background-color: #f7f7f7;
    1173     background-image: none;
     1166    background: #f7f7f7 none;
    11741167    -webkit-background-clip: padding-box;
    11751168    background-clip: padding-box;
    1176     border: 1px solid rgba(0,0,0,.15);
    11771169    border-radius: .25rem;
    1178     border-color: rgba(0, 0, 0, 0.15);
     1170    border rgba(0, 0, 0, 0.15);
    11791171}
    11801172form.peerraiser-donation-form .peerraiser-donation-amount-other .peerraiser-donation-input:focus {
     
    12091201    -moz-user-select: none;
    12101202    -ms-user-select: none;
    1211     -o-user-select: none;
    12121203    user-select: none;
    12131204}
  • peerraiser/trunk/peerraiser.php

    r1723790 r1764533  
    44 * Plugin URI:  https://PeerRaiser.com
    55 * Description: PeerRaiser makes it easy to create powerful peer-to-peer fundraising campaigns on your own WordPress site.
    6  * Version:     1.1.5
     6 * Version:     1.1.
    77 * Author:      Nate Allen
    88 * Author URI:  https://peerraiser.com/
  • peerraiser/trunk/views/frontend/donation-form.php

    r1713869 r1764533  
    1313    </section>
    1414
    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; ?>
    2325
    2426    <section class="peerraiser-donation-amounts">
     
    2628        <?php // TODO: Add setting for donation amounts instead of hard coding them ?>
    2729        <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>
    2931            <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>
    3032            <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>
     
    3739            <?php endif; ?>
    3840
    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; ?>
    4752            <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">
    4853
Note: See TracChangeset for help on using the changeset viewer.