-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearchform-advanced.php
8 lines (8 loc) · 1.19 KB
/
searchform-advanced.php
1
2
3
4
5
6
7
8
<form role="search" method="get" id="searchform" class="searchform" action="/" _lpchecked="1">
<label><span>Search Term:</span> <input type="text" value="<?php print ( isset( $_REQUEST['s'] ) ? htmlspecialchars( $_REQUEST['s'] ) : '' ); ?>" name="s" id="s" placeholder="Search"></label>
<label><input type="checkbox" name="post_type[]" value="page"<?php print ( isset( $_REQUEST['post_type'] ) ? ( in_array( 'page', $_REQUEST['post_type'] ) ? ' checked="yes"' : '' ) : '' ) ?> /> Pages</label>
<label><input type="checkbox" name="post_type[]" value="post"<?php print ( isset( $_REQUEST['post_type'] ) ? ( in_array( 'post', $_REQUEST['post_type'] ) ? ' checked="yes"' : '' ) : '' ) ?> /> Articles</label>
<label><input type="checkbox" name="post_type[]" value="event"<?php print ( isset( $_REQUEST['post_type'] ) ? ( in_array( 'event', $_REQUEST['post_type'] ) ? ' checked="yes"' : '' ) : '' ) ?> /> Events</label>
<label><input type="checkbox" name="post_type[]" value="job"<?php print ( isset( $_REQUEST['post_type'] ) ? ( in_array( 'job', $_REQUEST['post_type'] ) ? ' checked="yes"' : '' ) : '' ) ?> /> Jobs</label>
<label><input type="submit" id="searchsubmit" value="Search" class="btn-arrow"></label>
</form>