Localisation spacing.
This commit is contained in:
parent
f7e5dec1c4
commit
8c3ad31c07
|
@ -7,7 +7,7 @@
|
|||
* @author WooThemes
|
||||
* @category Admin
|
||||
* @package WooCommerce/Admin/WritePanels
|
||||
* @version 1.6.4
|
||||
* @version 1.7.0
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
|
@ -31,21 +31,24 @@ function woocommerce_order_notes_meta_box() {
|
|||
|
||||
echo '<ul class="order_notes">';
|
||||
|
||||
if ($notes) :
|
||||
foreach($notes as $note) :
|
||||
if ( $notes ) {
|
||||
foreach( $notes as $note ) {
|
||||
$note_classes = get_comment_meta( $note->comment_ID, 'is_customer_note', true ) ? array( 'customer-note', 'note' ) : array( 'note' );
|
||||
|
||||
$customer_note = get_comment_meta($note->comment_ID, 'is_customer_note', true);
|
||||
|
||||
echo '<li rel="'.$note->comment_ID.'" class="note ';
|
||||
if ($customer_note) echo 'customer-note';
|
||||
echo '"><div class="note_content">';
|
||||
echo wpautop( wptexturize( $note->comment_content ) );
|
||||
echo '</div><p class="meta">'. sprintf(__('added %s ago', 'woocommerce'), human_time_diff(strtotime($note->comment_date_gmt), current_time('timestamp', 1))) .' - <a href="#" class="delete_note">'.__('Delete note', 'woocommerce').'</a></p>';
|
||||
echo '</li>';
|
||||
endforeach;
|
||||
else :
|
||||
?>
|
||||
<li rel="<?php echo absint( $note->comment_ID ) ; ?>" class="<?php echo implode( ' ', $note_classes ); ?>">
|
||||
<div class="note_content">
|
||||
<?php echo wpautop( wptexturize( wp_kses_post( $note->comment_content ) ) ); ?>
|
||||
</div>
|
||||
<p class="meta">
|
||||
<?php printf( __( 'added %s ago', 'woocommerce' ), human_time_diff( strtotime( $note->comment_date_gmt ), current_time( 'timestamp', 1 ) ) ); ?> <a href="#" class="delete_note"><?php _e( 'Delete note', 'woocommerce' ); ?></a>
|
||||
</p>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
} else {
|
||||
echo '<li>' . __( 'There are no notes for this order yet.', 'woocommerce' ) . '</li>';
|
||||
endif;
|
||||
}
|
||||
|
||||
echo '</ul>';
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue