HEX
Server: Apache/2
System: Linux ns65.hostinglotus.net 4.18.0-553.16.1.el8_10.x86_64 #1 SMP Thu Aug 8 07:11:46 EDT 2024 x86_64
User: newsnnno (1225)
PHP: 8.2.20
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/newsnnno/domains/phetmedia.com/public_html/news/wp-content/themes/bloghash/searchform.php
<?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>