338ba8b6 by Jeff Balicki

ssss

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent 71159cce
...@@ -14258,6 +14258,10 @@ p { ...@@ -14258,6 +14258,10 @@ p {
14258 padding-top: 70px; 14258 padding-top: 70px;
14259 } 14259 }
14260 14260
14261 .collapsing {
14262 overflow: visible !important;
14263 }
14264
14261 #wrapper-navbar { 14265 #wrapper-navbar {
14262 position: relative; 14266 position: relative;
14263 z-index: 999; 14267 z-index: 999;
...@@ -14266,7 +14270,7 @@ p { ...@@ -14266,7 +14270,7 @@ p {
14266 height: 768px; 14270 height: 768px;
14267 clear: both; 14271 clear: both;
14268 vertical-align: top; 14272 vertical-align: top;
14269 padding: 41px 27px 41px 42px; 14273 padding: 41px 27px 41px 22px;
14270 background-color: #F6F6F6; 14274 background-color: #F6F6F6;
14271 box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1607843137); 14275 box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1607843137);
14272 transition: 0.5s; 14276 transition: 0.5s;
...@@ -14275,6 +14279,7 @@ p { ...@@ -14275,6 +14279,7 @@ p {
14275 #wrapper-navbar { 14279 #wrapper-navbar {
14276 position: absolute; 14280 position: absolute;
14277 right: -275px; 14281 right: -275px;
14282 top: 0px;
14278 } 14283 }
14279 } 14284 }
14280 14285
...@@ -14287,7 +14292,7 @@ p { ...@@ -14287,7 +14292,7 @@ p {
14287 z-index: 999; 14292 z-index: 999;
14288 position: absolute; 14293 position: absolute;
14289 right: 290px; 14294 right: 290px;
14290 top: 20px; 14295 top: 60px;
14291 height: 54px; 14296 height: 54px;
14292 width: 54px; 14297 width: 54px;
14293 background-color: #1A3668; 14298 background-color: #1A3668;
...@@ -14377,6 +14382,20 @@ p { ...@@ -14377,6 +14382,20 @@ p {
14377 color: #000000; 14382 color: #000000;
14378 } 14383 }
14379 14384
14385 .wsmenu-submenu {
14386 display: none;
14387 list-style-type: none;
14388 padding-left: 15px;
14389 }
14390
14391 .current-menu-item .wsmenu-submenu {
14392 display: block;
14393 }
14394
14395 .current-menu-ancestor .wsmenu-submenu {
14396 display: block;
14397 }
14398
14380 .hero-container { 14399 .hero-container {
14381 background-position: top right; 14400 background-position: top right;
14382 background-size: cover; 14401 background-size: cover;
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
...@@ -10,6 +10,7 @@ defined( 'ABSPATH' ) || exit; ...@@ -10,6 +10,7 @@ defined( 'ABSPATH' ) || exit;
10 include 'inc/shortcodes.php'; 10 include 'inc/shortcodes.php';
11 include 'inc/blocks.php'; 11 include 'inc/blocks.php';
12 include 'inc/shortcodes-resources.php'; 12 include 'inc/shortcodes-resources.php';
13 include 'inc/menu.php';
13 14
14 15
15 /** 16 /**
...@@ -106,4 +107,4 @@ if (! is_page('login') && !is_user_logged_in()) { ...@@ -106,4 +107,4 @@ if (! is_page('login') && !is_user_logged_in()) {
106 wp_redirect(home_url()."/login/", 301 ); 107 wp_redirect(home_url()."/login/", 301 );
107 exit; 108 exit;
108 } 109 }
109 }
...\ No newline at end of file ...\ No newline at end of file
110 }
......
...@@ -36,8 +36,8 @@ $container = get_theme_mod( 'understrap_container_type' ); ...@@ -36,8 +36,8 @@ $container = get_theme_mod( 'understrap_container_type' );
36 'menu_class' => 'navbar-nav ms-auto', 36 'menu_class' => 'navbar-nav ms-auto',
37 'fallback_cb' => '', 37 'fallback_cb' => '',
38 'menu_id' => 'main-menu', 38 'menu_id' => 'main-menu',
39 'depth' => 2, 39 'depth' => 0,
40 'walker' => new Understrap_WP_Bootstrap_Navwalker(), 40 'walker' => new WPDocs_Walker_Nav_Menu()
41 ) 41 )
42 ); 42 );
43 ?> 43 ?>
......
1 <?php
2 class WPDocs_Walker_Nav_Menu extends Walker_Nav_Menu {
3
4 /**
5 * Starts the list before the elements are added.
6 *
7 * Adds classes to the unordered list sub-menus.
8 *
9 * @param string $output Passed by reference. Used to append additional content.
10 * @param int $depth Depth of menu item. Used for padding.
11 * @param array $args An array of arguments. @see wp_nav_menu()
12 */
13 function start_lvl( &$output, $depth = 0, $args = array() ) {
14 // Depth-dependent classes.
15 $indent = ( $depth > 0 ? str_repeat( "\t", $depth ) : '' ); // code indent
16 $display_depth = ( $depth + 1); // because it counts the first submenu as 0
17 $classes = array(
18 'wsmenu-submenu',
19 ( $display_depth % 2 ? 'menu-odd' : 'menu-even' ),
20 ( $display_depth >=2 ? 'wsmenu-submenu-sub' : '' ),
21 'menu-depth-' . $display_depth
22 );
23 $class_names = implode( ' ', $classes );
24
25 // Build HTML for output.
26 $output .= "\n" . $indent . '<ul class="' . $class_names . '">' . "\n";
27 }
28
29 /**
30 * Start the element output.
31 *
32 * Adds main/sub-classes to the list items and links.
33 *
34 * @param string $output Passed by reference. Used to append additional content.
35 * @param object $item Menu item data object.
36 * @param int $depth Depth of menu item. Used for padding.
37 * @param array $args An array of arguments. @see wp_nav_menu()
38 * @param int $id Current item ID.
39 */
40 function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
41 global $wp_query;
42 $indent = ( $depth > 0 ? str_repeat( "\t", $depth ) : '' ); // code indent
43
44 // Depth-dependent classes.
45 $depth_classes = array(
46 ( $depth == 0 ? 'menu-item' : 'sub-menu' ),
47 ( $depth >=2 ? 'sub-sub-menu-item' : '' ),
48 ( $depth % 2 ? 'menu-item-odd' : 'menu-item-even' ),
49 'menu-item-depth-' . $depth
50 );
51 $depth_class_names = esc_attr( implode( ' ', $depth_classes ) );
52
53 // Passed classes.
54 $classes = empty( $item->classes ) ? array() : (array) $item->classes;
55 $class_names = esc_attr( implode( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item ) ) );
56
57 // Build HTML.
58 $output .= $indent . '<li id="nav-menu-item-'. $item->ID . '" class="' . $depth_class_names . ' ' . $class_names . '">';
59
60 // Link attributes.
61 $attributes = ! empty( $item->attr_title ) ? ' title="' . esc_attr( $item->attr_title ) .'"' : '';
62 $attributes .= ! empty( $item->target ) ? ' target="' . esc_attr( $item->target ) .'"' : '';
63 $attributes .= ! empty( $item->xfn ) ? ' rel="' . esc_attr( $item->xfn ) .'"' : '';
64 $attributes .= ! empty( $item->url ) ? ' href="' . esc_attr( $item->url ) .'"' : '';
65 $attributes .= ' class="nav-link ' . ( $depth > 0 ? 'sub-menu-link' : 'main-menu-link' ) . '"';
66
67 // Build HTML output and pass through the proper filter.
68 $item_output = sprintf( '%1$s<a%2$s>%3$s%4$s%5$s<span></span></a>%6$s',
69 $args->before,
70 $attributes,
71 $args->link_before,
72 apply_filters( 'the_title', $item->title, $item->ID ),
73 $args->link_after,
74 $args->after
75 );
76 $output .= apply_filters( 'walker_nav_menu_start_el', $item_output, $item, $depth, $args );
77 }
78 }