Skip to content

Commit fcb896c

Browse files
pfefferlematticbot
andauthored
Add h-card to support the IndieWeb movement (#1771)
Co-authored-by: Automattic Bot <[email protected]>
1 parent ca22668 commit fcb896c

File tree

5 files changed

+16
-12
lines changed

5 files changed

+16
-12
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: minor
2+
Type: added
3+
4+
Enhanced markup of the "follow me" block, for a better Webmention and IndieWeb support.

build/follow-me/render.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,28 +107,28 @@
107107
<?php echo get_block_wrapper_attributes( $wrapper_attributes ); // phpcs:ignore WordPress.Security.EscapeOutput ?>
108108
<?php echo $wrapper_context; // phpcs:ignore WordPress.Security.EscapeOutput ?>
109109
>
110-
<div class="activitypub-profile">
110+
<div class="activitypub-profile p-author h-card">
111111
<?php if ( $has_header ) : ?>
112112
<div class="activitypub-profile__header" style="background-image: url('<?php echo esc_url( $header_image['url'] ); ?>');"></div>
113113
<?php endif; ?>
114114

115115
<div class="activitypub-profile__body">
116116
<img
117-
class="activitypub-profile__avatar"
117+
class="activitypub-profile__avatar u-photo"
118118
src="<?php echo esc_url( $actor->get_icon()['url'] ); ?>"
119119
alt="<?php echo esc_attr( $actor->get_name() ); ?>"
120120
/>
121121

122122
<div class="activitypub-profile__content">
123123
<div class="activitypub-profile__info">
124-
<div class="activitypub-profile__name"><?php echo esc_html( $actor->get_name() ); ?></div>
125-
<div class="activitypub-profile__handle"><?php echo esc_html( '@' . $actor->get_webfinger() ); ?></div>
124+
<div class="activitypub-profile__name p-name"><?php echo esc_html( $actor->get_name() ); ?></div>
125+
<div class="activitypub-profile__handle p-nickname p-x-webfinger"><?php echo esc_html( '@' . $actor->get_webfinger() ); ?></div>
126126
</div>
127127

128128
<?php echo $content; // phpcs:ignore WordPress.Security.EscapeOutput ?>
129129

130130
<?php if ( $actor->get_summary() ) : ?>
131-
<div class="activitypub-profile__bio">
131+
<div class="activitypub-profile__bio p-note">
132132
<?php echo wp_kses_post( $actor->get_summary() ); ?>
133133
</div>
134134
<?php endif; ?>

build/reply/index.asset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-url'), 'version' => 'e4cc0f6ffd681f4d678d');
1+
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-url'), 'version' => '78dbc26b5e405051df4a');

0 commit comments

Comments
 (0)