Server IP : 198.54.125.146 / Your IP : 18.188.221.45 [ Web Server : LiteSpeed System : Linux business38.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64 User : engixevu ( 716) PHP Version : 8.1.31 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/engixevu/livetrackers.info/wp-content/themes/bloghash/ |
Upload File : |
<?php /** * The template for displaying search form. * * @package Bloghash * @author Peregrine Themes * @since 1.0.0 */ /** * Do not allow direct script access. */ if ( ! defined( 'ABSPATH' ) ) { exit; } $bloghash_aria_label = ! empty( $args['aria_label'] ) ? 'aria-label="' . esc_attr( $args['aria_label'] ) . '"' : 'aria-label="' . esc_attr__( 'Search for:', 'bloghash' ) . '"'; // Support for custom search post type. $bloghash_post_type = apply_filters( 'bloghash_search_post_type', 'all' ); $bloghash_post_type = 'all' !== $bloghash_post_type ? '<input type="hidden" name="post_type" value="' . esc_attr( $bloghash_post_type ) . '" />' : ''; ?> <form role="search" <?php echo $bloghash_aria_label; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped above. ?> method="get" class="bloghash-search-form search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>"> <div> <input type="search" class="bloghash-input-search search-field" aria-label="<?php esc_attr_e( 'Enter search keywords', 'bloghash' ); ?>" placeholder="<?php esc_attr_e( 'Search', 'bloghash' ); ?>" value="<?php echo get_search_query(); ?>" name="s" /> <?php echo $bloghash_post_type; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> <?php if( !isset( $args['icon'] ) ): ?> <button role="button" type="submit" class="search-submit" aria-label="<?php esc_attr_e( 'Search', 'bloghash' ); ?>"> <?php echo bloghash()->icons->get_svg( 'search', array( 'aria-hidden' => 'true' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> </button> <?php else: bloghash_animated_arrow( 'right', 'submit', true ); ?> <button type="button" class="bloghash-search-close" aria-hidden="true" role="button"> <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M6.852 7.649L.399 1.195 1.445.149l6.454 6.453L14.352.149l1.047 1.046-6.454 6.454 6.454 6.453-1.047 1.047-6.453-6.454-6.454 6.454-1.046-1.047z" fill="currentColor" fill-rule="evenodd"></path></svg> </button> <?php endif; ?> </div> </form>