fresh-install.php
5 years ago
migrate-data.php
5 years ago
release-highlight.php
4 years ago
review-conditions.php
5 years ago
release-highlight.php
68 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Welcome dialog for fresh installs. |
| 4 | * |
| 5 | * @package Hustle |
| 6 | * @since 4.0.0 |
| 7 | */ |
| 8 | |
| 9 | $banner_img_1x = self::$plugin_url . 'assets/images/release-highlight-header.png'; |
| 10 | $banner_img_2x = self::$plugin_url . 'assets/images/release-highlight-header@2x.png'; |
| 11 | $current_user = wp_get_current_user(); |
| 12 | $username = ! empty( $current_user->user_firstname ) ? $current_user->user_firstname : $current_user->user_login; |
| 13 | ?> |
| 14 | |
| 15 | <div class="sui-modal sui-modal-md"> |
| 16 | |
| 17 | <div |
| 18 | role="dialog" |
| 19 | id="hustle-dialog--release-highlight" |
| 20 | class="sui-modal-content" |
| 21 | aria-modal="true" |
| 22 | aria-labelledby="hustle-dialog--release-highlight-title" |
| 23 | aria-describedby="hustle-dialog--release-highlight-description" |
| 24 | data-name="<?php echo esc_attr( Hustle_Dashboard_Admin::HIGHLIGHT_MODAL_NAME ); ?>" |
| 25 | > |
| 26 | |
| 27 | <div class="sui-box" style="margin-bottom: 10px;"> |
| 28 | |
| 29 | <div class="sui-box-header sui-flatten sui-content-center sui-spacing-right--30 sui-spacing-left--30"> |
| 30 | |
| 31 | <button class="sui-button-icon sui-button-float--right hustle-modal-close" style="z-index: 2;" data-modal-close> |
| 32 | <span class="sui-icon-close sui-md" aria-hidden="true"></span> |
| 33 | <span class="sui-screen-reader-text"><?php esc_html_e( 'Close this dialog window', 'hustle' ); ?></span> |
| 34 | </button> |
| 35 | |
| 36 | <figure role="banner" class="sui-box-banner" aria-hidden="true"> |
| 37 | <?php echo $this->render_image_markup( $banner_img_1x, $banner_img_2x, 'sui-image sui-image-center' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
| 38 | </figure> |
| 39 | |
| 40 | <?php /* translators: current user's name */ ?> |
| 41 | <h3 id="hustle-dialog--release-highlight-title" class="sui-box-title sui-lg"><?php esc_html_e( 'New! Halloween Template', 'hustle' ); ?></h3> |
| 42 | |
| 43 | <p id="hustle-dialog--release-highlight-description" class="sui-description"> |
| 44 | <?php printf( esc_html__( "Hey %s! Need a Halloween costume for your module? We’ve just added a spooky new template, perfect for capturing ghostly leads and advertising Halloween deals!", 'hustle' ), $username ); ?> |
| 45 | </p> |
| 46 | |
| 47 | <p class="sui-description"> |
| 48 | |
| 49 | </p> |
| 50 | |
| 51 | </div> |
| 52 | |
| 53 | <div class="sui-box-footer sui-flatten sui-content-center sui-spacing-bottom--50"> |
| 54 | |
| 55 | <button id="hustle-release-highlight-action-button" class="sui-button" data-modal-close> |
| 56 | <?php esc_html_e( 'Got It', 'hustle' ); ?> |
| 57 | </button> |
| 58 | |
| 59 | </div> |
| 60 | |
| 61 | </div> |
| 62 | |
| 63 | <button class="sui-modal-skip" data-modal-close><?php esc_html_e( "I'll check this later", 'hustle' ); ?></button> |
| 64 | |
| 65 | </div> |
| 66 | |
| 67 | </div> |
| 68 |