Skip to content

Commit

Permalink
#217 テンプレート用パーツがインサーターに出ないように変更。置換は「テンプレートの置換」からおこなう
Browse files Browse the repository at this point in the history
  • Loading branch information
inc2734 committed Nov 30, 2023
1 parent 28eb0c1 commit 5c235e0
Show file tree
Hide file tree
Showing 83 changed files with 85 additions and 84 deletions.
2 changes: 1 addition & 1 deletion inc/templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function unitone_display_deprecated_parts() {
if ( $template_part_post ) {
// A published post might already exist if this template part was customized elsewhere
// or if it's part of a customized template.
$content = $template_part_post->post_content;
$content = $template_part_post->post_content;
$content = shortcode_unautop( $content );
$content = do_shortcode( $content );
$content = do_blocks( $content );
Expand Down
2 changes: 1 addition & 1 deletion patterns/template-404-left-header-page-header-image.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Title: 404: Left Header / Page Header (Image)
* Slug: unitone/template/404/left-header-page-header-image
* Categories: unitone-templates
* Block Types: core/template-part/unitone/404
* Template Types: 404
* Inserter: no
*/
?>
<!-- wp:unitone/cover {"noPadding":true,"unitone":{"gap":0},"className":"site-container-left-header"} -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/template-404-left-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Title: 404: Left Header
* Slug: unitone/template/404/left-header
* Categories: unitone-templates
* Block Types: core/template-part/unitone/404
* Template Types: 404
* Inserter: no
*/
?>
<!-- wp:unitone/cover {"noPadding":true,"unitone":{"gap":0},"className":"site-container-left-header"} -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/template-404-one-column-page-header-image.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Title: 404: One Column / Page Header (Image)
* Slug: unitone/template/404/one-column-page-header-image
* Categories: unitone-templates
* Block Types: core/template-part/unitone/404
* Template Types: 404
* Inserter: no
*/
?>
<!-- wp:unitone/cover {"noPadding":true,"unitone":{"gap":0}} -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/template-404-one-column.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Title: 404: One Column
* Slug: unitone/template/404/one-column
* Categories: unitone-templates
* Block Types: core/template-part/unitone/404
* Template Types: 404
* Inserter: no
*/
?>
<!-- wp:unitone/cover {"noPadding":true,"unitone":{"gap":0}} -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/template-404-right-sidebar-page-header-image.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Title: 404: Right Sidebar / Page Header (Image)
* Slug: unitone/template/404/right-sidebar-page-header-image
* Categories: unitone-templates
* Block Types: core/template-part/unitone/404
* Template Types: 404
* Inserter: no
*/
?>
<!-- wp:unitone/cover {"noPadding":true,"unitone":{"gap":0}} -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/template-404-right-sidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Title: 404: Right Sidebar
* Slug: unitone/template/404/right-sidebar
* Categories: unitone-templates
* Block Types: core/template-part/unitone/404
* Template Types: 404
* Inserter: no
*/
?>
<!-- wp:unitone/cover {"noPadding":true,"unitone":{"gap":0}} -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Title: All Archives: Left Header / Page Header (Image)
* Slug: unitone/template/archive/left-header-page-header-image
* Categories: unitone-templates
* Block Types: core/template-part/unitone/archive
* Template Types: archive, category, tag, author, date, taxonomy
* Inserter: no
*/
?>
<!-- wp:unitone/cover {"noPadding":true,"unitone":{"gap":0},"className":"site-container-left-header"} -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/template-archive-left-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Title: All Archives: Left Header
* Slug: unitone/template/archive/left-header
* Categories: unitone-templates
* Block Types: core/template-part/unitone/archive
* Template Types: archive, category, tag, author, date, taxonomy
* Inserter: no
*/
?>
<!-- wp:unitone/cover {"noPadding":true,"unitone":{"gap":0},"className":"site-container-left-header"} -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/template-archive-one-column-page-header-image.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Title: All Archives: One Column / Page Header (Image)
* Slug: unitone/template/archive/one-column-page-header-image
* Categories: unitone-templates
* Block Types: core/template-part/unitone/archive
* Template Types: archive, category, tag, author, date, taxonomy
* Inserter: no
*/
?>
<!-- wp:unitone/cover {"noPadding":true,"unitone":{"gap":0}} -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/template-archive-one-column.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Title: All Archives: One Column
* Slug: unitone/template/archive/one-column
* Categories: unitone-templates
* Block Types: core/template-part/unitone/archive
* Template Types: archive, category, tag, author, date, taxonomy
* Inserter: no
*/
?>
<!-- wp:unitone/cover {"noPadding":true,"unitone":{"gap":0}} -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Title: Product Archives: Left Header / Page Header (Image)
* Slug: unitone/template/archive-product/left-header-page-header-image
* Categories: unitone-templates
* Block Types: core/template-part/unitone/archive-product
* Template Types: archive-product
* Inserter: no
*/
?>
<!-- wp:unitone/cover {"noPadding":true,"unitone":{"gap":0},"className":"site-container-left-header"} -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/template-archive-product-left-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Title: Product Archives: Left Header
* Slug: unitone/template/archive-product/left-header
* Categories: unitone-templates
* Block Types: core/template-part/unitone/archive-product
* Template Types: archive-product
* Inserter: no
*/
?>
<!-- wp:unitone/cover {"noPadding":true,"unitone":{"gap":0},"className":"site-container-left-header"} -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Title: Product Archives: One Column / Page Header (Image)
* Slug: unitone/template/archive-product/one-column-page-header-image
* Categories: unitone-templates
* Block Types: core/template-part/unitone/archive-product
* Template Types: archive-product
* Inserter: no
*/
?>
<!-- wp:unitone/cover {"noPadding":true,"unitone":{"gap":0}} -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/template-archive-product-one-column.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Title: Product Archives: One Column
* Slug: unitone/template/archive-product/one-column
* Categories: unitone-templates
* Block Types: core/template-part/unitone/archive-product
* Template Types: archive-product
* Inserter: no
*/
?>
<!-- wp:unitone/cover {"noPadding":true,"unitone":{"gap":0}} -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Title: Product Archives: Right Sidebar / Page Header (Image)
* Slug: unitone/template/archive-product/right-sidebar-page-header-image
* Categories: unitone-templates
* Block Types: core/template-part/unitone/archive-product
* Template Types: archive-product
* Inserter: no
*/
?>
<!-- wp:unitone/cover {"noPadding":true,"unitone":{"gap":0}} -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/template-archive-product-right-sidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Title: Product Archives: Right Sidebar
* Slug: unitone/template/archive-product/right-sidebar
* Categories: unitone-templates
* Block Types: core/template-part/unitone/archive-product
* Template Types: archive-product
* Inserter: no
*/
?>
<!-- wp:unitone/cover {"noPadding":true,"unitone":{"gap":0}} -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Title: All Archives: Right Sidebar / Page Header (Image)
* Slug: unitone/template/archive/right-sidebar-page-header-image
* Categories: unitone-templates
* Block Types: core/template-part/unitone/archive
* Template Types: archive, category, tag, author, date, taxonomy
* Inserter: no
*/
?>
<!-- wp:unitone/cover {"noPadding":true,"unitone":{"gap":0}} -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/template-archive-right-sidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Title: All Archives: Right Sidebar
* Slug: unitone/template/archive/right-sidebar
* Categories: unitone-templates
* Block Types: core/template-part/unitone/archive
* Template Types: archive, category, tag, author, date, taxonomy
* Inserter: no
*/
?>
<!-- wp:unitone/cover {"noPadding":true,"unitone":{"gap":0}} -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Title: bbPress: Left Header / Page Header (Image)
* Slug: unitone/template/bbpress/left-header-page-header-image
* Categories: unitone-templates
* Block Types: core/template-part/unitone/bbpress
* Template Types: bbpress
* Inserter: no
*/
?>
<!-- wp:unitone/cover {"noPadding":true,"unitone":{"gap":0},"className":"site-container-left-header"} -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/template-bbpress-left-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Title: bbPress: Left Header
* Slug: unitone/template/bbpress/left-header
* Categories: unitone-templates
* Block Types: core/template-part/unitone/bbpress
* Template Types: bbpress
* Inserter: no
*/
?>
<!-- wp:unitone/cover {"noPadding":true,"unitone":{"gap":0},"className":"site-container-left-header"} -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/template-bbpress-one-column-page-header-image.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Title: bbPress: One Column / Page Header (Image)
* Slug: unitone/template/bbpress/one-column-page-header-image
* Categories: unitone-templates
* Block Types: core/template-part/unitone/bbpress
* Template Types: bbpress
* Inserter: no
*/
?>
<!-- wp:unitone/cover {"noPadding":true,"unitone":{"gap":0}} -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/template-bbpress-one-column.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Title: bbPress: One Column
* Slug: unitone/template/bbpress/one-column
* Categories: unitone-templates
* Block Types: core/template-part/unitone/bbpress
* Template Types: bbpress
* Inserter: no
*/
?>
<!-- wp:unitone/cover {"noPadding":true,"unitone":{"gap":0}} -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Title: bbPress: Right Sidebar / Page Header (Image)
* Slug: unitone/template/bbpress/right-sidebar-page-header-image
* Categories: unitone-templates
* Block Types: core/template-part/unitone/bbpress
* Template Types: bbpress
* Inserter: no
*/
?>
<!-- wp:unitone/cover {"noPadding":true,"unitone":{"gap":0}} -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/template-bbpress-right-sidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Title: bbPress: Right Sidebar
* Slug: unitone/template/bbpress/right-sidebar
* Categories: unitone-templates
* Block Types: core/template-part/unitone/bbpress
* Template Types: bbpress
* Inserter: no
*/
?>
<!-- wp:unitone/cover {"noPadding":true,"unitone":{"gap":0}} -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/template-cart-left-header-page-header-image.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Title: Cart: Left Header / Page Header (Image)
* Slug: unitone/template/cart/left-header-page-header-image
* Categories: unitone-templates
* Block Types: core/template-part/unitone/cart
* Template Types: page-cart
* Inserter: no
*/
?>
<!-- wp:unitone/cover {"noPadding":true,"unitone":{"gap":0},"className":"site-container-left-header"} -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/template-cart-left-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Title: Cart: Left Header
* Slug: unitone/template/cart/left-header
* Categories: unitone-templates
* Block Types: core/template-part/unitone/cart
* Template Types: page-cart
* Inserter: no
*/
?>
<!-- wp:unitone/cover {"noPadding":true,"unitone":{"gap":0},"className":"site-container-left-header"} -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/template-cart-one-column-page-header-image.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Title: Cart: One Column / Page Header (Image)
* Slug: unitone/template/cart/one-column-page-header-image
* Categories: unitone-templates
* Block Types: core/template-part/unitone/cart
* Template Types: page-cart
* Inserter: no
*/
?>
<!-- wp:unitone/cover {"noPadding":true,"unitone":{"gap":0}} -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/template-cart-one-column.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Title: Cart: One Column
* Slug: unitone/template/cart/one-column
* Categories: unitone-templates
* Block Types: core/template-part/unitone/cart
* Template Types: page-cart
* Inserter: no
*/
?>
<!-- wp:unitone/cover {"noPadding":true,"unitone":{"gap":0}} -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Title: Checkout: Left Header / Page Header (Image)
* Slug: unitone/template/checkout/left-header-page-header-image
* Categories: unitone-templates
* Block Types: core/template-part/unitone/checkout
* Template Types: page-checkout
* Inserter: no
*/
?>
<!-- wp:unitone/cover {"noPadding":true,"unitone":{"gap":0},"className":"site-container-left-header"} -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/template-checkout-left-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Title: Checkout: Left Header
* Slug: unitone/template/checkout/left-header
* Categories: unitone-templates
* Block Types: core/template-part/unitone/checkout
* Template Types: page-checkout
* Inserter: no
*/
?>
<!-- wp:unitone/cover {"noPadding":true,"unitone":{"gap":0},"className":"site-container-left-header"} -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Title: Checkout: One Column / Page Header (Image)
* Slug: unitone/template/checkout/one-column-page-header-image
* Categories: unitone-templates
* Block Types: core/template-part/unitone/checkout
* Template Types: page-checkout
* Inserter: no
*/
?>
<!-- wp:unitone/cover {"noPadding":true,"unitone":{"gap":0}} -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/template-checkout-one-column.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Title: Checkout: One Column
* Slug: unitone/template/checkout/one-column
* Categories: unitone-templates
* Block Types: core/template-part/unitone/checkout
* Template Types: page-checkout
* Inserter: no
*/
?>
<!-- wp:unitone/cover {"noPadding":true,"unitone":{"gap":0}} -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/template-front-page-header-footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Title: Front Page: Only Header and Footer
* Slug: unitone/template/front-page/header-footer
* Categories: unitone-templates
* Block Types: core/template-part/unitone/front-page
* Template Types: front-page
* Inserter: no
*/
?>
<!-- wp:unitone/cover {"noPadding":true,"unitone":{"gap":0}} -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/template-front-page-left-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Title: Front Page: Left Header
* Slug: unitone/template/front-page/left-header
* Categories: unitone-templates
* Block Types: core/template-part/unitone/front-page
* Template Types: front-page
* Inserter: no
*/
?>
<!-- wp:unitone/cover {"noPadding":true,"unitone":{"gap":0},"className":"site-container-left-header"} -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/template-home-left-header-page-header-image.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Title: Blog Home: Left Header / Page Header (Image)
* Slug: unitone/template/home/left-header-page-header-image
* Categories: unitone-templates
* Block Types: core/template-part/unitone/home
* Template Types: home
* Inserter: no
*/
?>
<!-- wp:unitone/cover {"noPadding":true,"unitone":{"gap":0},"className":"site-container-left-header"} -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/template-home-left-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Title: Blog Home: Left Header
* Slug: unitone/template/home/left-header
* Categories: unitone-templates
* Block Types: core/template-part/unitone/home
* Template Types: home
* Inserter: no
*/
?>
<!-- wp:unitone/cover {"noPadding":true,"unitone":{"gap":0},"className":"site-container-left-header"} -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/template-home-one-column-page-header-image.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Title: Blog Home: One Column / Page Header (Image)
* Slug: unitone/template/home/one-column-page-header-image
* Categories: unitone-templates
* Block Types: core/template-part/unitone/home
* Template Types: home
* Inserter: no
*/
?>
<!-- wp:unitone/cover {"noPadding":true,"unitone":{"gap":0}} -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/template-home-one-column.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Title: Blog Home: One Column
* Slug: unitone/template/home/one-column
* Categories: unitone-templates
* Block Types: core/template-part/unitone/home
* Template Types: home
* Inserter: no
*/
?>
<!-- wp:unitone/cover {"noPadding":true,"unitone":{"gap":0}} -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/template-home-right-sidebar-page-header-image.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Title: Blog Home: Right Sidebar / Page Header (Image)
* Slug: unitone/template/home/right-sidebar-page-header-image
* Categories: unitone-templates
* Block Types: core/template-part/unitone/home
* Template Types: home
* Inserter: no
*/
?>
<!-- wp:unitone/cover {"noPadding":true,"unitone":{"gap":0}} -->
Expand Down
Loading

0 comments on commit 5c235e0

Please sign in to comment.