PluginProbe
ActivityPub / 9.0.1
ActivityPub v9.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 / following-page.php

following-page.php in ActivityPub 9.0.1, at patterns/following-page.php

45 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Fediverse Following Page pattern.
4 *
5 * @package Activitypub
6 */
7
8 $selected_user = ! \Activitypub\is_user_type_disabled( 'blog' ) ? 'blog' : 'inherit';
9
10 \register_block_pattern(
11 'activitypub/following-page',
12 array(
13 'title' => _x( 'Fediverse Following Page', 'Block pattern title', 'activitypub' ),
14 'categories' => array( 'activitypub' ),
15 'keywords' => array(
16 _x( 'following', 'Block pattern keyword', 'activitypub' ),
17 _x( 'fediverse', 'Block pattern keyword', 'activitypub' ),
18 _x( 'page', 'Block pattern keyword', 'activitypub' ),
19 ),
20 'description' => _x( 'Following page layout with profile and following list.', 'Block pattern description', 'activitypub' ),
21 'viewportWidth' => 1200,
22 'postTypes' => array( 'page' ),
23 'blockTypes' => array( 'core/post-content' ),
24 'content' => '<!-- wp:group {"layout":{"type":"constrained"}} -->
25 <div class="wp-block-group">
26 <!-- wp:paragraph -->
27 <p>' . esc_html_x( 'These are the people and projects we follow on the Fediverse.', 'Block pattern content', 'activitypub' ) . '</p>
28 <!-- /wp:paragraph -->
29 <!-- wp:spacer {"height":"32px"} -->
30 <div style="height:32px" aria-hidden="true" class="wp-block-spacer"></div>
31 <!-- /wp:spacer -->
32 <!-- wp:activitypub/follow-me {"selectedUser":"' . $selected_user . '","className":"is-style-profile"} /-->
33 <!-- wp:spacer {"height":"32px"} -->
34 <div style="height:32px" aria-hidden="true" class="wp-block-spacer"></div>
35 <!-- /wp:spacer -->
36 <!-- wp:activitypub/following {"selectedUser":"' . $selected_user . '"} -->
37 <div class="wp-block-activitypub-following"><!-- wp:heading {"level":3} -->
38 <h3 class="wp-block-heading">' . esc_html_x( 'Following on the Fediverse', 'Block pattern content', 'activitypub' ) . '</h3>
39 <!-- /wp:heading --></div>
40 <!-- /wp:activitypub/following -->
41 </div>
42 <!-- /wp:group -->',
43 )
44 );
45