|
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' ), |
29 | | - 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']; |
| 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 | + printf( |
| 35 | + wp_kses( |
| 36 | + /* translators: Otter url */ |
| 37 | + __( '<strong>Pick a template to get started. <a href="%1$s" target="_blank">Otter Blocks</a> plugin will be installed and activated to support and customize your layout.</strong> It also unlocks tools like forms and popups - if you need them later.', 'wp-maintenance-mode' ), |
| 38 | + wpmm_translated_string_allowed_html() |
| 39 | + ), |
| 40 | + tsdk_utmify( 'https://themeisle.com/plugins/otter-blocks/', $this->plugin_slug, 'wizard' ), |
| 41 | + ); |
47 | 42 | ?> |
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> |
| 43 | + </p> |
| 44 | + </div> |
| 45 | + <div class="wpmm-templates-radio"> |
| 46 | + <form> |
58 | 47 | <?php |
59 | | - } |
60 | | - ?> |
61 | | - </form> |
62 | | - </div> |
| 48 | + $categories = WP_Maintenance_Mode::get_page_categories(); |
| 49 | + foreach ( $categories as $category => $label ) { |
| 50 | + $slug = $default_templates[ $category ]['slug']; |
| 51 | + $thumbnail_url = $default_templates[ $category ]['thumbnail']; |
| 52 | + ?> |
| 53 | + <div class="templates-radio__item" > |
| 54 | + <h6 class="tag"><?php echo $label; ?></h6> |
| 55 | + <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' ); ?>> |
| 56 | + <label for="<?php echo esc_attr( $slug ); ?>" class="wpmm-template"> |
| 57 | + <img src="<?php echo esc_url( $thumbnail_url ); ?>" alt="<?php echo esc_attr( $slug ); ?>"/> |
| 58 | + <span class="checked-icon"> |
| 59 | + <img src="<?php echo esc_url( WPMM_URL . 'assets/images/checked.svg' ); ?>" alt="<?php echo esc_attr( 'checked-icon' ); ?>"/> |
| 60 | + </span> |
| 61 | + </label> |
| 62 | + </div> |
| 63 | + <?php |
| 64 | + } |
| 65 | + ?> |
| 66 | + </form> |
| 67 | + </div> |
| 68 | + <?php } ?> |
63 | 69 | <?php if ( ! is_plugin_active( 'optimole-wp/optimole-wp.php' ) ) { ?> |
64 | 70 | <div class="optimole-upsell"> |
65 | 71 | <div class="optimole-upsell-container"> |
|
0 commit comments