PluginProbe ʕ •ᴥ•ʔ
Nested Pages / 3.0.8
Nested Pages v3.0.8
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 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 / partials / bulk-edit.php
wp-nested-pages / app / Views / partials Last commit date
bulk-edit.php 8 years ago list-header.php 8 years ago row-link.php 7 years ago row.php 7 years ago tool-list.php 8 years ago wpml-translations.php 8 years ago
bulk-edit.php
151 lines
1 <?php
2 $post_type_object = get_post_type_object( $this->post_type->name );
3 $can_publish = current_user_can( $post_type_object->cap->publish_posts );
4 ?>
5 <form data-np-bulk-edit-form class="nestedpages-bulk-edit" action="<?php echo admin_url('admin-post.php'); ?>" method="post">
6 <input type="hidden" name="action" value="npBulkEdit">
7 <input type="hidden" name="page" value="<?php echo $this->pageURL(); ?>">
8 <input type="hidden" name="post_type" value="<?php echo $this->post_type->name; ?>">
9
10 <h3><?php _e('Bulk Edit', 'wp-nested-pages'); ?></h3>
11
12 <div class="np-bulk-edit-link-info">
13 <div class="np-quickedit-info" data-bulk-edit-link-count><?php _e('There are links selected. Bulk edit will not apply to links.', 'wp-nested-pages'); ?></div>
14 </div>
15
16 <ul class="np-bulk-titles" data-np-bulk-titles></ul>
17
18 <div class="quick-edit">
19 <div class="fields">
20 <div class="left">
21 <?php
22 $authors_dropdown = '';
23 if ( is_super_admin() || current_user_can( $post_type_object->cap->edit_others_posts ) ) :
24 $users_opt = [
25 'show_option_none' => '&mdash; ' . __('No Change', 'wp-nested-pages') . ' &mdash;',
26 'hide_if_only_one_author' => false,
27 'who' => 'authors',
28 'name' => 'post_author',
29 'id' => 'post_author',
30 'class'=> 'authors',
31 'multi' => 1,
32 'echo' => 0
33 ];
34 if ( $authors = wp_dropdown_users( $users_opt ) ) :
35 $authors_dropdown = '<div class="form-control"><label>' . __( 'Author', 'wp-nested-pages') . '</label>';
36 $authors_dropdown .= $authors;
37 $authors_dropdown .= '</div>';
38 endif;
39 echo $authors_dropdown;
40 endif;
41 ?>
42
43 <div class="form-control">
44 <label><?php _e( 'Status', 'wp-nested-pages' ); ?></label>
45 <select name="_status">
46 <option value="">&mdash; <?php _e('No Change', 'wp-nested-pages'); ?> &mdash;</option>
47 <?php if ( $can_publish ) : ?>
48 <option value="publish"><?php _e( 'Published', 'wp-nested-pages' ); ?></option>
49 <?php endif; ?>
50 <option value="private"><?php _e( 'Private', 'wp-nested-pages' ); ?></option>
51 <option value="pending"><?php _e( 'Pending Review', 'wp-nested-pages' ); ?></option>
52 <option value="draft"><?php _e( 'Draft', 'wp-nested-pages' ); ?></option>
53 </select>
54 </div>
55
56 <?php if ( $this->post_type->hierarchical ) : ?>
57 <div class="form-control">
58 <label><?php _e( 'Template', 'wp-nested-pages' ); ?></label>
59 <select name="page_template">
60 <option value="">&mdash; <?php _e('No Change', 'wp-nested-pages'); ?> &mdash;</option>
61 <option value="default"><?php _e( 'Default Template', 'wp-nested-pages' ); ?></option>
62 <?php page_template_dropdown() ?>
63 </select>
64 </div>
65 <?php endif; ?>
66
67 <?php if ( $this->user->canSortPages() && $this->post_type->hierarchical ) : ?>
68 <div class="form-control">
69 <label><?php echo __('Parent', 'wp-nested-pages') . ' ' . $this->post_type->labels->singular_name; ?></label>
70 <?php
71 wp_dropdown_pages([
72 'show_option_no_change'=> __('— No Change —', 'wp-nested-pages'),
73 'sort_column' => 'menu_order',
74 'hierarchical' => 1,
75 'depth' => 0,
76 'name' => 'post_parent',
77 'post_type' => $this->post_type->name
78 ]);
79 ?>
80 </div>
81 <?php endif; ?>
82
83 </div><!-- .left -->
84
85 <div class="right">
86
87 <div class="form-control">
88 <label><?php _e( 'Comments', 'wp-nested-pages' ); ?></label>
89 <select name="comment_status">
90 <option value="">&mdash; <?php _e('No Change', 'wp-nested-pages'); ?> &mdash;</option>
91 <option value="open"><?php _e('Allow', 'wp-nested-pages'); ?></option>
92 <option value="closed"><?php _e('Do not allow', 'wp-nested-pages'); ?></option>
93 </select>
94 </div>
95
96 <?php if ( current_user_can('edit_theme_options') ) : ?>
97 <div class="form-control">
98 <label><?php _e( 'Display in Nested View', 'wp-nested-pages' ); ?></label>
99 <select name="nested_pages_status">
100 <option value="">&mdash; <?php _e('No Change', 'wp-nested-pages'); ?> &mdash;</option>
101 <option value="hide"><?php _e('Hide', 'wp-nested-pages'); ?></option>
102 <option value="show"><?php _e('Show', 'wp-nested-pages'); ?></option>
103 </select>
104 </div>
105
106 <?php if ( $this->user->canSortPages() && $this->post_type->name == 'page' ) : ?>
107 <div class="form-control">
108 <label><?php _e( 'Hide in Nav Menu', 'wp-nested-pages' ); ?></label>
109 <select name="nav_status">
110 <option value="">&mdash; <?php _e('No Change', 'wp-nested-pages'); ?> &mdash;</option>
111 <option value="hide"><?php _e('Hide', 'wp-nested-pages'); ?></option>
112 <option value="show"><?php _e('Show', 'wp-nested-pages'); ?></option>
113 </select>
114 </div>
115 <?php endif; endif; // Edit theme options ?>
116
117 </div><!-- .right -->
118 </div><!-- .fields -->
119
120 <?php if ( !empty($this->h_taxonomies) || !empty($this->f_taxonomies)) : ?>
121 <div class="np-taxonomies">
122 <?php foreach ( $this->h_taxonomies as $taxonomy ) : ?>
123 <div class="np-taxonomy">
124 <span class="title"><?php echo esc_html( $taxonomy->labels->name ) ?></span>
125 <input type="hidden" name="<?php echo ( $taxonomy->name == 'category' ) ? 'post_category[]' : 'tax_input[' . esc_attr( $taxonomy->name ) . '][]'; ?>" value="0" />
126 <ul class="cat-checklist <?php echo esc_attr( $taxonomy->name )?>-checklist">
127 <?php wp_terms_checklist( null, array( 'taxonomy' => $taxonomy->name ) ) ?>
128 </ul>
129 </div><!-- .np-taxonomy -->
130 <?php endforeach; ?>
131
132 <?php foreach ( $this->f_taxonomies as $taxonomy ) : ?>
133 <div class="np-taxonomy">
134 <span class="title"><?php echo esc_html( $taxonomy->labels->name ) ?></span>
135 <textarea id="<?php echo esc_attr($taxonomy->name); ?>" cols="22" rows="1" name="tax_input[<?php echo esc_attr( $taxonomy->name )?>]" class="tax_input_<?php echo esc_attr( $taxonomy->name )?>" data-autotag data-taxonomy="<?php echo esc_attr($taxonomy->name); ?>"></textarea>
136 </div><!-- .np-taxonomy -->
137 <?php endforeach; ?>
138 </div><!-- .taxonomies -->
139 <?php endif; // if taxonomies ?>
140
141 <div class="np-bulk-footer">
142 <button class="button pull-left" data-np-cancel-bulk-edit>
143 <?php _e('Cancel', 'wp-nested-pages'); ?>
144 </button>
145 <button type="submit" class="button button-primary">
146 <?php _e('Update', 'wp-nested-pages'); ?>
147 </button>
148 </div><!-- .np-bulk-footer -->
149
150 </div><!--.quickedit -->
151 </form><!-- .nestedpages-bulk-edit -->