tooltip.php
44 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Form Embed Wizard. |
| 4 | * Embed page tooltip HTML template. |
| 5 | * |
| 6 | * @since 1.6.2 |
| 7 | */ |
| 8 | |
| 9 | if ( ! \defined( 'ABSPATH' ) ) { |
| 10 | exit; |
| 11 | } |
| 12 | |
| 13 | ?> |
| 14 | <div class="wpforms-admin-form-embed-wizard-tooltip"> |
| 15 | <div id="wpforms-admin-form-embed-wizard-tooltip-content"> |
| 16 | <?php if ( wpforms_is_gutenberg_active() ) : // Gutenberg content. ?> |
| 17 | <h3><?php esc_html_e( 'Add a Block', 'wpforms-lite' ); ?></h3> |
| 18 | <p> |
| 19 | <?php |
| 20 | printf( |
| 21 | wp_kses( /* translators: %s - link to the WPForms documentation page. */ |
| 22 | __( 'Click the plus button, search for WPForms, click the block to<br>embed it. <a href="%s" target="_blank" rel="noopener noreferrer">Learn More</a>', 'wpforms-lite' ), |
| 23 | [ |
| 24 | 'a' => [ |
| 25 | 'href' => [], |
| 26 | 'rel' => [], |
| 27 | 'target' => [], |
| 28 | ], |
| 29 | 'br' => [], |
| 30 | ] |
| 31 | ), |
| 32 | 'https://wpforms.com/docs/creating-first-form/#display-form' |
| 33 | ); |
| 34 | ?> |
| 35 | </p> |
| 36 | <i class="wpforms-admin-form-embed-wizard-tooltips-red-arrow"></i> |
| 37 | <?php else : ?> |
| 38 | <h3><?php esc_html_e( 'Embed in a Page', 'wpforms-lite' ); ?></h3> |
| 39 | <p><?php esc_html_e( 'Click the “Add Form” button, select your form, then add the embed code.', 'wpforms-lite' ); ?></p> |
| 40 | <?php endif; ?> |
| 41 | <button type="button" class="wpforms-admin-form-embed-wizard-done-btn"><?php esc_html_e( 'Done', 'wpforms-lite' ); ?></button> |
| 42 | </div> |
| 43 | </div> |
| 44 |