| 1 |
<?php |
| 2 |
/** |
| 3 |
* Admin View: Import Subscriptions |
| 4 |
*/ |
| 5 |
|
| 6 |
if ( ! defined( 'ABSPATH' ) ) { |
| 7 |
exit; |
| 8 |
} |
| 9 |
|
| 10 |
if ( ! current_user_can( 'manage_give_settings' ) ) { |
| 11 |
return; |
| 12 |
} |
| 13 |
|
| 14 |
do_action( 'give_tools_import_subscriptions_main_before' ); |
| 15 |
?> |
| 16 |
<div id="poststuff" class="give-clearfix"> |
| 17 |
<div class="postbox"> |
| 18 |
<h1 class="give-importer-h1" align="center"> |
| 19 |
<?php |
| 20 |
_e( 'Import Subscriptions', 'give' ); |
| 21 |
|
| 22 |
if ( ! empty( $_POST['mapto'] ) && ! empty( $_GET['dry_run'] ) ) { |
| 23 |
printf( |
| 24 |
'<strong> %s</strong>', |
| 25 |
__( '(Dry Run)', 'give' ) |
| 26 |
); |
| 27 |
} |
| 28 |
?> |
| 29 |
</h1> |
| 30 |
<div class="inside give-tools-setting-page-import give-import-subscriptions"> |
| 31 |
<?php do_action( 'give_tools_import_subscriptions_form_before_start' ); ?> |
| 32 |
<form method="post" id="give-import-subscriptions-form" class="give-import-form tools-setting-page-import tools-setting-page-import"> |
| 33 |
<?php do_action( 'give_tools_import_subscriptions_form_start' ); ?> |
| 34 |
<?php do_action( 'give_tools_import_subscriptions_form_end' ); ?> |
| 35 |
</form> |
| 36 |
<?php do_action( 'give_tools_import_subscriptions_form_after_end' ); ?> |
| 37 |
</div><!-- .inside --> |
| 38 |
</div><!-- .postbox --> |
| 39 |
</div><!-- #poststuff --> |
| 40 |
<?php |
| 41 |
do_action( 'give_tools_import_subscriptions_main_after' ); |
| 42 |
|
| 43 |
|
| 44 |
|