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) | |
| method | register(Minn\Blocks\Renderer $renderer): void | Registers this family's blocks with the renderer. |
| static | query(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 |
| inside | comments(), 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.
| new | __construct(Minn\Content\Posts $posts, Minn\Content\Users $users, Minn\Content\Site $site, Minn\Front\Permalinks $permalinks) | |
| method | register(Minn\Blocks\Renderer $renderer): void | Registers this family's blocks with the renderer. |
| inside | title(), content(), date(), authorName(), excerpt(), featuredImage(), terms(), navigationLink(), termRow(), previewSource(), target(), open() |
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.
| new | __construct(Minn\Content\Posts $posts, Minn\Content\Site $site, Minn\Front\Permalinks $permalinks) | |
| method | register(Minn\Blocks\Renderer $renderer): void | Registers this family's blocks with the renderer. |
| inside | query(), queried(), loop(), current(), total(), postTemplate(), postClasses(), queryTitle(), noResults(), pagination(), paginationBase(), numbers(), archiveTitle() |
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.
| new | __construct(Minn\Theme\Theme $theme, Minn\Theme\Templates $templates, Minn\Content\Site $site, Minn\Front\Permalinks $permalinks) | |
| method | register(Minn\Blocks\Renderer $renderer): void | Registers this family's blocks with the renderer. |
| inside | templatePart(), announcePart(), pattern(), siteTitle(), siteTagline() |
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).
| new | __construct(Minn\Content\Terms $terms, Minn\Front\Permalinks $permalinks) | |
| method | register(Minn\Blocks\Renderer $renderer): void | Registers this family's blocks with the renderer. |
| inside | name(), count(), description(), term() |
Nothing matches.