bulk-add.php
11 years ago
empty-trash-modal.php
11 years ago
link-form.php
11 years ago
new-child.php
11 years ago
quickedit-link.php
11 years ago
quickedit-post.php
11 years ago
link-form.php
110 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Modal Form for adding a new link |
| 4 | */ |
| 5 | $post_type_object = get_post_type_object( 'page' ); |
| 6 | $can_publish = current_user_can( $post_type_object->cap->publish_posts ); |
| 7 | ?> |
| 8 | <div class="np-modal fade" id="np-link-modal"> |
| 9 | <div class="modal-dialog"> |
| 10 | <div class="modal-content"> |
| 11 | |
| 12 | <div class="np-tabs"> |
| 13 | <ul> |
| 14 | <li><a href="#nplink" class="active"><?php _e('Add Link'); ?></a></li> |
| 15 | <?php /* <li><a href="#npmenuitems"><?php _e('Add Menu Item', 'nestedpages'); ?></a></li> */ ?> |
| 16 | </ul> |
| 17 | </div> |
| 18 | |
| 19 | <div id="nplink" class="np-tabbed-content"> |
| 20 | |
| 21 | <div class="modal-body"> |
| 22 | |
| 23 | <form method="get" action="" class="np-modal-form np-new-link-form"> |
| 24 | <div class="form-interior"> |
| 25 | |
| 26 | <div class="np-quickedit-error np-new-link-error" style="clear:both;display:none;"></div> |
| 27 | |
| 28 | <div class="left"> |
| 29 | |
| 30 | <div class="form-control"> |
| 31 | <label><?php _e( 'Navigation Label' ); ?></label> |
| 32 | <input type="text" name="np_link_title" class="np_link_title" value="" /> |
| 33 | </div> |
| 34 | |
| 35 | <div class="form-control"> |
| 36 | <label><?php _e( 'URL', 'nestedpages' ); ?></label> |
| 37 | <input type="text" name="np_link_content" class="np_link_content" value="" /> |
| 38 | </div> |
| 39 | |
| 40 | <div class="form-control"> |
| 41 | <label><?php _e( 'Status' ); ?></label> |
| 42 | <select name="_status" class="np_link_status"> |
| 43 | <?php if ( $can_publish ) : ?> |
| 44 | <option value="publish"><?php _e( 'Published' ); ?></option> |
| 45 | <option value="future"><?php _e( 'Scheduled' ); ?></option> |
| 46 | <?php endif; ?> |
| 47 | <option value="pending"><?php _e( 'Pending Review' ); ?></option> |
| 48 | <option value="draft"><?php _e( 'Draft' ); ?></option> |
| 49 | </select> |
| 50 | </div> |
| 51 | |
| 52 | </div><!-- .left --> |
| 53 | |
| 54 | <div class="right"> |
| 55 | |
| 56 | <?php if ( $this->user->canSortPages() ) : // Menu Options Button ?> |
| 57 | <label class="checkbox"> |
| 58 | <input type="checkbox" name="nav_status" class="np_link_nav_status" value="hide" /> |
| 59 | <span class="checkbox-title"><?php _e( 'Hide in Nav Menu', 'nestedpages' ); ?></span> |
| 60 | </label> |
| 61 | |
| 62 | <label class="checkbox"> |
| 63 | <input type="checkbox" name="nested_pages_status" class="np_link_status" value="hide" /> |
| 64 | <span class="checkbox-title"><?php _e( 'Hide in Nested Pages', 'nestedpages' ); ?></span> |
| 65 | </label> |
| 66 | |
| 67 | <label class="checkbox"> |
| 68 | <input type="checkbox" name="link_target" class="new_link_target" value="_blank" /> |
| 69 | <span class="checkbox-title"><?php _e( 'Open link in a new window/tab' ); ?></span> |
| 70 | </label> |
| 71 | <?php endif; // Edit theme options ?> |
| 72 | |
| 73 | </div><!-- .right --> |
| 74 | |
| 75 | </div><!-- .form-interior --> |
| 76 | </div> |
| 77 | <div class="modal-footer"> |
| 78 | <input type="hidden" name="parent_id" class="parent_id" value=""> |
| 79 | <button type="button" class="button modal-close" data-dismiss="modal"> |
| 80 | <?php _e('Close'); ?> |
| 81 | </button> |
| 82 | <a accesskey="s" class="button-primary np-save-link alignright"> |
| 83 | <?php _e( 'Save Link', 'nestedpages' ); ?> |
| 84 | </a> |
| 85 | <span class="np-qe-loading np-link-loading"></span> |
| 86 | </div> |
| 87 | </form> |
| 88 | </div><!-- #nplink --> |
| 89 | |
| 90 | <?php /* |
| 91 | <div id="npmenuitems" class="np-tabbed-content" style="display:none;"> |
| 92 | <div class="modal-body"> |
| 93 | adf |
| 94 | </div><!-- .modal-body --> |
| 95 | <div class="modal-footer"> |
| 96 | <input type="hidden" name="parent_id" class="parent_id" value=""> |
| 97 | <button type="button" class="button modal-close" data-dismiss="modal"> |
| 98 | <?php _e('Close'); ?> |
| 99 | </button> |
| 100 | <a accesskey="s" class="button-primary np-save-link alignright"> |
| 101 | <?php _e( 'Add Item', 'nestedpages' ); ?> |
| 102 | </a> |
| 103 | <span class="np-qe-loading np-link-loading"></span> |
| 104 | </div><!-- .modal-footer --> |
| 105 | </div><!-- #npmenuitems --> |
| 106 | */ ?> |
| 107 | |
| 108 | </div><!-- /.modal-content --> |
| 109 | </div><!-- /.modal-dialog --> |
| 110 | </div><!-- /.modal --> |