X7ROOT File Manager
Current Path:
/home/notabjze/caribbeansee.com/wp-includes/blocks
home
/
notabjze
/
caribbeansee.com
/
wp-includes
/
blocks
/
ðŸ“
..
ðŸ“
archives
📄
archives.php
(2.89 KB)
ðŸ“
audio
ðŸ“
avatar
📄
avatar.php
(5.3 KB)
ðŸ“
block
📄
block.php
(1.57 KB)
📄
blocks-json.php
(110.42 KB)
ðŸ“
button
ðŸ“
buttons
ðŸ“
calendar
📄
calendar.php
(6.03 KB)
ðŸ“
categories
📄
categories.php
(2.78 KB)
ðŸ“
code
ðŸ“
column
ðŸ“
columns
ðŸ“
comment-author-name
📄
comment-author-name.php
(2.05 KB)
ðŸ“
comment-content
📄
comment-content.php
(2.36 KB)
ðŸ“
comment-date
📄
comment-date.php
(1.56 KB)
ðŸ“
comment-edit-link
📄
comment-edit-link.php
(1.64 KB)
ðŸ“
comment-reply-link
📄
comment-reply-link.php
(1.99 KB)
ðŸ“
comment-template
📄
comment-template.php
(3.58 KB)
ðŸ“
comments
ðŸ“
comments-pagination
ðŸ“
comments-pagination-next
📄
comments-pagination-next.php
(1.8 KB)
ðŸ“
comments-pagination-numbers
📄
comments-pagination-numbers.php
(1.56 KB)
ðŸ“
comments-pagination-previous
📄
comments-pagination-previous.php
(1.6 KB)
📄
comments-pagination.php
(1.13 KB)
ðŸ“
comments-title
📄
comments-title.php
(2.67 KB)
📄
comments.php
(6.5 KB)
ðŸ“
cover
📄
cover.php
(2.43 KB)
ðŸ“
embed
📄
error_log
(14.07 KB)
ðŸ“
file
📄
file.php
(1.56 KB)
ðŸ“
freeform
ðŸ“
gallery
📄
gallery.php
(4.85 KB)
ðŸ“
group
ðŸ“
heading
📄
heading.php
(1.23 KB)
ðŸ“
home-link
📄
home-link.php
(4.74 KB)
ðŸ“
html
ðŸ“
image
📄
image.php
(1.26 KB)
📄
index.php
(779 B)
ðŸ“
latest-comments
📄
latest-comments.php
(4.88 KB)
ðŸ“
latest-posts
📄
latest-posts.php
(7.43 KB)
ðŸ“
legacy-widget
📄
legacy-widget.php
(3.81 KB)
ðŸ“
list
ðŸ“
list-item
ðŸ“
loginout
📄
loginout.php
(1.35 KB)
ðŸ“
media-text
ðŸ“
missing
ðŸ“
more
ðŸ“
navigation
ðŸ“
navigation-link
📄
navigation-link.php
(11.51 KB)
ðŸ“
navigation-submenu
📄
navigation-submenu.php
(10.77 KB)
📄
navigation.php
(30.54 KB)
ðŸ“
nextpage
ðŸ“
page-list
ðŸ“
page-list-item
📄
page-list.php
(13.14 KB)
ðŸ“
paragraph
ðŸ“
pattern
📄
pattern.php
(921 B)
ðŸ“
post-author
ðŸ“
post-author-biography
📄
post-author-biography.php
(1.41 KB)
ðŸ“
post-author-name
📄
post-author-name.php
(1.71 KB)
📄
post-author.php
(2.5 KB)
ðŸ“
post-comments-form
📄
post-comments-form.php
(2.68 KB)
ðŸ“
post-content
📄
post-content.php
(2.28 KB)
ðŸ“
post-date
📄
post-date.php
(1.96 KB)
ðŸ“
post-excerpt
📄
post-excerpt.php
(2.56 KB)
ðŸ“
post-featured-image
📄
post-featured-image.php
(7.19 KB)
ðŸ“
post-navigation-link
📄
post-navigation-link.php
(4.26 KB)
ðŸ“
post-template
📄
post-template.php
(4.06 KB)
ðŸ“
post-terms
📄
post-terms.php
(3.21 KB)
ðŸ“
post-title
📄
post-title.php
(1.81 KB)
ðŸ“
preformatted
ðŸ“
pullquote
ðŸ“
query
ðŸ“
query-no-results
📄
query-no-results.php
(1.76 KB)
ðŸ“
query-pagination
ðŸ“
query-pagination-next
📄
query-pagination-next.php
(2.66 KB)
ðŸ“
query-pagination-numbers
📄
query-pagination-numbers.php
(3.73 KB)
ðŸ“
query-pagination-previous
📄
query-pagination-previous.php
(2.12 KB)
📄
query-pagination.php
(1.11 KB)
ðŸ“
query-title
📄
query-title.php
(2.08 KB)
📄
query.php
(304 B)
ðŸ“
quote
ðŸ“
read-more
📄
read-more.php
(1.75 KB)
📄
require-dynamic-blocks.php
(3.74 KB)
📄
require-static-blocks.php
(543 B)
ðŸ“
rss
📄
rss.php
(3.83 KB)
ðŸ“
search
📄
search.php
(19.94 KB)
ðŸ“
separator
ðŸ“
shortcode
📄
shortcode.php
(697 B)
ðŸ“
site-logo
📄
site-logo.php
(5.67 KB)
ðŸ“
site-tagline
📄
site-tagline.php
(994 B)
ðŸ“
site-title
📄
site-title.php
(1.73 KB)
ðŸ“
social-link
📄
social-link.php
(59.56 KB)
ðŸ“
social-links
ðŸ“
spacer
ðŸ“
table
ðŸ“
tag-cloud
📄
tag-cloud.php
(1.37 KB)
ðŸ“
template-part
📄
template-part.php
(9.36 KB)
ðŸ“
term-description
📄
term-description.php
(1.27 KB)
ðŸ“
text-columns
ðŸ“
verse
ðŸ“
video
ðŸ“
widget-group
📄
widget-group.php
(2.12 KB)
Editing: avatar.php
<?php /** * Server-side rendering of the `core/avatar` block. * * @package WordPress */ /** * Renders the `core/avatar` block on the server. * * @param array $attributes Block attributes. * @param string $content Block default content. * @param WP_Block $block Block instance. * @return string Return the avatar. */ function render_block_core_avatar( $attributes, $content, $block ) { $size = isset( $attributes['size'] ) ? $attributes['size'] : 96; $wrapper_attributes = get_block_wrapper_attributes(); $image_styles = array(); // Add border width styles. $has_border_width = ! empty( $attributes['style']['border']['width'] ); if ( $has_border_width ) { $border_width = $attributes['style']['border']['width']; $image_styles[] = sprintf( 'border-width: %s;', esc_attr( $border_width ) ); } // Add border radius styles. $has_border_radius = ! empty( $attributes['style']['border']['radius'] ); if ( $has_border_radius ) { $border_radius = $attributes['style']['border']['radius']; if ( is_array( $border_radius ) ) { // Apply styles for individual corner border radii. foreach ( $border_radius as $key => $value ) { if ( null !== $value ) { $name = _wp_to_kebab_case( $key ); // Add shared styles for individual border radii. $border_style = sprintf( 'border-%s-radius: %s;', esc_attr( $name ), esc_attr( $value ) ); $image_styles[] = $border_style; } } } else { $border_style = sprintf( 'border-radius: %s;', esc_attr( $border_radius ) ); $image_styles[] = $border_style; } } // Add border color styles. $has_border_color = ! empty( $attributes['style']['border']['color'] ); if ( $has_border_color ) { $border_color = $attributes['style']['border']['color']; $image_styles[] = sprintf( 'border-color: %s;', esc_attr( $border_color ) ); } // Add border style (solid, dashed, dotted ). $has_border_style = ! empty( $attributes['style']['border']['style'] ); if ( $has_border_style ) { $border_style = $attributes['style']['border']['style']; $image_styles[] = sprintf( 'border-style: %s;', esc_attr( $border_style ) ); } // Add border classes to the avatar image for both custom colors and palette colors. $image_classes = ''; if ( $has_border_color || isset( $attributes['borderColor'] ) ) { $image_classes .= 'has-border-color'; } if ( isset( $attributes['borderColor'] ) ) { $image_classes .= ' has-' . $attributes['borderColor'] . '-border-color'; } if ( ! isset( $block->context['commentId'] ) ) { $author_id = isset( $attributes['userId'] ) ? $attributes['userId'] : get_post_field( 'post_author', $block->context['postId'] ); $author_name = get_the_author_meta( 'display_name', $author_id ); // translators: %s is the Author name. $alt = sprintf( __( '%s Avatar' ), $author_name ); $avatar_block = get_avatar( $author_id, $size, '', $alt, array( 'extra_attr' => isset( $image_styles ) ? sprintf( ' style="%s"', safecss_filter_attr( implode( ' ', $image_styles ) ) ) : '', 'class' => "wp-block-avatar__image $image_classes ", ) ); if ( isset( $attributes['isLink'] ) && $attributes['isLink'] ) { $label = ''; if ( '_blank' === $attributes['linkTarget'] ) { // translators: %s is the Author name. $label = 'aria-label="' . sprintf( esc_attr__( '(%s author archive, opens in a new tab)' ), $author_name ) . '"'; } // translators: %1$s: Author archive link. %2$s: Link target. %3$s Aria label. %4$s Avatar image. $avatar_block = sprintf( '<a href="%1$s" target="%2$s" %3$s class="wp-block-avatar__link">%4$s</a>', esc_url( get_author_posts_url( $author_id ) ), esc_attr( $attributes['linkTarget'] ), $label, $avatar_block ); } return sprintf( '<div %1s>%2s</div>', $wrapper_attributes, $avatar_block ); } $comment = get_comment( $block->context['commentId'] ); if ( ! $comment ) { return ''; } /* translators: %s is the Comment Author name */ $alt = sprintf( __( '%s Avatar' ), $comment->comment_author ); $avatar_block = get_avatar( $comment, $size, '', $alt, array( 'extra_attr' => isset( $image_styles ) ? sprintf( ' style="%s"', safecss_filter_attr( implode( ' ', $image_styles ) ) ) : '', 'class' => "wp-block-avatar__image $image_classes", ) ); if ( isset( $attributes['isLink'] ) && $attributes['isLink'] && isset( $comment->comment_author_url ) && '' !== $comment->comment_author_url ) { $label = ''; if ( '_blank' === $attributes['linkTarget'] ) { // translators: %s is the Comment Author name. $label = 'aria-label="' . sprintf( esc_attr__( '(%s website link, opens in a new tab)' ), $comment->comment_author ) . '"'; } // translators: %1$s: Comment Author website link. %2$s: Link target. %3$s Aria label. %4$s Avatar image. $avatar_block = sprintf( '<a href="%1$s" target="%2$s" %3$s class="wp-block-avatar__link">%4$s</a>', esc_url( $comment->comment_author_url ), esc_attr( $attributes['linkTarget'] ), $label, $avatar_block ); } return sprintf( '<div %1s>%2s</div>', $wrapper_attributes, $avatar_block ); } /** * Registers the `core/avatar` block on the server. */ function register_block_core_avatar() { register_block_type_from_metadata( __DIR__ . '/avatar', array( 'render_callback' => 'render_block_core_avatar', ) ); } add_action( 'init', 'register_block_core_avatar' );
Upload File
Create Folder