Skip to content

Commit

Permalink
v4.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Shivamddeveloper committed Jan 17, 2024
1 parent 5a6ad3b commit f7daf74
Show file tree
Hide file tree
Showing 14 changed files with 172 additions and 200 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
}
$order_obj = $theorder;
$order_id = $order_obj->get_id();
$upload_attach = get_option( 'wps_rma_general_enable_om_attachment', 'no' );
?>
<div class="wps_order_msg_reload_notice_wrapper">
<p class="wps_order_msg_sent_notice"><strong><?php esc_html_e( 'Messages Refreshed Successfully', 'woo-refund-and-exchange-lite' ); ?></strong></p>
Expand Down Expand Up @@ -84,11 +85,13 @@
<input type="hidden" value="admin" id="order_msg_type" name="order_msg_type">
<div class="wps_order_msg_title"><h4 class="wps-order-heading"><?php esc_html_e( 'Add a message', 'woo-refund-and-exchange-lite' ); ?></h4></div>
<textarea id="wps_order_new_msg" name="wps_order_new_msg" placeholder="<?php esc_html_e( 'Write a message you want to send to the Customer.', 'woo-refund-and-exchange-lite' ); ?>" maxlength="10000" rows="2"></textarea>
<div class="wps-order-msg__attachment-lable">
<label for="wps_order_msg_attachment"> <?php esc_html_e( 'Attach file', 'woo-refund-and-exchange-lite' ); ?>:</label>
</div>
<div class="wps-order-msg-attachment-wrapper wps_rma_flex">
<input type="file" id="wps_order_msg_attachment" name="wps_order_msg_attachment[]" multiple >
<?php if ( isset( $upload_attach ) && 'on' === $upload_attach ) : ?>
<div class="wps-order-msg__attachment-lable">
<label for="wps_order_msg_attachment"> <?php esc_html_e( 'Attach file', 'woo-refund-and-exchange-lite' ); ?>:</label>
</div>
<div class="wps-order-msg-attachment-wrapper wps_rma_flex">
<input type="file" id="wps_order_msg_attachment" name="wps_order_msg_attachment[]" multiple >
<?php endif; ?>
<div class="wps-order-msg-btn">
<input type="submit" class="button button-primary" id="wps_order_msg_submit" value="<?php esc_html_e( 'Send', 'woo-refund-and-exchange-lite' ); ?>" name="wps_order_msg_submit" data-id="<?php echo esc_attr( $order_id ); ?>">
</div>
Expand Down
2 changes: 0 additions & 2 deletions assets/src/common/js/woo-refund-and-exchange-lite-common.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ jQuery( document ).on( 'ready', function(){
} else {
alerthtml += '<li>'+ wrael_common_param.file_not_supported + '</li>';
}
} else {
alerthtml += '<li>'+ wrael_common_param.no_file_attached +'</li>';
}
});
}
Expand Down
1 change: 0 additions & 1 deletion common/class-woo-refund-and-exchange-lite-common.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ public function wrael_common_enqueue_scripts() {
'myaccount_url' => esc_attr( $myaccount_page_url ),
'refund_form_attachment' => get_option( 'wps_rma_refund_attachment' ),
'order_msg_attachment' => get_option( 'wps_rma_general_enable_om_attachment' ),
'no_file_attached' => esc_html__( 'No File Attached', 'woo-refund-and-exchange-lite' ),
'file_not_supported' => esc_html__( 'Attached File type is not supported', 'woo-refund-and-exchange-lite' ),
'qty_error' => esc_html__( 'Selected product must have the quantity', 'woo-refund-and-exchange-lite' ),
)
Expand Down
2 changes: 0 additions & 2 deletions common/js/woo-refund-and-exchange-lite-common.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ jQuery( document ).on( 'ready', function(){
} else {
alerthtml += '<li>'+ wrael_common_param.file_not_supported + '</li>';
}
} else {
alerthtml += '<li>'+ wrael_common_param.no_file_attached +'</li>';
}
});
}
Expand Down
2 changes: 1 addition & 1 deletion common/js/woo-refund-and-exchange-lite-common.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion includes/class-woo-refund-and-exchange-lite.php
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,9 @@ class="<?php echo ( isset( $wrael_component['class'] ) ? esc_attr( $wrael_compon
</div>
<div class="wps-form-group__control">
<span class="mdc-text-field__resizer">
<?php echo wp_kses_post( wp_editor( $wrael_component['value'], esc_attr( $wrael_component['id'] ), array( 'editor_height' => 200 ) ) ); ?>
<?php
wp_editor( $wrael_component['value'], esc_attr( $wrael_component['id'] ), array( 'editor_height' => 200 ) );
?>
</span>
</div>
</div>
Expand Down
Binary file modified languages/woo-refund-and-exchange-lite-en_US.mo
Binary file not shown.
Loading

0 comments on commit f7daf74

Please sign in to comment.