Uname:Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64

Base Dir : /home/nobi37te/public_html

User : nobi37te


403WebShell
403Webshell
Server IP : 104.21.25.182  /  Your IP : 216.73.216.140
Web Server : Apache
System : Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64
User : nobi37te ( 1003)
PHP Version : 8.2.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/nobi37te/public_html/wp-content/plugins/presto-player/inc/Blocks/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/nobi37te/public_html/wp-content/plugins/presto-player/inc/Blocks/PopupBlock.php
<?php
/**
 * Popup block.
 *
 * @package PrestoPlayer\Blocks
 */

namespace PrestoPlayer\Blocks;

/**
 * Popup block.
 */
class PopupBlock {
	/**
	 * Register the block type.
	 */
	public function register() {
		if ( ! file_exists( PRESTO_PLAYER_PLUGIN_DIR . 'src/admin/blocks/blocks/popup' ) ) {
			return;
		}

		add_action( 'init', array( $this, 'register_block' ) );
	}

	/**
	 * Registers the popup block with WordPress.
	 */
	public function register_block() {
		register_block_type(
			PRESTO_PLAYER_PLUGIN_DIR . 'src/admin/blocks/blocks/popup',
			array(
				'render_callback' => array( $this, 'render_block' ),
			)
		);
	}

	/**
	 * Renders the block content for the popup block.
	 *
	 * @param array  $attributes The block attributes.
	 * @param string $content    The block content.
	 *
	 * @return string The rendered HTML for the block.
	 */
	public function render_block( $attributes, $content ) {
		ob_start(); ?>
		<div 
		<?php
		echo wp_kses_data(
			get_block_wrapper_attributes(
				array(
					'class'               => 'presto-popup',
					'data-wp-interactive' => 'presto-player/popup',
				)
			)
		);
		?>
		<?php
		echo wp_kses_data(
			wp_interactivity_data_wp_context(
				array(
					'id' => $attributes['popupId'] ?? null,
				)
			)
		);
		?>
		>
			<?php echo $content; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
		</div>
		<?php
		return ob_get_clean();
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit