nocte
Well-known member
How can I access style properties of the style the visitor is currently using in an addon's PHP class?
This gives me the default style's background color:
but I need the one of the current visitor's style.
Edit: the code above does not translate LESS style properties to proper CSS.
This gives me the default style's background color:
PHP:
\XF::app()->style()->getProperty('contentBg');
but I need the one of the current visitor's style.
Edit: the code above does not translate LESS style properties to proper CSS.
Last edited: