| @@ -95,12 +95,12 @@ | ||
| 95 | 95 | <div class="wdk-body"> |
| 96 | 96 | <div class="postbox" style="display: block;"> |
| 97 | 97 | <div class="postbox-header flex-align-left"> |
| 98 | 98 | <h3 class="wdk-mr-5"> |
| 99 | - <?php echo __('Visible fields','wpdirectorykit'); ?> | |
| 99 | + <?php echo esc_html__('Visible fields','wpdirectorykit'); ?> | |
| 100 | 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'); ?> | |
| 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 | 103 | </a> |
| 104 | 104 | </div> |
| 105 | 105 | <div class="inside"> |
| 106 | 106 | <form method="post" action="#" novalidate="novalidate" class="wdk-depend-fields" enctype="multipart/form-data"> |
| @@ -119,9 +119,9 @@ | ||
| 119 | 119 | <div class="wdk-col-md-12 wdk-col-section"> |
| 120 | 120 | <div class="wdk_field section"> |
| 121 | 121 | <?php echo esc_html(wmvc_show_data('field_label', $field));?>: |
| 122 | 122 | <label for=""> |
| 123 | - <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"> | |
| 124 | 124 | </label> |
| 125 | 125 | </div> |
| 126 | 126 | </div> |
| 127 | 127 | <?php else: ?> |
| @@ -126,9 +126,9 @@ | ||
| 126 | 126 | </div> |
| 127 | 127 | <?php else: ?> |
| 128 | 128 | <div class="wdk-col-md-<?php echo esc_attr($field->columns_number); ?> "> |
| 129 | 129 | <div class="wdk_field"> |
| 130 | - <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> | |
| 131 | 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"> |
| 132 | 132 | </div> |
| 133 | 133 | </div> |
| 134 | 134 | <?php endif;?> |