audioPresets
2 years ago
branding
4 years ago
chapters
2 years ago
components
2 years ago
media
3 years ago
overlays
4 years ago
presets
2 years ago
services
4 years ago
settings
4 years ago
styles
2 years ago
tracks
5 years ago
BlockInspectorControls.js
4 years ago
LinkPlaceholder.js
5 years ago
Player.js
2 years ago
Preview.js
2 years ago
ProUpgradeModal.js
5 years ago
VisibilityEditor.js
5 years ago
audio-placeholder.js
4 years ago
helpers.js
5 years ago
options.js
5 years ago
placeholder.js
2 years ago
BlockInspectorControls.js
54 lines
| 1 | const { PanelBody } = wp.components; |
| 2 | const { __ } = wp.i18n; |
| 3 | import VideoBranding from "@/admin/blocks/shared/branding"; |
| 4 | import VideoChapters from "@/admin/blocks/shared/chapters"; |
| 5 | import ProBadge from "@/admin/blocks/shared/components/ProBadge"; |
| 6 | import VideoOverlays from "@/admin/blocks/shared/overlays"; |
| 7 | import VideoPresets from "@/admin/blocks/shared/presets"; |
| 8 | import VideoSettings from "@/admin/blocks/shared/settings"; |
| 9 | |
| 10 | export default function ({ attributes, setAttributes }) { |
| 11 | return ( |
| 12 | <> |
| 13 | <PanelBody |
| 14 | title={ |
| 15 | <> |
| 16 | {__("Chapters", "presto-player")}{" "} |
| 17 | {!prestoPlayer?.isPremium && <ProBadge />} |
| 18 | </> |
| 19 | } |
| 20 | initialOpen={prestoPlayer?.isPremium} |
| 21 | > |
| 22 | <VideoChapters setAttributes={setAttributes} attributes={attributes} /> |
| 23 | </PanelBody> |
| 24 | |
| 25 | <PanelBody |
| 26 | title={ |
| 27 | <> |
| 28 | {__("Overlays", "presto-player")}{" "} |
| 29 | {!prestoPlayer?.isPremium && <ProBadge />} |
| 30 | </> |
| 31 | } |
| 32 | initialOpen={prestoPlayer?.isPremium} |
| 33 | > |
| 34 | <VideoOverlays setAttributes={setAttributes} attributes={attributes} /> |
| 35 | </PanelBody> |
| 36 | |
| 37 | <PanelBody title={__("Video settings", "presto-player")}> |
| 38 | <VideoSettings setAttributes={setAttributes} attributes={attributes} /> |
| 39 | </PanelBody> |
| 40 | |
| 41 | <PanelBody title={__("Video Preset", "presto-player")}> |
| 42 | <VideoPresets setAttributes={setAttributes} attributes={attributes} /> |
| 43 | </PanelBody> |
| 44 | |
| 45 | <PanelBody |
| 46 | title={__("Global Player Branding", "presto-player")} |
| 47 | initialOpen={false} |
| 48 | > |
| 49 | <VideoBranding setAttributes={setAttributes} attributes={attributes} /> |
| 50 | </PanelBody> |
| 51 | </> |
| 52 | ); |
| 53 | } |
| 54 |