component/navbar-pages: add a search form
This commit is contained in:
parent
b60e73cc36
commit
2340d35476
2 changed files with 11 additions and 0 deletions
|
@ -17,6 +17,12 @@
|
|||
}
|
||||
}?>
|
||||
</ul>
|
||||
|
||||
<ul class="navbar-nav my-2 my-lg-0">
|
||||
<li class="form">
|
||||
<?php include(TEMPLATEPATH . '/components/searchform.php'); ?>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
|
5
components/searchform.php
Normal file
5
components/searchform.php
Normal 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>
|
Reference in a new issue