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 / ImageList.php

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

189 lines 4.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 $img_url = YAYMAIL_PLUGIN_URL . 'assets/dist/images/woocommerce-logo.png';
3 switch ( $attrs['numberCol'] ) {
4 case 'one':
5 $width = '100%';
6 break;
7 case 'two':
8 $width = '50%';
9 break;
10 case 'three':
11 $width = '33.333%';
12 break;
13 default:
14 break;
15 }
16 ?>
17 <table
18 width="<?php esc_attr_e( $general_attrs['tableWidth'], 'woocommerce' ); ?>"
19 cellspacing="0"
20 cellpadding="0"
21 border="0"
22 align="center"
23 style="display: table; <?php echo esc_attr( 'background-color: ' . $attrs['backgroundColor'] ); ?>; <?php echo ! $isInColumns ? esc_attr( 'min-width:' . $general_attrs['tableWidth'] . 'px' ) : esc_attr( 'width: 100%' ); ?>"
24 class="web-main-row"
25 id="web<?php echo esc_attr( $id ); ?>"
26 >
27 <tbody>
28 <tr>
29 <td
30 style="<?php echo esc_attr( 'width: ' . $width ); ?>"
31 valign="top"
32 class="web-wrap-col"
33 >
34 <table
35 cellspacing="0"
36 cellpadding="0"
37 border="0"
38 align="left"
39 style="display: table; margin: 0px; width: 100%; padding: 0px;
40 <?php echo esc_attr( 'background-color: ' . $attrs['backgroundColor'] ); ?>
41 "
42 >
43 <tbody>
44 <tr>
45 <td
46 align="<?php echo esc_attr( $attrs['col1Align'] ); ?>"
47 id="web-<?php echo esc_attr( $id ); ?>-col-1"
48 class="web-col-1-wrap"
49 style="word-break: break-word;
50 <?php echo esc_attr( 'padding: ' . $attrs['col1PaddingTop'] . 'px ' . $attrs['col1PaddingRight'] . 'px ' . $attrs['col1PaddingBottom'] . 'px ' . $attrs['col1PaddingLeft'] . 'px;' ); ?>
51 "
52 >
53 <a
54 href="<?php echo esc_attr( $attrs['col1Url'] ); ?>"
55 target="_blank"
56 style="border: none; text-decoration: none;"
57 >
58 <img
59 class="web-image"
60 border="0"
61 tabindex="0"
62 src="
63 <?php
64 if ( '' !== $attrs['col1PathImg'] ) {
65 echo esc_attr( $attrs['col1PathImg'] );
66 } else {
67 echo esc_attr( $img_url );
68 }
69 ?>
70 "
71 width="<?php echo esc_attr( $attrs['col1Width'] ); ?>"
72 height="auto"
73 />
74 </a>
75 </td>
76 </tr>
77 </tbody>
78 </table>
79 </td>
80
81 <?php if ( 'two' === $attrs['numberCol'] || 'three' === $attrs['numberCol'] ) : ?>
82 <td
83 style="<?php echo esc_attr( 'width: ' . $width ); ?>"
84 valign="top"
85 class="web-wrap-col"
86 >
87 <table
88 cellspacing="0"
89 cellpadding="0"
90 border="0"
91 align="left"
92 style="display: table; margin: 0px; width: 100%; padding: 0px;
93 <?php echo esc_attr( 'background-color: ' . $attrs['backgroundColor'] ); ?>
94 "
95 >
96 <tbody>
97 <tr>
98 <td
99 align="<?php echo esc_attr( $attrs['col2Align'] ); ?>"
100 id="web-<?php echo esc_attr( $id ); ?>-col-2"
101 class="web-col-2-wrap"
102 style="word-break: break-word;
103 <?php echo esc_attr( 'padding: ' . $attrs['col2PaddingTop'] . 'px ' . $attrs['col2PaddingRight'] . 'px ' . $attrs['col2PaddingBottom'] . 'px ' . $attrs['col2PaddingLeft'] . 'px;' ); ?>
104 "
105 >
106 <a
107 href="<?php echo esc_attr( $attrs['col2Url'] ); ?>"
108 target="_blank"
109 style="border: none; text-decoration: none;"
110 >
111 <img
112 class="web-image"
113 border="0"
114 tabindex="0"
115 src="
116 <?php
117 if ( '' !== $attrs['col2PathImg'] ) {
118 echo esc_attr( $attrs['col2PathImg'] );
119 } else {
120 echo esc_attr( $img_url );
121 }
122 ?>
123 "
124 width="<?php echo esc_attr( $attrs['col2Width'] ); ?>"
125 height="auto"
126 />
127 </a>
128 </td>
129 </tr>
130 </tbody>
131 </table>
132 </td>
133 <?php endif; ?>
134 <?php if ( 'three' === $attrs['numberCol'] ) : ?>
135 <td class="web-wrap-col"
136 valign="top"
137 style="<?php echo esc_attr( 'width: ' . $width ); ?>"
138 >
139 <table
140 cellspacing="0"
141 cellpadding="0"
142 border="0"
143 align="left"
144 style="display: table; margin: 0px; width: 100%; padding: 0px;
145 <?php echo esc_attr( 'background-color: ' . $attrs['backgroundColor'] ); ?>
146 "
147 >
148 <tbody>
149 <tr>
150 <td
151 align="<?php echo esc_attr( $attrs['col3Align'] ); ?>"
152 id="'web-<?php echo esc_attr( $id ); ?>-col-3'"
153 class="web-col-3-wrap"
154 style="word-break: break-word;
155 <?php echo esc_attr( 'padding: ' . $attrs['col3PaddingTop'] . 'px ' . $attrs['col3PaddingRight'] . 'px ' . $attrs['col3PaddingBottom'] . 'px ' . $attrs['col3PaddingLeft'] . 'px;' ); ?>
156 "
157 >
158 <a
159 href="<?php echo esc_attr( $attrs['col3Url'] ); ?>"
160 target="_blank"
161 style="border: none; text-decoration: none;"
162 >
163 <img
164 class="web-image"
165 border="0"
166 tabindex="0"
167 src="
168 <?php
169 if ( '' !== $attrs['col3PathImg'] ) {
170 echo esc_attr( $attrs['col3PathImg'] );
171 } else {
172 echo esc_attr( $img_url );
173 }
174 ?>
175 "
176 width="<?php echo esc_attr( $attrs['col3Width'] ); ?>"
177 height="auto"
178 />
179 </a>
180 </td>
181 </tr>
182 </tbody>
183 </table>
184 </td>
185 <?php endif; ?>
186 </tr>
187 </tbody>
188 </table>
189