| 1 |
<?php $img_url = YAYMAIL_PLUGIN_URL . 'assets/dist/images/play.png'; ?> |
| 2 |
<?php |
| 3 |
$yaymail_settings = get_option( 'yaymail_settings' ); |
| 4 |
$direction_rtl = $yaymail_settings['direction_rtl']; |
| 5 |
?> |
| 6 |
<table |
| 7 |
width="<?php esc_attr_e( $general_attrs['tableWidth'], 'woocommerce' ); ?>" |
| 8 |
cellspacing="0" |
| 9 |
cellpadding="0" |
| 10 |
border="0" |
| 11 |
align="center" |
| 12 |
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%' ); ?>;" |
| 13 |
class="web-main-row" |
| 14 |
id="web<?php echo esc_attr( $id ); ?>" |
| 15 |
> |
| 16 |
<tbody> |
| 17 |
<tr> |
| 18 |
<td |
| 19 |
align="<?php echo esc_attr( $attrs['align'] ); ?>" |
| 20 |
id="web-<?php echo esc_attr( $id ); ?>-socialicon" |
| 21 |
class="web-video-wrap" |
| 22 |
style="<?php echo esc_attr( 'padding: ' . $attrs['paddingTop'] . 'px ' . $attrs['paddingRight'] . 'px ' . $attrs['paddingBottom'] . 'px ' . $attrs['paddingLeft'] . 'px;' ); ?>" |
| 23 |
> |
| 24 |
|
| 25 |
<div style="min-height: 4px"></div> |
| 26 |
<?php |
| 27 |
if ( isset( $attrs['iconSocialsArr'] ) ) { |
| 28 |
foreach ( $attrs['iconSocialsArr'] as $key => $el ) { |
| 29 |
$imgUrl = YAYMAIL_PLUGIN_URL . 'assets/dist/images/SocialIcons/' . $attrs['styleTheme'] . '/' . $el['icon'] . '.png'; |
| 30 |
$margin_left = ( 'rtl' === $direction_rtl ? ( $attrs['iconSpacing'] . 'px' ) : ( ( 0 == $key ) ? '0px' : $attrs['iconSpacing'] . 'px' ) ); |
| 31 |
?> |
| 32 |
<a |
| 33 |
class="nta-web-icon-socials-wrap" |
| 34 |
href="<?php echo esc_attr( $el['pathLink'] ); ?>" |
| 35 |
target="_blank" |
| 36 |
style="border: none; text-decoration: none;margin-left:<?php echo esc_attr( $margin_left ); ?>" |
| 37 |
> |
| 38 |
<!-- Img use when send email, email not support svg --> |
| 39 |
<img |
| 40 |
border="0" |
| 41 |
tabindex="0" |
| 42 |
src="<?php echo esc_attr( $imgUrl ); ?>" |
| 43 |
width="<?php echo esc_attr( $attrs['widthSocialIcon'] ); ?>" |
| 44 |
height="<?php echo esc_attr( $attrs['widthSocialIcon'] ); ?>" |
| 45 |
style="margin-right:0;" |
| 46 |
/> |
| 47 |
</a> |
| 48 |
|
| 49 |
<?php |
| 50 |
} |
| 51 |
} |
| 52 |
?> |
| 53 |
</td> |
| 54 |
</tr> |
| 55 |
</tbody> |
| 56 |
</table> |
| 57 |
|