PluginProbe
WP Directory Kit / 1.4.8
WP Directory Kit v1.4.8
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 1.4.0 All 36 releases
← All changes | extensions/wdk-dependfields.php +9 -4 1.2.31.4.8 View file →
@@ -93,10 +93,15 @@
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 __('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 wp_create_nonce('wdk_depend_copy_on_subcategories');?>">
102 + <span class="dashicons dashicons-admin-page" style="margin-top: 4px;"></span> <?php echo __('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">
102 107 <input name="_wpnonce" type="hidden" value="<?php echo esc_attr(wp_create_nonce( 'wdk-update_depend'));?>" class="regular-text">
@@ -114,9 +119,9 @@
114 119 <div class="wdk-col-md-12 wdk-col-section">
115 120 <div class="wdk_field section">
116 121 <?php echo esc_html(wmvc_show_data('field_label', $field));?>:
117 122 <label for="">
118 - <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">
119 124 </label>
120 125 </div>
121 126 </div>
122 127 <?php else: ?>
@@ -121,9 +126,9 @@
121 126 </div>
122 127 <?php else: ?>
123 128 <div class="wdk-col-md-<?php echo esc_attr($field->columns_number); ?> ">
124 129 <div class="wdk_field">
125 - <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>
126 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">
127 132 </div>
128 133 </div>
129 134 <?php endif;?>