X7ROOT File Manager
Current Path:
/home/bloomi9/realworksadvisors.com/wp-includes/blocks
home
/
bloomi9
/
realworksadvisors.com
/
wp-includes
/
blocks
/
đ
..
đ
archives
đ
archives.php
(2.92 KB)
đ
audio
đ
avatar
đ
avatar.php
(5.61 KB)
đ
block
đ
block.php
(3.24 KB)
đ
blocks-json.php
(189.4 KB)
đ
button
đ
button.php
(1.76 KB)
đ
buttons
đ
calendar
đ
calendar.php
(5.93 KB)
đ
categories
đ
categories.php
(3.92 KB)
đ
code
đ
column
đ
columns
đ
comment-author-name
đ
comment-author-name.php
(2.08 KB)
đ
comment-content
đ
comment-content.php
(2.4 KB)
đ
comment-date
đ
comment-date.php
(1.82 KB)
đ
comment-edit-link
đ
comment-edit-link.php
(1.67 KB)
đ
comment-reply-link
đ
comment-reply-link.php
(2.03 KB)
đ
comment-template
đ
comment-template.php
(4.39 KB)
đ
comments
đ
comments-pagination
đ
comments-pagination-next
đ
comments-pagination-next.php
(1.88 KB)
đ
comments-pagination-numbers
đ
comments-pagination-numbers.php
(1.59 KB)
đ
comments-pagination-previous
đ
comments-pagination-previous.php
(1.75 KB)
đ
comments-pagination.php
(1.17 KB)
đ
comments-title
đ
comments-title.php
(2.71 KB)
đ
comments.php
(6.61 KB)
đ
cover
đ
cover.php
(3.1 KB)
đ
details
đ
embed
đ
file
đ
file.php
(1.75 KB)
đ
footnotes
đ
footnotes.php
(3.68 KB)
đ
freeform
đ
gallery
đ
gallery.php
(6.29 KB)
đ
group
đ
heading
đ
heading.php
(1.27 KB)
đ
home-link
đ
home-link.php
(5.31 KB)
đ
html
đ
image
đ
image.php
(11.74 KB)
đ
index.php
(4.99 KB)
đ
latest-comments
đ
latest-comments.php
(4.92 KB)
đ
latest-posts
đ
latest-posts.php
(8.34 KB)
đ
legacy-widget
đ
legacy-widget.php
(3.9 KB)
đ
list
đ
list-item
đ
list.php
(1.24 KB)
đ
loginout
đ
loginout.php
(1.38 KB)
đ
media-text
đ
media-text.php
(4.28 KB)
đ
missing
đ
more
đ
navigation
đ
navigation-link
đ
navigation-link.php
(13.59 KB)
đ
navigation-submenu
đ
navigation-submenu.php
(9.71 KB)
đ
navigation.php
(48.46 KB)
đ
nextpage
đ
page-list
đ
page-list-item
đ
page-list-item.php
(361 B)
đ
page-list.php
(13.29 KB)
đ
paragraph
đ
pattern
đ
pattern.php
(1.75 KB)
đ
post-author
đ
post-author-biography
đ
post-author-biography.php
(1.49 KB)
đ
post-author-name
đ
post-author-name.php
(1.91 KB)
đ
post-author.php
(2.67 KB)
đ
post-comments-form
đ
post-comments-form.php
(2.74 KB)
đ
post-content
đ
post-content.php
(2.11 KB)
đ
post-date
đ
post-date.php
(3.05 KB)
đ
post-excerpt
đ
post-excerpt.php
(3.37 KB)
đ
post-featured-image
đ
post-featured-image.php
(9.14 KB)
đ
post-navigation-link
đ
post-navigation-link.php
(4.72 KB)
đ
post-template
đ
post-template.php
(5.61 KB)
đ
post-terms
đ
post-terms.php
(3.55 KB)
đ
post-title
đ
post-title.php
(2.09 KB)
đ
preformatted
đ
pullquote
đ
query
đ
query-no-results
đ
query-no-results.php
(1.8 KB)
đ
query-pagination
đ
query-pagination-next
đ
query-pagination-next.php
(3.7 KB)
đ
query-pagination-numbers
đ
query-pagination-numbers.php
(4.66 KB)
đ
query-pagination-previous
đ
query-pagination-previous.php
(3.5 KB)
đ
query-pagination.php
(1.15 KB)
đ
query-title
đ
query-title.php
(2.05 KB)
đ
query-total
đ
query-total.php
(2.48 KB)
đ
query.php
(5.56 KB)
đ
quote
đ
read-more
đ
read-more.php
(1.79 KB)
đ
require-dynamic-blocks.php
(4.07 KB)
đ
require-static-blocks.php
(501 B)
đ
rss
đ
rss.php
(3.98 KB)
đ
search
đ
search.php
(22.48 KB)
đ
separator
đ
shortcode
đ
shortcode.php
(735 B)
đ
site-logo
đ
site-logo.php
(6.19 KB)
đ
site-tagline
đ
site-tagline.php
(1.17 KB)
đ
site-title
đ
site-title.php
(1.81 KB)
đ
social-link
đ
social-link.php
(63.65 KB)
đ
social-links
đ
spacer
đ
table
đ
tag-cloud
đ
tag-cloud.php
(1.55 KB)
đ
template-part
đ
template-part.php
(9.92 KB)
đ
term-description
đ
term-description.php
(1.3 KB)
đ
text-columns
đ
verse
đ
video
đ
widget-group
đ
widget-group.php
(2.38 KB)
Editing: footnotes.php
<?php /** * Server-side rendering of the `core/footnotes` block. * * @package WordPress */ /** * Renders the `core/footnotes` block on the server. * * @since 6.3.0 * * @param array $attributes Block attributes. * @param string $content Block default content. * @param WP_Block $block Block instance. * * @return string Returns the HTML representing the footnotes. */ function render_block_core_footnotes( $attributes, $content, $block ) { // Bail out early if the post ID is not set for some reason. if ( empty( $block->context['postId'] ) ) { return ''; } if ( post_password_required( $block->context['postId'] ) ) { return; } $footnotes = get_post_meta( $block->context['postId'], 'footnotes', true ); if ( ! $footnotes ) { return; } $footnotes = json_decode( $footnotes, true ); if ( ! is_array( $footnotes ) || count( $footnotes ) === 0 ) { return ''; } $wrapper_attributes = get_block_wrapper_attributes(); $footnote_index = 1; $block_content = ''; foreach ( $footnotes as $footnote ) { // Translators: %d: Integer representing the number of return links on the page. $aria_label = sprintf( __( 'Jump to footnote reference %1$d' ), $footnote_index ); $block_content .= sprintf( '<li id="%1$s">%2$s <a href="#%1$s-link" aria-label="%3$s">âŠī¸</a></li>', $footnote['id'], $footnote['content'], $aria_label ); ++$footnote_index; } return sprintf( '<ol %1$s>%2$s</ol>', $wrapper_attributes, $block_content ); } /** * Registers the `core/footnotes` block on the server. * * @since 6.3.0 */ function register_block_core_footnotes() { register_block_type_from_metadata( __DIR__ . '/footnotes', array( 'render_callback' => 'render_block_core_footnotes', ) ); } add_action( 'init', 'register_block_core_footnotes' ); /** * Registers the footnotes meta field required for footnotes to work. * * @since 6.5.0 */ function register_block_core_footnotes_post_meta() { $post_types = get_post_types( array( 'show_in_rest' => true ) ); foreach ( $post_types as $post_type ) { // Only register the meta field if the post type supports the editor, custom fields, and revisions. if ( post_type_supports( $post_type, 'editor' ) && post_type_supports( $post_type, 'custom-fields' ) && post_type_supports( $post_type, 'revisions' ) ) { register_post_meta( $post_type, 'footnotes', array( 'show_in_rest' => true, 'single' => true, 'type' => 'string', 'revisions_enabled' => true, ) ); } } } /* * Most post types are registered at priority 10, so use priority 20 here in * order to catch them. */ add_action( 'init', 'register_block_core_footnotes_post_meta', 20 ); /** * Adds the footnotes field to the revisions display. * * @since 6.3.0 * * @param array $fields The revision fields. * @return array The revision fields. */ function wp_add_footnotes_to_revision( $fields ) { $fields['footnotes'] = __( 'Footnotes' ); return $fields; } add_filter( '_wp_post_revision_fields', 'wp_add_footnotes_to_revision' ); /** * Gets the footnotes field from the revision for the revisions screen. * * @since 6.3.0 * * @param string $revision_field The field value, but $revision->$field * (footnotes) does not exist. * @param string $field The field name, in this case "footnotes". * @param object $revision The revision object to compare against. * @return string The field value. */ function wp_get_footnotes_from_revision( $revision_field, $field, $revision ) { return get_metadata( 'post', $revision->ID, $field, true ); } add_filter( '_wp_post_revision_field_footnotes', 'wp_get_footnotes_from_revision', 10, 3 );
Upload File
Create Folder