PluginProbe
ActivityPub / trunk
ActivityPub vtrunk
9.3.1 9.3.0 9.2.2 9.2.1 9.2.0 9.1.0 9.0.2 9.0.1 9.0.0 8.3.0 8.2.1 8.2.0 8.1.1 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.2.0 1.3.0 2.0.0 2.0.1 2.1.0 2.1.1 All 160 releases
activitypub / patterns / author-profile.php

author-profile.php in ActivityPub trunk, at patterns/author-profile.php

32 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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