API / Minn\Blocks\Dynamic\Theme

Minn\Blocks\Dynamic\Theme

The template blocks a block theme composes with. 6 classes, 8 public methods and 71 internals. This page is the public surface; each class name opens the whole class.

Comments final readonly class

public/minn/src/Minn/Blocks/Dynamic/Theme/Comments.php · 271 lines · Open the class →

comments, comments-title, comment-template, the comment-* blocks, and the comment form.

new__construct(Minn\Content\Site $site, Minn\Front\Permalinks $permalinks, Minn\Content\Posts $posts, Minn\Content\Users $users)
methodregister(Minn\Blocks\Renderer $renderer): void

Registers this family's blocks with the renderer.

staticquery(array $vars): WP_Comment_Query

The comment query a comment template's vars ask for, run once a request: the template and its pagination links ask for the same one, and the reference answers the repeat from its cache. A comment write drops it (RowCache).

@param array<string, mixed> $vars
insidecomments(), title(), template(), records(), count(), list(), avatar(), authorAvatar(), date(), commentPost(), authorName(), content(), replyLink(), form(), commentForm()

PostBlocks final readonly class

public/minn/src/Minn/Blocks/Dynamic/Theme/PostBlocks.php · 260 lines · Open the class →

The post-* blocks: they render the context's current post.

QueryBlocks final class

public/minn/src/Minn/Blocks/Dynamic/Theme/QueryBlocks.php · 283 lines · Open the class →

query, post-template, query-title, query-no-results, query-pagination, query-total.

Structure final readonly class

public/minn/src/Minn/Blocks/Dynamic/Theme/Structure.php · 105 lines · Open the class →

template-part, pattern, site-title, site-tagline, site-logo.

TermBlocks final readonly class

public/minn/src/Minn/Blocks/Dynamic/Theme/TermBlocks.php · 71 lines · Open the class →

term-name, term-count and term-description: the term a block's context names (termId and taxonomy, as a terms query provides them), else the term archive being viewed; nothing for neither (probe core-blocks).