✏️ 正在编辑: sidebar-search.php
路径:
/home/h359620/public_html/wp-content/themes/datis/template-parts/sidebar/sidebar-search.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php if (! defined('ABSPATH')) { exit; } $args = wp_parse_args($args ?? [], [ 'placeholder' => esc_html__('Search in items…', 'datis'), 'field_name' => 'archive_search', 'wrap_class' => 'datis-sidebar-widget sidebar-search-archive', ]); $current_value = isset($_GET[$args['field_name']]) ? sanitize_text_field(wp_unslash($_GET[$args['field_name']])) : ''; ?> <div class="<?php echo esc_attr($args['wrap_class']); ?>"> <form method="get" class="datis-search-archive-form" action=""> <label class="datis-search-archive-label"> <span class="screen-reader-text"> <?php esc_html_e('Search in archive', 'datis'); ?> </span> <input type="text" class="datis-search-archive-field" name="<?php echo esc_attr($args['field_name']); ?>" placeholder="<?php echo esc_attr($args['placeholder']); ?>" value="<?php echo esc_attr($current_value); ?>"> </label> <button type="submit" class="datis-search-archive-submit"> <svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M19.9942 19.227C19.9367 19.3138 19.8328 19.4176 19.6251 19.6254C19.4174 19.8331 19.3135 19.9369 19.2267 19.9944C18.7184 20.3311 18.0306 20.1576 17.7428 19.62C17.6936 19.5283 17.6515 19.3876 17.5671 19.1062C17.475 18.7987 17.4289 18.6449 17.42 18.5367C17.3676 17.8997 17.8994 17.3678 18.5365 17.4203C18.6447 17.4292 18.7984 17.4753 19.1059 17.5674C19.3873 17.6517 19.528 17.6939 19.6198 17.743C20.1573 18.0308 20.3308 18.7186 19.9942 19.227Z" stroke="#090625" stroke-opacity="0.5" stroke-width="1.75" stroke-linecap="round" /> <path d="M6.18766 2.99827C7.46854 2.25732 8.95566 1.83325 10.5418 1.83325C15.3513 1.83325 19.2502 5.73211 19.2502 10.5416C19.2502 15.3511 15.3513 19.2499 10.5418 19.2499C5.73235 19.2499 1.8335 15.3511 1.8335 10.5416C1.8335 8.95542 2.25757 7.4683 2.99852 6.18742" stroke="#090625" stroke-opacity="0.5" stroke-width="1.75" stroke-linecap="round" /> </svg> </button> <?php ?> </form> </div>
💾 保存文件
← 返回文件管理器