modal-editor.php
1 week ago
theme-support-footer.php
4 years ago
theme-support-header.php
1 year ago
modal-editor.php
84 lines
| 1 | <div class="attr-modal attr-fade" id="elementskit_headerfooter_modal" tabindex="-1" role="dialog" aria-labelledby="elementskit_headerfooter_modalLabel"> |
| 2 | <div class="attr-modal-dialog attr-modal-dialog-centered" role="document"> |
| 3 | <form action="" method="get" id="elementskit-template-modalinput-form" 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' )); ?>"> |
| 4 | <!-- <input type="hidden" name="post_author" value ="<?php //echo get_current_user_id(); ?>"> --> |
| 5 | <div class="attr-modal-content"> |
| 6 | <div class="attr-modal-header"> |
| 7 | <button type="button" class="attr-close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> |
| 8 | <h4 class="attr-modal-title" id="elementskit_headerfooter_modalLabel"><?php esc_html_e( 'Template Settings', 'elementskit-lite' ); ?></h4> |
| 9 | </div> |
| 10 | <div class="attr-modal-body" id="elementskit_headerfooter_modal_body"> |
| 11 | <div class="ekit-input-group"> |
| 12 | <label class="attr-input-label"><?php esc_html_e( 'Title:', 'elementskit-lite' ); ?></label> |
| 13 | <input required type="text" name="title" class="ekit-template-modalinput-title attr-form-control"> |
| 14 | </div> |
| 15 | <br /> |
| 16 | <div class="ekit-input-group"> |
| 17 | <label class="attr-input-label"><?php esc_html_e( 'Type:', 'elementskit-lite' ); ?></label> |
| 18 | <select name="type" class="ekit-template-modalinput-type attr-form-control"> |
| 19 | <option value="header"><?php esc_html_e( 'Header', 'elementskit-lite' ); ?></option> |
| 20 | <option value="footer"><?php esc_html_e( 'Footer', 'elementskit-lite' ); ?></option> |
| 21 | </select> |
| 22 | </div> |
| 23 | <br /> |
| 24 | |
| 25 | <div class="ekit-template-headerfooter-option-container"> |
| 26 | <div class="ekit-input-group"> |
| 27 | <label class="attr-input-label"><?php esc_html_e( 'Conditions:', 'elementskit-lite' ); ?></label> |
| 28 | <select name="condition_a" class="ekit-template-modalinput-condition_a attr-form-control"> |
| 29 | <option value="entire_site"><?php esc_html_e( 'Entire Site', 'elementskit-lite' ); ?></option> |
| 30 | <option value="singular" disabled><?php esc_html_e( 'Singular (Only Pro)', 'elementskit-lite' ); ?></option> |
| 31 | <option value="archive" disabled><?php esc_html_e( 'Archive (Only Pro)', 'elementskit-lite' ); ?></option> |
| 32 | </select> |
| 33 | </div> |
| 34 | <br> |
| 35 | |
| 36 | <div class="ekit-template-modalinput-condition_singular-container"> |
| 37 | <div class="ekit-input-group"> |
| 38 | <label class="attr-input-label"></label> |
| 39 | <select name="condition_singular" class="ekit-template-modalinput-condition_singular attr-form-control"> |
| 40 | <option value="all"><?php esc_html_e( 'All Singulars (Only Pro)', 'elementskit-lite' ); ?></option> |
| 41 | <option value="front_page"><?php esc_html_e( 'Front Page (Only Pro)', 'elementskit-lite' ); ?></option> |
| 42 | <option value="all_posts"><?php esc_html_e( 'All Posts (Only Pro)', 'elementskit-lite' ); ?></option> |
| 43 | <option value="all_pages"><?php esc_html_e( 'All Pages (Only Pro)', 'elementskit-lite' ); ?></option> |
| 44 | <option value="selective"><?php esc_html_e( 'Selective Singular (Only Pro)', 'elementskit-lite' ); ?></option> |
| 45 | <option value="404page"><?php esc_html_e( '404 Page (Only Pro)', 'elementskit-lite' ); ?></option> |
| 46 | </select> |
| 47 | </div> |
| 48 | <br> |
| 49 | |
| 50 | <div class="ekit-template-modalinput-condition_singular_id-container ekit_multipile_ajax_search_filed"> |
| 51 | <div class="ekit-input-group"> |
| 52 | <label class="attr-input-label"></label> |
| 53 | <select multiple name="condition_singular_id" class="ekit-template-modalinput-condition_singular_id"></select> |
| 54 | </div> |
| 55 | <br /> |
| 56 | </div> |
| 57 | <br> |
| 58 | </div> |
| 59 | |
| 60 | <div class="ekit-switch-group"> |
| 61 | <label class="attr-input-label"><?php esc_html_e( 'Activate/Deactivate:', 'elementskit-lite' ); ?></label> |
| 62 | <div class="ekit-admin-input-switch"> |
| 63 | <input checked="" type="checkbox" value="yes" |
| 64 | class="ekit-admin-control-input ekit-template-modalinput-activition" |
| 65 | name="activation" id="ekit_activation_modal_input"> |
| 66 | <label class="ekit-admin-control-label" for="ekit_activation_modal_input"> |
| 67 | <span class="ekit-admin-control-label-switch" data-active="ON" |
| 68 | data-inactive="OFF"></span> |
| 69 | </label> |
| 70 | </div> |
| 71 | </div> |
| 72 | </div> |
| 73 | <br> |
| 74 | </div> |
| 75 | <div class="attr-modal-footer"> |
| 76 | <button type="button" class="attr-btn attr-btn-default elementskit-template-save-btn-editor"><?php esc_html_e( 'Edit content', 'elementskit-lite' ); ?></button> |
| 77 | <button type="submit" class="attr-btn attr-btn-primary elementskit-template-save-btn"><?php esc_html_e( 'Save changes', 'elementskit-lite' ); ?></button> |
| 78 | </div> |
| 79 | <div class="ekit-spinner"></div> |
| 80 | </div> |
| 81 | </form> |
| 82 | </div> |
| 83 | </div> |
| 84 |