PluginProbe
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages / 1.9.8.0
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages v1.9.8.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 1.9.8.0, at views/backend/post/bulk-edit.php

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