PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.8.11.3
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.8.11.3
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 / checklist / checklist.php

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

613 lines 30.0 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 setup checklist.
10 *
11 * @author David Bisset
12 * @package Charitable/Admin View/Tools
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.12
16 * @version 1.8.2
17 * @version 1.8.8.6
18 */
19
20 // get first name of logged in user...
21 $charitable_first_name = (string) get_user_meta( get_current_user_id(), 'first_name', true );
22 // .. and if that doesn't exist, use the username.
23 if ( ! empty( $charitable_first_name ) ) {
24 $charitable_first_name = ', ' . sanitize_text_field( $charitable_first_name );
25 }
26
27 $charitable_checklist_class = Charitable_Checklist::get_instance();
28 $charitable_checklist_state = $charitable_checklist_class->get_checklist_option( 'status' );
29 $charitable_checklist_classes = $charitable_checklist_class->get_steps_css();
30 $charitable_check_list_completed = $charitable_checklist_class->is_checklist_completed() ? 'charitable-checklist-completed' : '';
31
32 $charitable_checklist_urls = $charitable_checklist_class->get_steps_urls();
33 $charitable_checklist_stats = $charitable_checklist_class->get_steps_stats();
34
35 $charitable_onboarding_campaign_id = get_option( 'charitable_setup_campaign_created', 0 );
36 $charitable_onboarding_completed = $charitable_onboarding_campaign_id && get_option( 'charitable_ss_complete', false ) ? true : false;
37
38 $charitable_email_signup = get_option( 'charitable_email_signup', false );
39 $charitable_opt_in_tracking = charitable_get_usage_tracking_setting();
40
41 $charitable_checklist_classes['optin'] = $charitable_opt_in_tracking ? 'charitable-checklist-completed charitable-checklist-checked' : '';
42
43 $charitable_tab_leave_open_campaign = $charitable_checklist_class->is_step_completed( 'first-campaign' ) ? false : true;
44 $charitable_tab_leave_open_campaign = $charitable_onboarding_completed ? true : $charitable_tab_leave_open_campaign;
45
46
47 if ( ! is_array( $charitable_checklist_stats ) || empty( $charitable_checklist_stats ) ) {
48 $charitable_checklist_stats = [
49 'completed' => 0,
50 'total' => 5,
51 ];
52 }
53
54 // check if class exists...
55 if ( class_exists( 'Charitable_Gateway_Stripe_AM' ) ) {
56 $charitable_stripe_gateway = new Charitable_Gateway_Stripe_AM();
57 $charitable_redirect_url = admin_url( 'admin.php?page=charitable-setup-checklist&step=continue' );
58 $charitable_stripe_connect_url = $charitable_stripe_gateway->get_stripe_connect_url( $charitable_redirect_url );
59 $charitable_stripe_connected = $charitable_stripe_gateway->maybe_stripe_connected();
60 $charitable_gateway_mode = ( charitable_get_option( 'test_mode' ) ) ? 'test' : 'live';
61 } else {
62 $charitable_stripe_connect_url = '';
63 $charitable_stripe_connected = false;
64 $charitable_gateway_mode = '';
65 }
66
67
68 ob_start();
69 ?>
70
71 <div id="charitable-setup-checklist-wrap" class="wrap">
72
73 <h2 class="nav-tab-wrapper">
74 <a href="<?php echo esc_url( admin_url( 'admin.php?page=charitable-about&view=about' ) ); ?>" class="nav-tab"><?php esc_html_e( 'About Us', 'charitable' ); ?></a>
75 <a href="<?php echo esc_url( admin_url( 'admin.php?page=charitable-about&view=getting-started' ) ); ?>" class="nav-tab nav-tab-active"><?php esc_html_e( 'Getting Started', 'charitable' ); ?></a>
76 <a href="<?php echo esc_url( admin_url( 'admin.php?page=charitable-about&view=lite-vs-pro' ) ); ?>" class="nav-tab"><?php esc_html_e( 'Lite vs Pro', 'charitable' ); ?></a>
77 </h2>
78
79 <main id="charitable-setup-checklist" class="charitable-setup-checklist">
80
81 <div class="charitable-setup-checklist-container">
82
83 <header class="charitable-main-header">
84
85 <?php if ( $charitable_checklist_class->is_checklist_completed() ) : ?>
86
87 <h1><?php esc_html_e( 'Great job', 'charitable' ); ?><?php echo esc_html( $charitable_first_name ); ?>!</h1>
88
89 <p>
90 <?php
91
92 echo wp_kses_post(
93 sprintf(
94 /* translators: Suggestion on completion of checklist on checklist page. */
95 __( '<strong>%1$s</strong> What\'s Next?', 'charitable' ),
96 esc_html__( 'You\'ve completed the checklist!', 'charitable' )
97 )
98 );
99
100 ?>
101 </p>
102
103 <ul class="charitable-more-links">
104 <li><span class="dashicons dashicons-yes"></span>
105 <?php
106
107
108 printf(
109 /* translators: Suggestion on completion of checklist on checklist page. */
110 __( 'Don\'t forget to visit the <a href="%1$s" target="_blank">%2$s</a> and <a href="%3$s" target="_blank">%4$s</a> to see your fundraising stats and grow your campaigns.', 'charitable' ), // phpcs:ignore
111 esc_url( admin_url( 'admin.php?page=charitable-dashboard' ) ),
112 esc_html__( 'dashboard', 'charitable' ),
113 esc_url( admin_url( 'admin.php?page=charitable-reports' ) ),
114 esc_html__( 'view reports', 'charitable' )
115 );
116 ?>
117 </li>
118 <li><span class="dashicons dashicons-yes"></span>
119 <?php
120 $charitable_allowed_links = array( 'a' => array( 'href' => array(), 'target' => array() ) );
121 $charitable_checklist_msg = sprintf(
122 /* translators: Suggestion on completion of checklist on checklist page. */
123 __( '%1$s <a href="https://www.wpcharitable.com/documentation/" target="_blank">%2$s</a> %3$s <a href="https://www.wpcharitable.com/support/" target="_blank">%4$s</a>.', 'charitable' ),
124 esc_html__( 'Need help? Visit our', 'charitable' ),
125 esc_html__( 'documentation', 'charitable' ),
126 esc_html__( 'or', 'charitable' ),
127 esc_html__( 'contact support', 'charitable' )
128 );
129 echo wp_kses( $charitable_checklist_msg, $charitable_allowed_links );
130 ?>
131 </li>
132 <li><span class="dashicons dashicons-yes"></span>
133 <?php
134 // translators: Suggestion on completion of checklist on checklist page.
135 printf( __( '<a href="%1$s">%2$s</a> to unlock more features, get priority support, and take your campaigns to the next level!', 'charitable' ), esc_url( charitable_admin_upgrade_link( 'welcome', 'Upgrade Now CTA Section' ) ), esc_html__( 'Upgrade to Pro', 'charitable' ) ); // phpcs:ignore
136 ?>
137 </li>
138 </ul>
139
140 <?php else : ?>
141
142 <h1><?php esc_html_e( 'Welcome Aboard', 'charitable' ); ?><?php echo esc_html( $charitable_first_name ); ?>!</h1>
143
144 <?php
145
146 // if the user has completed onboarding, show a different message.
147 if ( $charitable_onboarding_completed ) :
148
149 ?>
150
151 <p>
152 <?php
153 // translators: Suggestion on completion of checklist on checklist page.
154 printf( __( '<strong>%1$s</strong> View remaining steps below to improve your fundraising efforts.', 'charitable' ), esc_html__( 'Thanks for setting up Charitable! ', 'charitable' ) ); // phpcs:ignore
155 ?>
156 </p>
157 <?php else : ?>
158 <p>
159 <?php
160 // translators: Suggestion on completion of checklist on checklist page.
161 printf( __( '<strong>%1$s</strong> Follow these steps to start fundraising quickly.', 'charitable' ), esc_html__( 'Thanks for installing Charitable! ', 'charitable' ) ); // phpcs:ignore
162 ?>
163 </p>
164 <?php
165
166 endif;
167
168 endif;
169 ?>
170
171 </header>
172
173 <section class="charitable-step charitable-step-connect-payment
174 <?php
175 if ( $charitable_checklist_class->is_step_completed( 'connect-gateway' ) ) :
176 echo 'charitable-closed';
177 endif;
178 ?>
179 " data-section-name="connect-payment">
180 <header>
181 <h2><span class="charitable-checklist-checkbox <?php echo esc_attr( $charitable_checklist_classes['connect-gateway'] ); ?>"></span><?php esc_html_e( 'Connect To Payment Gateway', 'charitable' ); ?></h2>
182 <a href="#" class="charitable-toggle"><i class="fa fa-angle-down charitable-angle-down
183 <?php
184 if ( $charitable_checklist_class->is_step_completed( 'connect-gateway' ) ) :
185 echo 'charitable-angle-right';
186 endif;
187 ?>
188 "></i></a>
189 </header>
190 <div class="charitable-toggle-container charitable-step-content charitable-step-one-col-content charitable-column"
191 <?php
192 if ( $charitable_checklist_class->is_step_completed( 'connect-gateway' ) ) :
193 echo 'style="display:none;"';
194 endif;
195 ?>
196 >
197 <?php if ( $charitable_stripe_connect_url ) : ?>
198 <div class="charitable-sub-container charitable-connect-stripe">
199 <div>
200 <div class="charitable-gateway-icon"><img src="<?php echo esc_url( charitable()->get_path( 'assets', false ) ); ?>images/onboarding/stripe-checklist.svg" alt="" /></div><div class="charitable-gateway-info-column">
201 <h3><?php esc_html_e( 'Stripe', 'charitable' ); ?> <span class="charitable-badge charitable-badge-sm charitable-badge-inline charitable-badge-green charitable-badge-rounded"><i class="fa fa-star" aria-hidden="true"></i><?php esc_html_e( 'Recommended', 'charitable' ); ?></span></h3>
202 <?php if ( ! $charitable_stripe_connected ) : ?>
203 <p><?php esc_html_e( 'You can create and connect to your Stripe account in just a few minutes.', 'charitable' ); ?></p>
204 <?php else : ?>
205 <p><?php printf( '%s <strong>%s %s</strong>.', esc_html__( 'Good news! You have connected to Stripe in', 'charitable' ), esc_html( $charitable_gateway_mode ), esc_html__( ' mode', 'charitable' ) ); ?></p>
206 <?php endif; ?>
207 </div>
208 </div>
209 <div>
210 <?php if ( ! $charitable_stripe_connected ) : ?>
211 <a href="<?php echo esc_url( $charitable_stripe_connect_url ); ?>"><div class="wpcharitable-stripe-connect"><span><?php esc_html_e( 'Connect With', 'charitable' ); ?></span>&nbsp;&nbsp;<svg width="49" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M48.4718 10.3338c0-3.41791-1.6696-6.11484-4.8607-6.11484-3.2045 0-5.1434 2.69693-5.1434 6.08814 0 4.0187 2.289 6.048 5.5743 6.048 1.6023 0 2.8141-.3604 3.7296-.8678v-2.6702c-.9155.4539-1.9658.7343-3.2987.7343-1.3061 0-2.464-.4539-2.6121-2.0294h6.5841c0-.1735.0269-.8678.0269-1.1882Zm-6.6514-1.26838c0-1.50868.929-2.13618 1.7773-2.13618.8213 0 1.6965.6275 1.6965 2.13618h-3.4738Zm-8.5499-4.84646c-1.3195 0-2.1678.61415-2.639 1.04139l-.1751-.82777h-2.9621V20l3.3661-.7076.0134-3.7784c.4847.3471 1.1984.8411 2.3832.8411 2.4102 0 4.6048-1.9225 4.6048-6.1548-.0134-3.87186-2.235-5.98134-4.5913-5.98134Zm-.8079 9.19894c-.7944 0-1.2656-.2804-1.5888-.6275l-.0134-4.95328c.35-.38719.8348-.65421 1.6022-.65421 1.2253 0 2.0735 1.36182 2.0735 3.11079 0 1.7891-.8347 3.1242-2.0735 3.1242Zm-9.6001-9.98666 3.3796-.72096V0l-3.3796.70761v2.72363Zm0 1.01469h3.3796V16.1282h-3.3796V4.44593Zm-3.6219.98798-.2154-.98798h-2.9083V16.1282h3.3661V8.21095c.7944-1.02804 2.1408-.84112 2.5582-.69426V4.44593c-.4309-.16022-2.0062-.45394-2.8006.98798Zm-6.7322-3.88518-3.2853.69426-.01346 10.69421c0 1.976 1.49456 3.4313 3.48726 3.4313 1.1041 0 1.912-.2003 2.3563-.4406v-2.7103c-.4309.1736-2.5583.7877-2.5583-1.1882V7.28972h2.5583V4.44593h-2.5583l.0135-2.8972ZM3.40649 7.83712c0-.5207.43086-.72096 1.14447-.72096 1.0233 0 2.31588.30707 3.33917.85447V4.83311c-1.11755-.44059-2.22162-.61415-3.33917-.61415C1.81769 4.21896 0 5.63418 0 7.99733c0 3.68487 5.11647 3.09747 5.11647 4.68627 0 .6141-.53858.8144-1.29258.8144-1.11755 0-2.54477-.4539-3.675782-1.0681v3.1776c1.252192.534 2.517842.761 3.675782.761 2.80059 0 4.72599-1.3752 4.72599-3.765-.01346-3.97867-5.14339-3.27106-5.14339-4.76638Z" fill="#fff"/></svg></div></a>
212 <?php else : ?>
213 <a target="_blank" href="<?php echo esc_url( admin_url( 'admin.php?page=charitable-settings&tab=gateways&group=gateways_stripe' ) ); ?>" class="charitable-button charitable-button-primary"><?php esc_html_e( 'Connected', 'charitable' ); ?></a>
214 <?php endif; ?>
215 </div>
216 </div>
217 <div class="charitable-sub-container charitable-step-one-col-content charitable-column">
218 <?php if ( ! $charitable_stripe_connected ) : ?>
219 <div class="charitable-sub-container-row">
220 <?php // translators: Suggestion on completion of checklist on checklist page. ?>
221 <p><?php echo wp_kses_post( sprintf( __( '<strong>Stripe not available in your country?</strong> Charitable works with payment gateways like PayPal, Authorize.net, Braintree, Payrexx, PayUMoney, GoCardless, and others. <a target="_blank" href="%s">View additional payment options</a> available with PRO extensions.', 'charitable' ), esc_url( admin_url( 'admin.php?page=charitable-addons' ) ) ) ); ?></p>
222 </div>
223 <?php else : ?>
224 <?php endif; ?>
225 </div>
226 <?php endif; ?>
227 </div>
228 </section>
229
230 <section class="charitable-step charitable-step-opt-in
231 <?php
232 if ( $charitable_opt_in_tracking ) :
233 echo 'charitable-closed';
234 endif;
235 ?>
236 " data-section-name="opt-in">
237 <header>
238 <h2><span class="charitable-checklist-checkbox <?php echo esc_attr( $charitable_checklist_classes['optin'] ); ?>"></span><?php esc_html_e( 'Never Miss An Important Update', 'charitable' ); ?></h2>
239 <a href="#" class="charitable-toggle"><i class="fa fa-angle-down charitable-angle-down
240 <?php
241 if ( $charitable_opt_in_tracking ) :
242 echo 'charitable-angle-right';
243 endif;
244 ?>
245 "></i></a>
246 </header>
247 <div class="charitable-toggle-container"
248 <?php
249 if ( $charitable_opt_in_tracking ) :
250 echo 'style="display:none;"';
251 endif;
252 ?>
253 >
254 <div class="charitable-step-content charitable-step-two-col-content charitable-equal-flex">
255 <div class="charitable-bonus-step-container">
256 <div>
257 <p>
258 <span class="chartiable-opt-in-tracking
259 <?php
260 if ( $charitable_opt_in_tracking ) :
261 echo 'charitable-hidden';
262 endif;
263 ?>
264 ">
265 <?php
266
267 $charitable_url = preg_replace( '(^https?://)', '', site_url() );
268
269 printf(
270 // Translators: %s: domain.
271 esc_html__( 'Opt in to get email notifications for security & feature updates, educational content, and occasional offers, and to share some basic WordPress environment info. This will help us make the plugin more compatible with %s to ensure you get donations and run campaigns smoothly.', 'charitable' ),
272 '<strong>' . esc_html( $charitable_url ) . '</strong>'
273 );
274
275
276 ?>
277 </span>
278 <span class="chartiable-opt-in-tracking-1
279 <?php
280 if ( ! $charitable_opt_in_tracking ) :
281 echo 'charitable-hidden';
282 endif;
283 ?>
284 ">
285 <?php
286
287 printf(
288 // Translators: %s: domain.
289 esc_html__( 'Being opt in you get email notifications for security & feature updates, educational content, and occasional offers. You also share some basic WordPress environment info that helps us make the plugin more compatible with %s to ensure you get donations and run campaigns smoothly.', 'charitable' ),
290 '<strong>' . esc_html( $charitable_url ) . '</strong>'
291 );
292
293 ?>
294 </span>
295 </p>
296
297 <p class="charitable-step-opt-in-allow-title"><a href="#" class="charitable-toggle-optin-allow"><?php esc_html_e( 'This will allow Charitable to:', 'charitable' ); ?> <i class="fa fa-angle-down charitable-angle-down charitable-angle-right"></i></a></p>
298 <div class="charitable-checklist-allow">
299 <ul>
300 <li>
301 <div class="charitable-checklist-allow-icon"><span class="dashicons dashicons-admin-users"></span></div>
302 <div class="charitable-checklist-allow-text">
303 <h6><?php esc_html_e( 'View Basic Info', 'charitable' ); ?></h6>
304 <p><?php esc_html_e( 'Your WordPress\'s version, mySQL & PHP versions, basic server information.', 'charitable' ); ?></p>
305 </div>
306 </li>
307 <li>
308 <div class="charitable-checklist-allow-icon"><span class="dashicons dashicons-admin-plugins"></span></div>
309 <div class="charitable-checklist-allow-text">
310 <h6><?php esc_html_e( 'View Charitable Settings Info', 'charitable' ); ?></h6>
311 <p><?php esc_html_e( 'Charitable version, license key email and url to troubleshoot authentication.', 'charitable' ); ?></p>
312 </div>
313 </li>
314 <li>
315 <div class="charitable-checklist-allow-icon"><span class="dashicons dashicons-art"></span></div>
316 <div class="charitable-checklist-allow-text">
317 <h6><?php esc_html_e( 'View Plugins &amp; Themes List', 'charitable' ); ?></h6>
318 <p><?php esc_html_e( 'Names, slugs, versions, etc. to know what to support and test against.', 'charitable' ); ?></p>
319 </div>
320 </li>
321 <li>
322 <?php
323 // translators: %s: link to documentation.
324 printf( esc_html__( 'Read %s for full details.', 'charitable' ), '<a style="margin-left:4px; margin-right: 4px;" href="' . esc_url( 'https://www.wpcharitable.com/documentation/usage-tracking/' ) . '" target="_blank">' . esc_html__( 'our documentation', 'charitable' ) . '</a>' );
325 ?>
326 </li>
327 </ul>
328 </div>
329 </div>
330 <div class="charitable-button-column">
331 <?php if ( ! $charitable_opt_in_tracking ) : ?>
332 <a data-optin-tracking-status="not-joined" href="#" class="charitable-button charitable-button-primary alt"><?php esc_html_e( 'Allow &amp; Continue', 'charitable' ); ?> <i class="fa fa-arrow-right"></i></a>
333 <?php else : ?>
334 <a data-optin-tracking-status="joined" href="#" class="charitable-button charitable-button-primary"><?php esc_html_e( 'Opt Out', 'charitable' ); ?> <i class="fa fa-arrow-right"></i></a>
335 <?php endif; ?>
336 </div>
337 </div>
338 </div>
339 </div>
340
341 </section>
342
343 <section class="charitable-step charitable-step-plugin-config
344 <?php
345 if ( $charitable_checklist_class->is_step_completed( 'general-settings' ) ) :
346 echo 'charitable-closed';
347 endif;
348 ?>
349 " data-section-name="plugin-config">
350 <header> <?php /* charitable-checklist-checked if done */ ?>
351 <h2><span class="charitable-checklist-checkbox <?php echo esc_attr( $charitable_checklist_classes['general-settings'] ); ?>"></span><?php esc_html_e( 'Confirm General Settings', 'charitable' ); ?></h2>
352 <a href="#" class="charitable-toggle"><i class="fa fa-angle-down charitable-angle-down
353 <?php
354 if ( $charitable_checklist_class->is_step_completed( 'general-settings' ) ) :
355 echo 'charitable-angle-right';
356 endif;
357 ?>
358 "></i></a>
359 </header>
360 <div class="charitable-toggle-container charitable-step-content charitable-step-two-col-content charitable-equal-flex"
361 <?php
362 if ( $charitable_checklist_class->is_step_completed( 'general-settings' ) ) :
363 echo 'style="display:none;"';
364 endif;
365 ?>
366 >
367 <div class="charitable-reduced-width">
368 <p>
369 <?php printf( esc_html__( 'Take a few seconds to confirm your currency, location, and donation form settings.', 'charitable' ) ); ?>
370 </p>
371 </div>
372 <?php
373
374 $charitable_button_css = $charitable_checklist_class->is_step_completed( 'general-settings' ) ? 'charitable-button-primary' : 'charitable-button-primary alt';
375
376 ?>
377 <a href="<?php echo esc_url( $charitable_checklist_urls['general-settings'] ); ?>" class="charitable-button <?php echo esc_attr( $charitable_button_css ); ?>"><?php esc_html_e( 'Confirm General Settings', 'charitable' ); ?></a>
378 </div>
379 </section>
380
381 <section class="charitable-step charitable-step-email-settings
382 <?php
383 if ( $charitable_checklist_class->is_step_completed( 'email-settings' ) ) :
384 echo 'charitable-closed';
385 endif;
386 ?>
387 " data-section-name="email-settings">
388 <header>
389 <h2><span class="charitable-checklist-checkbox <?php echo esc_attr( $charitable_checklist_classes['email-settings'] ); ?>"></span><?php esc_html_e( 'Confirm Email Settings', 'charitable' ); ?></h2>
390 <a href="#" class="charitable-toggle"><i class="fa fa-angle-down charitable-angle-down
391 <?php
392 if ( $charitable_checklist_class->is_step_completed( 'email-settings' ) ) :
393 echo 'charitable-angle-right';
394 endif;
395 ?>
396 "></i></a>
397 </header>
398 <div class="charitable-toggle-container charitable-step-content charitable-step-two-col-content"
399 <?php
400 if ( $charitable_checklist_class->is_step_completed( 'email-settings' ) ) :
401 echo 'style="display:none;"';
402 endif;
403 ?>
404 >
405 <div class="charitable-reduced-width">
406 <p><?php esc_html_e( 'Quickly set up automated emails to send receipts to donors and admin notifications to you when a donation is made.', 'charitable' ); ?></p>
407 </div>
408 <?php
409
410 $charitable_button_css = $charitable_checklist_class->is_step_completed( 'email-settings' ) ? 'charitable-button-primary' : 'charitable-button-primary alt';
411
412 ?>
413 <a href="<?php echo esc_url( $charitable_checklist_urls['email-settings'] ); ?>" class="charitable-button <?php echo esc_attr( $charitable_button_css ); ?>"><?php esc_html_e( 'Confirm Email Settings', 'charitable' ); ?></a>
414 </div>
415 </section>
416
417 <section class="charitable-step charitable-step-create-first-campaign
418 <?php
419 if ( ! $charitable_tab_leave_open_campaign ) :
420 echo 'charitable-closed';
421 endif;
422 ?>
423 " data-section-name="first-campaign">
424 <header>
425 <h2><span class="charitable-checklist-checkbox <?php echo esc_attr( $charitable_checklist_classes['first-campaign'] ); ?>"></span><?php esc_html_e( 'Create Your First Campaign', 'charitable' ); ?></h2>
426 <a href="#" class="charitable-toggle"><i class="fa fa-angle-down charitable-angle-down
427 <?php
428 if ( ! $charitable_tab_leave_open_campaign ) :
429 echo 'charitable-angle-right';
430 endif;
431 ?>
432 "></i></a>
433 </header>
434 <div class="charitable-toggle-container charitable-step-content charitable-step-two-col-content"
435 <?php
436 if ( ! $charitable_tab_leave_open_campaign ) :
437 echo 'style="display:none;"';
438 endif;
439 ?>
440 >
441 <div>
442 <?php
443
444 if ( $charitable_onboarding_campaign_id ) :
445 ?>
446
447 <p><?php esc_html_e( 'You have already created your first campaign! You can edit, update, or publish it with new content.', 'charitable' ); ?></p>
448
449 <?php else : ?>
450 <p><?php esc_html_e( 'Build and launch your fundraiser campaign to start collecting donations right away.', 'charitable' ); ?></p>
451 <?php endif; ?>
452 </div>
453 <?php
454
455 $charitable_button_css = $charitable_checklist_class->is_step_completed( 'first-campaign' ) ? 'charitable-button-primary' : 'charitable-button-primary alt';
456
457 ?>
458 <?php
459
460 if ( ! $charitable_onboarding_campaign_id ) :
461 ?>
462 <a href="<?php echo esc_url( admin_url( 'admin.php?page=charitable-campaign-builder&view=template' ) ); ?>" class="charitable-button <?php echo esc_attr( $charitable_button_css ); ?>"><?php esc_html_e( 'Create Campaign', 'charitable' ); ?></a>
463 <?php else : ?>
464 <a href="<?php echo esc_url( admin_url( 'admin.php?page=charitable-campaign-builder&campaign_id=' . intval( $charitable_onboarding_campaign_id ) ) ); ?>" class="charitable-button <?php echo esc_attr( $charitable_button_css ); ?>"><?php esc_html_e( 'Edit Campaign', 'charitable' ); ?></a>
465 <?php endif; ?>
466 </div>
467 </section>
468
469 <?php
470
471 $charitable_button_css = $charitable_checklist_class->is_step_completed( 'next-level' ) ? 'charitable-button-primary' : 'charitable-button-primary alt';
472
473 ?>
474
475 <section class="charitable-step charitable-step-fundraising-next-level
476 <?php
477 if ( $charitable_checklist_class->is_step_completed( 'next-level' ) ) :
478 echo 'charitable-closed';
479 endif;
480 ?>
481 " data-section-name="fundraising-next-level">
482 <header>
483 <h2><span class="charitable-checklist-checkbox <?php echo esc_attr( $charitable_checklist_classes['next-level'] ); ?>"></span><?php esc_html_e( 'Take Fundraising To The Next Level', 'charitable' ); ?>
484 <?php
485 if ( ! $charitable_checklist_class->is_step_completed( 'next-level' ) ) :
486 ?>
487 <small><?php esc_html_e( 'Explore the feature you find most intriguing to complete this step!', 'charitable' ); ?></small><?php endif; ?></h2>
488 <a href="#" class="charitable-toggle"><i class="fa fa-angle-down charitable-angle-down
489 <?php
490 if ( $charitable_checklist_class->is_step_completed( 'next-level' ) ) :
491 echo 'charitable-angle-right';
492 endif;
493 ?>
494 "></i></a>
495 </header>
496 <div class="charitable-toggle-container charitable-step-content charitable-step-one-col-content charitable-column"
497 <?php
498 if ( $charitable_checklist_class->is_step_completed( 'next-level' ) ) :
499 echo 'style="display:none;"';
500 endif;
501 ?>
502 >
503 <div class="charitable-sub-container">
504 <div>
505 <div class="charitable-next-level-icon"><img src="<?php echo esc_url( charitable()->get_path( 'assets', false ) ); ?>images/onboarding/checklist-fundraiser-1.svg" alt="" /></div>
506 <div class="charitable-gateway-info-column"><h3><?php esc_html_e( 'Ambassadors', 'charitable' ); ?></h3>
507 <p><?php esc_html_e( 'Transform your website into a peer-to-peer fundraising platform.', 'charitable' ); ?></p>
508 </div>
509 </div>
510 <div>
511 <a target="_blank" href="<?php echo esc_url( charitable_utm_link( 'https://wpcharitable.com/extensions/charitable-ambassadors/', 'CheckList', 'More Information' ) ); ?>" class="charitable-button <?php echo esc_attr( $charitable_button_css ); ?>"><?php esc_html_e( 'More Information', 'charitable' ); ?></a>
512 </div>
513 </div>
514 <div class="charitable-sub-container">
515 <div>
516 <div class="charitable-next-level-icon"><img src="<?php echo esc_url( charitable()->get_path( 'assets', false ) ); ?>images/onboarding/checklist-fundraiser-2.svg" alt="" /></div>
517 <div class="charitable-gateway-info-column"><h3><?php esc_html_e( 'Recurring Donations', 'charitable' ); ?></h3>
518 <p><?php esc_html_e( 'Grow your organization\'s revenue with recurring donations.', 'charitable' ); ?></p>
519 </div>
520 </div>
521 <div>
522 <a target="_blank" href="<?php echo esc_url( charitable_utm_link( 'https://wpcharitable.com/extensions/charitable-recurring-donations/', 'CheckList', 'More Information' ) ); ?>" class="charitable-button <?php echo esc_attr( $charitable_button_css ); ?>"><?php esc_html_e( 'More Information', 'charitable' ); ?></a>
523 </div>
524 </div>
525 <div class="charitable-sub-container">
526 <div>
527 <div class="charitable-next-level-icon"><img src="<?php echo esc_url( charitable()->get_path( 'assets', false ) ); ?>images/onboarding/checklist-fundraiser-3.svg" alt="" /></div>
528 <div class="charitable-gateway-info-column"><h3><?php esc_html_e( 'Fee Relief', 'charitable' ); ?></h3>
529 <p><?php esc_html_e( 'Give your donors the option to cover the processing fees on their donations.', 'charitable' ); ?></p>
530 </div>
531 </div>
532 <div>
533 <a target="_blank" href="<?php echo esc_url( charitable_utm_link( 'https://wpcharitable.com/extensions/charitable-fee-relief/', 'CheckList', 'More Information' ) ); ?>" class="charitable-button <?php echo esc_attr( $charitable_button_css ); ?>"><?php esc_html_e( 'More Information', 'charitable' ); ?></a>
534 </div>
535 </div>
536 </div>
537 </section>
538
539 <?php if ( ! $charitable_checklist_class->is_checklist_completed() ) : ?>
540 <section class="charitable-step-footer">
541 <div class="charitable-step-footer-interior">
542 <a href="<?php echo esc_url( admin_url( 'admin.php?page=charitable-setup-checklist&completed=true' ) ); ?>" class="charitable-text-link">
543 <span class="underline"><?php esc_html_e( 'Complete Checklist', 'charitable' ); ?></span>
544 </a>
545 </div>
546 </section>
547 <?php endif; ?>
548
549 <?php if ( defined( 'CHARITABLE_SHOW_LAUNCH_WIZARD' ) && CHARITABLE_SHOW_LAUNCH_WIZARD ) { ?>
550 <section class="charitable-step-footer">
551 <div class="charitable-step-footer-interior">
552 <a href="<?php echo esc_url( charitable_get_onboarding_url() ); ?>" class="charitable-text-link">
553 <span class="underline"><?php esc_html_e( 'Launch Onboarding Wizard', 'charitable' ); ?></span>
554 </a>
555 </div>
556 </section>
557 <?php } ?>
558
559 <?php if ( ! charitable_is_pro() ) : ?>
560
561 <section class="charitable-upgrade-cta upgrade">
562
563 <div class="block">
564
565 <div class="left">
566 <h2><?php esc_html_e( 'Upgrade to PRO', 'charitable' ); ?></h2>
567 <ul>
568 <li><span class="dashicons dashicons-yes"></span> <?php esc_html_e( 'No Platform Fees', 'charitable' ); ?></li>
569 <li><span class="dashicons dashicons-yes"></span> <?php esc_html_e( 'Recurring Donations', 'charitable' ); ?></li>
570 <li><span class="dashicons dashicons-yes"></span> <?php esc_html_e( 'Advanced Reporting', 'charitable' ); ?></li>
571 <li><span class="dashicons dashicons-yes"></span> <?php esc_html_e( 'Payment Options', 'charitable' ); ?></li>
572 <li><span class="dashicons dashicons-yes"></span> <?php esc_html_e( 'Fee Relief', 'charitable' ); ?></li>
573 <li><span class="dashicons dashicons-yes"></span> <?php esc_html_e( 'Gift Aid', 'charitable' ); ?></li>
574 <li><span class="dashicons dashicons-yes"></span> <?php esc_html_e( 'Campaign Updates', 'charitable' ); ?></li>
575 <li><span class="dashicons dashicons-yes"></span> <?php esc_html_e( 'Geolocation', 'charitable' ); ?></li>
576 <li><span class="dashicons dashicons-yes"></span> <?php esc_html_e( 'PDF Receipts', 'charitable' ); ?></li>
577 <li><span class="dashicons dashicons-yes"></span> <?php esc_html_e( 'Annual Receipts', 'charitable' ); ?></li>
578 <li><span class="dashicons dashicons-yes"></span> <?php esc_html_e( 'Videos', 'charitable' ); ?></li>
579 <li><span class="dashicons dashicons-yes"></span> <?php esc_html_e( 'Marketing Integrations', 'charitable' ); ?></li>
580 <li><span class="dashicons dashicons-yes"></span> <?php esc_html_e( 'Peer-to-Peer Fundraising', 'charitable' ); ?></li>
581 <li><span class="dashicons dashicons-yes"></span> <?php esc_html_e( 'Spam Blocking', 'charitable' ); ?></li>
582 </ul>
583 </div>
584
585 <div class="right">
586 <h2><span><?php esc_html_e( 'PRO', 'charitable' ); ?></span></h2>
587 <div class="price">
588 <span class="amount"><?php esc_html_e( '199', 'charitable' ); ?></span><br>
589 <span class="term"><?php esc_html_e( 'per year', 'charitable' ); ?></span>
590 </div>
591 <a href="<?php echo esc_url( charitable_admin_upgrade_link( 'welcome', 'Upgrade Now CTA Section' ) ); ?>" rel="noopener noreferrer" target="_blank"
592 class="charitable-button-link charitable-button-orange charitable-upgrade-modal">
593 <?php esc_html_e( 'Upgrade Now', 'charitable' ); ?>
594 </a>
595 </div>
596
597 </div>
598
599 </section>
600
601 <?php endif; ?>
602
603
604 </div>
605
606 </main>
607
608
609
610 </div>
611 <?php
612 echo ob_get_clean(); // phpcs:ignore
613