getting current style?

Neuro

Member
Is there a way for me to get the current style from with the extension of XenForo_ControllerPublic_Forum?
 
The default style:
PHP:
$options = XenForo_Application::getOptions();
$styleId = $options->defaultStyleId;

The current style a visitor is using:
PHP:
$visitor = XenForo_Visitor::getInstance();
$styleId = $visitor->style_id;
 
The default style:
PHP:
$options = XenForo_Application::getOptions();
$styleId = $options->defaultStyleId;

The current style a visitor is using:
PHP:
$visitor = XenForo_Visitor::getInstance();
$styleId = $visitor->style_id;

Thank you!
 
Back
Top Bottom