This repository has been archived by the owner on Jul 31, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
92 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Files to exclude when creating archive. | ||
|
||
*.git export-ignore | ||
*.github export-ignore | ||
*.gitignore export-ignore | ||
*.gitattributes export-ignore | ||
.jscsrc export-ignore | ||
.jshintignore export-ignore | ||
.travis.yml export-ignore | ||
CONTRIBUTING.md export-ignore | ||
CONTRIBUTORS.md export-ignore | ||
codesniffer.ruleset.xml export-ignore |
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,8 @@ | ||
{ | ||
"preset": "wordpress", | ||
"fileExtensions": [ ".js" ], | ||
"excludeFiles": [ | ||
"assets/js/html5.js", | ||
"assets/js/jquery.scrollTo.js" | ||
] | ||
} |
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 @@ | ||
assets/js/html5.js | ||
assets/js/jquery.scrollTo.js |
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,69 @@ | ||
<?php | ||
/** | ||
* The navigation meny usually placed in the header. | ||
* | ||
* @package Positor | ||
*/ | ||
|
||
?> | ||
|
||
<?php | ||
// Checks if the navbar should be hidden for this post/page. | ||
$hide_navbar = false; | ||
if ( is_single() || is_page() ) { | ||
$hide_navbar = get_post_meta( get_the_ID(), '_positor_hide_navbar', true ); | ||
} | ||
|
||
if ( ! $hide_navbar ) { ?> | ||
|
||
<nav id="site-navigation" class="navbar navbar-toggleable-sm navbar-inverse bg-primary link-no-decoration"> | ||
<div class="hidden-sm-down"> | ||
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" class="pull-xs-left"><?php positor_the_custom_logo(); ?></a> | ||
</div> | ||
|
||
<button class="btn btn-link d-flex align-middle nav-item pull-left text-white text-uppercase hidden-md-up" type="button" data-toggle="collapse" data-target="#navbar-menu" aria-controls="bs4navbar" aria-expanded="false" aria-label="Toggle navigation"> | ||
<i class="fa fa-fw fa-1_2x fa-bars" aria-hidden="true"></i> <span><?php esc_html_e( 'Menu', 'positor' ); ?></span> | ||
</button> | ||
|
||
<button class="btn btn-link nav-item pull-right navbar-toggler-right text-uppercase text-white text-nowrap" type="button" data-toggle="collapse" data-target="#searchform" aria-controls="searchform" aria-expanded="false" aria-label="Toggle navigation"> | ||
<i class="fa fa-fw fa-1_2x fa-search" aria-hidden="true"></i> <?php esc_html_e( 'Search', 'positor' ); ?> | ||
</button> | ||
|
||
|
||
<a id="site-title" class="navbar-brand px-1 hidden-sm-down site-title" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a> | ||
<?php | ||
|
||
wp_nav_menu( array( | ||
'menu' => 'top', | ||
'theme_location' => 'menu-1', | ||
'container' => 'div', | ||
'container_id' => 'navbar-menu', | ||
'container_class' => 'collapse navbar-collapse', | ||
'menu_id' => 'top_menu', | ||
'menu_class' => 'navbar-nav mr-auto', | ||
'depth' => 2, | ||
'walker' => new Bootstrap_Nav_Walker(), | ||
'fallback_cb' => 'Bootstrap_Nav_Walker::fallback', | ||
) | ||
); | ||
|
||
?> | ||
|
||
</nav> | ||
<div id="searchform" class="container-fluid collapse"> | ||
<div class="row bg-gray-800"> | ||
<div class="container p-4 w-100"> | ||
<form role="search" method="get" class="form search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>"> | ||
<div class="input-group"> | ||
<input name="s" type="text" class="form-control" placeholder="<?php esc_html_e( 'What are you searching for?', 'positor' ); ?>"> | ||
<span class="input-group-btn"> | ||
<button type="submit" value="Search" class="btn btn-danger"><i class="fa fa-search" aria-hidden="true"></i> </button> | ||
</span> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
<?php | ||
} // End if(). | ||
?> |
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