PluginProbe
Nested Pages / 1.2.0
Nested Pages v1.2.0
3.3.1 3.2.15 3.2.14 3.1.8 3.1.9 3.2.0 3.2.1 3.2.10 3.2.11 3.2.12 3.2.13 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.2.7 3.2.8 3.2.9 trunk 1.0 1.1 1.1.1 1.1.2 1.1.3 All 106 releases
wp-nested-pages / app / Views / link-form.php
link-form.php
110 lines 3.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 -->