<?php /** * Search form * * @package Neve. */ $form_classes = [ 'search-form' ]; $placeholder = array_key_exists( 'placeholder', $args ) ? $args['placeholder'] : __( 'Search for...', 'neve' ); if ( array_key_exists( 'additional_form_classes', $args ) && is_array( $args['additional_form_classes'] ) ) { $form_classes = array_merge( $form_classes, $args['additional_form_classes'] ); } $value = array_key_exists( 'value', $args ) ? $args['value'] : ''; $placeholder = apply_filters( 'nv_search_placeholder', $placeholder ); $aria_label = __( 'Search', 'neve' ); $home_url = home_url( '/' ); if ( function_exists( 'PLL' ) ) { $pll_data = PLL(); if ( property_exists( $pll_data, 'links' ) && method_exists( $pll_data->links, 'get_home_url' ) ) { $home_url = $pll_data->links->get_home_url( null, true ); } } $has_text_button = isset( $args['button_text'] ); $context = array_key_exists( 'context', $args ) ? $args['context'] : false; ?> <form role="search" method="get" class="<?php echo esc_attr( implode( ' ', $form_classes ) ); ?>" action="<?php echo esc_url( $home_url ); ?>"> <label> <span class="screen-reader-text"><?php echo esc_html__( 'Search for...', 'neve' ); ?></span> </label> <input type="search" class="search-field" aria-label="<?php echo esc_attr__( 'Search', 'neve' ); ?>" placeholder="<?php echo esc_attr( $placeholder ); ?>" value="<?php echo esc_attr( $value ); ?>" name="s"/> <button type="submit" class="search-submit<?php echo $has_text_button ? ' nv-text-btn' : ''; ?>" aria-label="<?php echo esc_attr( $aria_label ); ?>"> <?php if ( $has_text_button ) { ?> <?php echo esc_html( $args['button_text'] ); ?> <?php } else { ?> <span class="nv-search-icon-wrap"> <?php neve_search_icon( false, true, 15, false, $context ); ?> </span> <?php } ?> </button> <?php if ( array_key_exists( 'post_type', $args ) ) { echo '<input type="hidden" name="post_type" value="' . esc_attr( $args['post_type'] ) . '"/>'; } ?> </form>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
assets | Folder | 0755 |
|
|
docs | Folder | 0755 |
|
|
globals | Folder | 0755 |
|
|
header-footer-grid | Folder | 0755 |
|
|
inc | Folder | 0755 |
|
|
languages | Folder | 0755 |
|
|
page-templates | Folder | 0755 |
|
|
template-parts | Folder | 0755 |
|
|
vendor | Folder | 0755 |
|
|
views | Folder | 0755 |
|
|
woocommerce | Folder | 0755 |
|
|
404.php | File | 108 B | 0644 |
|
500.php | File | 178 B | 0644 |
|
CHANGELOG.md | File | 58.28 KB | 0644 |
|
LICENSE.txt | File | 17.67 KB | 0644 |
|
archive-download.php | File | 1.06 KB | 0644 |
|
autoloader.php | File | 4.05 KB | 0644 |
|
comments.php | File | 295 B | 0644 |
|
footer-pwa.php | File | 147 B | 0644 |
|
footer.php | File | 1.21 KB | 0644 |
|
functions.php | File | 5.03 KB | 0644 |
|
header-pwa.php | File | 680 B | 0644 |
|
header.php | File | 2.63 KB | 0644 |
|
index.php | File | 4.09 KB | 0644 |
|
offline.php | File | 178 B | 0644 |
|
page.php | File | 1.59 KB | 0644 |
|
readme.md | File | 41.69 KB | 0644 |
|
readme.txt | File | 41.6 KB | 0644 |
|
screenshot-mobile.png | File | 17.77 KB | 0644 |
|
screenshot.png | File | 610.36 KB | 0644 |
|
search.php | File | 1.18 KB | 0644 |
|
searchform.php | File | 1.97 KB | 0644 |
|
sidebar-shop.php | File | 325 B | 0644 |
|
sidebar.php | File | 306 B | 0644 |
|
single-download.php | File | 1.21 KB | 0644 |
|
single.php | File | 1.17 KB | 0644 |
|
start.php | File | 2.38 KB | 0644 |
|
style-main-new-rtl.css | File | 45.37 KB | 0644 |
|
style-main-new-rtl.min.css | File | 38.12 KB | 0644 |
|
style-main-new.css | File | 45.4 KB | 0644 |
|
style-main-new.min.css | File | 38.1 KB | 0644 |
|
style.css | File | 1.63 KB | 0644 |
|
taxonomy-download_category.php | File | 1.07 KB | 0644 |
|
taxonomy-download_tag.php | File | 1.07 KB | 0644 |
|
toolset-config.json | File | 4.33 KB | 0644 |
|
wpml-config.xml | File | 1.08 KB | 0644 |
|