-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
89 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 0 additions & 22 deletions
22
edit-post/components/sidebar/block-inspector-panel/index.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/** | ||
* WordPress dependencies | ||
*/ | ||
import { Panel, PanelBody } from '@wordpress/components'; | ||
import { BlockInspector } from '@wordpress/editor'; | ||
import { __ } from '@wordpress/i18n'; | ||
|
||
/** | ||
* Internal Dependencies | ||
*/ | ||
import './style.scss'; | ||
import SettingsHeader from '../settings-header'; | ||
import Sidebar from '../'; | ||
|
||
const SIDEBAR_NAME = 'edit-post/block'; | ||
|
||
const BlockSidebar = () => ( | ||
<Sidebar | ||
name={ SIDEBAR_NAME } | ||
label={ __( 'Editor advanced settings' ) } | ||
> | ||
<SettingsHeader sidebarName={ SIDEBAR_NAME } /> | ||
<Panel> | ||
<PanelBody className="edit-post-block-sidebar__panel"> | ||
<BlockInspector /> | ||
</PanelBody> | ||
</Panel> | ||
</Sidebar> | ||
); | ||
|
||
export default BlockSidebar; |
2 changes: 1 addition & 1 deletion
2
.../sidebar/block-inspector-panel/style.scss → ...mponents/sidebar/block-sidebar/style.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/** | ||
* WordPress dependencies | ||
*/ | ||
import { Panel } from '@wordpress/components'; | ||
import { __ } from '@wordpress/i18n'; | ||
|
||
/** | ||
* Internal Dependencies | ||
*/ | ||
import PostStatus from '../post-status'; | ||
import PostExcerpt from '../post-excerpt'; | ||
import PostTaxonomies from '../post-taxonomies'; | ||
import FeaturedImage from '../featured-image'; | ||
import DiscussionPanel from '../discussion-panel'; | ||
import LastRevision from '../last-revision'; | ||
import PageAttributes from '../page-attributes'; | ||
import DocumentOutlinePanel from '../document-outline-panel'; | ||
import MetaBoxes from '../../meta-boxes'; | ||
import SettingsHeader from '../settings-header'; | ||
import Sidebar from '../'; | ||
|
||
const SIDEBAR_NAME = 'edit-post/document'; | ||
|
||
const DocumentSidebar = () => ( | ||
<Sidebar | ||
name={ SIDEBAR_NAME } | ||
label={ __( 'Editor advanced settings' ) } | ||
> | ||
<SettingsHeader sidebarName={ SIDEBAR_NAME } /> | ||
<Panel> | ||
<PostStatus /> | ||
<LastRevision /> | ||
<PostTaxonomies /> | ||
<FeaturedImage /> | ||
<PostExcerpt /> | ||
<DiscussionPanel /> | ||
<PageAttributes /> | ||
<DocumentOutlinePanel /> | ||
<MetaBoxes location="side" usePanel /> | ||
</Panel> | ||
</Sidebar> | ||
); | ||
|
||
export default DocumentSidebar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters