XF 2.0 Style properties in templates

The property template function. As an example:
Code:
<xf:if is="property('metaThemeColor')">
   <meta name="theme-color" content="{{ property('metaThemeColor') }}" />
</xf:if>
 
Short answer is no, you'd likely need to expose something custom to do that. There are some helper methods in XF\Util\Color that you can use.
 
Back
Top Bottom