get current theme

Permalink
Hi everyone, I was wondering if there was a snippet of php to get the current theme on the page. Thanks!

12345j
View Replies: View Best Answer
Mnkras replied on at Permalink Best Answer Reply
Mnkras
something like
$v = View::getInstance(); //can't remember what it was
$theme = $v->getThemeHandle();


take a look at the theme switcher addon ;)
12345j replied on at Permalink Reply
12345j
thanks. found the full code in theme switcher
$current = PageTheme::getSiteTheme();
         $this->set('selectedTheme', $current->getThemeHandle());
should've looked there first!