PluginProbe
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages / 2.0.3
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages v2.0.3
3.4.3 3.4.2 3.4.1 3.4.0 3.3.9 3.3.8 3.3.7 3.3.6 3.3.5 3.3.4 3.3.3 3.3.2 3.3.1 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9 2.3.0 2.3.1 All 196 releases
convertkit / views / backend / post / bulk-edit.php

bulk-edit.php in Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages 2.0.3, at views/backend/post/bulk-edit.php

76 lines 3.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Bulk Edit view
4 *
5 * @package ConvertKit
6 * @author ConvertKit
7 */
8
9 ?>
10 <div id="convertkit-bulk-edit" class="convertkit-bulk-quick-edit" style="display:none;">
11 <!-- Form -->
12 <div>
13 <label for="wp-convertkit-bulk-edit-form">
14 <span class="title"><?php esc_html_e( 'Form', 'convertkit' ); ?></span>
15 <select name="wp-convertkit[form]" id="wp-convertkit-bulk-edit-form" size="1">
16 <?php
17 // For Bulk Edit, the 'No Change' value is -1. However, because this Plugin has historically used -1
18 // to mean that the Default form for the Post Type should be displayed, using -1 as 'No Change' in Bulk Edit
19 // would result in Posts/Pages having (or not having) the Form setting updated, when the user may/may not
20 // have selected the 'Default' option.
21 // Therefore, we use -2 to denote 'No Change'.
22 ?>
23 <option value="-2" data-preserve-on-refresh="1"><?php esc_html_e( '— No Change —', 'convertkit' ); ?></option>
24 <option value="-1" data-preserve-on-refresh="1"><?php esc_html_e( 'Default', 'convertkit' ); ?></option>
25 <option value="0" data-preserve-on-refresh="1"><?php esc_html_e( 'None', 'convertkit' ); ?></option>
26 <?php
27 if ( $convertkit_forms->exist() ) {
28 foreach ( $convertkit_forms->get() as $form ) {
29 ?>
30 <option value="<?php echo esc_attr( $form['id'] ); ?>"><?php echo esc_attr( $form['name'] ); ?></option>
31 <?php
32 }
33 }
34 ?>
35 </select>
36 </label>
37 <button class="wp-convertkit-refresh-resources" class="button button-secondary" title="<?php esc_attr_e( 'Refresh Forms from ConvertKit account', 'convertkit' ); ?>" data-resource="forms" data-field="#wp-convertkit-bulk-edit-form">
38 <span class="dashicons dashicons-update"></span>
39 </button>
40 </div>
41
42 <!-- Tag -->
43 <div>
44 <label for="wp-convertkit-bulk-edit-tag">
45 <span class="title"><?php esc_html_e( 'Tag', 'convertkit' ); ?></span>
46 <select name="wp-convertkit[tag]" id="wp-convertkit-bulk-edit-tag" size="1">
47 <?php
48 // For Bulk Edit, the 'No Change' value is -1. However, because this Plugin has historically used -1
49 // to mean that the Default form for the Post Type should be displayed, using -1 as 'No Change' in Bulk Edit
50 // would result in Posts/Pages having (or not having) the Form setting updated, when the user may/may not
51 // have selected the 'Default' option.
52 // Therefore, we use -2 to denote 'No Change', even though this setting is for the Tag, so we're at least consistent.
53 ?>
54 <option value="-2" data-preserve-on-refresh="1"><?php esc_html_e( '— No Change —', 'convertkit' ); ?></option>
55 <option value="0" data-preserve-on-refresh="1">
56 <?php esc_html_e( 'None', 'convertkit' ); ?>
57 </option>
58 <?php
59 if ( $convertkit_tags->exist() ) {
60 foreach ( $convertkit_tags->get() as $convertkit_tag ) {
61 ?>
62 <option value="<?php echo esc_attr( $convertkit_tag['id'] ); ?>"><?php echo esc_attr( $convertkit_tag['name'] ); ?></option>
63 <?php
64 }
65 }
66 ?>
67 </select>
68 </label>
69 <button class="wp-convertkit-refresh-resources" class="button button-secondary" title="<?php esc_attr_e( 'Refresh Tags from ConvertKit account', 'convertkit' ); ?>" data-resource="tags" data-field="#wp-convertkit-bulk-edit-tag">
70 <span class="dashicons dashicons-update"></span>
71 </button>
72 <?php wp_nonce_field( 'wp-convertkit-save-meta', 'wp-convertkit-save-meta-nonce' ); ?>
73 </div>
74 </div>
75
76