component/navbar-pages: add a search form

This commit is contained in:
Kazhnuz 2018-10-24 18:09:31 +02:00
parent b60e73cc36
commit 2340d35476
2 changed files with 11 additions and 0 deletions

View file

@ -17,6 +17,12 @@
} }
}?> }?>
</ul> </ul>
<ul class="navbar-nav my-2 my-lg-0">
<li class="form">
<?php include(TEMPLATEPATH . '/components/searchform.php'); ?>
</li>
</ul>
</div> </div>
</div> </div>
</nav> </nav>

View file

@ -0,0 +1,5 @@
<form method="get" id="searchform" action="<?php bloginfo('home'); ?>/">
<div>
<input class="form-control" type="search" placeholder="Chercher" aria-label="Chercher" value="<?php the_search_query(); ?>" name="s" id="s" />
</div>
</form>