PluginProbe
WP Directory Kit / 1.5.9
WP Directory Kit v1.5.9
1.5.9 1.5.7 1.5.6 1.5.5 1.5.4 1.5.3 trunk 1.1.0 1.1.6 1.1.8 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.8 All 37 releases
← All changes | extensions/wdk-dependfields.php +10 -4 1.1.6 → 1.5.9 View file →
@@ -93,13 +93,19 @@
93 93 ?>
94 94
95 95 <div class="wdk-body">
96 96 <div class="postbox" style="display: block;">
97 - <div class="postbox-header">
98 - <h3><?php echo __('Visible fields','wpdirectorykit'); ?></h3>
97 + <div class="postbox-header flex-align-left">
98 + <h3 class="wdk-mr-5">
99 + <?php echo esc_html__('Visible fields','wpdirectorykit'); ?>
100 + </h3>
101 + <a href="#" class="wdk-mr-5 button button-secondary wdk_copy_on_subcategories" data-category="<?php echo esc_attr(wmvc_show_data('idcategory', $data));?>" data-wpnonce="<?php echo esc_attr(wp_create_nonce('wdk_depend_copy_on_subcategories'));?>">
102 + <span class="dashicons dashicons-admin-page"></span> <?php echo esc_html__('Copy on subcategories','wpdirectorykit'); ?>
103 + </a>
99 104 </div>
100 105 <div class="inside">
101 106 <form method="post" action="#" novalidate="novalidate" class="wdk-depend-fields" enctype="multipart/form-data">
107 + <input name="_wpnonce" type="hidden" value="<?php echo esc_attr(wp_create_nonce( 'wdk-update_depend'));?>" class="regular-text">
102 108 <input name="main_field" type="hidden" value="categories" class="regular-text">
103 109 <input name="field_id" type="hidden" value="<?php echo esc_attr(wmvc_show_data('idcategory', $data));?>" class="regular-text">
104 110
105 111 <div class="wdk-row">
@@ -113,9 +119,9 @@
113 119 <div class="wdk-col-md-12 wdk-col-section">
114 120 <div class="wdk_field section">
115 121 <?php echo esc_html(wmvc_show_data('field_label', $field));?>:
116 122 <label for="">
117 - <input name="field_all_depend_<?php echo esc_attr(wmvc_show_data('idfield', $field));?>" type="checkbox" id="field_all_depend_<?php echo esc_attr(wmvc_show_data('idfield', $field));?>" value="1" class="regular-text trigger_section">
123 + <input name="field_hide_<?php echo esc_attr(wmvc_show_data('idfield', $field));?>" type="checkbox" id="field_all_depend_<?php echo esc_attr(wmvc_show_data('idfield', $field));?>" value="1" class="regular-text trigger_section">
118 124 </label>
119 125 </div>
120 126 </div>
121 127 <?php else: ?>
@@ -120,9 +126,9 @@
120 126 </div>
121 127 <?php else: ?>
122 128 <div class="wdk-col-md-<?php echo esc_attr($field->columns_number); ?> ">
123 129 <div class="wdk_field">
124 - <label for="field_depend_<?php echo esc_attr(wmvc_show_data('idfield', $field));?>"><?php echo esc_html(wmvc_show_data('field_label', $field));?></label>
130 + <label for="field_hide_<?php echo esc_attr(wmvc_show_data('idfield', $field));?>"><?php echo esc_html(wmvc_show_data('field_label', $field));?></label>
125 131 <input <?php if(empty($this->data['hidden_fields']) || !in_array(wmvc_show_data('idfield', $field), $this->data['hidden_fields'])):?> checked="checked"<?php endif;?> name="field_hide_<?php echo esc_attr(wmvc_show_data('idfield', $field));?>" type="checkbox" id="field_depend_<?php echo esc_attr(wmvc_show_data('idfield', $field));?>" value="1" class="regular-text">
126 132 </div>
127 133 </div>
128 134 <?php endif;?>