$tpl = get_markup_template('profile_vcard.tpl');
+ $p = array();
+ foreach($profile as $k => $v) {
+ $k = str_replace('-','_',$k);
+ $p[$k] = $v;
+ }
if($a->theme['template_engine'] === 'internal')
$location = template_escape($location);
$o .= replace_macros($tpl, array(
- '$profile' => $profile,
+ '$profile' => $p,
'$connect' => $connect,
'$wallmessage' => $wallmessage,
'$location' => $location,
<span class="city-state-zip">
<span class="locality">$profile.locality</span>{{ if $profile.locality }}, {{ endif }}
<span class="region">$profile.region</span>
- <span class="postal-code">$profile.postal-code</span>
+ <span class="postal-code">$profile.postal_code</span>
</span>
- {{ if $profile.country-name }}<span class="country-name">$profile.country-name</span>{{ endif }}
+ {{ if $profile.country_name }}<span class="country-name">$profile.country_name</span>{{ endif }}
</dd>
</dl>
{{ endif }}
<span class="city-state-zip">
<span class="locality">{{$profile.locality}}</span>{{if $profile.locality}}, {{/if}}
<span class="region">{{$profile.region}}</span>
- <span class="postal-code">{{$profile.postal-code}}</span>
+ <span class="postal-code">{{$profile.postal_code}}</span>
</span>
- {{if $profile.country-name}}<span class="country-name">{{$profile.country-name}}</span>{{/if}}
+ {{if $profile.country_name}}<span class="country-name">{{$profile.country_name}}</span>{{/if}}
</dd>
</dl>
{{/if}}