{assign var=salutation value=$Address->getAttribute('salutation')} {assign var=firstname value=$Address->getAttribute('firstname')} {assign var=lastname value=$Address->getAttribute('lastname')} {assign var=street_no value=$Address->getAttribute('street_no')} {assign var=zip value=$Address->getAttribute('zip')} {assign var=city value=$Address->getAttribute('city')} {assign var=country value=$Address->getAttribute('country')} {if empty($firstname) && isset($User)} {assign var=firstname value=$User->getAttribute('firstname')} {/if} {if !$firstname} {assign var=firstname value=""} {/if} {if empty($lastname) && isset($User)} {assign var=lastname value=$User->getAttribute('lastname')} {/if} {if !$lastname} {assign var=lastname value=""} {/if} {if !$street_no} {assign var=street_no value=""} {/if} {if !$zip} {assign var=zip value=""} {/if} {if !$city} {assign var=city value=""} {/if} {if !$country} {assign var=country value=""} {/if}
{if $Address->getAttribute('company')}
{locale group="quiqqer/system" var="company"}
{$Address->getAttribute('company')}
{/if}
{$salutation} {$firstname} {$lastname}
{$street_no}
{if !empty($country)}
{$zip} {$city}
{$country}
{else}
{$zip} {$city}
{/if} {if $Address->getAttribute('company') && $Countries->existsCountryCode( $Address->getAttribute('company') ) } {assign var=Country value=$Address->getCountry()} {if $Country->getCountry()}
{$Country->getName()}
{/if} {/if}
{if $options['mail']} {assign var=maillist value=$Address->getMailList()} {foreach from=$maillist item=mail}
{$mail}
{/foreach} {/if} {if $options['tel']} {assign var=phonelist value=$Address->getPhoneList()} {foreach from=$phonelist item=phone} {if $phone.no !== ''}
{assign var="cssclass" value="phone"} {if $phone.type == 'mobile'} {assign var="cssclass" value="mobile-phone"} {/if} {$phone.no}
{/if} {/foreach} {/if}