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
58 lines
1.4 KiB
PHP
58 lines
1.4 KiB
PHP
<?php
|
|
/**
|
|
* Title: Hidden Comments
|
|
* Slug: block-theme-with-hooked-blocks/hidden-comments
|
|
* Inserter: no
|
|
*/
|
|
?>
|
|
<!-- wp:group {"layout":{"type":"constrained"}} -->
|
|
<div class="wp-block-group" >
|
|
<!-- wp:comments -->
|
|
<div class="wp-block-comments">
|
|
<!-- wp:heading {"level":2} -->
|
|
<h2><?php echo esc_html_x( 'Comments', 'Title of comments section', 'block-theme-with-hooked-blocks' ); ?></h2>
|
|
<!-- /wp:heading -->
|
|
|
|
<!-- wp:comments-title {"level":3} /-->
|
|
|
|
<!-- wp:comment-template -->
|
|
<!-- wp:columns -->
|
|
<div class="wp-block-columns">
|
|
<!-- wp:column -->
|
|
<div class="wp-block-column">
|
|
<!-- wp:avatar /-->
|
|
</div>
|
|
<!-- /wp:column -->
|
|
|
|
<!-- wp:column -->
|
|
<div class="wp-block-column">
|
|
<!-- wp:comment-author-name /-->
|
|
|
|
<!-- wp:group -->
|
|
<div class="wp-block-group">
|
|
<!-- wp:comment-date /-->
|
|
<!-- wp:comment-edit-link /-->
|
|
</div>
|
|
<!-- /wp:group -->
|
|
|
|
<!-- wp:comment-content /-->
|
|
|
|
<!-- wp:comment-reply-link /-->
|
|
</div>
|
|
<!-- /wp:column -->
|
|
</div>
|
|
<!-- /wp:columns -->
|
|
<!-- /wp:comment-template -->
|
|
|
|
<!-- wp:comments-pagination {"paginationArrow":"arrow","layout":{"type":"flex","justifyContent":"space-between"}} -->
|
|
<!-- wp:comments-pagination-previous /-->
|
|
<!-- wp:comments-pagination-numbers /-->
|
|
<!-- wp:comments-pagination-next /-->
|
|
<!-- /wp:comments-pagination -->
|
|
|
|
<!-- wp:post-comments-form /-->
|
|
</div>
|
|
<!-- /wp:comments -->
|
|
</div>
|
|
<!-- /wp:group -->
|