| @@ 481-485 (lines=5) @@ | ||
| 478 | esc_html_e( 'n/a', 'give' ); |
|
| 479 | } else { |
|
| 480 | $prices_atts = ''; |
|
| 481 | if ( $variable_prices = give_get_variable_prices( $form_id ) ) { |
|
| 482 | foreach ( $variable_prices as $variable_price ) { |
|
| 483 | $prices_atts[ $variable_price['_give_id']['level_id'] ] = give_format_amount( $variable_price['_give_amount'], array( 'sanitize' => false ) ); |
|
| 484 | } |
|
| 485 | } |
|
| 486 | ||
| 487 | // Variable price dropdown options. |
|
| 488 | $variable_price_dropdown_option = array( |
|
| @@ 379-383 (lines=5) @@ | ||
| 376 | esc_html_e( 'n/a', 'give' ); |
|
| 377 | } else { |
|
| 378 | $prices_atts = ''; |
|
| 379 | if( $variable_prices = give_get_variable_prices( $payment_meta['form_id'] ) ) { |
|
| 380 | foreach ( $variable_prices as $variable_price ) { |
|
| 381 | $prices_atts[$variable_price['_give_id']['level_id']] = give_format_amount( $variable_price['_give_amount'], array( 'sanitize' => false ) ); |
|
| 382 | } |
|
| 383 | } |
|
| 384 | // Variable price dropdown options. |
|
| 385 | $variable_price_dropdown_option = array( |
|
| 386 | 'id' => $payment_meta['form_id'], |
|