<?php
/**
* @package   yoo_neo Template
* @file      default_address.php
* @version   5.5.8 October 2010
* @author    YOOtheme http://www.yootheme.com
* @copyright Copyright (C) 2007 - 2010 YOOtheme GmbH
* @license   YOOtheme Proprietary Use License (http://www.yootheme.com/license)
*/

// no direct access
defined('_JEXEC') or die('Restricted access');
?>

<?php if ( ( $this->contact->params->get( 'address_check' ) > 0 ) &&  ( $this->contact->address || $this->contact->suburb  || $this->contact->state || $this->contact->country || $this->contact->postcode ) ) : ?>
<table cellpadding="0" cellspacing="0" border="0" class="joomlatable">
	<?php if ( $this->contact->params->get( 'address_check' ) > 0 ) : ?>
	<tr>
		<td rowspan="6" valign="top" width="<?php echo $this->contact->params->get( 'column_width' ); ?>" >
			<?php echo $this->contact->params->get( 'marker_address' ); ?>
		</td>
	</tr>
	<?php endif; ?>
	<?php if ( $this->contact->address && $this->contact->params->get( 'show_street_address' ) ) : ?>
	<tr>
		<td>
			<?php echo nl2br($this->escape($this->contact->address)); ?>
		</td>
	</tr>
	<?php endif; ?>
	<?php if ( $this->contact->suburb && $this->contact->params->get( 'show_suburb' ) ) : ?>
	<tr>
		<td>
			<?php echo $this->escape($this->contact->suburb); ?>
		</td>
	</tr>
	<?php endif; ?>
	<?php if ( $this->contact->state && $this->contact->params->get( 'show_state' ) ) : ?>
	<tr>
		<td>
			<?php echo $this->escape($this->contact->state); ?>
		</td>
	</tr>
	<?php endif; ?>
	<?php if ( $this->contact->postcode && $this->contact->params->get( 'show_postcode' ) ) : ?>
	<tr>
		<td>
			<?php echo $this->escape($this->contact->postcode); ?>
		</td>
	</tr>
	<?php endif; ?>
	<?php if ( $this->contact->country && $this->contact->params->get( 'show_country' ) ) : ?>
	<tr>
		<td>
			<?php echo $this->escape($this->contact->country); ?>
		</td>
	</tr>
	<?php endif; ?>
</table>
<?php endif; ?>

<?php if ( ($this->contact->email_to && $this->contact->params->get( 'show_email' )) || 
			($this->contact->telephone && $this->contact->params->get( 'show_telephone' )) || 
			($this->contact->fax && $this->contact->params->get( 'show_fax' )) || 
			($this->contact->mobile && $this->contact->params->get( 'show_mobile' )) || 
			($this->contact->webpage && $this->contact->params->get( 'show_webpage' )) ) : ?>
<table cellpadding="0" cellspacing="0" border="0" class="joomlatable">
	<?php if ( $this->contact->email_to && $this->contact->params->get( 'show_email' ) ) : ?>
	<tr>
		<td width="<?php echo $this->contact->params->get( 'column_width' ); ?>" >
			<?php echo $this->contact->params->get( 'marker_email' ); ?>
		</td>
		<td>
			<?php echo $this->contact->email_to; ?>
		</td>
	</tr>
	<?php endif; ?>
	<?php if ( $this->contact->telephone && $this->contact->params->get( 'show_telephone' ) ) : ?>
	<tr>
		<td width="<?php echo $this->contact->params->get( 'column_width' ); ?>" >
			<?php echo $this->contact->params->get( 'marker_telephone' ); ?>
		</td>
		<td>
			<?php echo nl2br($this->contact->telephone); ?>
		</td>
	</tr>
	<?php endif; ?>
	<?php if ( $this->contact->fax && $this->contact->params->get( 'show_fax' ) ) : ?>
	<tr>
		<td width="<?php echo $this->contact->params->get( 'column_width' ); ?>" >
			<?php echo $this->contact->params->get( 'marker_fax' ); ?>
		</td>
		<td>
			<?php echo nl2br($this->escape($this->contact->fax)); ?>
		</td>
	</tr>
	<?php endif; ?>
	<?php if ( $this->contact->mobile && $this->contact->params->get( 'show_mobile' ) ) :?>
	<tr>
		<td width="<?php echo $this->contact->params->get( 'column_width' ); ?>" >
		<?php echo $this->contact->params->get( 'marker_mobile' ); ?>
		</td>
		<td>
			<?php echo nl2br($this->escape($this->contact->mobile)); ?>
		</td>
	</tr>
	<?php endif; ?>
	<?php if ( $this->contact->webpage && $this->contact->params->get( 'show_webpage' )) : ?>
	<tr>
		<td width="<?php echo $this->contact->params->get( 'column_width' ); ?>" >
		</td>
		<td>
			<a href="<?php echo $this->contact->webpage; ?>" target="_blank">
				<?php echo $this->escape($this->contact->webpage); ?></a>
		</td>
	</tr>
	<?php endif; ?>
</table>
<?php endif; ?>

<?php if ( $this->contact->misc && $this->contact->params->get( 'show_misc' ) ) : ?>
<table cellpadding="0" cellspacing="0" border="0" class="joomlatable">
	<tr>
		<td width="<?php echo $this->contact->params->get( 'column_width' ); ?>" valign="top" >
			<?php echo $this->contact->params->get( 'marker_misc' ); ?>
		</td>
		<td>
			<?php echo nl2br($this->contact->misc); ?>
		</td>
	</tr>
</table>
<?php endif; ?>