Style id in template_post_render event handler

Arty

Well-known member
Is it possible to get current style id in template_post_render event handler?
 

Arty

Well-known member
Figured it out.
Code:
$params = $template->getParams();
if (isset($params['_styleId'])) {
   // do style specific stuff. current style id = $params['_styleId']
}
 
Top