PluginProbe ʕ •ᴥ•ʔ
GiveWP – Donation Plugin and Fundraising Platform / 2.5.7
GiveWP – Donation Plugin and Fundraising Platform v2.5.7
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 2.30.0 2.31.0 2.31.1 2.32.0 2.33.0 2.33.1 2.33.2 2.33.3 2.33.4 2.33.5 2.4.0 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.4.7 2.5.0 2.5.1 2.5.10 2.5.11 2.5.12 2.5.13 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.7 2.5.8 2.5.9 2.6.0 2.6.1 2.6.2 2.6.3 2.7.0 2.7.1 2.7.2 2.7.3 2.7.4 2.7.5 2.8.0 2.8.1 2.9.0 2.9.1 2.9.2 2.9.3 2.9.4 2.9.5 2.9.6 2.9.7 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.1.0 3.1.1 3.1.2 3.10.0 3.11.0 3.12.0 3.12.1 3.12.2 3.12.3 3.13.0 3.14.0 3.14.1 3.14.2 3.15.0 3.15.1 3.16.0 3.16.1 3.16.2 3.16.3 3.16.4 3.16.5 3.17.0 3.17.1 3.17.2 3.18.0 3.19.0 3.19.1 3.19.2 3.19.3 3.19.4 3.2.0 3.2.1 3.2.2 3.20.0 3.21.0 3.21.1 3.22.0 3.22.1 3.22.2 3.3.0 3.3.1 3.4.0 3.4.1 3.4.2 3.5.0 3.5.1 3.6.0 3.6.1 3.6.2 3.7.0 3.8.0 3.9.0 4.0.0 4.1.0 4.1.1 4.10.0 4.10.1 4.11.0 4.12.0 4.13.0 4.13.1 4.13.2 4.14.0 4.14.1 4.14.2 4.14.3 4.14.4 4.14.5 4.14.6 4.2.0 4.2.1 4.3.0 4.3.1 4.3.2 4.4.0 4.5.0 4.6.1 4.7.0 4.7.1 4.8.0 4.8.1 4.9.0 trunk 1.9.0 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.10.0 2.10.1 2.10.2 2.10.3 2.10.4 2.11.0 2.11.1 2.11.2 2.11.3 2.12.0 2.12.1 2.12.2 2.12.3 2.13.0 2.13.1 2.13.2 2.13.3 2.13.4 2.14.0 2.15.0 2.16.0 2.16.1 2.17.0 2.17.1 2.17.3 2.18.0 2.18.1 2.19.1 2.19.2 2.19.3 2.19.4 2.19.5 2.19.6 2.19.7 2.19.8 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.20.0 2.20.1 2.20.2 2.21.0 2.21.1 2.21.2 2.21.3 2.21.4 2.22.0 2.22.1 2.22.2 2.22.3 2.23.0 2.23.1 2.23.2 2.24.0 2.24.1 2.24.2 2.25.0 2.25.1 2.25.2 2.25.3 2.26.0 2.27.0 2.27.1 2.27.2 2.27.3 2.28.0 2.29.0 2.29.1 2.29.2
give / includes / admin / tools / views / html-admin-page-exports.php
give / includes / admin / tools / views Last commit date
html-admin-page-data.php 7 years ago html-admin-page-exports.php 6 years ago html-admin-page-import-core-settings.php 7 years ago html-admin-page-import-donations.php 7 years ago html-admin-page-imports.php 6 years ago html-admin-page-system-info.php 6 years ago
html-admin-page-exports.php
226 lines
1 <?php
2 /**
3 * Admin View: Exports
4 */
5
6 if ( ! defined( 'ABSPATH' ) ) {
7 exit;
8 } ?>
9
10 <div id="poststuff">
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 export tab.
18 *
19 * @since 1.0
20 */
21 do_action( 'give_tools_tab_export_content_top' );
22 ?>
23
24 <table class="widefat export-options-table give-table striped">
25 <thead>
26 <tr>
27 <th scope="col"><?php esc_html_e( 'Export Type', 'give' ); ?></th>
28 <th scope="col"><?php esc_html_e( 'Export Options', 'give' ); ?></th>
29 </tr>
30 </thead>
31 <tbody>
32 <?php
33 /**
34 * Fires in the reports export tab.
35 *
36 * Allows you to add new TR elements to the table before
37 * other elements.
38 *
39 * @since 1.0
40 */
41 do_action( 'give_tools_tab_export_table_top' );
42 ?>
43
44 <tr class="give-export-donations-history">
45 <td scope="row" class="row-title">
46 <h3>
47 <span><?php esc_html_e( 'Export Donation History', 'give' ); ?></span>
48 </h3>
49 <p><?php esc_html_e( 'Download a CSV of all donations recorded.', 'give' ); ?></p>
50 </td>
51 <td>
52 <a class="button" href="<?php echo add_query_arg( array( 'type' => 'export_donations' ) ); ?>">
53 <?php esc_html_e( 'Generate CSV', 'give' ); ?>
54 </a>
55 </td>
56 </tr>
57
58 <tr class="give-export-pdf-sales-earnings">
59 <td scope="row" class="row-title">
60 <h3>
61 <span><?php esc_html_e( 'Export PDF of Donations and Income', 'give' ); ?></span>
62 </h3>
63 <p><?php esc_html_e( 'Download a PDF of Donations and Income reports for all forms for the current year.', 'give' ); ?></p>
64 </td>
65 <td>
66 <a class="button" href="<?php echo wp_nonce_url( add_query_arg( array( 'give-action' => 'generate_pdf' ) ), 'give_generate_pdf' ); ?>">
67 <?php esc_html_e( 'Generate PDF', 'give' ); ?>
68 </a>
69 </td>
70 </tr>
71 <tr class="give-export-sales-earnings">
72 <td scope="row" class="row-title">
73 <h3>
74 <span><?php esc_html_e( 'Export Income and Donation Stats', 'give' ); ?></span>
75 </h3>
76 <p><?php esc_html_e( 'Download a CSV of income and donations over time.', 'give' ); ?></p>
77 </td>
78 <td>
79 <form method="post">
80 <?php
81 printf(
82 /* translators: 1: start date dropdown 2: end date dropdown */
83 esc_html__( '%1$s to %2$s', 'give' ),
84 Give()->html->year_dropdown( 'start_year' ) . ' ' . Give()->html->month_dropdown( 'start_month' ),
85 Give()->html->year_dropdown( 'end_year' ) . ' ' . Give()->html->month_dropdown( 'end_month' )
86 );
87 ?>
88 <input type="hidden" name="give-action" value="earnings_export"/>
89 <input type="submit" value="<?php esc_attr_e( 'Generate CSV', 'give' ); ?>" class="button-secondary"/>
90 </form>
91 </td>
92 </tr>
93
94 <tr class="give-export-donors">
95 <td scope="row" class="row-title">
96 <h3>
97 <span><?php esc_html_e( 'Export Donors', 'give' ); ?></span>
98 </h3>
99 <p><?php esc_html_e( 'Download a CSV of donors. Column values reflect totals across all donation forms by default, or a single donation form if selected.', 'give' ); ?></p>
100 </td>
101 <td>
102 <form method="post" id="give_donor_export" class="give-export-form">
103 <?php
104 // Start Date form field for donors.
105 echo Give()->html->date_field( array(
106 'id' => 'give_donor_export_start_date',
107 'name' => 'donor_export_start_date',
108 'placeholder' => esc_attr__( 'Start Date', 'give' ),
109 'autocomplete' => 'off',
110 ) );
111
112 // End Date form field for donors.
113 echo Give()->html->date_field( array(
114 'id' => 'give_donor_export_end_date',
115 'name' => 'donor_export_end_date',
116 'placeholder' => esc_attr__( 'End Date', 'give' ),
117 'autocomplete' => 'off',
118 ) );
119
120 // Donation forms dropdown for donors export.
121 echo Give()->html->forms_dropdown( array(
122 'name' => 'forms',
123 'id' => 'give_donor_export_form',
124 'chosen' => true,
125 'class' => 'give-width-25em',
126 ) );
127 ?>
128 <br>
129 <input type="submit" value="<?php esc_attr_e( 'Generate CSV', 'give' ); ?>" class="button-secondary"/>
130
131 <div id="export-donor-options-wrap" class="give-clearfix">
132 <p><?php esc_html_e( 'Export Columns:', 'give' ); ?></p>
133 <ul id="give-export-option-ul">
134 <?php
135 $donor_export_columns = give_export_donors_get_default_columns();
136
137 foreach ( $donor_export_columns as $column_name => $column_label ) {
138 ?>
139 <li>
140 <label for="give-export-<?php echo esc_attr( $column_name ); ?>">
141 <input
142 type="checkbox"
143 checked
144 name="give_export_option[<?php echo esc_attr( $column_name ); ?>]"
145 id="give-export-<?php echo esc_attr( $column_name ); ?>"
146 />
147 <?php echo esc_attr( $column_label ); ?>
148 </label>
149 </li>
150 <?php
151 }
152 ?>
153 </ul>
154 </div>
155 <?php wp_nonce_field( 'give_ajax_export', 'give_ajax_export' ); ?>
156 <input type="hidden" name="give-export-class" value="Give_Batch_Donors_Export"/>
157 <input type="hidden" name="give_export_option[query_id]" value="<?php echo uniqid( 'give_' ); ?>"/>
158 </form>
159 </td>
160 </tr>
161
162 <tr class="give-export-core-settings">
163 <td scope="row" class="row-title">
164 <h3>
165 <span><?php esc_html_e( 'Export GiveWP Settings', 'give' ); ?></span>
166 </h3>
167 <p><?php esc_html_e( 'Download an export of Give\'s settings and import it in a new WordPress installation.', 'give' ); ?></p>
168 </td>
169 <td>
170 <form method="post">
171 <?php
172 $export_excludes = apply_filters( 'give_settings_export_excludes', array() );
173 if ( ! empty( $export_excludes ) ) {
174 ?>
175 <i class="settings-excludes-title"><?php esc_html_e( 'Checked options from the list will not be exported.', 'give' ); ?></i>
176 <ul class="settings-excludes-list">
177 <?php foreach ( $export_excludes as $option_key => $option_label ) { ?>
178 <li>
179 <label for="settings_export_excludes[<?php echo $option_key ?>]">
180 <input
181 type="checkbox"
182 checked
183 name="settings_export_excludes[<?php echo $option_key ?>]"
184 id="settings_export_excludes[<?php echo $option_key ?>]"
185 />
186 <?php echo esc_html( $option_label ); ?>
187 </label>
188 </li>
189 <?php } ?>
190 </ul>
191 <?php } ?>
192 <input type="hidden" name="give-action" value="core_settings_export"/>
193 <input type="submit" value="<?php esc_attr_e( 'Export JSON', 'give' ); ?>" class="button-secondary"/>
194 </form>
195 </td>
196 </tr>
197 <?php
198 /**
199 * Fires in the reports export tab.
200 *
201 * Allows you to add new TR elements to the table after
202 * other elements.
203 *
204 * @since 1.0
205 */
206 do_action( 'give_tools_tab_export_table_bottom' );
207 ?>
208 </tbody>
209 </table>
210
211 <?php
212 /**
213 * Fires after the reports export tab.
214 *
215 * @since 1.0
216 */
217 do_action( 'give_tools_tab_export_content_bottom' );
218 ?>
219
220 </div>
221 <!-- .post-body-content -->
222 </div>
223 <!-- .post-body -->
224 </div><!-- #give-dashboard-widgets-wrap -->
225 </div><!-- #poststuff -->
226