Skip to content

Sharing: create a "Sharing Buttons" block #19694

@andrewserong

Description

@andrewserong

Related Epic: #31920

Related to #19659 (essentially the same task for the Like button feature)

This issue is to implement a simple MVP server side rendering block for the "Share this" feature that gets automatically appended to the end of post content. Ideally in full site editing, a user should be able to place this feature where they like within a template part.

As an example, the below screenshot is a mock up of moving out the Like button feature to a Footer template part. Here, it's clear that it would be good for the user to also be able to place the "Share this" feature elsewhere within the page:

image

Tasks

  • Create a block for the Sharing feature (and come up with a clear name for it)
    • In the editor, use a static approximation of the feature
    • On the front end, add a server side render_block method that calls the existing sharing_display method
  • If an FSE theme is active, prevent the automatic sharing_display from appending the "Share this" feature to post content (it's registered against the_content filter here, and the logic lives here )
  • Ensure the existing settings to hide the sharing feature on an individual post or globally, still applies to the block version

### Tasks
- [ ] https://github.com/Automattic/jetpack/issues/34050
- [ ] https://github.com/Automattic/jetpack/pull/34085
- [ ] https://github.com/Automattic/jetpack/issues/34108
- [ ] https://github.com/Automattic/jetpack/issues/34115
- [ ] https://github.com/Automattic/jetpack/issues/34116
- [ ] https://github.com/Automattic/jetpack/issues/34324
- [ ] https://github.com/Automattic/jetpack/issues/34325
- [ ] https://github.com/Automattic/jetpack/issues/34326
- [ ] https://github.com/Automattic/jetpack/issues/34327
- [ ] https://github.com/Automattic/jetpack/issues/34521
- [ ] https://github.com/Automattic/jetpack/issues/34580
- [ ] https://github.com/Automattic/jetpack/issues/34581
- [ ] https://github.com/Automattic/jetpack/issues/34596
- [ ] https://github.com/Automattic/jetpack/issues/34726
- [ ] https://github.com/Automattic/jetpack/issues/35047
- [ ] https://github.com/Automattic/jetpack/issues/35141
- [ ] https://github.com/Automattic/jetpack/issues/35143
- [ ] https://github.com/Automattic/jetpack/pull/35267
- [ ] https://github.com/Automattic/jetpack/issues/34621
- [ ] https://github.com/Automattic/jetpack/issues/34575
- [ ] https://github.com/Automattic/jetpack/issues/35286

Metadata

Metadata

Labels

Customer Report [LEGACY]Issues or PRs that were reported via Happiness. aka "Happiness Request", or "User Report"EnhancementChanges to an existing feature — removing, adding, or changing parts of itEpicFormerly "Primary Issue", or "Master Issue"[Block] Sharing Button[Block] Sharing Buttons[Feature] SharingPost sharing, sharing buttons[Focus] FSEIssues related to the site editor / Full Site Editing / FSE feature in Gutenberg[Plugin] JetpackIssues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/[Pri] Normal

Type

No type
No fields configured for issues without a type.

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions