Current Path : /home/ephorei/www/wp-includes/images/media/q2m9hb/ |
Current File : /home/ephorei/www/wp-includes/images/media/q2m9hb/searchform.php.tar |
home/ephorei/www/wp-content/themes/twentytwentyone/searchform.php 0000644 00000002630 15006116356 0021513 0 ustar 00 <?php /** * The searchform.php template. * * Used any time that get_search_form() is called. * * @link https://developer.wordpress.org/reference/functions/wp_unique_id/ * @link https://developer.wordpress.org/reference/functions/get_search_form/ * * @package WordPress * @subpackage Twenty_Twenty_One * @since Twenty Twenty-One 1.0 */ /* * Generate a unique ID for each form and a string containing an aria-label * if one was passed to get_search_form() in the args array. */ $twentytwentyone_unique_id = wp_unique_id( 'search-form-' ); $twentytwentyone_aria_label = ! empty( $args['aria_label'] ) ? 'aria-label="' . esc_attr( $args['aria_label'] ) . '"' : ''; ?> <form role="search" <?php echo $twentytwentyone_aria_label; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped above. ?> method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>"> <label for="<?php echo esc_attr( $twentytwentyone_unique_id ); ?>"><?php _e( 'Search…', 'twentytwentyone' ); // phpcs:ignore: WordPress.Security.EscapeOutput.UnsafePrintingFunction -- core trusts translations ?></label> <input type="search" id="<?php echo esc_attr( $twentytwentyone_unique_id ); ?>" class="search-field" value="<?php echo get_search_query(); ?>" name="s" /> <input type="submit" class="search-submit" value="<?php echo esc_attr_x( 'Search', 'submit button', 'twentytwentyone' ); ?>" /> </form> home/ephorei/www/wp-content/themes/twentytwenty/searchform.php 0000644 00000003350 15006116616 0021010 0 ustar 00 <?php /** * The searchform.php template. * * Used any time that get_search_form() is called. * * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * * @package WordPress * @subpackage Twenty_Twenty * @since Twenty Twenty 1.0 */ /* * Generate a unique ID for each form and a string containing an aria-label * if one was passed to get_search_form() in the args array. */ $twentytwenty_unique_id = twentytwenty_unique_id( 'search-form-' ); $twentytwenty_aria_label = ! empty( $args['aria_label'] ) ? 'aria-label="' . esc_attr( $args['aria_label'] ) . '"' : ''; // Backward compatibility, in case a child theme template uses a `label` argument. if ( empty( $twentytwenty_aria_label ) && ! empty( $args['label'] ) ) { $twentytwenty_aria_label = 'aria-label="' . esc_attr( $args['label'] ) . '"'; } ?> <form role="search" <?php echo $twentytwenty_aria_label; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped above. ?> method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>"> <label for="<?php echo esc_attr( $twentytwenty_unique_id ); ?>"> <span class="screen-reader-text"> <?php /* translators: Hidden accessibility text. */ _e( 'Search for:', 'twentytwenty' ); // phpcs:ignore: WordPress.Security.EscapeOutput.UnsafePrintingFunction -- core trusts translations ?> </span> <input type="search" id="<?php echo esc_attr( $twentytwenty_unique_id ); ?>" class="search-field" placeholder="<?php echo esc_attr_x( 'Search …', 'placeholder', 'twentytwenty' ); ?>" value="<?php echo get_search_query(); ?>" name="s" /> </label> <input type="submit" class="search-submit" value="<?php echo esc_attr_x( 'Search', 'submit button', 'twentytwenty' ); ?>" /> </form> home/ephorei/www/wp-content/themes/astra/searchform.php 0000644 00000004117 15006123070 0017307 0 ustar 00 <?php /** * Search Form for Astra theme. * * @package Astra * @link https://www.brainstormforce.com * @since Astra 3.3.0 */ /** * Adding argument checks to avoid rendering search-form markup from other places & to easily use get_search_form() function. * * @see https://themes.trac.wordpress.org/ticket/101061 * @since 3.6.1 */ $astra_search_input_placeholder = isset( $args['input_placeholder'] ) ? $args['input_placeholder'] : astra_default_strings( 'string-search-input-placeholder', false ); $astra_search_show_input_submit = isset( $args['show_input_submit'] ) ? $args['show_input_submit'] : true; $astra_search_data_attrs = isset( $args['data_attributes'] ) ? $args['data_attributes'] : ''; $astra_search_input_value = isset( $args['input_value'] ) ? $args['input_value'] : ''; // Check if live search is enabled & accordingly disabling browser search suggestion. $live_search = astra_get_option( 'live-search' ); $autocomplete_attr = $live_search ? 'autocomplete="off"' : ''; ?> <form role="search" method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>"> <label for="search-field"> <span class="screen-reader-text"><?php echo esc_html__( 'Search for:', 'astra' ); ?></span> <input type="search" id="search-field" class="search-field" <?php echo esc_attr( $autocomplete_attr ); ?> <?php echo esc_attr( $astra_search_data_attrs ); ?> placeholder="<?php echo esc_attr( $astra_search_input_placeholder ); ?>" value="<?php echo esc_attr( $astra_search_input_value ); ?>" name="s" tabindex="-1"> <?php if ( class_exists( 'Astra_Icons' ) && Astra_Icons::is_svg_icons() ) { ?> <button class="search-submit ast-search-submit" aria-label="<?php echo esc_attr__( 'Search Submit', 'astra' ); ?>"> <span hidden><?php echo esc_html__( 'Search', 'astra' ); ?></span> <i><?php Astra_Icons::get_icons( 'search', true ); ?></i> </button> <?php } ?> </label> <?php if ( $astra_search_show_input_submit ) { ?> <input type="submit" class="search-submit" value="<?php echo esc_attr__( 'Search', 'astra' ); ?>"> <?php } ?> </form> <?php