| 1 |
<?php |
| 2 |
/** |
| 3 |
* Author Profile with Follow pattern. |
| 4 |
* |
| 5 |
* @package Activitypub |
| 6 |
*/ |
| 7 |
|
| 8 |
\register_block_pattern( |
| 9 |
'activitypub/author-profile', |
| 10 |
array( |
| 11 |
'title' => _x( 'Author Profile with Follow', 'Block pattern title', 'activitypub' ), |
| 12 |
'categories' => array( 'activitypub' ), |
| 13 |
'keywords' => array( |
| 14 |
_x( 'author', 'Block pattern keyword', 'activitypub' ), |
| 15 |
_x( 'profile', 'Block pattern keyword', 'activitypub' ), |
| 16 |
_x( 'fediverse', 'Block pattern keyword', 'activitypub' ), |
| 17 |
_x( 'follow', 'Block pattern keyword', 'activitypub' ), |
| 18 |
), |
| 19 |
'description' => _x( 'Display author profile with follow button and extra fields.', 'Block pattern description', 'activitypub' ), |
| 20 |
'viewportWidth' => 1200, |
| 21 |
'content' => '<!-- wp:group {"layout":{"type":"constrained"}} --> |
| 22 |
<div class="wp-block-group"> |
| 23 |
<!-- wp:activitypub/follow-me {"selectedUser":"inherit","className":"is-style-profile"} /--> |
| 24 |
<!-- wp:spacer {"height":"24px"} --> |
| 25 |
<div style="height:24px" aria-hidden="true" class="wp-block-spacer"></div> |
| 26 |
<!-- /wp:spacer --> |
| 27 |
<!-- wp:activitypub/extra-fields {"selectedUser":"inherit"} /--> |
| 28 |
</div> |
| 29 |
<!-- /wp:group -->', |
| 30 |
) |
| 31 |
); |
| 32 |
|