@@ -8,19 +8,19 @@ |
||
8 | 8 | // This is to help the customizer function better |
9 | 9 | $style = ''; |
10 | 10 | |
11 | -if ( is_customize_preview() ) { |
|
12 | - $search_form = get_theme_mod( 'lsx_header_search', 0 ); |
|
11 | +if (is_customize_preview()) { |
|
12 | + $search_form = get_theme_mod('lsx_header_search', 0); |
|
13 | 13 | |
14 | - if ( ! $search_form ) { |
|
14 | + if ( ! $search_form) { |
|
15 | 15 | $style = 'display:none;'; |
16 | 16 | } |
17 | 17 | } |
18 | 18 | ?> |
19 | 19 | |
20 | -<form role="search" method="get" style="<?php echo esc_attr( $style ); ?>" class="search-form form-inline" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>"> |
|
20 | +<form role="search" method="get" style="<?php echo esc_attr($style); ?>" class="search-form form-inline" id="searchform" action="<?php echo esc_url(home_url('/')); ?>"> |
|
21 | 21 | <div class="input-group"> |
22 | - <input type="search" value="<?php if (is_search()) { echo get_search_query(); } ?>" name="s" class="search-field form-control" placeholder="<?php esc_attr_e( 'Search', 'lsx' ); ?> <?php echo esc_attr( get_bloginfo( 'name' ) ); ?>"> |
|
23 | - <label class="hide"><?php esc_attr_e( 'Search for:', 'lsx' ); ?></label> |
|
22 | + <input type="search" value="<?php if (is_search()) { echo get_search_query(); } ?>" name="s" class="search-field form-control" placeholder="<?php esc_attr_e('Search', 'lsx'); ?> <?php echo esc_attr(get_bloginfo('name')); ?>"> |
|
23 | + <label class="hide"><?php esc_attr_e('Search for:', 'lsx'); ?></label> |
|
24 | 24 | <span class="input-group-btn"> |
25 | 25 | <button type="submit" class="search-submit btn btn-default"><span class="fa fa-search"></span></button> |
26 | 26 | </span> |