PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.8.13.1
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.8.13.1
1.8.13.1 1.8.13 1.8.12.3 1.8.12.2 1.8.12.1 1.8.12 1.8.11.3 1.8.11.2 1.8.11.1 1.8.11 1.6.6 1.6.60 1.6.7 1.6.8 1.6.9 1.7.0 1.7.0.1 1.7.0.11 1.7.0.12 1.7.0.14 1.7.0.2 1.7.0.3 1.7.0.5 1.7.0.6 1.7.0.7 All 212 releases
charitable / includes / admin / views / reports / advanced.php

advanced.php in Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) 1.8.13.1, at includes/admin/views/reports/advanced.php

112 lines 4.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 // Exit if accessed directly.
4 if ( ! defined( 'ABSPATH' ) ) {
5 exit;
6 }
7
8 /**
9 * Display the "advanced" reports page.
10 *
11 * @author David Bisset
12 * @package Charitable/Admin View/Settings
13 * @copyright Copyright (c) 2023, WP Charitable LLC
14 * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
15 * @since 1.8,1
16 * @version 1.8.1
17 * @version 1.8.8.6
18 */
19
20 $charitable_report_args = charitable_reports_get_advanced_report_args();
21
22 $charitable_reports = Charitable_Reports::get_instance();
23
24 if ( charitable_is_pro() ) :
25
26 $charitable_reports->init_with_array( $charitable_report_args['report_type'] );
27
28 $charitable_advanced_report_data = $charitable_reports->get_advanced_data_by_report_type( $charitable_report_args );
29
30 else :
31
32 $charitable_advanced_report_data = $charitable_reports->get_data_sample( 'advanced' );
33
34 endif;
35
36 $charitable_reports->maybe_load_scripts();
37 $charitable_reports->maybe_add_reports_cta();
38
39 $charitable_start_date_compare_from = $charitable_report_args['start_date_compare_from'];
40 $charitable_end_date_compare_from = $charitable_report_args['end_date_compare_from'];
41 $charitable_start_date_compare_to = $charitable_report_args['start_date_compare_to'];
42 $charitable_end_date_compare_to = $charitable_report_args['end_date_compare_to'];
43
44 ?>
45
46 <div class="tablenav top with-margin">
47 <div class="alignleft actions">
48 <?php if ( charitable_is_pro() ) : ?>
49 <label for="report-campaign-filter" class="screen-reader-text"><?php echo esc_html__( 'Select Report', 'charitable' ); ?></label>
50 <div class="charitable-datepicker-container"><label for="charitable-reports-start_date"><?php echo esc_html__( 'Select Report', 'charitable' ); ?>:</label>
51 <?php echo $charitable_reports->get_advanced_report_type_dropdown( $charitable_report_args['report_type'] ); // phpcs:ignore ?>
52 </div>
53 <?php else : ?>
54 <label for="report-campaign-filter" class="screen-reader-text"><?php echo esc_html__( 'Available Reports', 'charitable' ); ?></label>
55 <div class="charitable-datepicker-container"><label for="charitable-reports-start_date"><?php echo esc_html__( 'Available Reports', 'charitable' ); ?>:</label>
56 <?php echo $charitable_reports->get_advanced_report_type_dropdown( $charitable_report_args['report_type'] ); // phpcs:ignore ?>
57 </div>
58 <?php endif; ?>
59 </div>
60 <div class="alignright">
61
62 <div id="charitable-advanced-date-pickers">
63 <?php if ( charitable_is_pro() ) : ?>
64
65 <div class="charitable-advanced-date-picker" data-report-type="lybunt">
66 <label><?php echo esc_html__( 'Compare', 'charitable' ); ?> <input type="text" id="charitable-reports-topnav-datepicker-comparefrom-lybunt" class="charitable-reports-datepicker charitable-datepicker-ranged" data-start-date="<?php echo esc_html( $charitable_start_date_compare_from ); ?>" data-end-date="<?php echo esc_html( $charitable_end_date_compare_from ); ?>" value="<?php echo esc_html( $charitable_start_date_compare_from ); ?> - <?php echo esc_html( $charitable_end_date_compare_from ); ?>" />
67 <?php echo esc_html__( 'to', 'charitable' ); ?> <input type="text" id="charitable-reports-topnav-datepicker-compareto-lybunt" class="charitable-reports-datepicker charitable-datepicker-ranged" data-start-date="<?php echo esc_html( $charitable_start_date_compare_to ); ?>" data-end-date="<?php echo esc_html( $charitable_end_date_compare_to ); ?>" value="<?php echo esc_html( $charitable_start_date_compare_to ); ?> - <?php echo esc_html( $charitable_end_date_compare_to ); ?>" /></label>
68 </div>
69
70 <?php do_action( 'charitable_report_advanced_date_pickers' ); ?>
71
72 <?php endif; ?>
73 </div>
74
75 <div id="charitable-advanced-filter-buttons">
76 <?php if ( charitable_is_pro() ) : ?>
77
78 <div class="charitable-datepicker-container charitable-advanced-filter-button" data-report-type="lybunt">
79 <a href="#" class="button button-primary" id="charitable-reports-filter-button" data-filter-type="advanced"><?php echo esc_html__( 'Filter', 'charitable' ); ?></a>
80 </div>
81
82 <?php do_action( 'charitable_report_advanced_filter' ); ?>
83 <?php endif; ?>
84 </div>
85
86 </div>
87 <br class="clear">
88 </div>
89
90 <div class="charitable-advanced-report">
91
92 <div class="charitable-container charitable-title-card">
93
94 <div class="charitable-title-card-content">
95
96 <?php echo $charitable_reports->generate_title_card_html( $charitable_report_args['report_type'] ); // phpcs:ignore ?>
97
98 </div>
99
100 </div>
101
102 <div id="charitable-report-advanced-container">
103
104 <?php echo $charitable_reports->generate_advanced_breakdown_report_html( $charitable_report_args['report_type'], $charitable_advanced_report_data, $charitable_report_args ); // phpcs:ignore ?>
105
106 </div>
107
108 <br class="clear">
109
110 </div>
111
112 <br class="clear">