Skip to content
Snippets Groups Projects
Commit 4d084df2 authored by Taras Kruts's avatar Taras Kruts
Browse files

Issue #3083877 by ribel: Add extra JS for secondary navigation in Sky style

parent 00e85b68
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,6 @@ core: 8.x
libraries:
- socialblue/brand
- socialblue/site-footer
- socialblue/nav-secondary--sky
libraries-extend:
socialbase/base:
......
......@@ -125,10 +125,6 @@ navbar:
theme:
assets/css/navbar.css: {}
nav-secondary--sky:
js:
assets/js/navbar-secondary--sky.min.js: {}
pagination:
css:
theme:
......
......@@ -32,6 +32,12 @@ function socialblue_library_info_alter(&$libraries, $extension) {
$libraries[$key]['css']['theme'][$style_css]['weight'] = 600;
}
}
// Add extra JS for secondary navigation in Sky style.
$navbar_js = 'assets/js/navbar-secondary--sky.min.js';
if (file_exists($theme_path . '/' . $navbar_js)) {
$libraries['navbar']['js'][$navbar_js] = [];
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment