# yaymail/3.2.8.1/includes/Templates/Elements/YayMail/ThreeColumn.php

YayMail – WooCommerce Email Customizer, version 3.2.8.1. 80 lines.

- Page: https://pluginprobe.com/plugins/yaymail/3.2.8.1/code/includes/Templates/Elements/YayMail/ThreeColumn.php
- Raw: https://pluginprobe.com/plugins/yaymail/3.2.8.1/raw/includes/Templates/Elements/YayMail/ThreeColumn.php
- Modified: 2023-06-15T09:43:42+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/3.2.8.1/code/includes/Templates/Elements/YayMail/ThreeColumn.php#L10-L20`.

```php
<?php
	$cloneAttrs = $attrs;
?>
<table
	width="<?php esc_attr_e( $general_attrs['tableWidth'], 'woocommerce' ); ?>"
	cellspacing="0"
	cellpadding="0"
	border="0"
	align="center"
	style="display: table;
	<?php echo esc_attr( 'background-color: ' . $attrs['backgroundColor'] ); ?>;
	<?php echo esc_attr( 'background-image: url(' . $attrs['backgroundImage'] . ')' ); ?>;
	<?php echo esc_attr( 'background-position: ' . $attrs['backgroundPosition'] ); ?>;
	<?php echo esc_attr( 'background-size: ' . $attrs['backgroundSize'] ); ?>;
	<?php echo esc_attr( 'background-repeat: ' . $attrs['backgroundRepeat'] ); ?>;
	<?php echo ! $isInColumns ? esc_attr( 'min-width:' . $general_attrs['tableWidth'] . 'px' ) : ''; ?>
	"
	class="web-main-row nta-row-three-column"
	id="web<?php echo esc_attr( $id ); ?>"
  >
	<tbody>
	  <tr>
		<td
		  id="web-<?php echo esc_attr( $id ); ?>-three-columns"
		  class="web-three-columns"
		  align="left"
		  style='font-size: 13px;  line-height: 22px; word-break: break-word;
		  font-family: <?php echo wp_kses_post( str_replace( '"', '', $attrs['family'] ) ); ?>;
		  <?php echo esc_attr( 'color: ' . $attrs['textColor'] ); ?>;
		  <?php echo esc_attr( 'max-width: ' . $general_attrs['tableWidth'] ); ?>;
		  <?php echo esc_attr( 'padding: ' . $attrs['paddingTop'] . 'px ' . $attrs['paddingRight'] . 'px ' . $attrs['paddingBottom'] . 'px ' . $attrs['paddingLeft'] . 'px;' ); ?>
		  '
		>
		  <div class="web-three-columns-row" style="min-height: 10px">
			<table style="width: 100%">
			  <tr>
				<td valign="top" 
					class="nta-three-column-items"  
					style="min-width: 25px;position: relative;min-height: 1px;
					<?php echo esc_attr( 'width: ' . $attrs['widthCol1'] . '%' ); ?>;
					" 
				>
				 <?php
					foreach ( $attrs['column1'] as $key => $el ) {
						do_action( 'Yaymail' . $el['type'], $args, $el['settingRow'], $general_attrs, $el['id'], '', $isInColumns = true );
					}
					?>
				</td>
				<td valign="top" 
					class="nta-three-column-items" 
					style="min-width: 25px;position: relative;min-height: 1px;
					<?php echo esc_attr( 'width: ' . $attrs['widthCol2'] . '%' ); ?>
					" 
				>
					<?php
					foreach ( $attrs['column2'] as $key => $el ) {
						do_action( 'Yaymail' . $el['type'], $args, $el['settingRow'], $general_attrs, $el['id'], '', $isInColumns = true );
					}
					?>
				</td>
				<td valign="top" 
					class="nta-three-column-items" 
					style="min-width: 25px;position: relative;min-height: 1px;
					<?php echo esc_attr( 'width: ' . $attrs['widthCol3'] . '%' ); ?>
					" 
				>
					<?php
					foreach ( $attrs['column3'] as $key => $el ) {
						do_action( 'Yaymail' . $el['type'], $args, $el['settingRow'], $general_attrs, $el['id'], '', $isInColumns = true );
					}
					?>
				</td>
			  </tr>
			</table>
		  </div>
		</td>
	  </tr>
	</tbody>
  </table>

```
