Skip to content

Commit eb94c63

Browse files
committed
Pulling in changes from dev
1 parent 3b9dfd1 commit eb94c63

File tree

6 files changed

+109
-2
lines changed

6 files changed

+109
-2
lines changed

themes/osi/assets/css/editor-style.css

Lines changed: 46 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

themes/osi/assets/css/editor-style.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

themes/osi/functions.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,5 +568,7 @@ function osi_full_width_editor( array $editor_settings ): array {
568568
*/
569569
function osi_register_ai_menu() {
570570
register_nav_menu( 'ai', __( 'AI Menu', 'osi' ) );
571+
register_nav_menu( 'ai_secondary_nav', __( 'AI Secondary Navigation', 'osi' ) );
571572
}
572573
add_action( 'after_setup_theme', 'osi_register_ai_menu' );
574+

themes/osi/header.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,19 @@
4545
)
4646
);
4747
endif;
48+
//Adding for AI template - secondary navigation
49+
if ( is_page_template( 'templates/ai-wide.php' ) ) :
50+
echo '<p class="ai-mobile-label">' . esc_html__( 'Open Source AI', 'osi' ) . '</p>';
51+
wp_nav_menu(
52+
array(
53+
'theme_location' => 'ai_secondary_nav',
54+
'menu' => 'AI secondary nav',
55+
'container' => false,
56+
'container_class' => 'ai-secondary-nav',
57+
'menu_class' => 'ai-secondary-nav-menu',
58+
)
59+
);
60+
endif;
4861
?>
4962
</nav><!-- #site-navigation -->
5063
<section class="open-search-wrapper">

themes/osi/style.css

Lines changed: 46 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

themes/osi/style.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)