PHP 8.3.31
Preview: html-order-notes.php Size: 1.53 KB
/var/softaculous/sitepad/editor/site-data/plugins/kkart-pro/includes/admin/meta-boxes/views/html-order-notes.php

<?php
/**
 * Order notes HTML for meta box.
 *
 * @package Kkart\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( 'kkart_order_note_class', array_filter( $css_class ), $note );
			?>
			<li rel="<?php echo absint( $note->id ); ?>" class="<?php echo esc_attr( implode( ' ', $css_class ) ); ?>">
				<div class="note_content">
					<?php echo wpautop( wptexturize( wp_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_html( sprintf( __( '%1$s at %2$s', 'kkart' ), $note->date_created->date_i18n( kkart_date_format() ), $note->date_created->date_i18n( kkart_time_format() ) ) );
						?>
					</abbr>
					<?php
					if ( 'system' !== $note->added_by ) :
						/* translators: %s: note author */
						echo esc_html( sprintf( ' ' . __( 'by %s', 'kkart' ), $note->added_by ) );
					endif;
					?>
					<a href="#" class="delete_note" role="button"><?php esc_html_e( 'Delete note', 'kkart' ); ?></a>
				</p>
			</li>
			<?php
		}
	} else {
		?>
		<li class="no-items"><?php esc_html_e( 'There are no notes yet.', 'kkart' ); ?></li>
		<?php
	}
	?>
</ul>

Directory Contents

Dirs: 0 × Files: 20

Name Size Perms Modified Actions
3.47 KB lrw-r--r-- 2026-04-22 07:17:42
Edit Download
4.00 KB lrw-r--r-- 2026-04-22 07:17:42
Edit Download
2.04 KB lrw-r--r-- 2026-04-22 07:17:42
Edit Download
9.60 KB lrw-r--r-- 2026-04-22 07:17:42
Edit Download
20.49 KB lrw-r--r-- 2026-04-22 07:17:42
Edit Download
1.53 KB lrw-r--r-- 2026-04-22 07:17:42
Edit Download
2.40 KB lrw-r--r-- 2026-04-22 07:17:42
Edit Download
5.21 KB lrw-r--r-- 2026-04-22 07:17:42
Edit Download
4.68 KB lrw-r--r-- 2026-04-22 07:17:42
Edit Download
1.48 KB lrw-r--r-- 2026-04-22 07:17:42
Edit Download
2.09 KB lrw-r--r-- 2026-04-22 07:17:42
Edit Download
7.30 KB lrw-r--r-- 2026-04-22 07:17:42
Edit Download
4.33 KB lrw-r--r-- 2026-04-22 07:17:42
Edit Download
3.40 KB lrw-r--r-- 2026-04-22 07:17:42
Edit Download
2.13 KB lrw-r--r-- 2026-04-22 07:17:42
Edit Download
2.75 KB lrw-r--r-- 2026-04-22 07:17:42
Edit Download
9.99 KB lrw-r--r-- 2026-04-22 07:17:42
Edit Download
982 B lrw-r--r-- 2026-04-22 07:17:42
Edit Download
1.06 KB lrw-r--r-- 2026-04-22 07:17:42
Edit Download
20.88 KB lrw-r--r-- 2026-04-22 07:17:42
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).