<xf:macro id="explain" arg-providerTitle="!" arg-keyName="!" arg-keyValue="!">
	<xf:inforow>
		{{ phrase('this_will_test_x_connected_account_provider_explain', {'title': $providerTitle}) }}
	</xf:inforow>

	<xf:formrow label="{$keyName}">{$keyValue}</xf:formrow>
</xf:macro>

<xf:macro id="success">
	<xf:inforow rowtype="confirm">
		<div class="blockMessage blockMessage--success">{{ phrase('test_passed') }}</div>
	</xf:inforow>
</xf:macro>

<xf:macro id="display_name" arg-name="!" arg-secondaryName="">
	<xf:formrow label="{{ phrase('name') }}">
		{{ $name ?: phrase('n_a') }}
		<xf:if is="$secondaryName">
			{$secondaryName}
		</xf:if>
	</xf:formrow>
</xf:macro>

<xf:macro id="email" arg-email="!">
	<xf:formrow label="{{ phrase('email') }}">
		{{ $email ?: phrase('n_a') }}
	</xf:formrow>
</xf:macro>

<xf:macro id="picture" arg-url="!">
	<xf:formrow label="{{ phrase('picture') }}">
		<xf:if is="$url">
			<img src="{$url}" width="48" />
		<xf:else />
			{{ phrase('n_a') }}
		</xf:if>
	</xf:formrow>
</xf:macro>