You are here

function brainstorm_theme_preprocess_page in Brainstorm profile 7

Same name and namespace in other branches
  1. 8 theme/brainstorm_theme/brainstorm_theme.theme \brainstorm_theme_preprocess_page()

Implements hook_preprocess_page().

File

themes/brainstorm_theme/template.php, line 300
Process theme data.

Code

function brainstorm_theme_preprocess_page(&$variables) {
  $page = $variables['theme_hook_suggestions'][0] ?: '';
  if ($page == 'page__blog') {
    drupal_add_js(path_to_theme() . '/scripts/jquery.waterfall.js', [
      'scope' => 'footer',
    ]);
  }
  drupal_add_js('jQuery.extend(Drupal.settings, { "pathToTheme": "' . path_to_theme() . '" });', 'inline');
}