PluginProbe
ActivityPub / 8.0.1
ActivityPub v8.0.1
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-header.php

author-header.php in ActivityPub 8.0.1, at patterns/author-header.php

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