| 1 |
<?php |
| 2 |
/** |
| 3 |
* Author Header with Follow pattern. |
| 4 |
* |
| 5 |
* @package Activitypub |
| 6 |
*/ |
| 7 |
|
| 8 |
\register_block_pattern( |
| 9 |
'activitypub/author-header', |
| 10 |
array( |
| 11 |
'title' => _x( 'Author Header with Follow', 'Block pattern title', 'activitypub' ), |
| 12 |
'categories' => array( 'activitypub' ), |
| 13 |
'keywords' => array( |
| 14 |
_x( 'author', 'Block pattern keyword', 'activitypub' ), |
| 15 |
_x( 'header', 'Block pattern keyword', 'activitypub' ), |
| 16 |
_x( 'fediverse', 'Block pattern keyword', 'activitypub' ), |
| 17 |
_x( 'follow', 'Block pattern keyword', 'activitypub' ), |
| 18 |
), |
| 19 |
'description' => _x( 'Compact author header with follow button.', '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"} /--> |
| 24 |
</div> |
| 25 |
<!-- /wp:group -->', |
| 26 |
) |
| 27 |
); |
| 28 |
|