[ 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
/
shared
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 MediaProviders
SET
[ DEL ]
📁 ProvidersPlaceholder
SET
[ DEL ]
📁 audioPresets
SET
[ DEL ]
📁 branding
SET
[ DEL ]
📁 chapters
SET
[ DEL ]
📁 components
SET
[ DEL ]
📁 media
SET
[ DEL ]
📁 overlays
SET
[ DEL ]
📁 presets
SET
[ DEL ]
📁 services
SET
[ DEL ]
📁 settings
SET
[ DEL ]
📁 styles
SET
[ DEL ]
📁 tracks
SET
[ DEL ]
📄 BlockInspectorControls.js
3,307 B
SET
[ EDIT ]
|
[ DEL ]
📄 Editing.js
544 B
SET
[ EDIT ]
|
[ DEL ]
📄 LinkPlaceholder.js
1,316 B
SET
[ EDIT ]
|
[ DEL ]
📄 Player.js
5,229 B
SET
[ EDIT ]
|
[ DEL ]
📄 Preview.js
4,252 B
SET
[ EDIT ]
|
[ DEL ]
📄 ProUpgradeModal.js
870 B
SET
[ EDIT ]
|
[ DEL ]
📄 VisibilityEditor.js
1,939 B
SET
[ EDIT ]
|
[ DEL ]
📄 audio-placeholder.js
6,173 B
SET
[ EDIT ]
|
[ DEL ]
📄 helpers.js
942 B
SET
[ EDIT ]
|
[ DEL ]
📄 options.js
1,578 B
SET
[ EDIT ]
|
[ DEL ]
📄 placeholder.js
6,353 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: BlockInspectorControls.js
/** @jsx jsx */ import { css, jsx } from "@emotion/core"; import { BaseControl, Button, Flex, Icon, PanelBody, } from "@wordpress/components"; import { check, symbol } from "@wordpress/icons"; import { __ } from "@wordpress/i18n"; import { useSelect } from "@wordpress/data"; import { store as coreStore } from "@wordpress/core-data"; import VideoBranding from "@/admin/blocks/shared/branding"; import VideoChapters from "@/admin/blocks/shared/chapters"; import ProBadge from "@/admin/blocks/shared/components/ProBadge"; import VideoOverlays from "@/admin/blocks/shared/overlays"; import VideoPresets from "@/admin/blocks/shared/presets"; import VideoSettings from "@/admin/blocks/shared/settings"; import InserterShortcodeInput from "../plugins/reusable-videos/ShortcodeInput"; import EditContext from "../blocks/reusable-display/context"; import { useContext } from "@wordpress/element"; export default function ({ attributes, setAttributes }) { const { isEditing, setIsEditing } = useContext(EditContext); const userCanReadSettings = useSelect((select) => select(coreStore).canUser("read", "settings") ); return ( <> {isEditing && ( <PanelBody> <Flex align="center" justify="flex-start"> <Icon icon={symbol} /> <h2 class="block-editor-block-card__title"> {__("Editing Synced Media", "presto-player")} </h2> </Flex> <BaseControl help={__( "You are currently editing a synced media hub item that may be reused across your site.", "presto-player" )} css={css` margin-bottom: 10px !important; `} ></BaseControl> <Button icon={check} onClick={() => setIsEditing(false)} variant="secondary" > {__("Done Editing", "presto-player")} </Button> </PanelBody> )} <PanelBody title={ <> {__("Chapters", "presto-player")}{" "} {!prestoPlayer?.isPremium && <ProBadge />} </> } initialOpen={prestoPlayer?.isPremium} > <VideoChapters setAttributes={setAttributes} attributes={attributes} /> </PanelBody> <PanelBody title={ <> {__("Overlays", "presto-player")}{" "} {!prestoPlayer?.isPremium && <ProBadge />} </> } initialOpen={prestoPlayer?.isPremium} > <VideoOverlays setAttributes={setAttributes} attributes={attributes} /> </PanelBody> <PanelBody title={__("Video settings", "presto-player")}> <VideoSettings setAttributes={setAttributes} attributes={attributes} /> </PanelBody> <PanelBody title={__("Video Preset", "presto-player")}> <VideoPresets setAttributes={setAttributes} attributes={attributes} /> </PanelBody> <InserterShortcodeInput /> {!!userCanReadSettings && ( <PanelBody title={__("Global Player Branding", "presto-player")} initialOpen={false} > <VideoBranding setAttributes={setAttributes} attributes={attributes} /> </PanelBody> )} </> ); }