stories
4 years ago
action-link.html
5 years ago
dismiss.html
5 years ago
footer.html
5 years ago
index.html.php
4 years ago
row-item.html
5 years ago
section.html
5 years ago
sub-header.html
5 years ago
index.html.php
365 lines
| 1 | <div class="wrap" class="give-setup-page"> |
| 2 | |
| 3 | <h1 class="wp-heading-inline"> |
| 4 | <?php |
| 5 | echo __('GiveWP Setup Guide', 'give'); ?> |
| 6 | </h1> |
| 7 | |
| 8 | <hr class="wp-header-end"> |
| 9 | |
| 10 | <?php |
| 11 | if (isset($_GET['give_setup_stripe_error'])) : ?> |
| 12 | <div class="notice notice-error"> |
| 13 | <p><?php |
| 14 | echo esc_html($_GET['give_setup_stripe_error']); ?></p> |
| 15 | </div> |
| 16 | <?php |
| 17 | endif; ?> |
| 18 | |
| 19 | <?php |
| 20 | /** |
| 21 | * Use this action to perform task before section loads. |
| 22 | * |
| 23 | * @since 2.10.0 |
| 24 | */ |
| 25 | do_action('give_setup_page_before_sections'); |
| 26 | ?> |
| 27 | |
| 28 | <!-- Configuration --> |
| 29 | <?php |
| 30 | echo $this->render_template( |
| 31 | 'section', |
| 32 | [ |
| 33 | 'title' => sprintf('%s 1: %s', __('Step', 'give'), __('Create your first donation form', 'give')), |
| 34 | 'badge' => '<span class="badge badge-review">5 Minutes</span>', |
| 35 | 'contents' => $this->render_template( |
| 36 | 'row-item', |
| 37 | [ |
| 38 | 'testId' => 'setup-configuration', |
| 39 | 'class' => ($this->isFormConfigured( |
| 40 | )) ? 'setup-item-configuration setup-item-completed' : 'setup-item-configuration', |
| 41 | 'icon' => ($this->isFormConfigured()) |
| 42 | ? $this->image('check-circle.min.png') |
| 43 | : $this->image('configuration@2x.min.png'), |
| 44 | 'icon_alt' => esc_html__('First-Time Configuration', 'give'), |
| 45 | 'title' => esc_html__('First-Time Configuration', 'give'), |
| 46 | 'description' => esc_html__( |
| 47 | 'Every fundraising campaign begins with a donation form. Click here to create your first donation form in minutes. Once created you can use it anywhere on your website.', |
| 48 | 'give' |
| 49 | ), |
| 50 | 'action' => $this->render_template( |
| 51 | 'action-link', |
| 52 | [ |
| 53 | 'href' => admin_url('?page=give-onboarding-wizard'), |
| 54 | 'screenReaderText' => 'Configure GiveWP', |
| 55 | ] |
| 56 | ), |
| 57 | ] |
| 58 | ), |
| 59 | ] |
| 60 | ); |
| 61 | ?> |
| 62 | |
| 63 | <!-- Gateways --> |
| 64 | <?php |
| 65 | echo $this->render_template( |
| 66 | 'section', |
| 67 | [ |
| 68 | 'title' => sprintf('%s 2: %s', __('Step', 'give'), __('Connect a payment gateway', 'give')), |
| 69 | 'contents' => [ |
| 70 | ! $this->isStripeSetup() ? $this->render_template( |
| 71 | 'row-item', |
| 72 | [ |
| 73 | 'testId' => 'paypal', |
| 74 | 'class' => ($this->isPayPalSetup()) ? 'paypal setup-item-completed' : 'paypal', |
| 75 | 'icon' => ($this->isPayPalSetup()) |
| 76 | ? $this->image('check-circle.min.png') |
| 77 | : $this->image('paypal@2x.min.png'), |
| 78 | 'icon_alt' => esc_html__('PayPal', 'give'), |
| 79 | 'title' => esc_html__('Connect to PayPal', 'give'), |
| 80 | 'description' => esc_html__( |
| 81 | '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.', |
| 82 | 'give' |
| 83 | ), |
| 84 | 'action' => sprintf( |
| 85 | '<a href="%1$s"><i class="fab fa-paypal"></i> %2$s</a>', |
| 86 | esc_url(add_query_arg( |
| 87 | [ |
| 88 | 'post_type' => 'give_forms', |
| 89 | 'page' => 'give-settings', |
| 90 | 'tab' => 'gateways', |
| 91 | 'section' => 'paypal', |
| 92 | 'group' => 'paypal-commerce', |
| 93 | ], |
| 94 | admin_url('edit.php') |
| 95 | )), |
| 96 | ! $this->isPayPalSetup() ? esc_html__('Connect to PayPal', 'give') : esc_html__( |
| 97 | 'PayPal Settings', |
| 98 | 'give' |
| 99 | ) |
| 100 | ), |
| 101 | ] |
| 102 | ) : '', |
| 103 | ! $this->isPayPalSetup() ? $this->render_template( |
| 104 | 'row-item', |
| 105 | [ |
| 106 | 'testId' => 'stripe', |
| 107 | 'class' => ($this->isStripeSetup()) ? 'stripe setup-item-completed' : 'stripe', |
| 108 | 'icon' => ($this->isStripeSetup()) |
| 109 | ? $this->image('check-circle.min.png') |
| 110 | : $this->image('stripe@2x.min.png'), |
| 111 | 'icon_alt' => esc_html__('Stripe', 'give'), |
| 112 | 'title' => esc_html__('Connect to Stripe', 'give'), |
| 113 | 'description' => esc_html__( |
| 114 | '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. Note: the FREE version of Stripe includes an additional 2% fee for processing one-time donations. Remove the fee by installing and activating the premium Stripe add-on.', |
| 115 | 'give' |
| 116 | ), |
| 117 | 'action' => ($this->isStripeSetup()) ? sprintf( |
| 118 | '<a href="%s"><i class="fab fa-stripe-s"></i> Stripe Settings</a>', |
| 119 | esc_url(add_query_arg( |
| 120 | [ |
| 121 | 'post_type' => 'give_forms', |
| 122 | 'page' => 'give-settings', |
| 123 | 'tab' => 'gateways', |
| 124 | 'section' => 'stripe-settings', |
| 125 | ], |
| 126 | admin_url('edit.php') |
| 127 | )) |
| 128 | ) |
| 129 | : sprintf( |
| 130 | '<a href="%s"><i class="fab fa-stripe-s"></i> Connect to Stripe</a>', |
| 131 | $this->stripeConnectURL() |
| 132 | ), |
| 133 | ] |
| 134 | ) : '', |
| 135 | ], |
| 136 | 'footer' => $this->render_template( |
| 137 | 'footer', |
| 138 | [ |
| 139 | 'contents' => sprintf( |
| 140 | __( |
| 141 | 'Want to use a different gateway? GiveWP has support for many others including Authorize.net, Square, Razorpay and more! %s', |
| 142 | 'give' |
| 143 | ), |
| 144 | sprintf( |
| 145 | '<a href="%s" target="_blank">%s <i class="fa fa-chevron-right" aria-hidden="true"></i></a>', |
| 146 | 'http://docs.givewp.com/payment-gateways', // UTM included. |
| 147 | __('View all gateways', 'give') |
| 148 | ) |
| 149 | ), |
| 150 | ] |
| 151 | ), |
| 152 | ] |
| 153 | ); |
| 154 | ?> |
| 155 | |
| 156 | <!-- Resources --> |
| 157 | <?php |
| 158 | echo $this->render_template( |
| 159 | 'section', |
| 160 | [ |
| 161 | 'title' => sprintf('%s 3: %s', __('Step', 'give'), __('Level up your fundraising', 'give')), |
| 162 | 'contents' => [ |
| 163 | ! empty($settings['addons']) ? $this->render_template( |
| 164 | 'sub-header', |
| 165 | [ |
| 166 | 'text' => 'Based on your selections, Give recommends the following add-ons to support your fundraising.', |
| 167 | ] |
| 168 | ) : '', |
| 169 | in_array('recurring-donations', $settings['addons']) ? $this->render_template( |
| 170 | 'row-item', |
| 171 | [ |
| 172 | 'class' => 'setup-item-recurring-donations', |
| 173 | 'icon' => $this->image('recurring-donations@2x.min.png'), |
| 174 | 'icon_alt' => __('Recurring Donations', 'give'), |
| 175 | 'title' => __('Recurring Donations', 'give'), |
| 176 | 'description' => __( |
| 177 | 'The Recurring Donations add-on for GiveWP brings you more dependable payments by allowing your donors to give regularly at different time intervals. Let your donors choose how often they give and how much. Manage your subscriptions, view specialized reports, and connect more strategically with your recurring donors.', |
| 178 | 'give' |
| 179 | ), |
| 180 | 'action' => $this->render_template( |
| 181 | 'action-link', |
| 182 | [ |
| 183 | 'target' => '_blank', |
| 184 | 'href' => 'http://docs.givewp.com/setup-recurring', // UTM included. |
| 185 | 'screenReaderText' => __('Learn more about Recurring Donations', 'give'), |
| 186 | ] |
| 187 | ), |
| 188 | ] |
| 189 | ) : '', |
| 190 | in_array('donors-cover-fees', $settings['addons']) ? $this->render_template( |
| 191 | 'row-item', |
| 192 | [ |
| 193 | 'class' => 'setup-item-fee-recovery', |
| 194 | 'icon' => $this->image('fee-recovery@2x.min.png'), |
| 195 | 'icon_alt' => __('Fee Recovery', 'give'), |
| 196 | 'title' => __('Fee Recovery', 'give'), |
| 197 | 'description' => __( |
| 198 | 'Credit Card processing fees can take away a big chunk of your donations. This means less money goes to your cause. Why not ask your donors to further help your cause by asking them to take care of the payment processing fees? That’s where the Fee Recovery add-on comes into play.', |
| 199 | 'give' |
| 200 | ), |
| 201 | 'action' => $this->render_template( |
| 202 | 'action-link', |
| 203 | [ |
| 204 | 'target' => '_blank', |
| 205 | 'href' => 'http://docs.givewp.com/setup-fee-recovery', // UTM included. |
| 206 | 'screenReaderText' => __('Learn more about Fee Recovery', 'give'), |
| 207 | ] |
| 208 | ), |
| 209 | ] |
| 210 | ) : '', |
| 211 | in_array('pdf-receipts', $settings['addons']) ? $this->render_template( |
| 212 | 'row-item', |
| 213 | [ |
| 214 | 'class' => 'setup-item-pdf-receipts', |
| 215 | 'icon' => $this->image('pdf-receipts@2x.min.png'), |
| 216 | 'icon_alt' => __('PDF Receipts', 'give'), |
| 217 | 'title' => __('PDF Receipts', 'give'), |
| 218 | 'description' => __( |
| 219 | '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.', |
| 220 | 'give' |
| 221 | ), |
| 222 | 'action' => $this->render_template( |
| 223 | 'action-link', |
| 224 | [ |
| 225 | 'target' => '_blank', |
| 226 | 'href' => 'http://docs.givewp.com/setup-pdf-receipts', // UTM included. |
| 227 | 'screenReaderText' => __('Learn more about PDF Receipts', 'give'), |
| 228 | ] |
| 229 | ), |
| 230 | ] |
| 231 | ) : '', |
| 232 | in_array('custom-form-fields', $settings['addons']) ? $this->render_template( |
| 233 | 'row-item', |
| 234 | [ |
| 235 | 'class' => 'setup-item-form-fields-manager', |
| 236 | 'icon' => $this->image('form-fields-manager@2x.min.png'), |
| 237 | 'icon_alt' => __('Form Field Manager', 'give'), |
| 238 | 'title' => __('Form Field Manager', 'give'), |
| 239 | 'description' => __( |
| 240 | '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.', |
| 241 | 'give' |
| 242 | ), |
| 243 | 'action' => $this->render_template( |
| 244 | 'action-link', |
| 245 | [ |
| 246 | 'target' => '_blank', |
| 247 | 'href' => 'http://docs.givewp.com/setup-ffm', // UTM included. |
| 248 | 'screenReaderText' => __('Learn more about Form Field Manager', 'give'), |
| 249 | ] |
| 250 | ), |
| 251 | ] |
| 252 | ) : '', |
| 253 | in_array('multiple-currencies', $settings['addons']) ? $this->render_template( |
| 254 | 'row-item', |
| 255 | [ |
| 256 | 'class' => 'setup-item-currency-switcher', |
| 257 | 'icon' => $this->image('currency-switcher@2x.min.png'), |
| 258 | 'icon_alt' => __('Currency Switcher', 'give'), |
| 259 | 'title' => __('Currency Switcher', 'give'), |
| 260 | 'description' => __( |
| 261 | 'Allow your donors to switch to their currency of choice and increase your overall giving with the GiveWP Currency Switcher add-on. Select from an extensive list of currencies, set the currency based on your donor\'s location, pull from live exchange rates and more!', |
| 262 | 'give' |
| 263 | ), |
| 264 | 'action' => $this->render_template( |
| 265 | 'action-link', |
| 266 | [ |
| 267 | 'target' => '_blank', |
| 268 | 'href' => 'http://docs.givewp.com/setup-currency-switcher', // UTM included. |
| 269 | 'screenReaderText' => __('Learn more about Currency Switcher', 'give'), |
| 270 | ] |
| 271 | ), |
| 272 | ] |
| 273 | ) : '', |
| 274 | in_array('dedicate-donations', $settings['addons']) ? $this->render_template( |
| 275 | 'row-item', |
| 276 | [ |
| 277 | 'class' => 'setup-item-tributes', |
| 278 | 'icon' => $this->image('tributes@2x.min.png'), |
| 279 | 'icon_alt' => __('Tributes', 'give'), |
| 280 | 'title' => __('Tributes', 'give'), |
| 281 | 'description' => __( |
| 282 | '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.', |
| 283 | 'give' |
| 284 | ), |
| 285 | 'action' => $this->render_template( |
| 286 | 'action-link', |
| 287 | [ |
| 288 | 'target' => '_blank', |
| 289 | 'href' => 'http://docs.givewp.com/setup-tributes', // UTM included. |
| 290 | 'screenReaderText' => __('Learn more about Tributes', 'give'), |
| 291 | ] |
| 292 | ), |
| 293 | ] |
| 294 | ) : '', |
| 295 | $this->render_template( |
| 296 | 'row-item', |
| 297 | [ |
| 298 | 'class' => 'setup-item', |
| 299 | 'icon' => $this->image('addons@2x.min.png'), |
| 300 | 'icon_alt' => esc_html__('Add-ons', 'give'), |
| 301 | 'title' => esc_html__('GiveWP Add-ons', 'give'), |
| 302 | 'description' => esc_html__( |
| 303 | 'Make your fundraising even more effective with powerful add-ons like Recurring Donations, Fee Recovery, Google Analytics Donation Tracking, MailChimp, and much more. View our growing library of 35+ add-ons and extend your fundraising now.', |
| 304 | 'give' |
| 305 | ), |
| 306 | 'action' => $this->render_template( |
| 307 | 'action-link', |
| 308 | [ |
| 309 | 'target' => '_blank', |
| 310 | 'href' => 'http://docs.givewp.com/setup-addons', // UTM included. |
| 311 | 'screenReaderText' => __('View Add-ons for GiveWP', 'give'), |
| 312 | ] |
| 313 | ), |
| 314 | ] |
| 315 | ), |
| 316 | ], |
| 317 | ] |
| 318 | ); |
| 319 | ?> |
| 320 | |
| 321 | <?php |
| 322 | echo $this->render_template( |
| 323 | 'section', |
| 324 | [ |
| 325 | 'title' => __('Get the most out of GiveWP', 'give'), |
| 326 | 'contents' => [ |
| 327 | $this->render_template( |
| 328 | 'row-item', |
| 329 | [ |
| 330 | 'class' => 'setup-item', |
| 331 | 'icon' => $this->image('givewp101@2x.min.png'), |
| 332 | 'icon_alt' => esc_html__('GiveWP Getting Started Guide', 'give'), |
| 333 | 'title' => esc_html__('GiveWP Getting Started Guide', 'give'), |
| 334 | 'description' => esc_html__( |
| 335 | 'Start off on the right foot by learning the basics of the plugin and how to get the most out of it to further your online fundraising efforts.', |
| 336 | 'give' |
| 337 | ), |
| 338 | 'action' => $this->render_template( |
| 339 | 'action-link', |
| 340 | [ |
| 341 | 'target' => '_blank', |
| 342 | 'href' => 'http://docs.givewp.com/getting-started', // UTM included. |
| 343 | 'screenReaderText' => __('Learn more about GiveWP', 'give'), |
| 344 | ] |
| 345 | ), |
| 346 | ] |
| 347 | ), |
| 348 | ], |
| 349 | ] |
| 350 | ); |
| 351 | ?> |
| 352 | |
| 353 | <?php |
| 354 | echo $this->render_template( |
| 355 | 'dismiss', |
| 356 | [ |
| 357 | 'action' => admin_url('admin-post.php'), |
| 358 | 'nonce' => wp_nonce_field('dismiss_setup_page', $name = '_wpnonce', $referer = true, $echo = false), |
| 359 | 'label' => esc_html__('Dismiss Setup Screen', 'give'), |
| 360 | ] |
| 361 | ) |
| 362 | ?> |
| 363 | |
| 364 | </div> |
| 365 |