PATH:
home
/
centosnipponia
/
public_html
/
lineup
/
wp-includes
/
blocks
<?php /** * Server-side rendering of the `core/pattern` block. * * @package WordPress */ /** * Registers the `core/pattern` block on the server. * * @return void */ function register_block_core_pattern() { register_block_type_from_metadata( __DIR__ . '/pattern', array( 'render_callback' => 'render_block_core_pattern', ) ); } /** * Renders the `core/pattern` block on the server. * * @param array $attributes Block attributes. * * @return string Returns the output of the pattern. */ function render_block_core_pattern( $attributes ) { if ( empty( $attributes['slug'] ) ) { return ''; } $slug = $attributes['slug']; $registry = WP_Block_Patterns_Registry::get_instance(); if ( ! $registry->is_registered( $slug ) ) { return ''; } $pattern = $registry->get_registered( $slug ); return do_blocks( $pattern['content'] ); } add_action( 'init', 'register_block_core_pattern' );
[+]
..
[+]
archives
[-] archives.php
[edit]
[+]
audio
[+]
block
[-] block.php
[edit]
[+]
button
[+]
buttons
[+]
calendar
[-] calendar.php
[edit]
[+]
categories
[-] categories.php
[edit]
[+]
classic
[+]
code
[+]
column
[+]
columns
[+]
file
[+]
gallery
[+]
group
[+]
heading
[+]
html
[+]
image
[-] index.php
[edit]
[+]
latest-comments
[-] latest-comments.php
[edit]
[+]
latest-posts
[-] latest-posts.php
[edit]
[+]
list
[+]
media-text
[+]
missing
[+]
more
[+]
nextpage
[+]
paragraph
[+]
preformatted
[+]
pullquote
[+]
quote
[+]
rss
[-] rss.php
[edit]
[+]
search
[-] search.php
[edit]
[+]
separator
[+]
shortcode
[-] shortcode.php
[edit]
[+]
social-link
[-] social-link.php
[edit]
[+]
social-links
[+]
spacer
[+]
comments
[+]
table
[+]
tag-cloud
[-] tag-cloud.php
[edit]
[+]
text-columns
[+]
verse
[+]
video
[+]
avatar
[+]
comment-author-name
[+]
comment-content
[+]
comment-date
[+]
comment-edit-link
[+]
comment-reply-link
[+]
comment-template
[+]
comments-pagination
[+]
comments-pagination-next
[+]
comments-pagination-numbers
[+]
comments-pagination-previous
[+]
comments-title
[+]
cover
[+]
embed
[+]
freeform
[+]
home-link
[+]
legacy-widget
[+]
loginout
[+]
navigation
[+]
navigation-link
[+]
navigation-submenu
[+]
page-list
[+]
pattern
[+]
post-author
[+]
post-author-biography
[-] .htaccess.disabled
[edit]
[+]
post-comments-form
[+]
post-content
[+]
post-date
[+]
post-excerpt
[+]
post-featured-image
[+]
post-navigation-link
[+]
post-template
[+]
post-terms
[+]
post-title
[+]
query
[+]
query-no-results
[+]
query-pagination
[+]
query-pagination-next
[+]
query-pagination-numbers
[+]
query-pagination-previous
[+]
query-title
[+]
read-more
[+]
site-logo
[+]
site-tagline
[+]
site-title
[+]
template-part
[+]
term-description
[+]
widget-group
[-] post-content.php
[edit]
[-] navigation-link.php
[edit]
[-] site-tagline.php
[edit]
[-] loginout.php
[edit]
[-] comments-pagination-next.php
[edit]
[-] post-title.php
[edit]
[-] site-title.php
[edit]
[-] comment-date.php
[edit]
[-] comments-pagination.php
[edit]
[-] image.php
[edit]
[-] widget-group.php
[edit]
[-] comments-pagination-numbers.php
[edit]
[-] post-author.php
[edit]
[-] home-link.php
[edit]
[-] post-excerpt.php
[edit]
[-] query.php
[edit]
[-] page-list.php
[edit]
[-] post-featured-image.php
[edit]
[-] post-terms.php
[edit]
[-] post-comments-form.php
[edit]
[-] navigation-submenu.php
[edit]
[-] comment-content.php
[edit]
[-] comments-pagination-previous.php
[edit]
[-] post-navigation-link.php
[edit]
[-] query-no-results.php
[edit]
[-] query-pagination-numbers.php
[edit]
[-] legacy-widget.php
[edit]
[-] comment-edit-link.php
[edit]
[-] gallery.php
[edit]
[-] query-pagination-next.php
[edit]
[-] comment-author-name.php
[edit]
[-] read-more.php
[edit]
[-] cover.php
[edit]
[-] query-pagination-previous.php
[edit]
[-] template-part.php
[edit]
[-] post-author-biography.php
[edit]
[-] term-description.php
[edit]
[-] pattern.php
[edit]
[-] avatar.php
[edit]
[-] file.php
[edit]
[-] comment-template.php
[edit]
[-] navigation.php
[edit]
[-] query-title.php
[edit]
[-] comments-title.php
[edit]
[-] query-pagination.php
[edit]
[-] post-template.php
[edit]
[-] post-date.php
[edit]
[-] comment-reply-link.php
[edit]
[-] site-logo.php
[edit]
[+]
list-item
[-] require-dynamic-blocks.php
[edit]
[-] require-static-blocks.php
[edit]
[-] blocks-json.php
[edit]
[-] comments.php
[edit]