Skip to content

Commit

Permalink
Search and mega footer
Browse files Browse the repository at this point in the history
-Fixed searching
-Moved mega footer to inc
  • Loading branch information
szk11001 committed Jul 30, 2014
1 parent b1f028c commit 8ddb5af
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</div><!-- .container-->
</div><!-- #content -->
<div id="footers">
<?php get_template_part('mega-footer'); ?>
<?php include_once 'inc/mega-footer.php'; ?>
<footer id="footer" class="site-footer" role="contentinfo">
<div class="container">
<ul id="uc-footer-links" class="clearfix">
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions inc/reg-sidebars.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ function custom_searchform($form){
$search_counter = 0;
}
$search_counter++;

$form = '<div class="searchform"><form action="/" method="get" class="form-inline" role="form"><div class="form-group"><fieldset>';
$form .= '<label for="search-'.$search_counter.'" class="sr-only">Search in '.home_url( '/' ).'></label>';
$form .= '<input type="text" name="s" id="search-'.$search_counter.'" value="'.the_search_query().'" class="form-control" placeholder="Search... " />';
$form = '<div class="searchform"><form action="'.home_url( '/' ).'" method="get" class="form-inline" role="form"><div class="form-group"><fieldset>';
$form .= '<label for="searchfield-'.$search_counter.'" class="sr-only">Search in '.home_url( '/' ).'></label>';
$form .= '<input type="text" name="s" id="searchfield-'.$search_counter.'" value="'.get_search_query().'" class="form-control search" placeholder="Search '.get_bloginfo("name").'... " />';
$form .= '<button type="submit" class="btn btn-default" title="Search"><i class="glyphicon glyphicon-search"></i><span class="sr-only">Search</span></button>';
$form .= '</fieldset></div></form></div>';

Expand Down

0 comments on commit 8ddb5af

Please sign in to comment.