PluginProbe
YayMail – WooCommerce Email Customizer / 3.4.2
YayMail – WooCommerce Email Customizer v3.4.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 / Images.php

Images.php in YayMail – WooCommerce Email Customizer 3.4.2, at includes/Templates/Elements/YayMail/Images.php

45 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 $pathImg = '';
3 if ( '' != $attrs['pathImg'] ) {
4 $pathImg = $attrs['pathImg'];
5 } else {
6 $pathImg = YAYMAIL_PLUGIN_URL . 'assets/dist/images/woocommerce-logo.png';
7 }
8 ?>
9 <table
10 width="<?php esc_attr_e( $general_attrs['tableWidth'], 'woocommerce' ); ?>"
11 cellspacing="0"
12 cellpadding="0"
13 border="0"
14 align="center"
15 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%' ); ?>"
16 class="web-main-row"
17 id="web<?php echo esc_attr( $id ); ?>"
18 >
19 <tbody>
20 <tr>
21 <td
22 id="web<?php echo esc_attr( $id ); ?>-img"
23 align="<?php echo esc_attr( $attrs['align'] ); ?>"
24 class="web-img-wrap"
25 style="word-break: break-word;
26 <?php echo esc_attr( 'padding: ' . $attrs['paddingTop'] . 'px ' . $attrs['paddingRight'] . 'px ' . $attrs['paddingBottom'] . 'px ' . $attrs['paddingLeft'] . 'px;' ); ?> ">
27 <a
28 href="<?php echo esc_attr( $attrs['url'] ); ?>"
29 target="_blank"
30 style="border: none; text-decoration: none;"
31 >
32 <img
33 class="web-img"
34 border="0"
35 tabindex="0"
36 src="<?php echo esc_attr( $pathImg ); ?>"
37 width="<?php echo esc_attr( $attrs['width'] ); ?>"
38 height="auto"
39 />
40 </a>
41 </td>
42 </tr>
43 </tbody>
44 </table>
45