Skip to content

Instantly share code, notes, and snippets.

@bassettsj
Created March 12, 2014 17:11
Show Gist options
  • Select an option

  • Save bassettsj/9511570 to your computer and use it in GitHub Desktop.

Select an option

Save bassettsj/9511570 to your computer and use it in GitHub Desktop.
/**
* Implements template_preprocess_panels_pane().
*
*/
function greenbiz_events_preprocess_panels_pane(&$variables){
$pane = $variables['pane'];
// Change the variables to match the bootstrap panel component
if ( $pane->subtype == 'gbz_event_sponsors-sponsor_level_pane'){
// Remove the pane-title class and add the bootstrap panel-title class
$variables['title_attributes_array']['class'] = array( 'panel-title' );
$variables['classes_array'][] = 'panel';
$variables['classes_array'][] = 'panel-default';
}
}
@bassettsj

Copy link
Copy Markdown
Author

This is on line 256 in sites/all/themes/greenbiz_events/template.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment