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: post-navigation-link.php
<?php /** * Server-side rendering of the `core/post-navigation-link` block. * * @package WordPress */ /** * Renders the `core/post-navigation-link` block on the server. * * @since 5.9.0 * * @param array $attributes Block attributes. * @param string $content Block default content. * * @return string Returns the next or previous post link that is adjacent to the current post. */ function render_block_core_post_navigation_link( $attributes, $content ) { if ( ! is_singular() ) { return ''; } // Get the navigation type to show the proper link. Available options are `next|previous`. $navigation_type = isset( $attributes['type'] ) ? $attributes['type'] : 'next'; // Allow only `next` and `previous` in `$navigation_type`. if ( ! in_array( $navigation_type, array( 'next', 'previous' ), true ) ) { return ''; } $classes = "post-navigation-link-$navigation_type"; if ( isset( $attributes['textAlign'] ) ) { $classes .= " has-text-align-{$attributes['textAlign']}"; } $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $classes, ) ); // Set default values. $format = '%link'; $link = 'next' === $navigation_type ? _x( 'Next', 'label for next post link' ) : _x( 'Previous', 'label for previous post link' ); $label = ''; // Only use hardcoded values here, otherwise we need to add escaping where these values are used. $arrow_map = array( 'none' => '', 'arrow' => array( 'next' => 'โ', 'previous' => 'โ', ), 'chevron' => array( 'next' => 'ยป', 'previous' => 'ยซ', ), ); // If a custom label is provided, make this a link. // `$label` is used to prepend the provided label, if we want to show the page title as well. if ( isset( $attributes['label'] ) && ! empty( $attributes['label'] ) ) { $label = "{$attributes['label']}"; $link = $label; } // If we want to also show the page title, make the page title a link and prepend the label. if ( isset( $attributes['showTitle'] ) && $attributes['showTitle'] ) { /* * If the label link option is not enabled but there is a custom label, * display the custom label as text before the linked title. */ if ( ! $attributes['linkLabel'] ) { if ( $label ) { $format = '<span class="post-navigation-link__label">' . wp_kses_post( $label ) . '</span> %link'; } $link = '%title'; } elseif ( isset( $attributes['linkLabel'] ) && $attributes['linkLabel'] ) { // If the label link option is enabled and there is a custom label, display it before the title. if ( $label ) { $link = '<span class="post-navigation-link__label">' . wp_kses_post( $label ) . '</span> <span class="post-navigation-link__title">%title</span>'; } else { /* * If the label link option is enabled and there is no custom label, * add a colon between the label and the post title. */ $label = 'next' === $navigation_type ? _x( 'Next:', 'label before the title of the next post' ) : _x( 'Previous:', 'label before the title of the previous post' ); $link = sprintf( '<span class="post-navigation-link__label">%1$s</span> <span class="post-navigation-link__title">%2$s</span>', wp_kses_post( $label ), '%title' ); } } } // Display arrows. if ( isset( $attributes['arrow'] ) && 'none' !== $attributes['arrow'] && isset( $arrow_map[ $attributes['arrow'] ] ) ) { $arrow = $arrow_map[ $attributes['arrow'] ][ $navigation_type ]; if ( 'next' === $navigation_type ) { $format = '%link<span class="wp-block-post-navigation-link__arrow-next is-arrow-' . $attributes['arrow'] . '" aria-hidden="true">' . $arrow . '</span>'; } else { $format = '<span class="wp-block-post-navigation-link__arrow-previous is-arrow-' . $attributes['arrow'] . '" aria-hidden="true">' . $arrow . '</span>%link'; } } /* * The dynamic portion of the function name, `$navigation_type`, * Refers to the type of adjacency, 'next' or 'previous'. * * @see https://developer.wordpress.org/reference/functions/get_previous_post_link/ * @see https://developer.wordpress.org/reference/functions/get_next_post_link/ */ $get_link_function = "get_{$navigation_type}_post_link"; if ( ! empty( $attributes['taxonomy'] ) ) { $content = $get_link_function( $format, $link, true, '', $attributes['taxonomy'] ); } else { $content = $get_link_function( $format, $link ); } return sprintf( '<div %1$s>%2$s</div>', $wrapper_attributes, $content ); } /** * Registers the `core/post-navigation-link` block on the server. * * @since 5.9.0 */ function register_block_core_post_navigation_link() { register_block_type_from_metadata( __DIR__ . '/post-navigation-link', array( 'render_callback' => 'render_block_core_post_navigation_link', ) ); } add_action( 'init', 'register_block_core_post_navigation_link' );
Upload File
Create Folder