<xf:macro name="custom_fields_values"
arg-type="!"
arg-group="!"
arg-set="!"
arg-onlyInclude="{{ null }}"
arg-additionalFilters="{{ [] }}"
arg-valueClass="pairs pairs--columns pairs--fixedSmall">
<xf:foreach loop="$xf.app.getCustomFields({$type}, {$group}, {$onlyInclude}, {$additionalFilters})" key="$fieldId" value="$fieldDefinition">
<xf:if is="$fieldDefinition.hasValue({$set.{$fieldDefinition.field_id}})">
<dl class="{$valueClass}">
<dt>{$fieldDefinition.title}</dt>
<dd>
<xf:macro name="custom_field_value"
arg-definition="{$fieldDefinition}"
arg-value="{$set.{$fieldDefinition.field_id}}" />
</dd>
</dl>
</xf:if>
</xf:foreach>
</xf:macro>