<?php

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

?>

<table class="company two-column">
	<tr>
		<td class="logo" width="50%">
			<?php
			if ( WPI()->get_option( 'template', 'company_logo' ) ) {
				printf( '<img class="company-logo" src="var:company_logo"/>' );
			} else {
				printf( '<h1 class="company-logo">%s</h1>', esc_html( WPI()->templater()->get_option( 'bewpi_company_name' ) ) );
			}
			?>
		</td>
		<td class="info small-font" width="50%">
			<p><?php echo wp_kses_post( nl2br( WPI()->templater()->get_option( 'bewpi_company_address' ) ) ); ?></p>
			<p><?php echo wp_kses_post( nl2br( WPI()->templater()->get_option( 'bewpi_company_details' ) ) ); ?></p>
		</td>
	</tr>
</table>
