File tree 1 file changed +6
-14
lines changed
1 file changed +6
-14
lines changed Original file line number Diff line number Diff line change 1
1
<form role="search" method="get" class="searchform" action="<?php echo esc_url ( home_url ( '/ ' ) ); ?> ">
2
2
<div class="input-container">
3
- <input type="search" class="search-input"
4
- value="<?php echo esc_attr ( get_search_query () ); ?> "
5
- name="s"
6
- placeholder="<?php esc_attr_e ( 'Search entire website... ' , 'hovercraft ' ); ?> " />
7
-
3
+ <input type="search" class="search-input" value="<?php echo esc_attr ( get_search_query () ); ?> " name="s" placeholder="<?php esc_attr_e ( 'Search entire website... ' , 'hovercraft ' ); ?> " />
4
+
8
5
<button type="submit" class="search-submit" name="submit">
9
6
<?php
10
7
$ hovercraft_layout_icons = get_theme_mod ( 'hovercraft_layout_icons ' , 'material_icons_classic ' );
11
8
12
- if ( $ hovercraft_layout_icons === 'material_icons_classic ' ) {
13
- ?>
9
+ if ( $ hovercraft_layout_icons === 'material_icons_classic ' ) { ?>
14
10
<i class="material-icons search">search</i>
15
- <?php
16
- } elseif ( $ hovercraft_layout_icons === 'font_awesome_version_6 ' ) {
17
- ?>
11
+ <?php } elseif ( $ hovercraft_layout_icons === 'font_awesome_version_6 ' ) { ?>
18
12
<i class="fas fa-search"></i>
19
- <?php
20
- }
21
- ?>
13
+ <?php } ?>
22
14
</button>
23
15
</div><!-- input-container -->
24
16
</form><!-- searchform -->
25
17
26
- <!-- Ref: https://codepen.io/jessuppi/pen/pomVZrr -->
27
18
<!-- Ref: ChatGPT -->
19
+ <!-- Ref: https://codepen.io/jessuppi/pen/pomVZrr -->
You can’t perform that action at this time.
0 commit comments