| 1 |
<?php $img_url = YAYMAIL_PLUGIN_URL . 'assets/dist/images/play.png'; ?> |
| 2 |
<table |
| 3 |
width="<?php esc_attr_e( $general_attrs['tableWidth'], 'woocommerce' ); ?>" |
| 4 |
cellspacing="0" |
| 5 |
cellpadding="0" |
| 6 |
border="0" |
| 7 |
align="center" |
| 8 |
style="display: table; background-color: <?php echo esc_attr( $attrs['backgroundColor'] ); ?>; <?php echo ! $isInColumns ? esc_attr( 'min-width:' . $general_attrs['tableWidth'] . 'px' ) : esc_attr( 'width: 100%' ); ?>;" |
| 9 |
class="web-main-row" |
| 10 |
id="web<?php echo esc_attr( $id ); ?>" |
| 11 |
> |
| 12 |
<tbody> |
| 13 |
<tr> |
| 14 |
<td |
| 15 |
id="web-<?php echo esc_attr( $id ); ?>-video" |
| 16 |
class="web-video-wrap" |
| 17 |
style="<?php echo esc_attr( 'padding: ' . $attrs['paddingTop'] . 'px ' . $attrs['paddingRight'] . 'px ' . $attrs['paddingBottom'] . 'px ' . $attrs['paddingLeft'] . 'px;' ); ?>" |
| 18 |
> |
| 19 |
<a |
| 20 |
href="<?php echo esc_attr( $attrs['videoUrl'] ); ?>" |
| 21 |
target="_blank" |
| 22 |
style="border: none; text-decoration: none; display: block;" |
| 23 |
> |
| 24 |
<?php if ( '' !== $attrs['pathImg'] ) : ?> |
| 25 |
<div |
| 26 |
style="text-align: center;background-size: cover;margin:auto;background-position:center; |
| 27 |
<?php echo esc_attr( 'background-image: url(' . $attrs['pathImg'] . ');' ); ?> |
| 28 |
<?php echo esc_attr( 'width: ' . $attrs['width'] . '%;' ); ?> |
| 29 |
<?php echo esc_attr( 'height: ' . $attrs['height'] . 'px;' ); ?> |
| 30 |
<?php echo esc_attr( 'line-height: ' . $attrs['height'] . 'px;' ); ?> |
| 31 |
" |
| 32 |
> |
| 33 |
<img |
| 34 |
style="border-collapse:collapse;border: none;" |
| 35 |
src="<?php echo esc_attr( $img_url ); ?>" |
| 36 |
/> |
| 37 |
</div> |
| 38 |
<?php else : ?> |
| 39 |
<div |
| 40 |
style="text-align: center; |
| 41 |
<?php echo esc_attr( 'width: ' . $attrs['width'] . '%;' ); ?> |
| 42 |
<?php echo esc_attr( 'height: ' . $attrs['height'] . 'px;' ); ?> |
| 43 |
<?php echo esc_attr( 'line-height: ' . $attrs['height'] . 'px;' ); ?> |
| 44 |
" |
| 45 |
> |
| 46 |
<img |
| 47 |
style="border-collapse:collapse;border: none;" |
| 48 |
src="<?php echo esc_attr( $img_url ); ?>" |
| 49 |
/> |
| 50 |
</div> |
| 51 |
<?php endif; ?> |
| 52 |
</a> |
| 53 |
</td> |
| 54 |
</tr> |
| 55 |
</tbody> |
| 56 |
</table> |
| 57 |
|