0xShell Shell MySQL Netstat SMTP FTP SSH 未选择任何文件 Domain Upload file System Info: User: couragent | UID: 1022 | GID: 1024 | Groups: 1024 Server IP: 62.72.47.222 | Client IP: 23.145.24.71 PHP: 8.1.29 | OS: Linux | Server: LiteSpeed command /home/couragent/public_html$ Enter file path to read Files ../ � .htaccess � '0e 4e5 .tmb/ � .user.ini � '0e 4e5 .well-known/ � 123.php � '0e 4e5 cgi-bin/ � clasa99.php � '0e 4e5 error_log � '0e 4e5 evs.txt � '0e 4e5 home/ � index.php � 4e5 license.txt � '0e 4e5 op.php � '0e 4e5 php.ini � '0e 4e5 readme.html � '0e 4e5 robots.txt � '0e 4e5 wp-activate.php � '0e 4e5 wp-admin/ � wp-blog-header.php � '0e 4e5 wp-comments-post.php � '0e 4e5 wp-config-sample.php � '0e 4e5 wp-config.php � '0e 4e5 wp-content/ � wp-cron.php � '0e 4e5 wp-includes/ � wp-links-opml.php � '0e 4e5 wp-load.php � '0e 4e5 wp-login.php � '0e 4e5 wp-mail.php � '0e 4e5 wp-settings.php � '0e 4e5 wp-signup.php � '0e 4e5 wp-trackback.php � '0e 4e5 xmlrpc.php � '0e 4e5 Viewing: op.php 0xShell

0xShell

System Info:
User: jonasls | UID: 188156 | GID: 100 | Groups: 100
Server IP: 10.127.20.1 | Client IP: 216.73.216.28
PHP: 8.0.30 | OS: Linux | Server: Apache
/home/jonasls/www/wp-includes/blocks$

Files

Viewing: navigation-overlay-close.php

<?php
/**
 * Server-side registering of the `core/navigation-overlay-close` block.
 *
 * @package WordPress
 */

/**
 * Renders the `core/navigation-overlay-close` block on server.
 *
 * @since 7.0.0
 *
 * @param array $attributes The block attributes.
 *
 * @return string Returns the block content.
 */
function render_block_core_navigation_overlay_close( $attributes ) {
	$text         = empty( $attributes['text'] ) ? __( 'Close' ) : $attributes['text'];
	$display_mode = empty( $attributes['displayMode'] ) ? 'icon' : $attributes['displayMode'];
	$show_icon    = 'both' === $display_mode || 'icon' === $display_mode;
	$show_text    = 'both' === $display_mode || 'text' === $display_mode;
	$button_text  = '';

	if ( $show_icon ) {
		$button_text .= '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" focusable="false"><path d="M13 11.8l6.1-6.3-1.1-1-6.1 6.2-6.1-6.2-1.1 1 6.1 6.3-6.5 6.7 1.1 1 6.5-6.6 6.5 6.6 1.1-1z" /></svg>';
	}

	if ( $show_text ) {
		$button_text .= '<span class="wp-block-navigation-overlay-close__text">' . wp_kses_post( $text ) . '</span>';
	}

	$wrapper_attributes = get_block_wrapper_attributes();
	$html_content       = sprintf(
		'<button %1$s type="button" %2$s >%3$s</button>',
		$wrapper_attributes,
		! $show_text ? 'aria-label="' . __( 'Close' ) . '"' : '',
		$button_text
	);

	return $html_content;
}

/**
 * Registers the navigation overlay close block.
 *
 * @since 7.0.0
 */
function register_block_core_navigation_overlay_close() {
	register_block_type_from_metadata(
		__DIR__ . '/navigation-overlay-close',
		array(
			'render_callback' => 'render_block_core_navigation_overlay_close',
		)
	);
}
add_action( 'init', 'register_block_core_navigation_overlay_close' );
Disabled functions: None