options-megamenu.php
16 lines
| 1 | <script> |
| 2 | var elementskit_options_megamenu_markup = ` |
| 3 | <fieldset class="menu-settings-group elementskit-options-megamenu" id="elementskit-options-megamenu"> |
| 4 | <legend class="menu-settings-group-name attr-text-bold"><?php esc_html_e( 'ElementsKit Megamenu', 'elementskit-lite' ); ?></legend> |
| 5 | <div class="menu-settings-input checkbox-input"> |
| 6 | <input name="is_enabled" type="checkbox" <?php checked( ( isset( $data['is_enabled'] ) ? $data['is_enabled'] : '' ), '1' ); ?> id="elementskit-menu-metabox-input-is-enabled" class="elementskit-menu-is-enabled" value="1"> |
| 7 | <label for="elementskit-menu-metabox-input-is-enabled"><?php esc_html_e( 'Enable this menu for Megamenu content', 'elementskit-lite' ); ?></label><br> |
| 8 | <p class="notice notice-warning" style="margin-top: 10px;padding-top: 10px;padding-bottom: 10px;background:#f3f3f3;">After enabling this, you need to use ElementsKit's header-footer module with <b>elementskit nav-menu</b> widget to show the mega menu. <a href="https://wpmet.com/doc/mega-menu-module/" target="_blank">See here how to do it.</a></p> |
| 9 | </div> |
| 10 | </fieldset> |
| 11 | `; |
| 12 | |
| 13 | var elementskit_megamenu_nonce = `<?php echo esc_attr( wp_create_nonce( 'wp_rest' ) ); ?>`; |
| 14 | |
| 15 | </script> |
| 16 |