modal-editor.php
72 lines
| 1 | <div class="spel_theme_builder_wrapper spel-modal spel-fade" id="spel_theme_builder_modal" tabindex="-1" role="dialog" aria-labelledby="spel_theme_builder_modal_label"> |
| 2 | |
| 3 | <div class="modal-dialog modal-dialog-centered" role="document"> |
| 4 | |
| 5 | <form action="" name="spel_template_form" id="spel_template_form" method="post" data-open-editor="0" data-editor-url="<?php echo esc_url(get_admin_url()); ?>" data-nonce="<?php echo esc_attr(wp_create_nonce( 'wp_rest' )); ?>"> |
| 6 | |
| 7 | <div class="modal-content"> |
| 8 | |
| 9 | <div class="modal-header"> |
| 10 | <h4 class="modal-title" id="spel_theme_builder_modal_label"><?php esc_html_e( 'Template Settings', 'spider-elements' ); ?></h4> |
| 11 | <button type="button" class="modal-close" data-dismiss="modal" aria-label="<?php esc_attr_e('Close', 'spider-elements'); ?>"><span aria-hidden="true">×</span></button> |
| 12 | </div> |
| 13 | |
| 14 | <div class="modal-body" id="spel_theme_builder_modal_body"> |
| 15 | |
| 16 | <div class="input-group"> |
| 17 | <label class="input-label"><?php esc_html_e( 'Title:', 'spider-elements' ); ?></label> |
| 18 | <input type="text" name="title" class="template-modal-input-title form-control" required> |
| 19 | </div> |
| 20 | <br /> |
| 21 | |
| 22 | <div class="input-group"> |
| 23 | <label class="input-label"><?php esc_html_e( 'Type:', 'spider-elements' ); ?></label> |
| 24 | <select name="spel_template_type" id="spel_template_type" class="template-modal-input-type form-control"> |
| 25 | <option value="header"><?php esc_html_e( 'Header', 'spider-elements' ); ?></option> |
| 26 | <option value="footer"><?php esc_html_e( 'Footer', 'spider-elements' ); ?></option> |
| 27 | </select> |
| 28 | </div> |
| 29 | <br /> |
| 30 | |
| 31 | <div class="template-option-container"> |
| 32 | <div class="input-group"> |
| 33 | <label class="input-label"><?php esc_html_e( 'Conditions:', 'spider-elements' ); ?></label> |
| 34 | <select name="spel_template_condition" id="spel_template_condition" class="template-modal-input-condition_a form-control"> |
| 35 | <option value="entire_site"><?php esc_html_e( 'Entire Site', 'spider-elements' ); ?></option> |
| 36 | <option value="singular"><?php esc_html_e( 'All Singular Posts', 'spider-elements' ); ?></option> |
| 37 | <option value="archive"><?php esc_html_e( 'All Archive Pages', 'spider-elements' ); ?></option> |
| 38 | </select> |
| 39 | </div> |
| 40 | <br> |
| 41 | |
| 42 | <div class="switch-group"> |
| 43 | <label class="input-label"><?php esc_html_e( 'Activate/Deactivate:', 'spider-elements' ); ?></label> |
| 44 | |
| 45 | <div class="admin-input-switch"> |
| 46 | <input type="checkbox" value="yes" class="admin-control-input template-modal-input-activation" name="spel_template_status" id="spel_template_status"> |
| 47 | <label class="admin-control-label" for="spel_template_status"> |
| 48 | <span class="admin-control-label-switch" data-active="ON" data-inactive="OFF"></span> |
| 49 | </label> |
| 50 | </div> |
| 51 | |
| 52 | </div> |
| 53 | |
| 54 | </div> |
| 55 | <br> |
| 56 | </div> |
| 57 | |
| 58 | <div class="modal-footer"> |
| 59 | <button type="button" class="btn btn-default template-save-btn-editor" id="spel_template_elementor_edit_mode_btn" target="_blank"><?php esc_html_e( 'Edit with Elementor', 'spider-elements' ); ?></button> |
| 60 | <button type="submit" class="btn btn-primary template-save-btn"><?php esc_html_e( 'Save changes', 'spider-elements' ); ?></button> |
| 61 | </div> |
| 62 | |
| 63 | <div class="spinner"></div> |
| 64 | |
| 65 | </div> |
| 66 | </form> |
| 67 | |
| 68 | |
| 69 | |
| 70 | </div> |
| 71 | </div> |
| 72 |