-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Edit Site: Add multiple template loading (#19141)
* Template Loader: Don't capitalize template post titles. * Templates: Bypass slug deduplication. * Lib: Load all available templates in the site editor. * Edit Site: Make sure template title is set when publishing. * Edit Site: Implement template switcher component. * Edit Site: Add a sidebar slot/fill for templates. * Edit Site: Implement template switching. * Edit Site: Add component for adding templates. * Edit Site: Implement template adding in the sidebar. * Edit Site: Change save text from "Customize" to "Update Design". * Edit Site: Keep track of template part IDs and load them in the site editor. * Edit Site: Refactor template switcher to be a dropdown menu and allow switching to template parts. * Edit Site: Move template switcher to the header. * Edit Site: Show active choice in template switcher. * Edit Site: Move template creation to the template switcher. * Edit Site: Switch to new template after creation. * Edit Site: Move template switcher to the left. * Edit Site: Fix header position. * Edit Site: Fix template creation padding. * Edit Site: Remove unnecessary class name. * Edit Site: Remove template switcher padding. * Edit Site: Add theme exporter. * Edit Site: Mark customized templates and template parts. * Edit Site: Move theme exporter into a header dropdown. * Edit Site: Rotate more-menu icon. * Edit Site: Update theme exporter label. * Edit Site Page: Fix comment typo. * Template Loader: Add API for finding the current template for a given path. * Edit Site: Enable link viewer template navigation. * Edit Site: Add block navigation and tool selector. * Edit Site: Fix template part placeholder preview style conflicts. * Template Loader: Fix template part post ID reference. * Edit Site: Use `useEntityBlockEditor`. * Template Loader: Dedupe resolved templates and template parts. * Edit Site: Remove theme exporter. * Fix linting and snapshots.
- Loading branch information
Showing
20 changed files
with
667 additions
and
88 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<!-- wp:paragraph --> | ||
<p>Header Template Part</p> | ||
<!-- /wp:paragraph --> |
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Oops, something went wrong.