PluginProbe ʕ •ᴥ•ʔ
GiveWP – Donation Plugin and Fundraising Platform / 4.14.2
GiveWP – Donation Plugin and Fundraising Platform v4.14.2
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 / src / Onboarding / Setup / templates / index.html.php
give / src / Onboarding / Setup / templates Last commit date
stories 11 months ago action-button.html 1 year ago action-link.html 1 year ago activate-license.html 1 year ago badge.html 1 year ago dismiss.html 5 years ago footer.html 5 years ago index.html.php 11 months ago row-item.html 5 years ago section.html 1 year ago sub-header.html 5 years ago
index.html.php
443 lines
1 <?php
2 /**
3 * GiveWP Onboarding Setup Guide template file
4 *
5 * @since 3.15.0 Refactored to make it compatible with v3 forms.
6 * @since 2.8.0
7 */
8
9 /**
10 * Variables from onboarding PageView
11 *
12 * @var array $settings
13 */
14
15 ?>
16 <div class="wrap" class="give-setup-page">
17
18 <h1 class="wp-heading-inline">
19 <?php
20 echo __('GiveWP Setup Guide', 'give'); ?>
21 </h1>
22
23 <hr class="wp-header-end">
24
25 <?php
26 if (isset($_GET['give_setup_stripe_error'])) : ?>
27 <div class="notice notice-error">
28 <p><?php
29 echo esc_html($_GET['give_setup_stripe_error']); ?></p>
30 </div>
31 <?php
32 endif; ?>
33
34 <?php
35 /**
36 * Use this action to perform task before section loads.
37 *
38 * @since 2.10.0
39 */
40 do_action('give_setup_page_before_sections');
41 ?>
42
43 <!-- Configuration -->
44 <?php
45 if ($this->isFormConfigured()) {
46 $campaign = give()->campaigns->getByFormId((int)$settings['form_id']);
47
48 $customizeCampaignURL = $campaign && $campaign->id
49 ? admin_url('edit.php?post_type=give_forms&page=give-campaigns&tab=settings&id=' . $campaign->id)
50 : admin_url('edit.php?post_type=give_forms&page=give-campaigns');
51 }
52
53 echo $this->render_template(
54 'section',
55 [
56 'class' => !$this->isFormConfigured() ? 'current-step' : '',
57 'title' => sprintf('%s 1: %s', __('Step', 'give'), __('Create your first campaign', 'give')),
58 'badge' => ($this->isFormConfigured()
59 ? $this->render_template('badge', [
60 'class' => 'completed',
61 'text' => esc_html__('Completed', 'give'),
62 ])
63 : $this->render_template('badge', [
64 'class' => 'not-completed',
65 'text' => esc_html__('Not Completed', 'give'),
66 ])
67 ),
68 'button' => ($this->isFormConfigured()
69 ? $this->render_template('action-button', [
70 'href' => esc_url($customizeCampaignURL),
71 'text' => esc_html__('Customize campaign', 'give'),
72 'target' => '_blank',
73 ])
74 : $this->render_template('action-button', [
75 'href' => esc_url(admin_url('?page=give-onboarding-wizard')),
76 'text' => esc_html__('Configure GiveWP', 'give'),
77 'target' => '_blank',
78 ])
79 ),
80 ]
81 );
82 ?>
83
84 <!-- Gateways -->
85 <?php
86 echo $this->render_template(
87 'section',
88 [
89 'class' => ($this->isFormConfigured() && !($this->isStripeSetup() || $this->isPayPalSetup())) ? 'current-step' : '',
90 'title' => sprintf('%s 2: %s', __('Step', 'give'), __('Connect a payment gateway', 'give')),
91 'badge' => (($this->isStripeSetup() || $this->isPayPalSetup())
92 ? $this->render_template('badge', [
93 'class' => 'completed',
94 'text' => esc_html__('Completed', 'give'),
95 ])
96 : $this->render_template('badge', [
97 'class' => 'not-completed',
98 'text' => esc_html__('Not Completed', 'give'),
99 ])
100 ),
101 'contents' => [
102 $this->render_template(
103 'row-item',
104 [
105 'testId' => 'stripe',
106 'class' => ($this->isStripeSetup()) ? 'stripe setup-item-completed' : 'stripe',
107 'icon' => ($this->isStripeSetup())
108 ? $this->image('check-circle.min.png')
109 : $this->image('stripe@2x.min.png'),
110 'icon_alt' => esc_html__('Stripe', 'give'),
111 'title' => esc_html__('Connect to Stripe', 'give'),
112 'description' => sprintf(
113 __('Stripe is one of the most popular payment gateways, and for good reason! Receive one-time and Recurring Donations (add-on) using many of the most popular payment methods. Additional fees may apply for free users. Read our <a href="%s" target="_blank" rel="noopener noreferrer">Stripe documentation</a> for more information.', 'give'),
114 'https://docs.givewp.com/stripe-fees'
115 ),
116 'action' => ($this->isStripeSetup()) ? sprintf(
117 '<a href="%s"><i class="fab fa-stripe-s"></i>&nbsp;&nbsp;Stripe Settings</a>',
118 esc_url(add_query_arg(
119 [
120 'post_type' => 'give_forms',
121 'page' => 'give-settings',
122 'tab' => 'gateways',
123 'section' => 'stripe-settings',
124 ],
125 admin_url('edit.php')
126 ))
127 )
128 : sprintf(
129 '<a href="%s"><i class="fab fa-stripe-s"></i>&nbsp;&nbsp;Connect to Stripe</a>',
130 $this->stripeConnectURL()
131 ),
132 ]
133 ),
134 $this->render_template(
135 'row-item',
136 [
137 'testId' => 'paypal',
138 'class' => ($this->isPayPalSetup()) ? 'paypal setup-item-completed' : 'paypal',
139 'icon' => ($this->isPayPalSetup())
140 ? $this->image('check-circle.min.png')
141 : $this->image('paypal@2x.min.png'),
142 'icon_alt' => esc_html__('PayPal', 'give'),
143 'title' => esc_html__('Connect to PayPal', 'give'),
144 'description' => esc_html__(
145 'PayPal is synonymous with nonprofits and online charitable gifts. It\'s been the go-to payment merchant for many of the world\'s top NGOs. Accept PayPal, credit and debit cards without any added platform fees.',
146 'give'
147 ),
148 'action' => sprintf(
149 '<a href="%1$s"><i class="fab fa-paypal"></i>&nbsp;&nbsp;%2$s</a>',
150 esc_url(add_query_arg(
151 [
152 'post_type' => 'give_forms',
153 'page' => 'give-settings',
154 'tab' => 'gateways',
155 'section' => 'paypal',
156 'group' => 'paypal-commerce',
157 ],
158 admin_url('edit.php')
159 )),
160 ! $this->isPayPalSetup() ? esc_html__('Connect to PayPal', 'give') : esc_html__(
161 'PayPal Settings',
162 'give'
163 )
164 ),
165 ]
166 ),
167 ],
168 'footer' => $this->render_template(
169 'footer',
170 [
171 'contents' => sprintf(
172 '<img src="%s" /><p><strong>%s</strong> %s</p> %s',
173 $this->image('payment-gateway.svg'),
174 __('Explore other payment gateways:', 'give'),
175 __('GiveWP has support for many others including Authorize.net, Square, Razorpay and more!', 'give'),
176 sprintf(
177 '<a href="%s" target="_blank">%s <i class="fa fa-chevron-right" aria-hidden="true"></i></a>',
178 'http://docs.givewp.com/payment-gateways', // UTM included.
179 __('View all gateways', 'give')
180 )
181 ),
182 ]
183 ),
184 ]
185 );
186 ?>
187
188 <!-- Resources -->
189 <?php
190 $needsActivation = true;
191 $licenses = get_option('give_licenses', []);
192
193 foreach ($licenses as $license) {
194 if (empty($license['license_key'])) {
195 continue;
196 }
197
198 $licenseKey = $license['license_key'];
199 $licenseStatus = $license['license'];
200 $expiresTimestamp = strtotime($license['expires']);
201
202 $isLicenseInactive = $licenseStatus !== 'valid';
203 $isLicenseExpired = $licenseStatus === 'expired' || $expiresTimestamp < time();
204
205 if (!$isLicenseInactive && !$isLicenseExpired) {
206 $needsActivation = false;
207 break;
208 }
209 }
210
211 echo $this->render_template(
212 'section',
213 [
214 'title' => sprintf('%s 3: %s', __('Step', 'give'), __('Get more from your fundraising campaign with add-ons', 'give')),
215 'badge' => $this->render_template('badge', [
216 'class' => 'optional',
217 'text' => esc_html__('Optional', 'give'),
218 ]),
219 'contents' => [
220 (! empty($settings['addons'] || $needsActivation)) ? $this->render_template(
221 'sub-header',
222 [
223 'text' => sprintf(
224 '%s%s',
225 (! empty($settings['addons']) ? esc_html__('Based on your selections, Give recommends the following add-ons to support your fundraising.', 'give') . ' ' : ''),
226 ($needsActivation ? $this->render_template('activate-license',
227 [
228 'text' => esc_html__('Already have an add-on license?', 'give'),
229 'label' => esc_html__('Activate your license', 'give'),
230 'href' => esc_url(admin_url('edit.php?post_type=give_forms&page=give-settings&tab=licenses')),
231 'title' => esc_html__('Activate an Add-on License', 'give'),
232 'description' => sprintf(
233 __('Enter your license key below to unlock your GiveWP add-ons. You can access your licenses anytime from the <a href="%1$s" target="_blank">My Account</a> section on the GiveWP website. ', 'give'),
234 Give_License::get_account_url()
235 ),
236 'nonce' => wp_nonce_field('give-license-activator-nonce', 'give_license_activator_nonce', true, false),
237 'form-label' => esc_html__('License key', 'give'),
238 'form-placeholder' => esc_html__('Enter your license key', 'give'),
239 'form-submit-activate' => esc_html__('Activate License', 'give'),
240 'form-submit-activating' => esc_html__('Verifying License...', 'give'),
241 'form-submit-value' => esc_html__('Activate License', 'give'),
242 ]
243 ) : '')
244 )
245 ]
246 ) : '',
247 in_array('recurring-donations', $settings['addons']) ? $this->render_template(
248 'row-item',
249 [
250 'class' => 'setup-item-recurring-donations',
251 'icon' => $this->image('recurring-donations@2x.min.png'),
252 'icon_alt' => __('Recurring Donations', 'give'),
253 'title' => __('Recurring Donations', 'give'),
254 'description' => __(
255 'Raise funds reliably through subscriptions based donations. Let your donors choose how often they give and how much. Manage your subscriptions, view specialized reports, and strengthen relationships with your recurring donors.',
256 'give'
257 ),
258 'action' => $this->render_template(
259 'action-link',
260 [
261 'target' => '_blank',
262 'href' => 'http://docs.givewp.com/setup-recurring', // UTM included.
263 'label' => __('Get Recurring Donations', 'give'),
264 ]
265 ),
266 ]
267 ) : '',
268 in_array('donors-cover-fees', $settings['addons']) ? $this->render_template(
269 'row-item',
270 [
271 'class' => 'setup-item-fee-recovery',
272 'icon' => $this->image('fee-recovery@2x.min.png'),
273 'icon_alt' => __('Fee Recovery', 'give'),
274 'title' => __('Fee Recovery', 'give'),
275 'description' => __(
276 'Maximize your donations by allowing donors to cover payment processing fees, ensuring more funds go directly to your cause.',
277 'give'
278 ),
279 'action' => $this->render_template(
280 'action-link',
281 [
282 'target' => '_blank',
283 'href' => 'http://docs.givewp.com/setup-fee-recovery', // UTM included.
284 'label' => __('Get Fee Recovery', 'give'),
285 ]
286 ),
287 ]
288 ) : '',
289 in_array('pdf-receipts', $settings['addons']) ? $this->render_template(
290 'row-item',
291 [
292 'class' => 'setup-item-pdf-receipts',
293 'icon' => $this->image('pdf-receipts@2x.min.png'),
294 'icon_alt' => __('PDF Receipts', 'give'),
295 'title' => __('PDF Receipts', 'give'),
296 'description' => __(
297 'PDF Receipts makes it easy for your donors to print their tax deductible receipts by making PDF downloadable copies of them easily available. Donors can get a link to their receipt provided to them in the confirmation email, there is also a link in the donation confirmation screen, and a link in their Donation History page.',
298 'give'
299 ),
300 'action' => $this->render_template(
301 'action-link',
302 [
303 'target' => '_blank',
304 'href' => 'http://docs.givewp.com/setup-pdf-receipts', // UTM included.
305 'label' => __('Get PDF Receipts', 'give'),
306 ]
307 ),
308 ]
309 ) : '',
310 in_array('custom-form-fields', $settings['addons']) ? $this->render_template(
311 'row-item',
312 [
313 'class' => 'setup-item-form-fields-manager',
314 'icon' => $this->image('form-fields-manager@2x.min.png'),
315 'icon_alt' => __('Form Field Manager', 'give'),
316 'title' => __('Form Field Manager', 'give'),
317 'description' => __(
318 'Form Field Manager (FFM) allows you to add and manage additional fields for your GiveWP donation forms using an intuitive drag-and-drop interface. Form fields include simple fields such as checkboxes, dropdowns, radios, and more. The more complex form fields that you can add are file upload fields, Rich text editors (TinyMCE), and the powerful Repeater field.',
319 'give'
320 ),
321 'action' => $this->render_template(
322 'action-link',
323 [
324 'target' => '_blank',
325 'href' => 'http://docs.givewp.com/setup-ffm', // UTM included.
326 'label' => __('Get Form Field Manager', 'give'),
327 ]
328 ),
329 ]
330 ) : '',
331 in_array('multiple-currencies', $settings['addons']) ? $this->render_template(
332 'row-item',
333 [
334 'class' => 'setup-item-currency-switcher',
335 'icon' => $this->image('currency-switcher@2x.min.png'),
336 'icon_alt' => __('Currency Switcher', 'give'),
337 'title' => __('Currency Switcher', 'give'),
338 'description' => __(
339 'Let donors choose from your selected currencies, increasing global donations with live exchange rates and extensive currency options.',
340 'give'
341 ),
342 'action' => $this->render_template(
343 'action-link',
344 [
345 'target' => '_blank',
346 'href' => 'http://docs.givewp.com/setup-currency-switcher', // UTM included.
347 'label' => __('Get Currency Switcher', 'give'),
348 ]
349 ),
350 ]
351 ) : '',
352 in_array('dedicate-donations', $settings['addons']) ? $this->render_template(
353 'row-item',
354 [
355 'class' => 'setup-item-tributes',
356 'icon' => $this->image('tributes@2x.min.png'),
357 'icon_alt' => __('Tributes', 'give'),
358 'title' => __('Tributes', 'give'),
359 'description' => __(
360 'Allow donors to give to your cause via customizable tributes like “In honor of,” “In memory of,” or any dedication you prefer. Send eCards and produce customizable mailable cards that your donors and their honorees will love.',
361 'give'
362 ),
363 'action' => $this->render_template(
364 'action-link',
365 [
366 'target' => '_blank',
367 'href' => 'http://docs.givewp.com/setup-tributes', // UTM included.
368 'label' => __('Get Tributes', 'give'),
369 ]
370 ),
371 ]
372 ) : '',
373 $this->render_template(
374 'row-item',
375 [
376 'class' => 'setup-item',
377 'icon' => $this->image('addons@2x.min.png'),
378 'icon_alt' => esc_html__('Add-ons', 'give'),
379 'title' => esc_html__('GiveWP Add-ons', 'give'),
380 'description' => esc_html__(
381 'Boost your fundraising efforts with powerful add-ons like Recurring Donations, Fee Recovery, Google Analytics, Mailchimp, and more. Explore our extensive library of 35+ add-ons to enhance your fundraising now.',
382 'give'
383 ),
384 'action' => $this->render_template(
385 'action-link',
386 [
387 'target' => '_blank',
388 'href' => 'http://docs.givewp.com/setup-addons', // UTM included.
389 'label' => esc_html__('View all premium add-ons', 'give'),
390 ]
391 ),
392 ]
393 ),
394 ],
395 ]
396 );
397 ?>
398
399 <?php
400 echo $this->render_template(
401 'section',
402 [
403 'title' => __('Get the most out of GiveWP', 'give'),
404 'contents' => [
405 $this->render_template(
406 'row-item',
407 [
408 'class' => 'setup-item',
409 'icon' => $this->image('givewp101@2x.min.png'),
410 'icon_alt' => esc_html__('GiveWP Getting Started Guide', 'give'),
411 'title' => esc_html__('GiveWP Getting Started Guide', 'give'),
412 'description' => esc_html__(
413 'Learn the basics and advanced tips to optimize your fundraising with GiveWP.',
414 'give'
415 ),
416 'action' => $this->render_template(
417 'action-link',
418 [
419 'target' => '_blank',
420 'href' => 'http://docs.givewp.com/getting-started', // UTM included.
421 'label' => __('Get started', 'give'),
422 ]
423 ),
424 ]
425 ),
426 ],
427 ]
428 );
429 ?>
430
431 <?php
432 echo $this->render_template(
433 'dismiss',
434 [
435 'action' => admin_url('admin-post.php'),
436 'nonce' => wp_nonce_field('dismiss_setup_page', $name = '_wpnonce', $referer = true, $echo = false),
437 'label' => esc_html__('Dismiss Setup Screen', 'give'),
438 ]
439 )
440 ?>
441
442 </div>
443