|
@@ 96-105 (lines=10) @@
|
| 93 |
|
$options = array(); |
| 94 |
|
|
| 95 |
|
// Provide nice human readable options. |
| 96 |
|
if ( $payments ) { |
| 97 |
|
$options[0] = $args['placeholder']; |
| 98 |
|
foreach ( $payments as $payment ) { |
| 99 |
|
|
| 100 |
|
$options[ absint( $payment->ID ) ] = esc_html( '#' . $payment->ID . ' - ' . $payment->email . ' - ' . $payment->form_title ); |
| 101 |
|
|
| 102 |
|
} |
| 103 |
|
} else { |
| 104 |
|
$options[0] = __( 'No donations found.', 'give' ); |
| 105 |
|
} |
| 106 |
|
|
| 107 |
|
$output = $this->select( array( |
| 108 |
|
'name' => $args['name'], |
|
@@ 760-767 (lines=8) @@
|
| 757 |
|
|
| 758 |
|
$options = array(); |
| 759 |
|
|
| 760 |
|
if ( $users ) { |
| 761 |
|
$options[0] = $args['placeholder']; |
| 762 |
|
foreach ( $users as $user ) { |
| 763 |
|
$options[ absint( $user->ID ) ] = esc_html( $user->user_login . ' (' . $user->user_email . ')' ); |
| 764 |
|
} |
| 765 |
|
} else { |
| 766 |
|
$options[0] = __( 'No users found.', 'give' ); |
| 767 |
|
} |
| 768 |
|
|
| 769 |
|
$output = $this->select( array( |
| 770 |
|
'name' => $args['name'], |