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: \XF::app()->style()->getProperty('contentBg'); but I need the one of the current visitor's style. Edit: the code above does not translate...
xenforo.com