Browse Source

added theming for other sources target

2.x-ebsco
Paul Pound 11 years ago
parent
commit
4a68974d21
  1. 5
      css/roblib_search.base.css
  2. 10
      roblib_search.module

5
css/roblib_search.base.css

@ -50,6 +50,11 @@
border-left-width: 10px; border-left-width: 10px;
} }
.roblib-search-other-sources-header {
border-left-color:#800000;
border-left-width: 10px;
}
.roblib-search-islandscholar-header { .roblib-search-islandscholar-header {
border-left-color:darkolivegreen; border-left-color:darkolivegreen;

10
roblib_search.module

@ -101,6 +101,16 @@ function roblib_search_theme() {
); );
} }
function roblib_search_preprocess_panels_pane(&$variables, $hook){
switch ($variables['pane']->subtype) {
case 'roblib_search-roblib_search_other':
$variables['title_prefix'] = '<div class="roblib-search-header roblib-search-other-sources-header">';
$variables['title_suffix'] = '</div>';
break;
}
}
function roblib_search_init() { function roblib_search_init() {
// Make qtip available for all targets js. // Make qtip available for all targets js.
drupal_add_js(drupal_get_path('module', 'roblib_search') . '/js/jquery.qtip.min.js'); drupal_add_js(drupal_get_path('module', 'roblib_search') . '/js/jquery.qtip.min.js');

Loading…
Cancel
Save