Created
February 13, 2015 09:09
-
-
Save rang501/058dd69019435c3da9c1 to your computer and use it in GitHub Desktop.
Add css class to detect panels page.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function THEME_preprocess_html(&$variables) { | |
$panels = page_manager_get_current_page(); | |
$variables['classes_array'][] = (!$panels ? 'not-' : '') . 'panels-page'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment