| @@ 145-160 (lines=16) @@ | ||
| 142 | $payment_count = isset( $_GET['payment'] ) ? count( $_GET['payment'] ) : 0; |
|
| 143 | ||
| 144 | switch ( $_GET['action'] ) { |
|
| 145 | case 'delete': |
|
| 146 | Give()->notices->register_notice( array( |
|
| 147 | 'id' => 'bulk_action_delete', |
|
| 148 | 'type' => 'updated', |
|
| 149 | 'description' => sprintf( |
|
| 150 | _n( |
|
| 151 | 'Successfully deleted one donation.', |
|
| 152 | 'Successfully deleted %d donations.', |
|
| 153 | $payment_count, |
|
| 154 | 'give' |
|
| 155 | ), |
|
| 156 | $payment_count ), |
|
| 157 | 'show' => true, |
|
| 158 | ) ); |
|
| 159 | ||
| 160 | break; |
|
| 161 | ||
| 162 | case 'resend-receipt': |
|
| 163 | Give()->notices->register_notice( array( |
|
| @@ 162-177 (lines=16) @@ | ||
| 159 | ||
| 160 | break; |
|
| 161 | ||
| 162 | case 'resend-receipt': |
|
| 163 | Give()->notices->register_notice( array( |
|
| 164 | 'id' => 'bulk_action_resend_receipt', |
|
| 165 | 'type' => 'updated', |
|
| 166 | 'description' => sprintf( |
|
| 167 | _n( |
|
| 168 | 'Successfully sent email receipt to one recipient.', |
|
| 169 | 'Successfully sent email receipts to %d recipients.', |
|
| 170 | $payment_count, |
|
| 171 | 'give' |
|
| 172 | ), |
|
| 173 | $payment_count |
|
| 174 | ), |
|
| 175 | 'show' => true, |
|
| 176 | ) ); |
|
| 177 | break; |
|
| 178 | ||
| 179 | case 'set-status-publish' : |
|
| 180 | case 'set-status-pending' : |
|
| @@ 187-199 (lines=13) @@ | ||
| 184 | case 'set-status-failed' : |
|
| 185 | case 'set-status-cancelled' : |
|
| 186 | case 'set-status-abandoned' : |
|
| 187 | case 'set-status-preapproval' : |
|
| 188 | Give()->notices->register_notice( array( |
|
| 189 | 'id' => 'bulk_action_status_change', |
|
| 190 | 'type' => 'updated', |
|
| 191 | 'description' => _n( |
|
| 192 | 'Donation status updated successfully.', |
|
| 193 | 'Donation statuses updated successfully.', |
|
| 194 | $payment_count, |
|
| 195 | 'give' |
|
| 196 | ), |
|
| 197 | 'show' => true, |
|
| 198 | ) ); |
|
| 199 | break; |
|
| 200 | }// End switch(). |
|
| 201 | }// End if(). |
|
| 202 | }// End if(). |
|