# yaymail/2.1.5/includes/Templates/Elements/YayMail/SocialIcon.php

YayMail – WooCommerce Email Customizer, version 2.1.5. 49 lines.

- Page: https://pluginprobe.com/plugins/yaymail/2.1.5/code/includes/Templates/Elements/YayMail/SocialIcon.php
- Raw: https://pluginprobe.com/plugins/yaymail/2.1.5/raw/includes/Templates/Elements/YayMail/SocialIcon.php
- Modified: 2021-08-04T20:29:14+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/yaymail/2.1.5/code/includes/Templates/Elements/YayMail/SocialIcon.php#L10-L20`.

```php
<?php $img_url = YAYMAIL_PLUGIN_URL . 'assets/dist/images/play.png'; ?>
<table
	width="<?php esc_attr_e( $general_attrs['tableWidth'], 'woocommerce' ); ?>"
	cellspacing="0"
	cellpadding="0"
	border="0"
	align="center"
	style="display: table; background-color: <?php echo esc_attr( $attrs['backgroundColor'] ); ?>; <?php echo ! $isInColumns ? esc_attr( 'min-width:' . $general_attrs['tableWidth'] . 'px' ) : ''; ?>"
	class="web-main-row"
	id="web<?php echo esc_attr( $id ); ?>"
  >
  <tbody>
	  <tr>
		<td
		  align="<?php echo esc_attr( $attrs['align'] ); ?>"
		  id="web-<?php echo esc_attr( $id ); ?>-socialicon"
		  class="web-video-wrap"
		  style="<?php echo esc_attr( 'padding: ' . $attrs['paddingTop'] . 'px ' . $attrs['paddingRight'] . 'px ' . $attrs['paddingBottom'] . 'px ' . $attrs['paddingLeft'] . 'px;' ); ?>"
		>

		<div style="min-height: 4px"></div>
			<?php
			foreach ( $attrs['iconSocialsArr'] as $key => $el ) {
				$imgUrl      = YAYMAIL_PLUGIN_URL . 'assets/dist/images/SocialIcons/' . $attrs['styleTheme'] . '/' . $el['icon'] . '.png';
				$margin_left = ( 0 == $key ) ? '0px' : $attrs['iconSpacing'] . 'px';
				?>
				<a 
					class="nta-web-icon-socials-wrap"
					href="<?php echo esc_attr( $el['pathLink'] ); ?>"
					target="_blank"
					style="border: none; text-decoration: none;margin-left:<?php echo esc_attr( isset( $attrs['$margin_left'] ) ? $attrs['$margin_left'] : '' ); ?>"
				>  
					<!-- Img use when send email, email not support svg -->
					<img
					border="0"
					tabindex="0"
					src="<?php echo esc_attr( $imgUrl ); ?>"
					width="<?php echo esc_attr( $attrs['widthSocialIcon'] ); ?>"
					height="<?php echo esc_attr( $attrs['widthSocialIcon'] ); ?>"
					style="padding: 5px;"
					/>
				</a>

			<?php } ?>
		</td>
	  </tr>
	</tbody>
  </table>

```
