mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Adds a simplified version of Twenty Twenty-Three theme that helps testing Block Hooks integration. The theme contains: - The required index.html template. - The optional single.html template used with tests. - 3 template parts where two of them reference patterns. - 3 patterns referenced in the templates and the template parts. New tests automatically register 4 custom blocks with the test theme where each of them hooks into another block using all four target relative positions: `before`, `after`, `firstChild`, `lastChild`. The tests verify that the block gets hooked into the correct positions when targeting: - template - template part - pattern Props ockham, costdev. See #59313, #59383. Follow-up [56610]. git-svn-id: https://develop.svn.wordpress.org/trunk@56759 602fd350-edb4-49c9-b593-d223f7449a82
77 lines
2.1 KiB
PHP
77 lines
2.1 KiB
PHP
<?php
|
|
/**
|
|
* Title: Post Meta
|
|
* Slug: block-theme-with-hooked-blocks/post-meta
|
|
* Categories: query
|
|
* Keywords: post meta
|
|
* Block Types: core/template-part/post-meta
|
|
*/
|
|
?>
|
|
<!-- wp:spacer {"height":"0"} -->
|
|
<div style="height:0" aria-hidden="true" class="wp-block-spacer"></div>
|
|
<!-- /wp:spacer -->
|
|
|
|
<!-- wp:group {"layout":{"type":"constrained"}} -->
|
|
<div class="wp-block-group">
|
|
<!-- wp:separator {"opacity":"css","align":"wide","className":"is-style-wide"} -->
|
|
<hr class="wp-block-separator alignwide has-css-opacity is-style-wide"/>
|
|
<!-- /wp:separator -->
|
|
|
|
<!-- wp:columns -->
|
|
<div class="wp-block-columns">
|
|
<!-- wp:column -->
|
|
<div class="wp-block-column">
|
|
<!-- wp:group {"layout":{"type":"flex"}} -->
|
|
<div class="wp-block-group">
|
|
<!-- wp:paragraph -->
|
|
<p>
|
|
<?php echo esc_html_x( 'Posted', 'Verb to explain the publication status of a post', 'block-theme-with-hooked-blocks' ); ?>
|
|
</p>
|
|
<!-- /wp:paragraph -->
|
|
|
|
<!-- wp:post-date /-->
|
|
|
|
<!-- wp:paragraph -->
|
|
<p>
|
|
<?php echo esc_html_x( 'in', 'Preposition to show the relationship between the post and its categories', 'block-theme-with-hooked-blocks' ); ?>
|
|
</p>
|
|
<!-- /wp:paragraph -->
|
|
|
|
<!-- wp:post-terms {"term":"category"} /-->
|
|
</div>
|
|
<!-- /wp:group -->
|
|
|
|
<!-- wp:group {"layout":{"type":"flex"}} -->
|
|
<div class="wp-block-group">
|
|
<!-- wp:paragraph -->
|
|
<p>
|
|
<?php echo esc_html_x( 'by', 'Preposition to show the relationship between the post and its author', 'block-theme-with-hooked-blocks' ); ?>
|
|
</p>
|
|
<!-- /wp:paragraph -->
|
|
|
|
<!-- wp:post-author {"showAvatar":false} /-->
|
|
</div>
|
|
<!-- /wp:group -->
|
|
</div>
|
|
<!-- /wp:column -->
|
|
|
|
<!-- wp:column -->
|
|
<div class="wp-block-column">
|
|
<!-- wp:group {"layout":{"type":"flex","orientation":"vertical"}} -->
|
|
<div class="wp-block-group">
|
|
<!-- wp:paragraph -->
|
|
<p>
|
|
<?php echo esc_html_x( 'Tags:', 'Label for a list of post tags', 'block-theme-with-hooked-blocks' ); ?>
|
|
</p>
|
|
<!-- /wp:paragraph -->
|
|
|
|
<!-- wp:post-terms {"term":"post_tag"} /-->
|
|
</div>
|
|
<!-- /wp:group -->
|
|
</div>
|
|
<!-- /wp:column -->
|
|
</div>
|
|
<!-- /wp:columns -->
|
|
</div>
|
|
<!-- /wp:group -->
|