Skip to content

Commit 9c830b3

Browse files
authored
Issue #3510841: Header - support primary navigation in header bottom region (#1356)
1 parent dd027dc commit 9c830b3

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

web/themes/contrib/civictheme/includes/menu.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ function _civictheme_preprocess_block__navigation(array &$variables): void {
7373
$variables['dropdown_columns'] = civictheme_get_theme_config_manager()->load(sprintf('components.navigation.%s.dropdown_columns', $key), 4);
7474
$variables['dropdown_columns_fill'] = civictheme_get_theme_config_manager()->load(sprintf('components.navigation.%s.dropdown_columns_fill', $key), FALSE);
7575
$variables['is_animated'] = civictheme_get_theme_config_manager()->load(sprintf('components.navigation.%s.is_animated', $key), FALSE);
76+
$variables['variant'] = $menu_name === 'civictheme_primary_navigation' ? 'primary' : 'secondary';
7677
$expand_all_items = $variables['elements']['#configuration']['expand_all_items'] ?? FALSE;
7778
_civictheme_preprocess_menu_items($variables['items'], $expand_all_items);
7879
}

web/themes/contrib/civictheme/templates/block/block--menu-block--civictheme-primary-navigation.html.twig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
dropdown_columns_fill,
2424
is_animated,
2525
menu_id,
26+
variant,
2627
modifier_class: 'ct-primary-navigation ' ~ modifier_class|default(''),
2728
} only %}
2829
{% endif %}

web/themes/contrib/civictheme/templates/block/block--menu-block--civictheme-secondary-navigation.html.twig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
dropdown_columns_fill,
2020
is_animated,
2121
menu_id,
22+
variant,
2223
modifier_class: 'ct-secondary-navigation ' ~ modifier_class|default(''),
2324
} only %}
2425
{% endif %}

0 commit comments

Comments
 (0)