Skip to content

Commit

Permalink
Merge branch 'master' into wp-theme-directory-0_8_0
Browse files Browse the repository at this point in the history
  • Loading branch information
pattonwebz committed Jan 24, 2017
2 parents 6bb5ed5 + aa98512 commit f263212
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 20 deletions.
2 changes: 1 addition & 1 deletion assets/css/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 12 additions & 13 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,26 +32,25 @@ function theme_slug_render_title() {
<header>

<nav class="navbar fixed-top navbar-toggleable-md navbar-light bg-faded">

<button class="navbar-toggler navbar-toggler-right" 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>
<a class="navbar-brand" href="#">Navbar</a>

<div class="collapse navbar-collapse" id="navbarSupportedContent">
<?php
wp_nav_menu( array(
'menu' => 'nav_topbar',
'theme_location' => 'nav_topbar',
'depth' => 0,
'container' => false,
'menu_class' => 'navbar-nav mr-auto',
'walker' => new wp_bootstrap_navwalker()
) );
wp_nav_menu( array(
'menu' => 'nav_topbar',
'theme_location' => 'nav_topbar',
'depth' => 0,
'container' => false,
'menu_class' => 'navbar-nav mr-auto',
'fallback_cb' => 'topbar_nav_fallback',
'walker' => new wp_bootstrap_navwalker()
) );

get_search_form();
?>
<form class="form-inline my-2 my-lg-0">
<input class="form-control mr-sm-2" type="text" placeholder="Search">
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
</form>
</div>
</nav>

Expand Down
2 changes: 1 addition & 1 deletion inc/theme-setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function pwwp_bestreloaded_setup() {

// Fallback function for Topbar Navigation if it isn't set
function topbar_nav_fallback() {
echo '<ul class="nav navbar-nav"><li><a href="' . home_url() . '" title="Home">Home</a></li></ul>';
echo '<ul class="navbar-nav mr-auto"><li class="nav-item"><a href="' . esc_url(home_url()) . '" title="Home" class="nav-link">Home</a></li></ul>';
}


Expand Down
Binary file modified screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions searchform.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
* @since Best Reloaded 0.1
*/
?>
<form role="search" method="get" class="navbar-search" action="<?php echo home_url( '/' ); ?>">
<label class="visually-hidden" for="s">Search:</label>
<input type="text" class="search-query" placeholder="type and hit &#x0022;enter&#x0022; to search" name="s" id="s" />
<input type="submit" class="hidden" id="searchsubmit" value="Search" />
<form role="search" method="get" class="form-inline my2 my-lg-0" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<label class="visually-hidden sr-only" for="s">Search:</label>
<input type="text" class="form-control mr-sm-2" placeholder="<?php echo esc_attr('type and hit "enter" to search'); ?>" name="s" id="s" />
<button type="submit" class="btn btn-outline-success my-2 my-sm-0" id="searchsubmit" value="Search" />Search</button>
</form>
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Theme URI: http://www.pattonwebz.com/best-reloaded-bootstrap-theme
Description: A responsive, mobile-first, WordPress theme that uses Bootstrap.
Author: William Patton
Author URI: http://pattonwebz.com/
Version: 0.8
Version: 0.8.1
Text Domain: best-reloaded
Tags: left-sidebar, right-sidebar, custom-colors, custom-menu, editor-style, featured-images, full-width-template, theme-options, threaded-comments, translation-ready
Expand Down

0 comments on commit f263212

Please sign in to comment.