[ SYSTEM ]: Linux wordpress 6.1.0-41-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.158-1 (2025-11-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
presto-player
/
inc
/
Blocks
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 AudioBlock.php
1,662 B
SET
[ EDIT ]
|
[ DEL ]
📄 MediaHubBlock.php
562 B
SET
[ EDIT ]
|
[ DEL ]
📄 PopupBlock.php
1,417 B
SET
[ EDIT ]
|
[ DEL ]
📄 PopupMediaBlock.php
4,611 B
SET
[ EDIT ]
|
[ DEL ]
📄 PopupTriggerBlock.php
1,862 B
SET
[ EDIT ]
|
[ DEL ]
📄 ReusableEditBlock.php
524 B
SET
[ EDIT ]
|
[ DEL ]
📄 ReusableVideoBlock.php
1,082 B
SET
[ EDIT ]
|
[ DEL ]
📄 SelfHostedBlock.php
1,907 B
SET
[ EDIT ]
|
[ DEL ]
📄 VimeoBlock.php
523 B
SET
[ EDIT ]
|
[ DEL ]
📄 YouTubeBlock.php
2,509 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: 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(); } }