PluginProbe
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages / 2.0.0
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages v2.0.0
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 2.3.2 All 195 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.0, at views/backend/post/bulk-edit.php

72 lines 3.2 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" style="display:none;">
11 <!-- Form -->
12 <label for="wp-convertkit-bulk-edit-form">
13 <span class="title"><?php esc_html_e( 'Form', 'convertkit' ); ?></span>
14 <select name="wp-convertkit[form]" id="wp-convertkit-bulk-edit-form" size="1">
15 <?php
16 // For Bulk Edit, the 'No Change' value is -1. However, because this Plugin has historically used -1
17 // to mean that the Default form for the Post Type should be displayed, using -1 as 'No Change' in Bulk Edit
18 // would result in Posts/Pages having (or not having) the Form setting updated, when the user may/may not
19 // have selected the 'Default' option.
20 // Therefore, we use -2 to denote 'No Change'.
21 ?>
22 <option value="-2" data-preserve-on-refresh="1"><?php esc_html_e( '— No Change —', 'convertkit' ); ?></option>
23 <option value="-1" data-preserve-on-refresh="1"><?php esc_html_e( 'Default', 'convertkit' ); ?></option>
24 <option value="0" data-preserve-on-refresh="1"><?php esc_html_e( 'None', 'convertkit' ); ?></option>
25 <?php
26 if ( $convertkit_forms->exist() ) {
27 foreach ( $convertkit_forms->get() as $form ) {
28 ?>
29 <option value="<?php echo esc_attr( $form['id'] ); ?>"><?php echo esc_attr( $form['name'] ); ?></option>
30 <?php
31 }
32 }
33 ?>
34 </select>
35 <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">
36 <span class="dashicons dashicons-update"></span>
37 </button>
38 </label>
39
40 <!-- Tag -->
41 <label for="wp-convertkit-bulk-edit-tag">
42 <span class="title"><?php esc_html_e( 'Tag', 'convertkit' ); ?></span>
43 <select name="wp-convertkit[tag]" id="wp-convertkit-bulk-edit-tag" size="1">
44 <?php
45 // For Bulk Edit, the 'No Change' value is -1. However, because this Plugin has historically used -1
46 // to mean that the Default form for the Post Type should be displayed, using -1 as 'No Change' in Bulk Edit
47 // would result in Posts/Pages having (or not having) the Form setting updated, when the user may/may not
48 // have selected the 'Default' option.
49 // Therefore, we use -2 to denote 'No Change', even though this setting is for the Tag, so we're at least consistent.
50 ?>
51 <option value="-2" data-preserve-on-refresh="1"><?php esc_html_e( '— No Change —', 'convertkit' ); ?></option>
52 <option value="0" data-preserve-on-refresh="1">
53 <?php esc_html_e( 'None', 'convertkit' ); ?>
54 </option>
55 <?php
56 if ( $convertkit_tags->exist() ) {
57 foreach ( $convertkit_tags->get() as $convertkit_tag ) {
58 ?>
59 <option value="<?php echo esc_attr( $convertkit_tag['id'] ); ?>"><?php echo esc_attr( $convertkit_tag['name'] ); ?></option>
60 <?php
61 }
62 }
63 ?>
64 </select>
65 <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">
66 <span class="dashicons dashicons-update"></span>
67 </button>
68 </label>
69 <?php wp_nonce_field( 'wp-convertkit-save-meta', 'wp-convertkit-save-meta-nonce' ); ?>
70 </div>
71
72