PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.8.13
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.8.13
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 / about / tabs / lite-vs-pro.php

lite-vs-pro.php in Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) 1.8.13, at includes/admin/views/about/tabs/lite-vs-pro.php

160 lines 5.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 Lite vs Pro tab content.
10 *
11 * @author David Bisset
12 * @package Charitable/Admin View/About
13 * @copyright Copyright (c) 2024, WP Charitable LLC
14 * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
15 * @since 1.8.7.6
16 * @version 1.8.7.6
17 * @version 1.8.8.6
18 */
19
20 // Get license information
21 $charitable_license = 'lite'; // Default to lite for now
22 $charitable_next_license = 'Pro'; // Next license level
23
24 ob_start();
25 ?>
26
27 <div class="charitable-admin-about-section charitable-admin-about-section-squashed">
28 <h1 class="centered">
29 <strong><?php echo esc_html( ucfirst( $charitable_license ) ); ?></strong> vs <strong><?php echo esc_html( $charitable_next_license ); ?></strong>
30 </h1>
31
32 <p class="centered">
33 <?php esc_html_e( 'Get the most out of Charitable by upgrading to Pro and unlocking all of the powerful features.', 'charitable' ); ?>
34 </p>
35 </div>
36
37 <div class="charitable-admin-about-section charitable-admin-about-section-squashed charitable-admin-about-section-hero charitable-admin-about-section-table charitable-admin-about-section-table-no-padding">
38
39 <div class="charitable-admin-about-section-hero-main no-border charitable-admin-columns-lite-vs-pro">
40 <div class="charitable-admin-column-33">
41 <h3 class="no-margin">
42 <?php esc_html_e( 'Feature', 'charitable' ); ?>
43 </h3>
44 </div>
45 <div class="charitable-admin-column-33">
46 <h3 class="no-margin">
47 <?php echo esc_html( ucfirst( $charitable_license ) ); ?>
48 </h3>
49 </div>
50 <div class="charitable-admin-column-33">
51 <h3 class="no-margin">
52 <?php echo esc_html( $charitable_next_license ); ?>
53 </h3>
54 </div>
55 </div>
56 <div class="charitable-admin-about-section-hero-extra no-padding charitable-admin-columns-lite-vs-pro">
57
58 <table>
59 <?php
60 // Get features list - Charitable specific features
61 $charitable_features = array(
62 'campaigns' => esc_html__( 'Campaigns', 'charitable' ),
63 'payment_gateways' => esc_html__( 'Payment Gateways', 'charitable' ),
64 'recurring_donations' => esc_html__( 'Recurring Donations', 'charitable' ),
65 'suggested_amounts' => esc_html__( 'Suggested Donation Amounts', 'charitable' ),
66 'fundraising_goals' => esc_html__( 'Fundraising Goals & Progress Bars', 'charitable' ),
67 'peer_to_peer' => esc_html__( 'Peer-to-Peer Fundraising', 'charitable' ),
68 'ambassadors' => esc_html__( 'Ambassadors / Team Fundraising', 'charitable' ),
69 'donation_data' => esc_html__( 'Donation Data Management', 'charitable' ),
70 'donor_comments' => esc_html__( 'Donor Comments', 'charitable' ),
71 'donor_dashboard' => esc_html__( 'Donor Dashboard', 'charitable' ),
72 'pdf_receipts' => esc_html__( 'PDF Receipts', 'charitable' ),
73 'fee_relief' => esc_html__( 'Fee Relief', 'charitable' ),
74 'marketing' => esc_html__( 'Marketing Integrations', 'charitable' ),
75 'reporting' => esc_html__( 'Reporting & Analytics', 'charitable' ),
76 'extensions' => esc_html__( 'Extensions / Addons', 'charitable' ),
77 'support' => esc_html__( 'Customer Support', 'charitable' ),
78 );
79
80 $charitable_about_class = new Charitable_About();
81
82 foreach ( $charitable_features as $charitable_slug => $charitable_name ) {
83 $charitable_current = $charitable_about_class->get_license_data( $charitable_slug, $charitable_license );
84 $charitable_next = $charitable_about_class->get_license_data( $charitable_slug, strtolower( $charitable_next_license ) );
85
86 if ( empty( $charitable_current ) || empty( $charitable_next ) ) {
87 continue;
88 }
89
90 $charitable_current_status = $charitable_current['status'];
91
92 if ( $charitable_current['text'] !== $charitable_next['text'] && $charitable_current_status === 'full' ) {
93 $charitable_current_status = 'partial';
94 }
95 ?>
96 <tr class="charitable-admin-columns-lite-vs-pro">
97 <td class="charitable-admin-column-33">
98 <p><?php echo esc_html( $charitable_name ); ?></p>
99 </td>
100 <td class="charitable-admin-column-33">
101 <?php if ( is_array( $charitable_current ) ) : ?>
102 <p class="features-<?php echo esc_attr( $charitable_current_status ); ?>">
103 <?php echo wp_kses_post( implode( '<br>', $charitable_current['text'] ) ); ?>
104 </p>
105 <?php endif; ?>
106 </td>
107 <td class="charitable-admin-column-33">
108 <?php if ( is_array( $charitable_current ) ) : ?>
109 <p class="features-full">
110 <?php echo wp_kses_post( implode( '<br>', $charitable_next['text'] ) ); ?>
111 </p>
112 <?php endif; ?>
113 </td>
114 </tr>
115 <?php
116 }
117 ?>
118 </table>
119
120 </div>
121
122 </div>
123
124 <div class="charitable-admin-about-section charitable-admin-about-section-hero">
125 <div class="charitable-admin-about-section-hero-main no-border">
126 <h3 class="call-to-action centered">
127 <?php
128 printf(
129 '<a href="%s" target="_blank" rel="noopener noreferrer">',
130 esc_url( 'https://wpcharitable.com/pricing?utm_source=charitableplugin&utm_medium=link&utm_campaign=About%20Charitable' )
131 );
132 echo '🔥 Get Charitable Pro today and unlock all the powerful features to grow your fundraising.';
133 ?>
134 </a>
135 </h3>
136
137 <?php if ( $charitable_license === 'lite' ) { ?>
138 <p class="centered">
139 <?php
140 echo wp_kses(
141 __( 'Bonus: Charitable Lite users get <span class="price-20-off">50% off regular price</span>, automatically applied at checkout.', 'charitable' ),
142 array(
143 'span' => array(
144 'class' => array(),
145 ),
146 )
147 );
148 ?>
149 </p>
150 <?php } ?>
151 </div>
152 </div>
153
154 <div id="wpfooter">
155 <?php charitable_admin_view( 'admin-footer-promotion' ); ?>
156 </div>
157
158 <?php
159 echo ob_get_clean(); // phpcs:ignore
160