| 1 |
<?php $img_url = YAYMAIL_PLUGIN_URL . 'assets/dist/images/woocommerce-logo.png'; |
| 2 |
switch ( $attrs['numberCol'] ) { |
| 3 |
case 'one': |
| 4 |
$width = '100%'; |
| 5 |
break; |
| 6 |
case 'two': |
| 7 |
$width = '50%'; |
| 8 |
break; |
| 9 |
default: |
| 10 |
break; |
| 11 |
} |
| 12 |
?> |
| 13 |
<table |
| 14 |
width="<?php esc_attr_e( $general_attrs['tableWidth'], 'woocommerce' ); ?>" |
| 15 |
cellspacing="0" |
| 16 |
cellpadding="0" |
| 17 |
border="0" |
| 18 |
align="center" |
| 19 |
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%' ); ?>" |
| 20 |
class="web-main-row" |
| 21 |
id="web<?php echo esc_attr( $id ); ?>" |
| 22 |
> |
| 23 |
<tbody> |
| 24 |
<tr> |
| 25 |
<td class="web-wrap-col" |
| 26 |
valign="top" |
| 27 |
style="<?php echo esc_attr( 'width: ' . $width ); ?>" |
| 28 |
> |
| 29 |
<!--===== column 1 ===== --> |
| 30 |
<table |
| 31 |
cellspacing="0" |
| 32 |
cellpadding="0" |
| 33 |
border="0" |
| 34 |
align="left" |
| 35 |
style="display: table; margin: 0px; width: 100%; padding: 0px; |
| 36 |
<?php echo esc_attr( 'background-color: ' . $attrs['backgroundColor'] ); ?> |
| 37 |
" |
| 38 |
> |
| 39 |
<tbody> |
| 40 |
<tr> |
| 41 |
<td |
| 42 |
align="<?php echo esc_attr( $attrs['col1Align'] ); ?>" |
| 43 |
id="web-<?php echo esc_attr( $id ); ?>-col-1" |
| 44 |
class="web-col-1-wrap" |
| 45 |
style="word-break: break-word; |
| 46 |
<?php echo esc_attr( 'padding: ' . $attrs['col1PaddingTop'] . 'px ' . $attrs['col1PaddingRight'] . 'px ' . $attrs['col1PaddingBottom'] . 'px ' . $attrs['col1PaddingLeft'] . 'px;' ); ?> |
| 47 |
" |
| 48 |
> |
| 49 |
<a |
| 50 |
href="<?php echo esc_attr( $attrs['col1Url'] ); ?>" |
| 51 |
target="_blank" |
| 52 |
style="border: none; text-decoration: none;" |
| 53 |
> |
| 54 |
<img |
| 55 |
class="web-image-list" |
| 56 |
border="0" |
| 57 |
src=" |
| 58 |
<?php |
| 59 |
if ( '' !== $attrs['col1PathImg'] ) { |
| 60 |
echo esc_attr( $attrs['col1PathImg'] ); |
| 61 |
} else { |
| 62 |
echo esc_attr( $img_url ); |
| 63 |
} |
| 64 |
?> |
| 65 |
" |
| 66 |
width="<?php echo esc_attr( $attrs['col1Width'] ); ?>" |
| 67 |
height="auto" |
| 68 |
/> |
| 69 |
</a> |
| 70 |
</td> |
| 71 |
</tr> |
| 72 |
</tbody> |
| 73 |
</table> |
| 74 |
</td> |
| 75 |
<?php if ( 'two' === $attrs['numberCol'] ) : ?> |
| 76 |
<td |
| 77 |
valign="top" |
| 78 |
class="web-wrap-col" |
| 79 |
style="<?php echo esc_attr( 'width: ' . $width ); ?>" |
| 80 |
> |
| 81 |
<!--===== column 2 ==== --> |
| 82 |
<table |
| 83 |
cellspacing="0" |
| 84 |
cellpadding="0" |
| 85 |
border="0" |
| 86 |
align="left" |
| 87 |
style="display: table; margin: 0px; width: 100%; padding: 0px; |
| 88 |
<?php echo esc_attr( 'background-color: ' . $attrs['backgroundColor'] ); ?> |
| 89 |
" |
| 90 |
> |
| 91 |
<tbody> |
| 92 |
<tr> |
| 93 |
<td |
| 94 |
id="web-<?php echo esc_attr( $id ); ?>-col-2" |
| 95 |
class="web-col-2-wrap" |
| 96 |
align="left" |
| 97 |
style='font-size: 13px; line-height: 22px; word-break: break-word; |
| 98 |
font-family: <?php echo wp_kses_post( $attrs['col2Family'] ); ?>; |
| 99 |
<?php echo esc_attr( 'color: ' . $attrs['textColor'] ); ?>; |
| 100 |
<?php echo esc_attr( 'padding: ' . $attrs['col2PaddingTop'] . 'px ' . $attrs['col2PaddingRight'] . 'px ' . $attrs['col2PaddingBottom'] . 'px ' . $attrs['col2PaddingLeft'] . 'px;' ); ?> |
| 101 |
' |
| 102 |
> |
| 103 |
<div"> |
| 104 |
<?php echo wp_kses_post( $attrs['col2Content'] ); ?> |
| 105 |
</div> |
| 106 |
</td> |
| 107 |
</tr> |
| 108 |
</tbody> |
| 109 |
</table> |
| 110 |
</td> |
| 111 |
<?php endif; ?> |
| 112 |
</tr> |
| 113 |
</tbody> |
| 114 |
</table> |
| 115 |
|