diff --git a/Makefile b/Makefile index 5e8c7ea..6fbe72d 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,7 @@ +docker_deploy: + # Need to fix MaxSessions in remote ssh daemon https://github.com/docker/compose/issues/6463 + # Disable nftables on remote host + DOCKER_HOST="ssh://playground.pi" docker-compose -f wordpress.yml up + docker_up: docker-compose -f wordpress.yml up diff --git a/kit/css/header.css b/kit/css/header.css index 54a93e0..a628872 100644 --- a/kit/css/header.css +++ b/kit/css/header.css @@ -186,6 +186,9 @@ header:not(.sticky-header) .header-button-container { } @media (max-width: 960px) { + body.logged-in header { + top: 45px; + } header { position: fixed; top: 0; diff --git a/kit/css/menu.css b/kit/css/menu.css index b92c164..f7b2bbd 100644 --- a/kit/css/menu.css +++ b/kit/css/menu.css @@ -273,7 +273,7 @@ nav > ul > li .nav-first-level-opener::after { width: 0.88889rem; height: 0.88889rem; font-size: 1.44444rem; - background-image: url(img/arrow-right-grey.svg); + background-image: url(../img/arrow-right-grey.svg); background-repeat: no-repeat; background-position: center; background-size: contain; diff --git a/kit/functions.php b/kit/functions.php index 17bbb79..ecc784e 100644 --- a/kit/functions.php +++ b/kit/functions.php @@ -14,26 +14,10 @@ function kit_setup() { add_action( 'after_setup_theme', 'kit_setup' ); -// - -// - class kit_custom_main_menu extends Walker_Nav_Menu { function start_lvl( &$output, $depth = 0, $args = array() ) { + // depth dependent classes $indent = ( $depth > 0 ? str_repeat( "\t", $depth ) : '' ); // code indent $display_depth = ( $depth + 1); // because it counts the first submenu as 0 @@ -45,9 +29,15 @@ class kit_custom_main_menu extends Walker_Nav_Menu { // build html if ($display_depth == 1) { - $output .= "\n" . $indent . '' . "\n"; } else { $output .= "\n" . $indent . '' . "\n"; } @@ -76,25 +71,36 @@ class kit_custom_main_menu extends Walker_Nav_Menu { $description = $item->description; $permalink = $item->url; - $output .= "
  • "; + $theme_template_path = get_template_directory_uri(); - //Add SPAN if no Permalink - if( $permalink && $permalink != '#' ) { - $output .= ''; + if ($depth == 1) { + $output .= ' + + + + '; + $output .= $title; + $output .= ' + + '; } else { - $output .= ''; - } - - $output .= $title; - - if( $description != '' && $depth == 0 ) { - $output .= '' . $description . ''; - } - - if( $permalink && $permalink != '#' ) { + $output .= "
  • "; + $output .= ''; + $output .= $title; $output .= ''; + } + } + + function end_el(&$output, $item, $depth = 0, $args=array(), $id = 0) { + $object = $item->object; + $type = $item->type; + $title = $item->title; + $description = $item->description; + $permalink = $item->url; + + if ($depth == 1) { } else { - $output .= ''; + $output .= '
  • '; } } diff --git a/kit/img/burger-menu.svg b/kit/img/burger-menu.svg new file mode 100644 index 0000000..bc103b5 --- /dev/null +++ b/kit/img/burger-menu.svg @@ -0,0 +1 @@ +burger-menu \ No newline at end of file diff --git a/kit/template-parts/site-nav.php b/kit/template-parts/site-nav.php index dd00796..9efe1ea 100644 --- a/kit/template-parts/site-nav.php +++ b/kit/template-parts/site-nav.php @@ -23,9 +23,6 @@
    - - -