wp-editor-link.php
75 lines
| 1 | <?php |
| 2 | /** |
| 3 | * WP Editor link modal |
| 4 | * |
| 5 | * @package Tutor\Views |
| 6 | * @author Themeum <support@themeum.com> |
| 7 | * @link https://themeum.com |
| 8 | * @since 3.0.0 |
| 9 | */ |
| 10 | |
| 11 | ?> |
| 12 | <div id="wp-link-backdrop" style="display: none"></div> |
| 13 | <div id="wp-link-wrap" class="wp-core-ui" style="display: none" role="dialog" aria-labelledby="link-modal-title"> |
| 14 | <form id="wp-link" tabindex="-1"> |
| 15 | <?php wp_nonce_field( 'internal-linking', '_ajax_linking_nonce', false ); ?> |
| 16 | <h1 id="link-modal-title"><?php esc_html_e( 'Insert/edit link' ); ?></h1> |
| 17 | <button type="button" id="wp-link-close"> |
| 18 | <span class="screen-reader-text"><?php esc_html_e( 'Close' ); ?></span> |
| 19 | </button> |
| 20 | <div id="link-selector"> |
| 21 | <div id="link-options"> |
| 22 | <p class="howto" id="wplink-enter-url"><?php esc_html_e( 'Enter the destination URL' ); ?></p> |
| 23 | <div> |
| 24 | <label><span><?php esc_html_e( 'URL' ); ?></span> |
| 25 | <input id="wp-link-url" type="text" aria-describedby="wplink-enter-url" /></label> |
| 26 | </div> |
| 27 | <div class="wp-link-text-field"> |
| 28 | <label><span><?php esc_html_e( 'Link Text' ); ?></span> |
| 29 | <input id="wp-link-text" type="text" /></label> |
| 30 | </div> |
| 31 | <div class="link-target"> |
| 32 | <label><span></span> |
| 33 | <input type="checkbox" id="wp-link-target" /> <?php esc_html_e( 'Open link in a new tab' ); ?></label> |
| 34 | </div> |
| 35 | </div> |
| 36 | <p class="howto" id="wplink-link-existing-content"><?php esc_html_e( 'Or link to existing content' ); ?></p> |
| 37 | <div id="search-panel"> |
| 38 | <div class="link-search-wrapper"> |
| 39 | <label> |
| 40 | <span class="search-label"><?php esc_html_e( 'Search' ); ?></span> |
| 41 | <input type="search" id="wp-link-search" class="link-search-field" autocomplete="off" aria-describedby="wplink-link-existing-content" /> |
| 42 | <span class="spinner"></span> |
| 43 | </label> |
| 44 | </div> |
| 45 | <div id="search-results" class="query-results" tabindex="0"> |
| 46 | <ul></ul> |
| 47 | <div class="river-waiting"> |
| 48 | <span class="spinner"></span> |
| 49 | </div> |
| 50 | </div> |
| 51 | <div id="most-recent-results" class="query-results" tabindex="0"> |
| 52 | <div class="query-notice" id="query-notice-message"> |
| 53 | <em class="query-notice-default"><?php esc_html_e( 'No search term specified. Showing recent items.' ); ?></em> |
| 54 | <em class="query-notice-hint screen-reader-text"> |
| 55 | <?php esc_html_e( 'Search or use up and down arrow keys to select an item.' ); ?> |
| 56 | </em> |
| 57 | </div> |
| 58 | <ul></ul> |
| 59 | <div class="river-waiting"> |
| 60 | <span class="spinner"></span> |
| 61 | </div> |
| 62 | </div> |
| 63 | </div> |
| 64 | </div> |
| 65 | <div class="submitbox"> |
| 66 | <div id="wp-link-cancel"> |
| 67 | <button type="button" class="button"><?php esc_html_e( 'Cancel' ); ?></button> |
| 68 | </div> |
| 69 | <div id="wp-link-update"> |
| 70 | <input type="submit" value="<?php echo esc_attr__( 'Add Link' ); ?>" class="button button-primary" id="wp-link-submit" name="wp-link-submit"> |
| 71 | </div> |
| 72 | </div> |
| 73 | </form> |
| 74 | </div> |
| 75 |