PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.17.0
GiveWP – Donation Plugin and Fundraising Platform v4.17.0
4.17.0 4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 All 256 releases
give / includes / admin / tools / views / html-admin-page-imports.php

html-admin-page-imports.php in GiveWP – Donation Plugin and Fundraising Platform 4.17.0, at includes/admin/tools/views/html-admin-page-imports.php

115 lines 3.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Admin View: Imports
4 */
5
6 if ( ! defined( 'ABSPATH' ) ) {
7 exit;
8 } ?>
9
10 <div id="poststuff" class="give-clearfix">
11 <div id="give-dashboard-widgets-wrap">
12 <div id="post-body">
13 <div id="post-body-content">
14
15 <?php
16 /**
17 * Fires before the reports Import tab.
18 *
19 * @since 1.8.14
20 */
21 do_action( 'give_tools_tab_import_content_top' );
22 ?>
23
24 <table class="widefat Import-options-table give-table">
25 <thead>
26 <tr>
27 <th scope="col"><?php esc_html_e( 'Import Type', 'give' ); ?></th>
28 <th scope="col"><?php esc_html_e( 'Import Options', 'give' ); ?></th>
29 </tr>
30 </thead>
31 <tbody>
32 <?php
33 /**
34 * Fires in the reports Import tab.
35 *
36 * Allows you to add new TR elements to the table before
37 * other elements.
38 *
39 * @since 1.8.14
40 */
41 do_action( 'give_tools_tab_import_table_top' );
42 ?>
43
44 <tr class="give-Import-pdf-sales-earnings">
45 <td scope="row" class="row-title">
46 <h3>
47 <span><?php esc_html_e( 'Import Donations', 'give' ); ?></span>
48 </h3>
49 <p><?php esc_html_e( 'Import a CSV of Donations.', 'give' ); ?></p>
50 </td>
51 <td>
52 <a class="button" href="<?php echo esc_url( add_query_arg( array( 'importer-type' => 'import_donations' ) ) ); ?>">
53 <?php esc_html_e( 'Import CSV', 'give' ); ?>
54 </a>
55 </td>
56 </tr>
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; ?>
72 <tr class="give-import-core-settings">
73 <td scope="row" class="row-title">
74 <h3>
75 <span><?php esc_html_e( 'Import GiveWP Settings', 'give' ); ?></span>
76 </h3>
77 <p><?php esc_html_e( 'Import Give\'s settings in JSON format.', 'give' ); ?></p>
78 </td>
79 <td>
80 <a class="button" href="<?php echo esc_url( add_query_arg( array( 'importer-type' => 'import_core_setting' ) ) ); ?>">
81 <?php esc_html_e( 'Import JSON', 'give' ); ?>
82 </a>
83 </td>
84 </tr>
85
86 <?php
87 /**
88 * Fires in the reports Import tab.
89 *
90 * Allows you to add new TR elements to the table after
91 * other elements.
92 *
93 * @since 1.8.14
94 */
95 do_action( 'give_tools_tab_import_table_bottom' );
96 ?>
97 </tbody>
98 </table>
99
100 <?php
101 /**
102 * Fires after the reports Import tab.
103 *
104 * @since 1.8.14
105 */
106 do_action( 'give_tools_tab_import_content_bottom' );
107 ?>
108
109 </div>
110 <!-- .post-body-content -->
111 </div>
112 <!-- .post-body -->
113 </div><!-- #give-dashboard-widgets-wrap -->
114 </div><!-- #poststuff -->
115