1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

getting current style?

Discussion in 'XenForo Development Discussions' started by Neuro, Feb 4, 2015.

  1. Neuro

    Neuro Member

    Is there a way for me to get the current style from with the extension of XenForo_ControllerPublic_Forum?
  2. Chris D

    Chris D XenForo Developer Staff Member

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

    Neuro Member

    Thank you!

Share This Page