PluginProbe
YayMail – WooCommerce Email Customizer / 3.3.7
YayMail – WooCommerce Email Customizer v3.3.7
4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 trunk 1.9.6 2.1.4 2.1.5 3.2.2 3.2.6 3.2.7.1 3.2.8.1 3.2.9 3.3 3.3.1 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.4 3.4.1 All 57 releases
yaymail / views / templates / emails / additional-order-details.php

additional-order-details.php in YayMail – WooCommerce Email Customizer 3.3.7, at views/templates/emails/additional-order-details.php

43 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 $plain_text = false;
3 if ( ! $plain_text ) {
4 ?>
5 <ul style="list-style: none; padding: 0; list-style-type:none;">
6 <?php
7 $checkEmpty = true;
8 $index = 0;
9 foreach ( $order_fields as $order_field ) :
10 $value = $order_field->get_value_formatted();
11 if ( $order_field->is_visible() && ( $value ) ) :
12 $checkEmpty = false;
13 ?>
14 <li style="
15 <?php
16 if ( $index ) {
17 echo esc_attr( 'padding-bottom: 10px;' );}
18 ?>
19 font-size:14px; margin-left: 15px;">
20 <strong><?php echo wp_kses_post( $order_field->label ); ?>:</strong>
21 <div class="text" style="padding-left: 20px;">
22 <?php echo 'textarea' === $order_field->type ? wp_kses_post( wpautop( $value ) ) : wp_kses_post( $value ); ?>
23 </div>
24 </li>
25 <?php
26 endif;
27 $index++;
28 endforeach;
29 ?>
30 </ul>
31 <?php } else {
32 echo esc_html__( 'Additional Order Details', 'woocommerce-admin-custom-order-fields' ) . "\n\n";
33 foreach ( $order_fields as $order_field ) {
34 $value = $order_field->get_value_formatted();
35 if ( $order_field->is_visible() && ( $value ) ) {
36
37 $output .= wp_kses_post( $order_field->label ) . ': <br>';
38 $output .= wp_kses_post( $value ) . '<br><br>';
39 }
40 }
41 echo '<br>****************************************************<br><br>';
42 } ?>
43