| 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 |
|