Skip to content

Instantly share code, notes, and snippets.

@jenter
Last active August 29, 2015 14:16
Show Gist options
  • Save jenter/c90549ca1ef8d2efb290 to your computer and use it in GitHub Desktop.
Save jenter/c90549ca1ef8d2efb290 to your computer and use it in GitHub Desktop.
function example_preprocess_panels_pane(&$vars) {
// add class per pane type
switch ($vars['pane']->subtype) {
case 'something-panel_pane_plan':
$vars['classes_array'][] = 'gw-grid-1';
break;
case 'another-panel_pane_plan':
$vars['classes_array'][] = 'gw-grid-2';
break;
case 'thisone-panel_pane_hub':
case 'hellotest-panel_pane_hub':
$vars['classes_array'][] = 'gw-grid-3';
break;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment