# yaymail/3.3.1/views/templates/emails/additional-order-details.php

YayMail – WooCommerce Email Customizer, version 3.3.1. 43 lines.

- Page: https://pluginprobe.com/plugins/yaymail/3.3.1/code/views/templates/emails/additional-order-details.php
- Raw: https://pluginprobe.com/plugins/yaymail/3.3.1/raw/views/templates/emails/additional-order-details.php
- Modified: 2023-08-09T09:54:56+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/yaymail/3.3.1/code/views/templates/emails/additional-order-details.php#L10-L20`.

```php
<?php
	$plain_text = false;
if ( ! $plain_text ) {
	?>
	<ul style="list-style: none; padding: 0; list-style-type:none;">
	<?php
	$checkEmpty = true;
	$index      = 0;
	foreach ( $order_fields as $order_field ) :
		$value = $order_field->get_value_formatted();
		if ( $order_field->is_visible() && ( $value ) ) :
			$checkEmpty = false;
			?>
			<li style="
			<?php
			if ( $index ) {
				echo esc_attr( 'padding-bottom: 10px;' );}
			?>
			 font-size:14px; margin-left: 15px;">
				<strong><?php echo wp_kses_post( $order_field->label ); ?>:</strong>
				<div class="text" style="padding-left: 20px;">
					<?php echo 'textarea' === $order_field->type ? wp_kses_post( wpautop( $value ) ) : wp_kses_post( $value ); ?> 
				</div>
			</li>
			<?php
		endif;
		$index++;
	endforeach;
	?>
	</ul>
<?php } else {
	echo esc_html__( 'Additional Order Details', 'woocommerce-admin-custom-order-fields' ) . "\n\n";
	foreach ( $order_fields as $order_field ) {
		$value = $order_field->get_value_formatted();
		if ( $order_field->is_visible() && ( $value ) ) {

			$output .= wp_kses_post( $order_field->label ) . ': <br>';
			$output .= wp_kses_post( $value ) . '<br><br>';
		}
	}
	echo '<br>****************************************************<br><br>';
} ?>

```
