Skip to content

Commit

Permalink
Merge pull request #1498 from CuBoulder/issue/1486
Browse files Browse the repository at this point in the history
Newsletter: Minor Changes, Major Style Adjustments, Bug Fixes
  • Loading branch information
jcsparks authored Nov 22, 2024
2 parents 10ad8c4 + b09f87c commit 54ecfdd
Show file tree
Hide file tree
Showing 3 changed files with 437 additions and 264 deletions.
12 changes: 11 additions & 1 deletion boulder_base.theme
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function boulder_base_preprocess_block(array &$variables) {
->accessCheck(TRUE)
->execute();
$variables['faculty_publications_jt_people'] = array_filter(
array_values(Node::loadMultiple(array_values($results))),
array_values(Node::loadMultiple(array_values($results))),
function ($item) {
return $item->field_ucb_person_email !== NULL;
}
Expand Down Expand Up @@ -257,6 +257,16 @@ function boulder_base_preprocess_breadcrumb(array &$variables) {
}
}

/**
* Preprocess function to enable the current site name to show up on Nodes -- newsletter
*/
function boulder_base_preprocess_node(array &$variables) {
if (!isset($variables['site_name'])) {
$config = \Drupal::config('system.site');
$variables['site_name'] = $config->get('name');
}
}

/**
* Preprocess function to get the variables we'll need on the header region template.
*/
Expand Down
Loading

0 comments on commit 54ecfdd

Please sign in to comment.