| 1 |
<?php |
| 2 |
/** |
| 3 |
* Admin View: Import Donations |
| 4 |
*/ |
| 5 |
|
| 6 |
if ( ! defined( 'ABSPATH' ) ) { |
| 7 |
exit; |
| 8 |
} |
| 9 |
|
| 10 |
if ( ! current_user_can( 'manage_give_settings' ) ) { |
| 11 |
return; |
| 12 |
} |
| 13 |
|
| 14 |
/** |
| 15 |
* Fires before displaying the import div tools. |
| 16 |
* |
| 17 |
* @since 1.8.13 |
| 18 |
*/ |
| 19 |
do_action( 'give_tools_import_donations_main_before' ); |
| 20 |
?> |
| 21 |
<div id="poststuff" class="give-clearfix"> |
| 22 |
<div class="postbox"> |
| 23 |
<h1 class="give-importer-h1" align="center"> |
| 24 |
<?php |
| 25 |
_e( 'Import Donations', 'give' ); |
| 26 |
|
| 27 |
if ( ! empty( $_POST['mapto'] ) && ! empty( $_GET['dry_run'] ) ) { |
| 28 |
printf( |
| 29 |
'<strong> %s</strong>', |
| 30 |
__( '(Dry Run)', 'give' ) |
| 31 |
); |
| 32 |
} |
| 33 |
?> |
| 34 |
</h1> |
| 35 |
<div class="inside give-tools-setting-page-import give-import-donations"> |
| 36 |
<?php |
| 37 |
/** |
| 38 |
* Fires before from start. |
| 39 |
* |
| 40 |
* @since 1.8.14 |
| 41 |
*/ |
| 42 |
do_action( 'give_tools_import_donations_form_before_start' ); |
| 43 |
?> |
| 44 |
<form method="post" id="give-import-donations-form" class="give-import-form tools-setting-page-import tools-setting-page-import"> |
| 45 |
|
| 46 |
<?php |
| 47 |
/** |
| 48 |
* Fires just after form start. |
| 49 |
* |
| 50 |
* @since 1.8.14 |
| 51 |
*/ |
| 52 |
do_action( 'give_tools_import_donations_form_start' ); |
| 53 |
?> |
| 54 |
|
| 55 |
<?php |
| 56 |
/** |
| 57 |
* Fires just after before form end. |
| 58 |
* |
| 59 |
* @since 1.8.14 |
| 60 |
*/ |
| 61 |
do_action( 'give_tools_import_donations_form_end' ); |
| 62 |
?> |
| 63 |
</form> |
| 64 |
<?php |
| 65 |
/** |
| 66 |
* Fires just after form end. |
| 67 |
* |
| 68 |
* @since 1.8.14 |
| 69 |
*/ |
| 70 |
do_action( 'give_tools_import_donations_form_after_end' ); |
| 71 |
?> |
| 72 |
</div><!-- .inside --> |
| 73 |
</div><!-- .postbox --> |
| 74 |
</div><!-- #poststuff --> |
| 75 |
<?php |
| 76 |
/** |
| 77 |
* Fires after displaying the import div tools. |
| 78 |
* |
| 79 |
* @since 1.8.13 |
| 80 |
*/ |
| 81 |
do_action( 'give_tools_import_donations_main_after' ); |
| 82 |
|