Skip to content
Corex

SocialShareRenderer

Corex\Blocks\SocialShareRenderer · class · Blocks layer

Server render for the privacy-friendly Blog social-share block (spec 063, Phase 7). It shares the REAL current post permalink + title via plain share-intent links — no third-party scripts, no tracking pixels, and no fabricated share counts. The links work without JavaScript (real hrefs); the copy-link and native-share controls are progressive enhancement (rendered hidden, revealed by the view script). Icon-only controls carry accessible names; the bar is a labelled group. Thin per Principle: it only builds escaped, translation-ready markup from the current post.

render(array $attributes, string $content, object $block): string

Section titled “render(array $attributes, string $content, object $block): string”