X7ROOT File Manager
Current Path:
/home/bloomi9/realworks1.com/landsale-ebook/wp-includes/blocks
home
/
bloomi9
/
realworks1.com
/
landsale-ebook
/
wp-includes
/
blocks
/
📁
..
📄
.htaccess
(206 B)
📁
archives
📄
archives.php
(2.81 KB)
📁
audio
📁
block
📄
block.php
(937 B)
📁
button
📁
buttons
📁
calendar
📄
calendar.php
(1.71 KB)
📁
categories
📄
categories.php
(2.52 KB)
📁
classic
📁
code
📁
column
📁
columns
📁
file
📁
gallery
📁
group
📁
heading
📁
html
📁
image
📄
index.php
(1.48 KB)
📁
latest-comments
📄
latest-comments.php
(4.98 KB)
📁
latest-posts
📄
latest-posts.php
(6.55 KB)
📁
list
📁
media-text
📁
missing
📁
more
📁
nextpage
📁
paragraph
📁
preformatted
📁
pullquote
📁
quote
📁
rss
📄
rss.php
(3.24 KB)
📁
search
📄
search.php
(2.21 KB)
📁
separator
📁
shortcode
📄
shortcode.php
(697 B)
📁
social-link
📄
social-link.php
(53.94 KB)
📁
social-links
📁
spacer
📁
subhead
📁
table
📁
tag-cloud
📄
tag-cloud.php
(1.39 KB)
📁
text-columns
📁
verse
📁
video
Editing: search.php
<?php /** * Server-side rendering of the `core/search` block. * * @package WordPress */ /** * Dynamically renders the `core/search` block. * * @param array $attributes The block attributes. * * @return string The search block markup. */ function render_block_core_search( $attributes ) { static $instance_id = 0; // Older versions of the Search block defaulted the label and buttonText // attributes to `__( 'Search' )` meaning that many posts contain `<!-- // wp:search /-->`. Support these by defaulting an undefined label and // buttonText to `__( 'Search' )`. $attributes = wp_parse_args( $attributes, array( 'label' => __( 'Search' ), 'buttonText' => __( 'Search' ), ) ); $input_id = 'wp-block-search__input-' . ++$instance_id; $label_markup = ''; $button_markup = ''; if ( ! empty( $attributes['label'] ) ) { $label_markup = sprintf( '<label for="%s" class="wp-block-search__label">%s</label>', $input_id, $attributes['label'] ); } else { $label_markup = sprintf( '<label for="%s" class="wp-block-search__label screen-reader-text">%s</label>', $input_id, __( 'Search' ) ); } $input_markup = sprintf( '<input type="search" id="%s" class="wp-block-search__input" name="s" value="%s" placeholder="%s" required />', $input_id, esc_attr( get_search_query() ), esc_attr( $attributes['placeholder'] ) ); if ( ! empty( $attributes['buttonText'] ) ) { $button_markup = sprintf( '<button type="submit" class="wp-block-search__button">%s</button>', $attributes['buttonText'] ); } $class = 'wp-block-search'; if ( isset( $attributes['className'] ) ) { $class .= ' ' . $attributes['className']; } if ( isset( $attributes['align'] ) ) { $class .= ' align' . $attributes['align']; } return sprintf( '<form class="%s" role="search" method="get" action="%s">%s</form>', 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_from_metadata( __DIR__ . '/search', array( 'render_callback' => 'render_block_core_search', ) ); } add_action( 'init', 'register_block_core_search' );
Upload File
Create Folder