fresh-install.php
2 years ago
migrate-data.php
2 years ago
release-highlight.php
3 years ago
review-conditions.php
3 years ago
release-highlight.php
75 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Welcome dialog for fresh installs. |
| 4 | * |
| 5 | * @package Hustle |
| 6 | * @since 4.0.0 |
| 7 | */ |
| 8 | |
| 9 | $user = wp_get_current_user(); |
| 10 | $username = ! empty( $user->user_firstname ) ? $user->user_firstname : $user->user_login; |
| 11 | $url = 'https://wpmudev.com/docs/wpmu-dev-plugins/hustle/#integrations'; |
| 12 | ?> |
| 13 | |
| 14 | <div class="sui-modal sui-modal-md"> |
| 15 | |
| 16 | <div |
| 17 | role="dialog" |
| 18 | id="hustle-dialog--release-highlight" |
| 19 | class="sui-modal-content" |
| 20 | aria-modal="true" |
| 21 | aria-labelledby="hustle-dialog--release-highlight-title" |
| 22 | aria-describedby="hustle-dialog--release-highlight-description" |
| 23 | data-name="<?php echo esc_attr( Hustle_Dashboard_Admin::HIGHLIGHT_MODAL_NAME ); ?>" |
| 24 | > |
| 25 | |
| 26 | <div class="sui-box" style="margin-bottom: 10px;"> |
| 27 | |
| 28 | <div class="sui-box-header sui-flatten sui-content-center sui-spacing-right--30 sui-spacing-left--30"> |
| 29 | |
| 30 | <button class="sui-button-icon sui-button-float--right hustle-modal-close" style="z-index: 2;" data-modal-close> |
| 31 | <span class="sui-icon-close sui-md" aria-hidden="true"></span> |
| 32 | <span class="sui-screen-reader-text"><?php esc_html_e( 'Close this dialog window', 'hustle' ); ?></span> |
| 33 | </button> |
| 34 | |
| 35 | <figure role="banner" class="sui-box-banner" aria-hidden="true"> |
| 36 | <?php |
| 37 | $image_attrs = array( |
| 38 | 'path' => self::$plugin_url . 'assets/images/release-highlight-header.png', |
| 39 | 'retina_path' => self::$plugin_url . 'assets/images/release-highlight-header@2x.png', |
| 40 | 'class' => 'sui-image sui-image-center', |
| 41 | ); |
| 42 | |
| 43 | $this->render( 'admin/image-markup', $image_attrs ); |
| 44 | ?> |
| 45 | </figure> |
| 46 | |
| 47 | <h3 id="hustle-dialog--release-highlight-title" class="sui-box-title sui-lg"><?php esc_html_e( 'Accessibility and Visibility Improvements', 'hustle' ); ?></h3> |
| 48 | |
| 49 | <p id="hustle-dialog--release-highlight-description" class="sui-description"> |
| 50 | <?php /* translators: 1. open link 2. close link 3. Plugin name */ ?> |
| 51 | <?php printf( esc_html__( 'Hey %1$s, Know what? %2$s is now accessible like never before! You can now navigate %2$s modules with screen readers as well as the tab key, making it more accessible and inclusive', 'hustle' ), esc_html( $username ), esc_html( Opt_In_Utils::get_plugin_name() ) ); ?> |
| 52 | </p> |
| 53 | |
| 54 | <?php /* translators: 1. open 'b' tag 2. close 'b' tag */ ?> |
| 55 | <p class="sui-description"><?php printf( esc_html__( 'Not just that! You can now schedule your Hustle modules (slide-ins and popups) to display a specified number of times in a %1$sday/week/month/year%2$s. Target your audience with precision, without overwhelming them with too many popups', 'hustle' ), '<b>', '</b>' ); ?></p> |
| 56 | |
| 57 | |
| 58 | </div> |
| 59 | |
| 60 | <div class="sui-box-footer sui-flatten sui-content-center sui-spacing-bottom--50"> |
| 61 | |
| 62 | <button id="hustle-release-highlight-action-button" class="sui-button" data-modal-close> |
| 63 | <?php esc_html_e( 'Got It', 'hustle' ); ?> |
| 64 | </button> |
| 65 | |
| 66 | </div> |
| 67 | |
| 68 | </div> |
| 69 | |
| 70 | <button class="sui-modal-skip" data-modal-close><?php esc_html_e( "I'll check this later", 'hustle' ); ?></button> |
| 71 | |
| 72 | </div> |
| 73 | |
| 74 | </div> |
| 75 |