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