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