Structure final readonly class
Minn\Blocks\Dynamic\Theme\Structure · public/minn/src/Minn/Blocks/Dynamic/Theme/Structure.php · 177 lines
template-part, pattern, site-title, site-tagline, site-logo.
Uses 20 (show)
Constants and properties
| private | PART_TAGS = array ( 0 => 'header', 1 => 'footer', 2 => 'div', 3 => 'main', 4 => 'section', 5 => 'article', 6 => 'aside', 7 => 'nav', ) | Tags a part may be wrapped in: tagName names one of these or the area's tag stands (security review 2026-08-28, finding 4). |
| private | readonly Minn\Theme\Theme $theme | Promoted from the constructor. |
| private | readonly Minn\Theme\Templates $templates | Promoted from the constructor. |
| private | readonly Minn\Content\Site $site | Promoted from the constructor. |
| private | readonly Minn\Front\Permalinks $permalinks | Promoted from the constructor. |
Public
Internals 7
Private and protected methods: how the class does its work. Not a contract; they change whenever the code is tidied.
| private | templatePart(Minn\Blocks\Block $block, Minn\Blocks\Renderer $renderer): string# | A template part, as the reference renders one (probe template-part-lookup): the part found, the tag its area wraps it in asked for, its shortcodes run before its blocks are rendered, then texturized, its smilies converted and its images and iframes fitted out for the part's area; wrapped in tagName when it names a tag the engine allows, else the area's. |
| private | areaTag(string $area): string# | The tag an area's parts are wrapped in, from the areas core knows; a div for any other. |
| private | unbooted(Minn\Blocks\Block $block, string $slug, Minn\Blocks\Renderer $renderer): string# | A part with no runtime to ask: the saved part, else the theme's file, in the tag tagName or its area names. |
| private | lookedUp(Minn\Blocks\Block $block, string $slug): ?array# | A part's markup and area as the reference finds them, with what it tells plugins on the way (probe template-part-lookup): only a part of the active theme is looked for, first as a saved part through WP_Query (so pre_get_posts can steer the lookup and loop_no_results hears a miss; the engine answers it from the theme's saved templates unless a plugin changes it), its template made from the post (the area its term names), then the theme's file through get_block_file_template; the file looked for again, and each found or missing one announced. Null when there is none. @return array{0: string, 1: string}|null |
| private | pattern(Minn\Blocks\Block $block, Minn\Blocks\Renderer $renderer): string# | |
| private | siteTitle(Minn\Blocks\Block $block, Minn\Blocks\Renderer $renderer): string# | |
| private | siteTagline(Minn\Blocks\Block $block): string# |
Nothing matches.