/var/www/html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-notes.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
/**
 * Order notes HTML for meta box.
 *
 * @package WooCommerce\Admin
 */

defined'ABSPATH' ) || exit;

?>
<ul class="order_notes">
    <?php
    
if ( $notes ) {
        foreach ( 
$notes as $note ) {
            
$css_class   = array( 'note' );
            
$css_class[] = $note->customer_note 'customer-note' '';
            
$css_class[] = 'system' === $note->added_by 'system-note' '';
            
$css_class   apply_filters'woocommerce_order_note_class'array_filter$css_class ), $note );
            
?>
            <li rel="<?php echo absint$note->id ); ?>" class="<?php echo esc_attrimplode' '$css_class ) ); ?>">
                <div class="note_content">
                    <?php echo wpautopwptexturizewp_kses_post$note->content ) ) ); // @codingStandardsIgnoreLine ?>
                </div>
                <p class="meta">
                    <abbr class="exact-date" title="<?php echo esc_attr$note->date_created->date'Y-m-d H:i:s' ) ); ?>">
                        <?php
                        
/* translators: %1$s: note date %2$s: note time */
                        
echo esc_htmlsprintf__'%1$s at %2$s''woocommerce' ), $note->date_created->date_i18nwc_date_format() ), $note->date_created->date_i18nwc_time_format() ) ) );
                        
?>
                    </abbr>
                    <?php
                    
if ( 'system' !== $note->added_by ) :
                        
/* translators: %s: note author */
                        
echo esc_htmlsprintf' ' __'by %s''woocommerce' ), $note->added_by ) );
                    endif;
                    
?>
                    <a href="#" class="delete_note" role="button"><?php esc_html_e'Delete note''woocommerce' ); ?></a>
                </p>
            </li>
            <?php
        
}
    } else {
        
?>
        <li class="no-items"><?php esc_html_e'There are no notes yet.''woocommerce' ); ?></li>
        <?php
    
}
    
?>
</ul>