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
quickedit-link.php
88 lines
| 1 | <?php |
| 2 | $post_type_object = get_post_type_object( 'np-redirect' ); |
| 3 | $can_publish = current_user_can( $post_type_object->cap->publish_posts ); |
| 4 | ?> |
| 5 | |
| 6 | <form method="get" action=""> |
| 7 | <div class="form-interior"> |
| 8 | <h3><?php _e('Link', 'nestedpages'); ?></h3> |
| 9 | |
| 10 | <div class="np-quickedit-error" style="clear:both;display:none;"></div> |
| 11 | |
| 12 | <div class="fields"> |
| 13 | |
| 14 | <div class="left"> |
| 15 | |
| 16 | <div class="form-control"> |
| 17 | <label><?php _e( 'Navigation Label' ); ?></label> |
| 18 | <input type="text" name="post_title" class="np_title" value="" /> |
| 19 | </div> |
| 20 | |
| 21 | <div class="form-control"> |
| 22 | <label><?php _e( 'URL' ); ?></label> |
| 23 | <input type="text" name="post_content" class="np_content" value="" /> |
| 24 | </div> |
| 25 | |
| 26 | <div class="form-control"> |
| 27 | <label><?php _e( 'Status' ); ?></label> |
| 28 | <select name="_status" class="np_status"> |
| 29 | <?php if ( $can_publish ) : ?> |
| 30 | <option value="publish"><?php _e( 'Published' ); ?></option> |
| 31 | <option value="future"><?php _e( 'Scheduled' ); ?></option> |
| 32 | <?php endif; ?> |
| 33 | <option value="pending"><?php _e( 'Pending Review' ); ?></option> |
| 34 | <option value="draft"><?php _e( 'Draft' ); ?></option> |
| 35 | </select> |
| 36 | </div> |
| 37 | |
| 38 | </div><!-- .left --> |
| 39 | |
| 40 | <div class="right"> |
| 41 | |
| 42 | <?php if ( $this->user->canSortPages() && !$this->isSearch() ) : // Menu Options Button ?> |
| 43 | <div class="form-control"> |
| 44 | <label><?php _e( 'Title Attribute' ); ?></label> |
| 45 | <input type="text" name="np_title_attribute" class="np_title_attribute" value="" /> |
| 46 | </div> |
| 47 | <div class="form-control"> |
| 48 | <label><?php _e( 'CSS Classes' ); ?></label> |
| 49 | <input type="text" name="np_nav_css_classes" class="np_nav_css_classes" value="" /> |
| 50 | </div> |
| 51 | <div class="comments"> |
| 52 | <label> |
| 53 | <input type="checkbox" name="nav_status" class="np_nav_status" value="hide" /> |
| 54 | <span class="checkbox-title"><?php _e( 'Hide in Nav Menu', 'nestedpages' ); ?></span> |
| 55 | </label> |
| 56 | </div> |
| 57 | <div class="comments"> |
| 58 | <label> |
| 59 | <input type="checkbox" name="nested_pages_status" class="np_status" value="hide" /> |
| 60 | <span class="checkbox-title"><?php _e( 'Hide in Nested Pages', 'nestedpages' ); ?></span> |
| 61 | </label> |
| 62 | </div> |
| 63 | <div class="comments"> |
| 64 | <label> |
| 65 | <input type="checkbox" name="link_target" class="link_target" value="_blank" /> |
| 66 | <span class="checkbox-title"><?php _e( 'Open link in a new window/tab' ); ?></span> |
| 67 | </label> |
| 68 | </div> |
| 69 | <?php endif; // Edit theme options?> |
| 70 | |
| 71 | </div><!-- .right --> |
| 72 | |
| 73 | </div><!-- .fields --> |
| 74 | |
| 75 | </div><!-- .form-interior --> |
| 76 | |
| 77 | <div class="buttons"> |
| 78 | <input type="hidden" name="post_id" class="np_id" value="<?php echo get_the_id(); ?>"> |
| 79 | <input type="hidden" name="parent_id" class="np_parent_id" value=""> |
| 80 | <a accesskey="c" href="#inline-edit" class="button-secondary alignleft np-cancel-quickedit"> |
| 81 | <?php _e( 'Cancel' ); ?> |
| 82 | </a> |
| 83 | <a accesskey="s" href="#inline-edit" class="button-primary np-save-quickedit-redirect alignright"> |
| 84 | <?php _e( 'Update' ); ?> |
| 85 | </a> |
| 86 | <span class="np-qe-loading"></span> |
| 87 | </div> |
| 88 | </form> |