PATH:
home
/
centosnipponia
/
public_html
/
BAK_doohannl
/
wp-includes
/
blocks
<?php /** * Server-side rendering of the `core/term-description` block. * * @package WordPress */ /** * Renders the `core/term-description` block on the server. * * @param array $attributes Block attributes. * * @return string Returns the description of the current taxonomy term, if available */ function render_block_core_term_description( $attributes ) { $term_description = ''; if ( is_category() || is_tag() || is_tax() ) { $term_description = term_description(); } if ( empty( $term_description ) ) { return ''; } $extra_attributes = ( isset( $attributes['textAlign'] ) ) ? array( 'class' => 'has-text-align-' . $attributes['textAlign'] ) : array(); $wrapper_attributes = get_block_wrapper_attributes( $extra_attributes ); return '<div ' . $wrapper_attributes . '>' . $term_description . '</div>'; } /** * Registers the `core/term-description` block on the server. */ function register_block_core_term_description() { register_block_type_from_metadata( __DIR__ . '/term-description', array( 'render_callback' => 'render_block_core_term_description', ) ); } add_action( 'init', 'register_block_core_term_description' );
[+]
..
[-] social-link.php
[edit]
[+]
quote
[-] query-pagination-next.php
[edit]
[+]
preformatted
[-] error_log
[edit]
[-] archives.php
[edit]
[+]
social-links
[-] rss.php
[edit]
[+]
code
[+]
paragraph
[-] latest-posts.php
[edit]
[+]
list
[-] loginout.php
[edit]
[+]
tag-cloud
[+]
post-content
[-] index.php
[edit]
[+]
loginout
[+]
buttons
[+]
archives
[+]
query-pagination-numbers
[-] post-terms.php
[edit]
[+]
image
[+]
site-title
[-] file.php
[edit]
[-] post-template.php
[edit]
[+]
site-logo
[+]
query-pagination
[+]
post-excerpt
[+]
audio
[+]
social-link
[-] post-date.php
[edit]
[+]
latest-posts
[+]
query-pagination-previous
[+]
media-text
[+]
categories
[-] site-logo.php
[edit]
[+]
more
[-] categories.php
[edit]
[-] legacy-widget.php
[edit]
[+]
spacer
[+]
missing
[-] calendar.php
[edit]
[+]
group
[+]
separator
[-] query.php
[edit]
[+]
column
[+]
page-list
[-] shortcode.php
[edit]
[-] post-content.php
[edit]
[-] latest-comments.php
[edit]
[+]
text-columns
[+]
legacy-widget
[+]
verse
[-] query-pagination.php
[edit]
[+]
rss
[+]
shortcode
[+]
file
[+]
cover
[+]
html
[-] post-featured-image.php
[edit]
[-] query-title.php
[edit]
[+]
button
[+]
latest-comments
[+]
classic
[-] site-title.php
[edit]
[+]
heading
[-] query-pagination-previous.php
[edit]
[-] site-tagline.php
[edit]
[+]
block
[+]
gallery
[+]
post-title
[+]
search
[+]
embed
[+]
post-featured-image
[-] query-pagination-numbers.php
[edit]
[+]
query-pagination-next
[-] post-title.php
[edit]
[+]
post-template
[+]
nextpage
[+]
query-title
[+]
post-date
[+]
columns
[+]
freeform
[+]
pullquote
[-] block.php
[edit]
[-] tag-cloud.php
[edit]
[+]
table
[+]
video
[-] search.php
[edit]
[+]
post-terms
[+]
calendar
[-] post-excerpt.php
[edit]
[+]
query
[-] page-list.php
[edit]
[+]
site-tagline
[+]
navigation
[+]
navigation-link
[+]
navigation-submenu
[+]
pattern
[+]
post-author
[-] .htaccess.disabled
[edit]
[+]
post-navigation-link
[+]
template-part
[+]
term-description
[+]
widget-group
[-] navigation-link.php
[edit]
[-] image.php
[edit]
[-] widget-group.php
[edit]
[-] post-author.php
[edit]
[-] navigation-submenu.php
[edit]
[-] post-navigation-link.php
[edit]
[-] gallery.php
[edit]
[-] template-part.php
[edit]
[-] term-description.php
[edit]
[-] pattern.php
[edit]
[-] navigation.php
[edit]
[+]
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
[+]
home-link
[+]
post-author-biography
[+]
post-comments-form
[+]
query-no-results
[+]
read-more
[-] comments-pagination-next.php
[edit]
[-] comment-date.php
[edit]
[-] comments-pagination.php
[edit]
[-] comments-pagination-numbers.php
[edit]
[-] home-link.php
[edit]
[-] cover.php
[edit]
[-] post-comments-form.php
[edit]
[-] comment-content.php
[edit]
[-] comments-pagination-previous.php
[edit]
[-] query-no-results.php
[edit]
[-] comment-edit-link.php
[edit]
[-] comment-author-name.php
[edit]
[-] read-more.php
[edit]
[-] post-author-biography.php
[edit]
[-] avatar.php
[edit]
[-] comment-template.php
[edit]
[-] comments-title.php
[edit]
[-] comment-reply-link.php
[edit]
[+]
comments
[+]
list-item
[-] require-dynamic-blocks.php
[edit]
[-] require-static-blocks.php
[edit]
[-] blocks-json.php
[edit]
[-] comments.php
[edit]