芝麻web文件管理V1.00
编辑当前文件:/home/p/r/i/prismawe/clients/_aspiconfort.fr/httpdocs/wp-includes/blocks/search.php
%s', $input_id, $attributes['label'] ); } $input_markup = sprintf( '
', $input_id, esc_attr( get_search_query() ), esc_attr( $attributes['placeholder'] ) ); if ( ! empty( $attributes['buttonText'] ) ) { $button_markup = sprintf( '
%s
', $attributes['buttonText'] ); } $class = 'wp-block-search'; if ( isset( $attributes['className'] ) ) { $class .= ' ' . $attributes['className']; } return sprintf( '
%s
', esc_attr( $class ), esc_url( home_url( '/' ) ), $label_markup . $input_markup . $button_markup ); } /** * Registers the `core/search` block on the server. */ function register_block_core_search() { register_block_type( 'core/search', array( 'attributes' => array( 'label' => array( 'type' => 'string', 'default' => __( 'Search' ), ), 'placeholder' => array( 'type' => 'string', 'default' => '', ), 'buttonText' => array( 'type' => 'string', 'default' => __( 'Search' ), ), ), 'render_callback' => 'render_block_core_search', ) ); } add_action( 'init', 'register_block_core_search' );