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

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

57 lines 1.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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