|
19 | 19 | <div class="slider-wrap"> |
20 | 20 | <div class="step-wrap"> |
21 | 21 | <div class="step import-step"> |
22 | | - <h4 class="header"><?php esc_html_e( 'Select the type of page you want', 'wp-maintenance-mode' ); ?></h4> |
23 | | - <p class="templates-description"> |
24 | | - <?php |
25 | | - printf( |
26 | | - wp_kses( |
27 | | - /* translators: Otter url */ |
28 | | - __( 'Get started with custom templates, and build engaging pages using Contact forms, Popups and more, with <a href="%1$s" target="_blank">Otter%2$s</a>.', 'wp-maintenance-mode' ), |
| 22 | + <h4 class="header"><?php esc_html_e( 'Get a boost with our free features', 'wp-maintenance-mode' ); ?></h4> |
| 23 | + <?php if ( ! is_plugin_active( 'otter-blocks/otter-blocks.php' ) ) { ?> |
| 24 | + <div class="optimole-upsell"> |
| 25 | + <div class="optimole-upsell-container"> |
| 26 | + <span class="components-checkbox-control__input-container"> |
| 27 | + <input id="wizard-otter-block-checkbox" type="checkbox" class="components-checkbox-control__input" checked> |
| 28 | + <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" role="presentation" class="components-checkbox-control__checked" aria-hidden="true" focusable="false"><path d="M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"></path></svg> |
| 29 | + </span> |
| 30 | + <label for="wizard-otter-block-checkbox"><?php echo esc_html__( 'Essential Page Templates', 'wp-maintenance-mode' ); ?></label> |
| 31 | + </div> |
| 32 | + <p class="description"> |
| 33 | + <?php |
| 34 | + echo wp_kses( |
| 35 | + sprintf( |
| 36 | + // translators: %1$s is a description, %2$s is otter-block link, %3$s is plugin name, %4$s is description text. |
| 37 | + '<strong>%1$s <a href="%2$s" target="_blank">%3$s</a></strong> %4$s', |
| 38 | + __( 'Pick a template to get started.', 'wp-maintenance-mode' ), |
| 39 | + tsdk_utmify( 'https://themeisle.com/plugins/otter-blocks/', $this->plugin_slug, 'wizard' ), |
| 40 | + __( 'Otter Blocks', 'wp-maintenance-mode' ), |
| 41 | + __( 'plugin will be installed and activated to support and customize your layout.', 'wp-maintenance-mode' ), |
| 42 | + ), |
29 | 43 | wpmm_translated_string_allowed_html() |
30 | | - ), |
31 | | - tsdk_utmify( 'https://themeisle.com/plugins/otter-blocks/', $this->plugin_slug, 'wizard' ), |
32 | | - $this->get_external_link_icon() |
33 | | - ); |
34 | | - ?> |
35 | | - <br> |
36 | | - <?php |
37 | | - esc_html_e( 'Pick your template below, you can always customise it later.', 'wp-maintenance-mode' ); |
38 | | - ?> |
39 | | - </p> |
40 | | - <div class="wpmm-templates-radio"> |
41 | | - <form> |
42 | | - <?php |
43 | | - $categories = WP_Maintenance_Mode::get_page_categories(); |
44 | | - foreach ( $categories as $category => $label ) { |
45 | | - $slug = $default_templates[ $category ]['slug']; |
46 | | - $thumbnail_url = $default_templates[ $category ]['thumbnail']; |
| 44 | + ); |
47 | 45 | ?> |
48 | | - <div class="templates-radio__item" > |
49 | | - <h6 class="tag"><?php echo $label; ?></h6> |
50 | | - <input id="<?php echo esc_attr( $slug ); ?>" type="radio" name="wizard-template" value="<?php echo esc_attr( $slug ); ?>" data-category="<?php echo esc_attr( $category ); ?>" <?php checked( $category, 'coming-soon' ); ?>> |
51 | | - <label for="<?php echo esc_attr( $slug ); ?>" class="wpmm-template"> |
52 | | - <img src="<?php echo esc_url( $thumbnail_url ); ?>" alt="<?php echo esc_attr( $slug ); ?>"/> |
53 | | - <span class="checked-icon"> |
54 | | - <img src="<?php echo esc_url( WPMM_URL . 'assets/images/checked.svg' ); ?>" alt="<?php echo esc_attr( 'checked-icon' ); ?>"/> |
55 | | - </span> |
56 | | - </label> |
57 | | - </div> |
| 46 | + <br> |
58 | 47 | <?php |
59 | | - } |
60 | | - ?> |
61 | | - </form> |
62 | | - </div> |
| 48 | + esc_html_e( 'It also unlocks tools like forms and popups - if you need them later.', 'wp-maintenance-mode' ); |
| 49 | + ?> |
| 50 | + </p> |
| 51 | + </div> |
| 52 | + <div class="wpmm-templates-radio"> |
| 53 | + <form> |
| 54 | + <?php |
| 55 | + $categories = WP_Maintenance_Mode::get_page_categories(); |
| 56 | + foreach ( $categories as $category => $label ) { |
| 57 | + $slug = $default_templates[ $category ]['slug']; |
| 58 | + $thumbnail_url = $default_templates[ $category ]['thumbnail']; |
| 59 | + ?> |
| 60 | + <div class="templates-radio__item" > |
| 61 | + <h6 class="tag"><?php echo $label; ?></h6> |
| 62 | + <input id="<?php echo esc_attr( $slug ); ?>" type="radio" name="wizard-template" value="<?php echo esc_attr( $slug ); ?>" data-category="<?php echo esc_attr( $category ); ?>" <?php checked( $category, 'coming-soon' ); ?>> |
| 63 | + <label for="<?php echo esc_attr( $slug ); ?>" class="wpmm-template"> |
| 64 | + <img src="<?php echo esc_url( $thumbnail_url ); ?>" alt="<?php echo esc_attr( $slug ); ?>"/> |
| 65 | + <span class="checked-icon"> |
| 66 | + <img src="<?php echo esc_url( WPMM_URL . 'assets/images/checked.svg' ); ?>" alt="<?php echo esc_attr( 'checked-icon' ); ?>"/> |
| 67 | + </span> |
| 68 | + </label> |
| 69 | + </div> |
| 70 | + <?php |
| 71 | + } |
| 72 | + ?> |
| 73 | + </form> |
| 74 | + </div> |
| 75 | + <?php } ?> |
63 | 76 | <?php if ( ! is_plugin_active( 'optimole-wp/optimole-wp.php' ) ) { ?> |
64 | 77 | <div class="optimole-upsell"> |
65 | 78 | <div class="optimole-upsell-container"> |
|
73 | 86 | </div> |
74 | 87 | <p class="description"> |
75 | 88 | <?php |
76 | | - printf( |
77 | | - wp_kses( |
78 | | - /* translators: Optimole url */ |
79 | | - __( 'Templates would have pre-optimized images and all of your website\'s images would be delivered via Amazon Cloudfront CDN, resulting in an ≈ 80%% increase in speed, with <a href="%1$s" target="_blank">Optimole%2$s</a>.', 'wp-maintenance-mode' ), |
80 | | - wpmm_translated_string_allowed_html() |
81 | | - ), |
| 89 | + echo wp_kses( |
| 90 | + sprintf( |
| 91 | + // translators: %1$s is a description, %2$s is optimole-wp link, %3$s is plugin name, %4$s is description text. |
| 92 | + '%1$s <a href="%2$s" target="_blank">%3$s</a> %4$s', |
| 93 | + __( 'Templates would have pre-optimized images and all of your website’s images would be delivered via Amazon Cloudfront CDN, resulting in an ≈ 80% increase in speed.', 'wp-maintenance-mode' ), |
82 | 94 | esc_url( 'https://wordpress.org/plugins/optimole-wp/' ), |
83 | | - $this->get_external_link_icon() |
84 | | - ); |
| 95 | + 'Optimole', |
| 96 | + __( 'plugin will be installed and activated.', 'wp-maintenance-mode' ), |
| 97 | + ), |
| 98 | + wpmm_translated_string_allowed_html(), |
| 99 | + ); |
85 | 100 | ?> |
86 | 101 | </div> |
87 | 102 | <?php } ?> |
88 | 103 |
|
89 | 104 | <div id="wizard-buttons" class="import-button"> |
90 | 105 | <input type="button" class="button button-big button-primary disabled button-import" value="<?php esc_html_e( 'Continue', 'wp-maintenance-mode' ); ?>"/> |
91 | | - <input type="button" class="button button-big button-secondary button-skip" value="<?php esc_html_e( 'I don’t want to use a template', 'wp-maintenance-mode' ); ?>"/> |
| 106 | + <input type="button" class="button button-big button-secondary button-skip" value="<?php esc_html_e( 'Skip this step', 'wp-maintenance-mode' ); ?>"/> |
92 | 107 | </div> |
93 | 108 | </div> |
94 | 109 | </div> |
|
0 commit comments