{{if $multi_profiles}}
{{include file="field_input.tpl" field=$profile_name}}
{{else}}
{{/if}}
{{include file="field_input.tpl" field=$name}}
{{if $fields.pdesc}}
{{include file="field_input.tpl" field=$pdesc}}
{{/if}}
{{if $fields.gender}}
{{if $advanced}}
{{$gender}}
{{else}}
{{$gender_min}}
{{/if}}
{{/if}}
{{if $fields.dob}}
{{$dob}}
{{/if}}
{{include file="field_checkbox.tpl" field=$hide_friends}}
{{if $fields.comms }}
{{/if}}
{{if $fields.address || $fields.locality || $fields.postal_code || $fields.region || $fields.country_name || $fields.hometown}}
{{if $fields.address}}
{{include file="field_input.tpl" field=$address}}
{{/if}}
{{if $fields.locality}}
{{include file="field_input.tpl" field=$locality}}
{{/if}}
{{if $fields.postal_code}}
{{include file="field_input.tpl" field=$postal_code}}
{{/if}}
{{if $fields.region}}
{{include file="field_input.tpl" field=$region}}
{{/if}}
{{if $fields.country_name}}
{{include file="field_input.tpl" field=$country_name}}
{{/if}}
{{if $fields.hometown}}
{{include file="field_input.tpl" field=$hometown}}
{{/if}}
{{/if}}
{{if $fields.marital || $fields.sexual}}
{{if $fields.marital }}
{{if $advanced}}
{{$marital}}
{{else}}
{{$marital_min}}
{{/if}}
{{if $fields.partner}}
{{include file="field_input.tpl" field=$with}}
{{/if}}
{{if $fields.howlong}}
{{include file="field_input.tpl" field=$howlong}}
{{/if}}
{{/if}}
{{if $fields.sexual}}
{{$sexual}}
{{/if}}
{{/if}}
{{if $fields.keywords || $fields.politic || $fields.religion || $fields.about || $fields.contact || $fields.homepage || $fields.interest || $fields.likes || $fields.dislikes || $fields.channels || $fields.music || $fields.book || $fields.tv || $fields.film || $fields.romance || $fields.employment || $fields.education || $extra_fields}}
{{if $fields.homepage}}
{{include file="field_input.tpl" field=$homepage}}
{{/if}}
{{if $fields.keywords}}
{{include file="field_input.tpl" field=$keywords}}
{{/if}}
{{if $fields.politic}}
{{include file="field_input.tpl" field=$politic}}
{{/if}}
{{if $fields.religion}}
{{include file="field_input.tpl" field=$religion}}
{{/if}}
{{if $fields.about}}
{{include file="field_textarea.tpl" field=$about}}
{{/if}}
{{if $fields.contact}}
{{include file="field_textarea.tpl" field=$contact}}
{{/if}}
{{if $fields.interest}}
{{include file="field_textarea.tpl" field=$interest}}
{{/if}}
{{if $fields.likes}}
{{include file="field_textarea.tpl" field=$likes}}
{{/if}}
{{if $fields.dislikes}}
{{include file="field_textarea.tpl" field=$dislikes}}
{{/if}}
{{if $fields.channels}}
{{include file="field_textarea.tpl" field=$channels}}
{{/if}}
{{if $fields.music}}
{{include file="field_textarea.tpl" field=$music}}
{{/if}}
{{if $fields.book}}
{{include file="field_textarea.tpl" field=$book}}
{{/if}}
{{if $fields.tv}}
{{include file="field_textarea.tpl" field=$tv}}
{{/if}}
{{if $fields.film}}
{{include file="field_textarea.tpl" field=$film}}
{{/if}}
{{if $fields.romance}}
{{include file="field_textarea.tpl" field=$romance}}
{{/if}}
{{if $fields.employment}}
{{include file="field_textarea.tpl" field=$employ}}
{{/if}}
{{if $fields.education}}
{{include file="field_textarea.tpl" field=$education}}
{{/if}}
{{if $extra_fields}}
{{foreach $extra_fields as $field }}
{{include file="field_input.tpl" field=$field}}
{{/foreach}}
{{/if}}
{{/if}}