Find current layout name for a Panels Node? I'm using Panel Nodes for a layout, one of which is a specialized layout that will change the overall theme design (Namely hiding the header and footer).

However, I cannot seem to find a way to detect what the current layout being used is -- at least with Panel Nodes (panels_page_get_current() works only with Panels Pages, not Panels Nodes). See: http://groups.drupal.org/node/12565

Anyone have a clue how to detect whether a specific layout is being used by Panels -- and then, preferably, pass that on to theme suggestions?

Thanks!
The function panels_get_current_page_display() is what you're looking for:

$panel = panels_get_current_page_display();
$layout = $panel-&gt;layout;