PluginProbe ʕ •ᴥ•ʔ
Nested Pages / 1.3.4
Nested Pages v1.3.4
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 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.2.1 1.3.0 1.3.1 1.3.10 1.3.11 1.3.12 1.3.13 1.3.14 1.3.15 1.3.2 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.3.1 1.6.3.2 1.6.4 1.6.5 1.6.5.1 1.6.5.2 1.6.6 1.6.7 1.6.8 1.7.0 1.7.1 2.0.1 2.0.2 2.0.3 2.0.4 3.0.1 3.0.10 3.0.11 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.10 3.1.11 3.1.12 3.1.13 3.1.14 3.1.15 3.1.16 3.1.17 3.1.18 3.1.19 3.1.2 3.1.20 3.1.21 3.1.22 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7
wp-nested-pages / app / Views / forms / link-form.php
wp-nested-pages / app / Views / forms Last commit date
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 -->