Would by nice to have a URL to Facebook and Twitter for Facebook and Twitter identities when users click on a profile > About. Simple change to custom_fields_macros:
HTML:
<xf:macro name="custom_field_value" arg-definition="!" arg-value="!">
<xf:if is="$definition.field_type == 'stars'">
<xf:macro template="rating_macros" name="stars" arg-rating="{$value}" />
<xf:else />
<xf:if is="$definition.match_type == 'date'">
<xf:macro name="custom_field_value_date" arg-date="{$value}" />
<xf:elseif is="$definition.match_type == 'color'" />
<xf:macro name="custom_field_value_color" arg-color="{$value}" />
<xf:elseif is="$definition.title == 'Facebook'" />
<a href="https://www.facebook.com/{$definition.getFormattedValue($value)}">https://www.facebook.com/{$definition.getFormattedValue($value)}</a>
<xf:elseif is="$definition.title == 'Twitter'" />
<a href="https://twitter.com/{$definition.getFormattedValue($value)}">https://twitter.com/{$definition.getFormattedValue($value)}</a>
<xf:else />
{$definition.getFormattedValue($value)|raw}
</xf:if>
</xf:if>
</xf:macro>
Upvote
0