File Manager Lite
Dir:
/home/atomylvb/jarangomd.com/old/wp-includes/blocks
Upload
[..]
accordion/
Rename
Del
accordion-heading/
Rename
Del
accordion-item/
Rename
Del
accordion-item.php (2.35 KB)
Edit
Rename
Del
accordion-panel/
Rename
Del
accordion.php (1.12 KB)
Edit
Rename
Del
archives/
Rename
Del
audio/
Rename
Del
avatar/
Rename
Del
block/
Rename
Del
blocks-json.php (213.43 KB)
Edit
Rename
Del
button/
Rename
Del
button.php (1.71 KB)
Edit
Rename
Del
buttons/
Rename
Del
calendar/
Rename
Del
categories/
Rename
Del
code/
Rename
Del
column/
Rename
Del
columns/
Rename
Del
comment-author-name/
Rename
Del
comment-author-name.php (2.08 KB)
Edit
Rename
Del
comment-content/
Rename
Del
comment-date/
Rename
Del
comment-edit-link/
Rename
Del
comment-reply-link/
Rename
Del
comment-template/
Rename
Del
comments/
Rename
Del
comments-pagination/
Rename
Del
comments-pagination-next/
Rename
Del
comments-pagination-next.php (1.88 KB)
Edit
Rename
Del
comments-pagination-numbers/
Rename
Del
comments-pagination-previous/
Rename
Del
comments-title/
Rename
Del
cover/
Rename
Del
cover.php (3.1 KB)
Edit
Rename
Del
details/
Rename
Del
embed/
Rename
Del
file/
Rename
Del
footnotes/
Rename
Del
freeform/
Rename
Del
gallery/
Rename
Del
group/
Rename
Del
heading/
Rename
Del
home-link/
Rename
Del
image/
Rename
Del
image.php (13.5 KB)
Edit
Rename
Del
index.php (4.99 KB)
Edit
Rename
Del
latest-comments/
Rename
Del
latest-posts/
Rename
Del
legacy-widget/
Rename
Del
legacy-widget.php (3.92 KB)
Edit
Rename
Del
list/
Rename
Del
list-item/
Rename
Del
loginout/
Rename
Del
math/
Rename
Del
media-text/
Rename
Del
more/
Rename
Del
navigation/
Rename
Del
navigation-link/
Rename
Del
navigation-submenu/
Rename
Del
nextpage/
Rename
Del
page-list/
Rename
Del
page-list-item/
Rename
Del
page-list-item.php (361 B)
Edit
Rename
Del
paragraph/
Rename
Del
post-author/
Rename
Del
post-author-biography/
Rename
Del
post-author-biography.php (1.49 KB)
Edit
Rename
Del
post-author-name/
Rename
Del
post-author-name.php (1.91 KB)
Edit
Rename
Del
post-author.php (2.67 KB)
Edit
Rename
Del
post-comments-count/
Rename
Del
post-comments-form/
Rename
Del
post-comments-link/
Rename
Del
post-content/
Rename
Del
post-date/
Rename
Del
post-excerpt/
Rename
Del
post-featured-image/
Rename
Del
post-featured-image.php (9.14 KB)
Edit
Rename
Del
post-navigation-link/
Rename
Del
post-template/
Rename
Del
post-terms/
Rename
Del
post-time-to-read/
Rename
Del
post-time-to-read.php (6.34 KB)
Edit
Rename
Del
post-title/
Rename
Del
preformatted/
Rename
Del
pullquote/
Rename
Del
query/
Rename
Del
query-no-results/
Rename
Del
query-no-results.php (1.8 KB)
Edit
Rename
Del
query-pagination/
Rename
Del
query-pagination-next/
Rename
Del
query-pagination-next.php (3.69 KB)
Edit
Rename
Del
query-pagination-numbers/
Rename
Del
query-pagination-previous/
Rename
Del
query-pagination-previous.php (3.49 KB)
Edit
Rename
Del
query-title/
Rename
Del
query-title.php (2.87 KB)
Edit
Rename
Del
query-total/
Rename
Del
query-total.php (2.48 KB)
Edit
Rename
Del
quote/
Rename
Del
read-more/
Rename
Del
rss/
Rename
Del
search/
Rename
Del
search.php (23.26 KB)
Edit
Rename
Del
separator/
Rename
Del
shortcode/
Rename
Del
site-logo/
Rename
Del
site-logo.php (6.19 KB)
Edit
Rename
Del
site-tagline/
Rename
Del
site-tagline.php (1.17 KB)
Edit
Rename
Del
site-title/
Rename
Del
social-link/
Rename
Del
social-link.php (66.15 KB)
Edit
Rename
Del
social-links/
Rename
Del
spacer/
Rename
Del
table/
Rename
Del
tag-cloud/
Rename
Del
tag-cloud.php (1.55 KB)
Edit
Rename
Del
template-part/
Rename
Del
term-count/
Rename
Del
term-description/
Rename
Del
term-description.php (1.73 KB)
Edit
Rename
Del
term-name/
Rename
Del
term-template/
Rename
Del
terms-query/
Rename
Del
text-columns/
Rename
Del
verse/
Rename
Del
video/
Rename
Del
widget-group/
Rename
Del
Edit: post-author-name.php
<?php /** * Server-side rendering of the `core/post-author-name` block. * * @package WordPress */ /** * Renders the `core/post-author-name` block on the server. * * @since 6.2.0 * * @param array $attributes Block attributes. * @param string $content Block default content. * @param WP_Block $block Block instance. * @return string Returns the rendered post author name block. */ function render_block_core_post_author_name( $attributes, $content, $block ) { if ( isset( $block->context['postId'] ) ) { $author_id = get_post_field( 'post_author', $block->context['postId'] ); } else { $author_id = get_query_var( 'author' ); } if ( empty( $author_id ) ) { return ''; } if ( isset( $block->context['postType'] ) && ! post_type_supports( $block->context['postType'], 'author' ) ) { return ''; } $author_name = get_the_author_meta( 'display_name', $author_id ); if ( isset( $attributes['isLink'] ) && $attributes['isLink'] ) { $author_name = sprintf( '<a href="%1$s" target="%2$s" class="wp-block-post-author-name__link">%3$s</a>', get_author_posts_url( $author_id ), esc_attr( $attributes['linkTarget'] ), $author_name ); } $classes = array(); if ( isset( $attributes['textAlign'] ) ) { $classes[] = 'has-text-align-' . $attributes['textAlign']; } if ( isset( $attributes['style']['elements']['link']['color']['text'] ) ) { $classes[] = 'has-link-color'; } $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => implode( ' ', $classes ) ) ); return sprintf( '<div %1$s>%2$s</div>', $wrapper_attributes, $author_name ); } /** * Registers the `core/post-author-name` block on the server. * * @since 6.2.0 */ function register_block_core_post_author_name() { register_block_type_from_metadata( __DIR__ . '/post-author-name', array( 'render_callback' => 'render_block_core_post_author_name', ) ); } add_action( 'init', 'register_block_core_post_author_name' );
Simpan