PluginProbe
YayMail – WooCommerce Email Customizer / 3.2.2
YayMail – WooCommerce Email Customizer v3.2.2
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 3.4.2 3.4.3 All 55 releases
yaymail / includes / Templates / Elements / YayMail / TextList.php

TextList.php in YayMail – WooCommerce Email Customizer 3.2.2, at includes/Templates/Elements/YayMail/TextList.php

82 lines 1.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 switch ( $attrs['numberCol'] ) {
3 case 'one':
4 $width = '100%';
5 break;
6 case 'two':
7 $width = '50%';
8 break;
9 case 'three':
10 $width = '33.333%';
11 break;
12 default:
13 break;
14 }
15 ?>
16 <table
17 width="<?php esc_attr_e( $general_attrs['tableWidth'], 'woocommerce' ); ?>"
18 cellspacing="0"
19 cellpadding="0"
20 border="0"
21 align="center"
22 style="display: table;
23 <?php echo esc_attr( 'width: ' . $general_attrs['tableWidth'] ); ?>;
24 <?php echo esc_attr( 'background-color: ' . $attrs['backgroundColor'] ); ?>;
25 <?php echo ! $isInColumns ? esc_attr( 'min-width:' . $general_attrs['tableWidth'] . 'px' ) : esc_attr( 'width: 100%' ); ?>
26 "
27 class="web-main-row nta-web-text-list-wrap"
28 id="web<?php echo esc_attr( $id ); ?>"
29 >
30 <tbody>
31 <tr>
32 <td
33 valign="top"
34 style="<?php echo esc_attr( 'width: ' . $width ); ?>"
35 >
36 <?php
37 $col = 1;
38 ob_start();
39 require YAYMAIL_PLUGIN_PATH . 'includes/Templates/Elements/YayMail/TextList/ColEl.php';
40 $colEl = ob_get_contents();
41 ob_end_clean();
42 $colEl = do_shortcode( $colEl );
43 echo wp_kses_post( $colEl );
44 ?>
45 </td>
46 <?php if ( 'two' === $attrs['numberCol'] || 'three' === $attrs['numberCol'] ) : ?>
47 <td
48
49 valign="top"
50 style="<?php echo esc_attr( 'width: ' . $width ); ?>"
51 >
52 <?php
53 $col = 2;
54 ob_start();
55 include YAYMAIL_PLUGIN_PATH . 'includes/Templates/Elements/YayMail/TextList/ColEl.php';
56 $colEl = ob_get_contents();
57 ob_end_clean();
58 $colEl = do_shortcode( $colEl );
59 echo wp_kses_post( $colEl );
60 ?>
61 </td>
62 <?php endif; ?>
63 <?php if ( 'three' === $attrs['numberCol'] ) : ?>
64 <td
65 valign="top"
66 style="<?php echo esc_attr( 'width: ' . $width ); ?>"
67 >
68 <?php
69 $col = 3;
70 ob_start();
71 include YAYMAIL_PLUGIN_PATH . 'includes/Templates/Elements/YayMail/TextList/ColEl.php';
72 $colEl = ob_get_contents();
73 ob_end_clean();
74 $colEl = do_shortcode( $colEl );
75 echo wp_kses_post( $colEl );
76 ?>
77 </td>
78 <?php endif; ?>
79 </tr>
80 </tbody>
81 </table>
82