Priority File Manager

πŸ“ public_html
Base Directory:
/home/ecedu/public_html/wp-includes/blocks
NameTypeSizeActions
πŸ“ .. Folder -
πŸ“ archives Folder -
πŸ“„ archives.php File 2994
Edit Download
πŸ“ audio Folder -
πŸ“ avatar Folder -
πŸ“„ avatar.php File 5745
Edit Download
πŸ“ block Folder -
πŸ“„ block.php File 3314
Edit Download
πŸ“„ blocks-json.php File 193945
Edit Download
πŸ“ button Folder -
πŸ“„ button.php File 1805
Edit Download
πŸ“ buttons Folder -
πŸ“ calendar Folder -
πŸ“„ calendar.php File 6075
Edit Download
πŸ“ categories Folder -
πŸ“„ categories.php File 4010
Edit Download
πŸ“ code Folder -
πŸ“ column Folder -
πŸ“ columns Folder -
πŸ“ comment-author-name Folder -
πŸ“„ comment-author-name.php File 2133
Edit Download
πŸ“ comment-content Folder -
πŸ“„ comment-content.php File 2459
Edit Download
πŸ“ comment-date Folder -
πŸ“„ comment-date.php File 1863
Edit Download
πŸ“ comment-edit-link Folder -
πŸ“„ comment-edit-link.php File 1713
Edit Download
πŸ“ comment-reply-link Folder -
πŸ“„ comment-reply-link.php File 2075
Edit Download
πŸ“ comment-template Folder -
πŸ“„ comment-template.php File 4494
Edit Download
πŸ“ comments Folder -
πŸ“ comments-pagination Folder -
πŸ“ comments-pagination-next Folder -
πŸ“„ comments-pagination-next.php File 1924
Edit Download
πŸ“ comments-pagination-numbers Folder -
πŸ“„ comments-pagination-numbers.php File 1632
Edit Download
πŸ“ comments-pagination-previous Folder -
πŸ“„ comments-pagination-previous.php File 1790
Edit Download
πŸ“„ comments-pagination.php File 1199
Edit Download
πŸ“ comments-title Folder -
πŸ“„ comments-title.php File 2772
Edit Download
πŸ“„ comments.php File 6767
Edit Download
πŸ“ cover Folder -
πŸ“„ cover.php File 3175
Edit Download
πŸ“ details Folder -
πŸ“ embed Folder -
πŸ“ file Folder -
πŸ“„ file.php File 1793
Edit Download
πŸ“ footnotes Folder -
πŸ“„ footnotes.php File 3771
Edit Download
πŸ“ freeform Folder -
πŸ“ gallery Folder -
πŸ“„ gallery.php File 6438
Edit Download
πŸ“ group Folder -
πŸ“ heading Folder -
πŸ“„ heading.php File 1301
Edit Download
πŸ“ home-link Folder -
πŸ“„ home-link.php File 5438
Edit Download
πŸ“ html Folder -
πŸ“ image Folder -
πŸ“„ image.php File 12023
Edit Download
πŸ“„ index.php File 5111
Edit Download
πŸ“ latest-comments Folder -
πŸ“„ latest-comments.php File 5040
Edit Download
πŸ“ latest-posts Folder -
πŸ“„ latest-posts.php File 8542
Edit Download
πŸ“ legacy-widget Folder -
πŸ“„ legacy-widget.php File 3997
Edit Download
πŸ“ list Folder -
πŸ“ list-item Folder -
πŸ“„ list.php File 1273
Edit Download
πŸ“ loginout Folder -
πŸ“„ loginout.php File 1418
Edit Download
πŸ“ media-text Folder -
πŸ“„ media-text.php File 4383
Edit Download
πŸ“ missing Folder -
πŸ“ more Folder -
πŸ“ navigation Folder -
πŸ“ navigation-link Folder -
πŸ“„ navigation-link.php File 13913
Edit Download
πŸ“ navigation-submenu Folder -
πŸ“„ navigation-submenu.php File 9943
Edit Download
πŸ“„ navigation.php File 49620
Edit Download
πŸ“ nextpage Folder -
πŸ“ page-list Folder -
πŸ“ page-list-item Folder -
πŸ“„ page-list-item.php File 361
Edit Download
πŸ“„ page-list.php File 13611
Edit Download
πŸ“ paragraph Folder -
πŸ“ pattern Folder -
πŸ“„ pattern.php File 1788
Edit Download
πŸ“ post-author Folder -
πŸ“ post-author-biography Folder -
πŸ“„ post-author-biography.php File 1524
Edit Download
πŸ“ post-author-name Folder -
πŸ“„ post-author-name.php File 1951
Edit Download
πŸ“„ post-author.php File 2734
Edit Download
πŸ“ post-comments-form Folder -
πŸ“„ post-comments-form.php File 2805
Edit Download
πŸ“ post-content Folder -
πŸ“„ post-content.php File 2156
Edit Download
πŸ“ post-date Folder -
πŸ“„ post-date.php File 3124
Edit Download
πŸ“ post-excerpt Folder -
πŸ“„ post-excerpt.php File 3447
Edit Download
πŸ“ post-featured-image Folder -
πŸ“„ post-featured-image.php File 9363
Edit Download
πŸ“ post-navigation-link Folder -
πŸ“„ post-navigation-link.php File 4837
Edit Download
πŸ“ post-template Folder -
πŸ“„ post-template.php File 5749
Edit Download
πŸ“ post-terms Folder -
πŸ“„ post-terms.php File 3640
Edit Download
πŸ“ post-title Folder -
πŸ“„ post-title.php File 2138
Edit Download
πŸ“ preformatted Folder -
πŸ“ pullquote Folder -
πŸ“ query Folder -
πŸ“ query-no-results Folder -
πŸ“„ query-no-results.php File 1847
Edit Download
πŸ“ query-pagination Folder -
πŸ“ query-pagination-next Folder -
πŸ“„ query-pagination-next.php File 3787
Edit Download
πŸ“ query-pagination-numbers Folder -
πŸ“„ query-pagination-numbers.php File 4770
Edit Download
πŸ“ query-pagination-previous Folder -
πŸ“„ query-pagination-previous.php File 3584
Edit Download
πŸ“„ query-pagination.php File 1176
Edit Download
πŸ“ query-title Folder -
πŸ“„ query-title.php File 2098
Edit Download
πŸ“ query-total Folder -
πŸ“„ query-total.php File 2535
Edit Download
πŸ“„ query.php File 5690
Edit Download
πŸ“ quote Folder -
πŸ“ read-more Folder -
πŸ“„ read-more.php File 1830
Edit Download
πŸ“„ require-dynamic-blocks.php File 4163
Edit Download
πŸ“„ require-static-blocks.php File 501
Edit Download
πŸ“ rss Folder -
πŸ“„ rss.php File 4073
Edit Download
πŸ“ search Folder -
πŸ“„ search.php File 23016
Edit Download
πŸ“ separator Folder -
πŸ“ shortcode Folder -
πŸ“„ shortcode.php File 735
Edit Download
πŸ“ site-logo Folder -
πŸ“„ site-logo.php File 6334
Edit Download
πŸ“ site-tagline Folder -
πŸ“„ site-tagline.php File 1203
Edit Download
πŸ“ site-title Folder -
πŸ“„ site-title.php File 1853
Edit Download
πŸ“ social-link Folder -
πŸ“„ social-link.php File 65174
Edit Download
πŸ“ social-links Folder -
πŸ“ spacer Folder -
πŸ“ table Folder -
πŸ“ tag-cloud Folder -
πŸ“„ tag-cloud.php File 1590
Edit Download
πŸ“ template-part Folder -
πŸ“„ template-part.php File 10154
Edit Download
πŸ“ term-description Folder -
πŸ“„ term-description.php File 1336
Edit Download
πŸ“ text-columns Folder -
πŸ“ verse Folder -
πŸ“ video Folder -
πŸ“ widget-group Folder -
πŸ“„ widget-group.php File 2438
Edit Download
' . __( '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 Latest Posts block, to list posts from the site.' ) . '
'; } $rss = fetch_feed( $attributes['feedURL'] ); if ( is_wp_error( $rss ) ) { return '
' . __( 'RSS Error:' ) . ' ' . esc_html( $rss->get_error_message() ) . '
'; } if ( ! $rss->get_item_quantity() ) { return '
' . __( 'An error has occurred, which probably means the feed is down. Try again later.' ) . '
'; } $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 = "{$title}"; } $title = "
{$title}
"; $date = ''; if ( $attributes['displayDate'] ) { $date = $item->get_date( 'U' ); if ( $date ) { $date = sprintf( ' ', 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(); if ( ! empty( $author ) ) { $author = '' . sprintf( /* translators: byline. %s: author. */ __( 'by %s' ), esc_html( strip_tags( $author ) ) ) . ''; } } } $excerpt = ''; $description = $item->get_description(); if ( $attributes['displayExcerpt'] && ! empty( $description ) ) { $excerpt = html_entity_decode( $description, ENT_QUOTES, get_option( 'blog_charset' ) ); $excerpt = esc_attr( wp_trim_words( $excerpt, $attributes['excerptLength'], ' […]' ) ); // Change existing [...] to […]. if ( '[...]' === substr( $excerpt, -5 ) ) { $excerpt = substr( $excerpt, 0, -5 ) . '[…]'; } $excerpt = '
' . esc_html( $excerpt ) . '
'; } $list_items .= "
  • {$title}{$date}{$author}{$excerpt}
  • "; } $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( '', $wrapper_attributes, $list_items ); } /** * Registers the `core/rss` block on server. * * @since 5.2.0 */ 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' );