fresh-install.php
2 years ago
migrate-data.php
2 years ago
new-features.php
1 month ago
release-highlight.php
3 years ago
review-conditions.php
3 years ago
new-features.php
100 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Dialog advertising new features: Zoho integration, Newsletter integrations, Cloudflare Turnstile captcha. |
| 4 | * |
| 5 | * @package Hustle |
| 6 | * @since 4.8.0 |
| 7 | */ |
| 8 | |
| 9 | $user = wp_get_current_user(); |
| 10 | $username = ! empty( $user->user_firstname ) ? $user->user_firstname : $user->user_login; |
| 11 | ?> |
| 12 | |
| 13 | <div class="sui-modal sui-modal-md"> |
| 14 | |
| 15 | <div |
| 16 | role="dialog" |
| 17 | id="hustle-dialog--new-features" |
| 18 | class="sui-modal-content" |
| 19 | aria-modal="true" |
| 20 | aria-labelledby="hustle-dialog--new-features-title" |
| 21 | aria-describedby="hustle-dialog--new-features-description" |
| 22 | data-name="<?php echo esc_attr( Hustle_Dashboard_Admin::NEW_FEATURES_MODAL_NAME ); ?>" |
| 23 | > |
| 24 | |
| 25 | <div class="sui-box" style="margin-bottom: 10px;"> |
| 26 | |
| 27 | <div class="sui-box-header sui-flatten sui-content-center sui-spacing-right--30 sui-spacing-left--30"> |
| 28 | |
| 29 | <button class="sui-button-icon sui-button-float--right hustle-modal-close" style="z-index: 2;" data-modal-close> |
| 30 | <span class="sui-icon-close sui-md" aria-hidden="true"></span> |
| 31 | <span class="sui-screen-reader-text"><?php esc_html_e( 'Close this dialog window', 'hustle' ); ?></span> |
| 32 | </button> |
| 33 | |
| 34 | <figure role="banner" class="sui-box-banner" aria-hidden="true"> |
| 35 | <?php |
| 36 | $image_attrs = array( |
| 37 | 'path' => self::$plugin_url . 'assets/images/onboard-image.png', |
| 38 | 'retina_path' => self::$plugin_url . 'assets/images/onboard-image@2x.png', |
| 39 | 'class' => 'sui-image sui-image-center', |
| 40 | ); |
| 41 | |
| 42 | $this->render( 'admin/image-markup', $image_attrs ); |
| 43 | ?> |
| 44 | </figure> |
| 45 | |
| 46 | <h3 id="hustle-dialog--new-features-title" class="sui-box-title sui-lg"> |
| 47 | <?php /* translators: current user's name */ printf( esc_html__( 'Hey %s, Check Out What\'s New!', 'hustle' ), esc_html( $username ) ); ?> |
| 48 | </h3> |
| 49 | |
| 50 | </div> |
| 51 | |
| 52 | <div class="sui-box-body"> |
| 53 | |
| 54 | <ul style="list-style: none; padding: 0; margin: 0;"> |
| 55 | |
| 56 | <li style="display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16px 0;"> |
| 57 | <img src="<?php echo esc_url( self::$plugin_url . 'assets/images/zoho-integration.png' ); ?>" alt="<?php esc_attr_e( 'Zoho Integration', 'hustle' ); ?>" style="height: 56px; margin-bottom: 16px;"> |
| 58 | <p class="sui-description" style="margin: 0; text-align:justify;"> |
| 59 | <?php esc_html_e( 'Connect your Hustle optin forms to Zoho CRM and automatically add new subscribers to your Contacts list.', 'hustle' ); ?> |
| 60 | </p> |
| 61 | </li> |
| 62 | |
| 63 | <li style="display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16px 0;"> |
| 64 | <img src="<?php echo esc_url( self::$plugin_url . 'assets/images/newsletter-integration.svg' ); ?>" alt="<?php esc_attr_e( 'Newsletter Integrations', 'hustle' ); ?>" style="width: 200px; margin-bottom:16px;"> |
| 65 | <p class="sui-description" style="margin: 0; text-align:justify;"> |
| 66 | <?php esc_html_e( 'Connect your Hustle optin forms to the Newsletter plugin to grow your audience and keep your subscribers engaged with targeted email campaigns.', 'hustle' ); ?> |
| 67 | </p> |
| 68 | </li> |
| 69 | |
| 70 | <li style="display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16px 0;"> |
| 71 | <img src="<?php echo esc_url( self::$plugin_url . 'assets/images/cloudflare-integration.png' ); ?>" alt="<?php esc_attr_e( 'Cloudflare Turnstile', 'hustle' ); ?>" style="height: 48px; margin-bottom: 16px;"> |
| 72 | <p class="sui-description" style="margin: 0; text-align:justify;"> |
| 73 | <?php esc_html_e( 'Protect your Hustle optin forms from spam and abuse with a privacy-friendly CAPTCHA alternative. Keep bots out without frustrating your real visitors.', 'hustle' ); ?> |
| 74 | </p> |
| 75 | </li> |
| 76 | |
| 77 | </ul> |
| 78 | |
| 79 | </div> |
| 80 | |
| 81 | <div class="sui-box-footer sui-flatten sui-content-center sui-spacing-bottom--50"> |
| 82 | |
| 83 | <button |
| 84 | id="hustle-new-features-action-button" |
| 85 | class="sui-button hustle-modal-close" |
| 86 | data-modal-close |
| 87 | > |
| 88 | <?php esc_html_e( 'Got It', 'hustle' ); ?> |
| 89 | </button> |
| 90 | |
| 91 | </div> |
| 92 | |
| 93 | </div> |
| 94 | |
| 95 | <button class="sui-modal-skip" data-modal-close><?php esc_html_e( "I'll check this later", 'hustle' ); ?></button> |
| 96 | |
| 97 | </div> |
| 98 | |
| 99 | </div> |
| 100 |