← All changes
|
includes/admin/tools/views/html-admin-page-imports.php
+19
-5
2.3.2
→
4.17.0
View file →
| @@ -6,9 +6,9 @@ | ||
| 6 | 6 | if ( ! defined( 'ABSPATH' ) ) { |
| 7 | 7 | exit; |
| 8 | 8 | } ?> |
| 9 | 9 | |
| 10 | -<div id="poststuff"> | |
| 10 | +<div id="poststuff" class="give-clearfix"> | |
| 11 | 11 | <div id="give-dashboard-widgets-wrap"> |
| 12 | 12 | <div id="post-body"> |
| 13 | 13 | <div id="post-body-content"> |
| 14 | 14 | |
| @@ -48,23 +48,37 @@ | ||
| 48 | 48 | </h3> |
| 49 | 49 | <p><?php esc_html_e( 'Import a CSV of Donations.', 'give' ); ?></p> |
| 50 | 50 | </td> |
| 51 | 51 | <td> |
| 52 | - <a class="button" href="<?php echo add_query_arg( array( 'importer-type' => 'import_donations' ) ); ?>"> | |
| 52 | + <a class="button" href="<?php echo esc_url( add_query_arg( array( 'importer-type' => 'import_donations' ) ) ); ?>"> | |
| 53 | 53 | <?php esc_html_e( 'Import CSV', 'give' ); ?> |
| 54 | 54 | </a> |
| 55 | 55 | </td> |
| 56 | 56 | </tr> |
| 57 | - | |
| 57 | + <?php if (defined('GIVE_RECURRING_VERSION')): ?> | |
| 58 | + <tr> | |
| 59 | + <td scope="row" class="row-title"> | |
| 60 | + <h3> | |
| 61 | + <span><?php esc_html_e( 'Import Subscriptions', 'give' ); ?></span> | |
| 62 | + </h3> | |
| 63 | + <p class="description"><?php esc_html_e('Import a CSV of subscriptions (recurring donations).', 'give' ); ?></p> | |
| 64 | + </td> | |
| 65 | + <td> | |
| 66 | + <a class="button" href="<?php echo esc_url( add_query_arg( array( 'importer-type' => 'import_subscriptions' ) ) ); ?>"> | |
| 67 | + <?php esc_html_e( 'Import Subscriptions', 'give' ); ?> | |
| 68 | + </a> | |
| 69 | + </td> | |
| 70 | + </tr> | |
| 71 | + <?php endif; ?> | |
| 58 | 72 | <tr class="give-import-core-settings"> |
| 59 | 73 | <td scope="row" class="row-title"> |
| 60 | 74 | <h3> |
| 61 | - <span><?php esc_html_e( 'Import Give Settings', 'give' ); ?></span> | |
| 75 | + <span><?php esc_html_e( 'Import GiveWP Settings', 'give' ); ?></span> | |
| 62 | 76 | </h3> |
| 63 | 77 | <p><?php esc_html_e( 'Import Give\'s settings in JSON format.', 'give' ); ?></p> |
| 64 | 78 | </td> |
| 65 | 79 | <td> |
| 66 | - <a class="button" href="<?php echo add_query_arg( array( 'importer-type' => 'import_core_setting' ) ); ?>"> | |
| 80 | + <a class="button" href="<?php echo esc_url( add_query_arg( array( 'importer-type' => 'import_core_setting' ) ) ); ?>"> | |
| 67 | 81 | <?php esc_html_e( 'Import JSON', 'give' ); ?> |
| 68 | 82 | </a> |
| 69 | 83 | </td> |
| 70 | 84 | </tr> |