← All changes
|
includes/admin/splash/class-charitable-admin-splash.php
+143
-42
1.8.11
→
1.8.13
View file →
| @@ -236,8 +236,106 @@ | ||
| 236 | 236 | */ |
| 237 | 237 | public function retrieve_sections_for_user( array $sections = array() ): array { |
| 238 | 238 | |
| 239 | 239 | $sections = array( |
| 240 | + /* | |
| 241 | + * 1.8.13 — AI assistants, the headline feature. | |
| 242 | + * | |
| 243 | + * This section is FIRST on purpose: the dark treatment comes from | |
| 244 | + * `.charitable-splash-section:first-child` in the compiled | |
| 245 | + * charitable-admin-splash.css (background #2c3338, white text), so the | |
| 246 | + * marquee feature gets that look by position, not by a class of its own. | |
| 247 | + * Reorder these and the dark block follows whatever ends up first. | |
| 248 | + * | |
| 249 | + * Ported from the Pro modal, where the same section leads Pro 1.8.19. | |
| 250 | + * The copy is Pro's with one change: Pro reads "New in 1.8.19: switch on | |
| 251 | + * write access", because Pro 1.8.18 shipped the read-only assistant first. | |
| 252 | + * Lite never had that intermediate release — abilities and the write gate | |
| 253 | + * both land here in 1.8.13 — so the clause is stated plainly instead of | |
| 254 | + * pinned to a version Lite has no concept of. | |
| 255 | + * | |
| 256 | + * Video and poster are the same CDN objects Pro points at; both are live. | |
| 257 | + * The 1-8-19 path is Pro's release folder, not a Lite version — the bucket | |
| 258 | + * is shared, and the PayPal section below already does the same thing with | |
| 259 | + * splash/1-8-15 under a Lite 1.8.11 badge. | |
| 260 | + */ | |
| 261 | + array( | |
| 262 | + 'new' => true, | |
| 263 | + 'version' => '1.8.13', | |
| 264 | + 'layout' => 'fifty-fifty', | |
| 265 | + 'class' => 'no-order', | |
| 266 | + 'title' => __( 'Build Campaigns Just By Asking Your AI Assistant', 'charitable' ), | |
| 267 | + 'content' => __( 'Connect an assistant like Claude or ChatGPT using the free WPVibe plugin, or any MCP client, then just say what you need. Switch on write access and it makes the change itself. Launch a fundraiser, add a question to a donation form, restyle a campaign, or log a check that came in the post.', 'charitable' ), | |
| 268 | + 'video' => array( | |
| 269 | + 'url' => 'https://wpcharitable-space.nyc3.digitaloceanspaces.com/splash/1-8-19/ai-assistants.mp4', | |
| 270 | + 'poster' => 'https://wpcharitable-space.nyc3.digitaloceanspaces.com/splash/1-8-19/ai-assistants-poster.jpg', | |
| 271 | + ), | |
| 272 | + 'buttons' => array( | |
| 273 | + 'main' => array( | |
| 274 | + 'text' => __( 'Get Started', 'charitable' ), | |
| 275 | + 'url' => charitable_utm_link( 'https://www.wpcharitable.com/ai-assistants-getting-started/', 'splash-modal', 'AI Assistants Main' ), | |
| 276 | + ), | |
| 277 | + 'secondary' => array( | |
| 278 | + 'text' => __( 'Learn More', 'charitable' ), | |
| 279 | + 'url' => charitable_utm_link( 'https://www.wpcharitable.com/ai-assistants-learn-more/', 'splash-modal', 'AI Assistants Secondary' ), | |
| 280 | + ), | |
| 281 | + ), | |
| 282 | + ), | |
| 283 | + /* | |
| 284 | + * Charitable Events, slot 2. Ported from the Pro modal, where it carries | |
| 285 | + * the 'new-addon' badge — Events ships on its own 1.0.0 cycle and is not a | |
| 286 | + * Pro 1.8.19 feature. Here it is 'new-for-pro' instead, because for a Lite | |
| 287 | + * reader the relevant fact is that it needs Pro, not that it is new. | |
| 288 | + * | |
| 289 | + * Buttons follow the Lite house style for Pro sections (main + upgrade) | |
| 290 | + * rather than Pro's main + secondary. That is also what keeps the second | |
| 291 | + * button alive: Pro's Learn More points at | |
| 292 | + * /charitable-events-learn-more/, which is not published yet and 404s. | |
| 293 | + */ | |
| 294 | + array( | |
| 295 | + 'new-for-pro' => true, | |
| 296 | + 'layout' => 'fifty-fifty', | |
| 297 | + 'class' => 'no-order', | |
| 298 | + 'title' => __( 'Charitable Events', 'charitable' ), | |
| 299 | + 'content' => __( 'Sell tickets to galas, dinners and virtual events without leaving Charitable. Every ticket is a donation, so the money lands in the event\'s own campaign. Set a fair market value per ticket and the deductible portion appears on the receipt. Each attendee gets a QR code, and you check them in at the door from your phone.', 'charitable' ), | |
| 300 | + 'img' => array( | |
| 301 | + 'url' => charitable()->get_path( 'assets', false ) . 'images/splash/1-8-19-charitable-events.png', | |
| 302 | + 'shadow' => 'none', | |
| 303 | + ), | |
| 304 | + 'buttons' => array( | |
| 305 | + 'main' => array( | |
| 306 | + 'text' => __( 'Get Started', 'charitable' ), | |
| 307 | + 'url' => charitable_utm_link( 'https://www.wpcharitable.com/charitable-events-getting-started/', 'splash-modal', 'Charitable Events Main' ), | |
| 308 | + ), | |
| 309 | + 'upgrade' => array( | |
| 310 | + 'text' => __( 'Upgrade to Pro', 'charitable' ), | |
| 311 | + 'url' => charitable_utm_link( 'https://www.wpcharitable.com/lite-upgrade/', 'splash-modal', 'Charitable Events Upgrade' ), | |
| 312 | + ), | |
| 313 | + ), | |
| 314 | + ), | |
| 315 | + // 1.8.12 — Beacon campaign templates. | |
| 316 | + array( | |
| 317 | + 'new' => true, | |
| 318 | + 'version' => '1.8.12', | |
| 319 | + 'layout' => 'fifty-fifty', | |
| 320 | + 'class' => 'no-order', | |
| 321 | + 'title' => __( 'New Beacon Campaign Templates', 'charitable' ), | |
| 322 | + 'content' => __( 'Two new campaign templates — Beacon (1 Column) and Beacon (2 Column) — built on the new Hero layout. Pick either from the template chooser for a bold, modern campaign page.', 'charitable' ), | |
| 323 | + 'img' => array( | |
| 324 | + 'url' => charitable()->get_path( 'assets', false ) . 'images/splash/1-8-12-beacon.jpg', | |
| 325 | + 'shadow' => 'none', | |
| 326 | + ), | |
| 327 | + 'buttons' => array( | |
| 328 | + 'main' => array( | |
| 329 | + 'text' => __( 'Get Started', 'charitable' ), | |
| 330 | + 'url' => charitable_utm_link( 'https://www.wpcharitable.com/beacon-templates-getting-started/', 'splash-modal', 'Beacon Templates Main' ), | |
| 331 | + ), | |
| 332 | + 'secondary' => array( | |
| 333 | + 'text' => __( 'Learn More', 'charitable' ), | |
| 334 | + 'url' => charitable_utm_link( 'https://www.wpcharitable.com/beacon-templates-learn-more/', 'splash-modal', 'Beacon Templates Secondary' ), | |
| 335 | + ), | |
| 336 | + ), | |
| 337 | + ), | |
| 240 | 338 | // PayPal Commerce — headline feature, uses same self-hosted video as Pro. |
| 241 | 339 | array( |
| 242 | 340 | 'new' => true, |
| 243 | 341 | 'version' => '1.8.11', |
| @@ -277,8 +375,51 @@ | ||
| 277 | 375 | 'url' => charitable_utm_link( 'https://www.wpcharitable.com/how-to-switch-from-givewp-to-charitable/', 'splash-modal', 'Import Tools Main' ), |
| 278 | 376 | ), |
| 279 | 377 | ), |
| 280 | 378 | ), |
| 379 | + // 1.8.17 — DonationExpress (Pro-only). | |
| 380 | + array( | |
| 381 | + 'new-for-pro' => true, | |
| 382 | + 'layout' => 'fifty-fifty', | |
| 383 | + 'class' => 'no-order', | |
| 384 | + 'title' => __( 'DonationExpress ⚡', 'charitable' ), | |
| 385 | + 'content' => __( 'DonationExpress opens your donation forms in a full-screen, theme-independent sheet on phones. It loads fast, looks consistent on every device, and avoids theme conflicts.', 'charitable' ), | |
| 386 | + 'video' => array( | |
| 387 | + 'url' => 'https://wpcharitable-space.nyc3.digitaloceanspaces.com/splash/1-8-17/donationexpress.mp4', | |
| 388 | + ), | |
| 389 | + 'buttons' => array( | |
| 390 | + 'main' => array( | |
| 391 | + 'text' => __( 'Get Started', 'charitable' ), | |
| 392 | + 'url' => charitable_utm_link( 'https://www.wpcharitable.com/donationexpress-getting-started/', 'splash-modal', 'DonationExpress Main' ), | |
| 393 | + ), | |
| 394 | + 'upgrade' => array( | |
| 395 | + 'text' => __( 'Upgrade to Pro', 'charitable' ), | |
| 396 | + 'url' => charitable_utm_link( 'https://www.wpcharitable.com/lite-upgrade/', 'splash-modal', 'DonationExpress Upgrade' ), | |
| 397 | + ), | |
| 398 | + ), | |
| 399 | + ), | |
| 400 | + // 1.8.17 — Style Your Campaigns Visually (Pro-only). | |
| 401 | + array( | |
| 402 | + 'new-for-pro' => true, | |
| 403 | + 'layout' => 'fifty-fifty', | |
| 404 | + 'class' => 'no-order', | |
| 405 | + 'title' => __( 'Style Your Campaigns Visually', 'charitable' ), | |
| 406 | + 'content' => __( 'Campaign styling just got a major upgrade. Beyond the existing options, the new Styles tab brings ready-made design presets, a full global color palette (buttons, tabs, progress bar, text, and background), typography controls, and animations — all with a live preview and no code.', 'charitable' ), | |
| 407 | + 'img' => array( | |
| 408 | + 'url' => charitable()->get_path( 'assets', false ) . 'images/splash/1-8-17-campaign-styles.png', | |
| 409 | + 'shadow' => 'none', | |
| 410 | + ), | |
| 411 | + 'buttons' => array( | |
| 412 | + 'main' => array( | |
| 413 | + 'text' => __( 'Get Started', 'charitable' ), | |
| 414 | + 'url' => charitable_utm_link( 'https://www.wpcharitable.com/campaign-builder-styles-getting-started/', 'splash-modal', 'Campaign Builder Styles Main' ), | |
| 415 | + ), | |
| 416 | + 'upgrade' => array( | |
| 417 | + 'text' => __( 'Upgrade to Pro', 'charitable' ), | |
| 418 | + 'url' => charitable_utm_link( 'https://www.wpcharitable.com/lite-upgrade/', 'splash-modal', 'Campaign Builder Styles Upgrade' ), | |
| 419 | + ), | |
| 420 | + ), | |
| 421 | + ), | |
| 281 | 422 | // 1.8.14 — Campaign Countdown (Pro-only). |
| 282 | 423 | array( |
| 283 | 424 | 'new-for-pro' => true, |
| 284 | 425 | 'layout' => 'fifty-fifty', |
| @@ -425,50 +566,8 @@ | ||
| 425 | 566 | 'url' => charitable_utm_link( 'https://www.wpcharitable.com/lite-upgrade/', 'splash-modal', 'Campaign Modal Button Upgrade' ), |
| 426 | 567 | ), |
| 427 | 568 | ), |
| 428 | 569 | ), |
| 429 | - array( | |
| 430 | - 'new-for-pro' => true, | |
| 431 | - 'layout' => 'fifty-fifty', | |
| 432 | - 'class' => 'no-order', | |
| 433 | - 'title' => __( 'Prefill Donation Forms', 'charitable' ), | |
| 434 | - 'content' => __( 'Pre-populate donation form fields via URL query strings. Perfect for email campaigns, targeted landing pages, and personalized donor outreach.', 'charitable' ), | |
| 435 | - 'img' => array( | |
| 436 | - 'url' => charitable()->get_path( 'assets', false ) . 'images/splash/1-8-13-prefill-forms.png', | |
| 437 | - 'shadow' => 'none', | |
| 438 | - ), | |
| 439 | - 'buttons' => array( | |
| 440 | - 'main' => array( | |
| 441 | - 'text' => __( 'Get Started', 'charitable' ), | |
| 442 | - 'url' => charitable_utm_link( 'https://www.wpcharitable.com/prefill-donation-forms-getting-started/', 'splash-modal', 'Prefill Donation Forms Main' ), | |
| 443 | - ), | |
| 444 | - 'upgrade' => array( | |
| 445 | - 'text' => __( 'Upgrade to Pro', 'charitable' ), | |
| 446 | - 'url' => charitable_utm_link( 'https://www.wpcharitable.com/lite-upgrade/', 'splash-modal', 'Prefill Donation Forms Upgrade' ), | |
| 447 | - ), | |
| 448 | - ), | |
| 449 | - ), | |
| 450 | - array( | |
| 451 | - 'new-for-pro' => true, | |
| 452 | - 'layout' => 'fifty-fifty', | |
| 453 | - 'class' => 'no-order', | |
| 454 | - 'title' => __( 'Campaign Featured Image', 'charitable' ), | |
| 455 | - 'content' => __( 'Set your campaign\'s featured image directly from the Campaign Builder. No need to switch to the post editor. Perfect for giving your campaigns a polished, visual identity.', 'charitable' ), | |
| 456 | - 'img' => array( | |
| 457 | - 'url' => charitable()->get_path( 'assets', false ) . 'images/splash/1-8-13-featured-image.png', | |
| 458 | - 'shadow' => 'none', | |
| 459 | - ), | |
| 460 | - 'buttons' => array( | |
| 461 | - 'main' => array( | |
| 462 | - 'text' => __( 'Get Started', 'charitable' ), | |
| 463 | - 'url' => charitable_utm_link( 'https://www.wpcharitable.com/campaign-featured-image-getting-started/', 'splash-modal', 'Campaign Featured Image Main' ), | |
| 464 | - ), | |
| 465 | - 'upgrade' => array( | |
| 466 | - 'text' => __( 'Upgrade to Pro', 'charitable' ), | |
| 467 | - 'url' => charitable_utm_link( 'https://www.wpcharitable.com/lite-upgrade/', 'splash-modal', 'Campaign Featured Image Upgrade' ), | |
| 468 | - ), | |
| 469 | - ), | |
| 470 | - ), | |
| 471 | 570 | // Two-column "More Recent Features" list. |
| 472 | 571 | array( |
| 473 | 572 | 'layout' => 'more-features', |
| 474 | 573 | 'class' => 'no-order', |
| @@ -473,8 +572,10 @@ | ||
| 473 | 572 | 'layout' => 'more-features', |
| 474 | 573 | 'class' => 'no-order', |
| 475 | 574 | 'title' => __( 'More Recent Features:', 'charitable' ), |
| 476 | 575 | 'items' => array( |
| 576 | + __( 'Prefill Donation Forms', 'charitable' ), | |
| 577 | + __( 'Campaign Featured Image', 'charitable' ), | |
| 477 | 578 | __( 'Campaign Selector', 'charitable' ), |
| 478 | 579 | __( 'Envira Gallery Integration', 'charitable' ), |
| 479 | 580 | __( 'Visual Form Builder', 'charitable' ), |
| 480 | 581 | __( 'Donor Leaderboards', 'charitable' ), |