-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update nav to use wordpress bootstrap walker, prettify header a little
- Loading branch information
Showing
31 changed files
with
3,400 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,35 @@ | ||
<div id="header_container"> | ||
<div id="header_content"> | ||
<?php if(function_exists('the_custom_logo')): ?> | ||
<div id="header_logo"> | ||
<span class="helper"></span> | ||
<?php the_custom_logo() ?> | ||
</div> | ||
<?php endif ?> | ||
<div id="header_menu"> | ||
<?php wp_nav_menu( | ||
array( | ||
'theme_location' => 'header-menu', | ||
'container_class' => 'header-menu' | ||
) | ||
);?> | ||
<header id="home" class="header" itemtype="http://schema.org/WPHeader" style="min-height: 76px;"> | ||
<div id="main-nav" class="navbar" style="min-height: 76px;"> | ||
<div class="container"> | ||
<div class="navbar-header responsive-logo"> | ||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
<div class="navbar-brand"> | ||
<a href="/"> | ||
<?php | ||
$custom_logo_id = get_theme_mod( 'custom_logo' ); | ||
$image = wp_get_attachment_image_src( $custom_logo_id , 'full' ); | ||
?> | ||
<img src="<?php echo $image[0]; ?>" alt="<?php echo get_bloginfo( 'name', 'raw' )?>""> | ||
</a> | ||
</div> <!-- /.navbar-brand --> | ||
</div> <!-- /.navbar-header --> | ||
<nav class="navbar navbar-expand-lg navbar-light" id="header_content"> | ||
<div class="collapse navbar-collapse" id="navbar-content"> | ||
<?php | ||
wp_nav_menu( array( | ||
'theme_location' => 'header-menu', | ||
'depth' => 2, // 1 = no dropdowns, 2 = with dropdowns. | ||
'container' => false, | ||
'container_id' => 'bs-example-navbar-collapse-1', | ||
'menu_class' => 'navbar-nav mr-auto', | ||
'fallback_cb' => 'WP_Bootstrap_Navwalker::fallback', | ||
'walker' => new WP_Bootstrap_Navwalker(), | ||
) ); | ||
?> | ||
</div> | ||
</nav> | ||
</div> | ||
</div> | ||
</div> | ||
</header> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
--- | ||
engines: | ||
csslint: | ||
enabled: true | ||
duplication: | ||
enabled: true | ||
config: | ||
languages: | ||
- javascript | ||
- php | ||
fixme: | ||
enabled: true | ||
phpcodesniffer: | ||
enabled: true | ||
config: | ||
standard: "WordPress-Core,WordPress-Docs,WordPress-Extra" | ||
phpmd: | ||
enabled: true | ||
checks: | ||
Controversial/CamelCaseParameterName: | ||
enabled: false | ||
Controversial/CamelCaseMethodName: | ||
enabled: false | ||
Controversial/CamelCasePropertyName: | ||
enabled: false | ||
Controversial/CamelCaseVariableName: | ||
enabled: false | ||
CleanCode/ElseExpression: | ||
enabled: false | ||
eslint: | ||
enabled: true | ||
scss-lint: | ||
enabled: true | ||
markdownlint: | ||
enabled: true | ||
ratings: | ||
paths: | ||
- "**.css" | ||
- "**.scss" | ||
- "**.inc" | ||
- "**.js" | ||
- "**.jsx" | ||
- "**.module" | ||
- "**.php" | ||
- "**.md" | ||
- "**.py" | ||
- "**.rb" | ||
exclude_paths: | ||
- "**.png" | ||
- "**.jpg" | ||
- "**.gif" | ||
- "gulpfile.js" | ||
- "composer.lock" | ||
- "phpcs.xml" | ||
- "**.json" | ||
- "**.pot" | ||
- "**.txt" | ||
- "**.min.js" | ||
- "**.min.css" | ||
- "**.dist" | ||
- "**.sh" | ||
- "tests/*" | ||
- "dummy-data/*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--exclude-exts=.min.css | ||
--ignore=adjoining-classes,box-model,ids,order-alphabetical,unqualified-attributes | ||
--exclude-exts=.min.css | ||
--ignore=adjoining-classes,box-model,ids,order-alphabetical,unqualified-attributes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# This file is for unifying the coding style for different editors and IDEs | ||
# editorconfig.org | ||
|
||
# WordPress Coding Standards | ||
# https://make.wordpress.org/core/handbook/coding-standards/ | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
indent_style = tab | ||
|
||
[{.jshintrc,*.json,*.yml}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[{*.txt,wp-config-sample.php}] | ||
end_of_line = crlf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
**/*{.,-}min.js | ||
**/*{.,-}min.js |
Oops, something went wrong.