Four-Layer Model

LayerLocationResponsibility
Themewp-content/themes/aegisFSE templates, generic theme patterns (excluding WC/TI block patterns), fallback copies of the six Aegis blocks (until a later release removes them), thin PHP glue
Frameworkvendor/aegis/frameworkCore block enhancements, variations, design system engine, injection hook firing
Aegis Dashwp-content/plugins/aegis-dashAdmin, the Aegis blocks (Map, Modal, Slider, Toggle, Countdown, Related Posts), snippets, conditionals, integrations, analytics, WooCommerce/TI Wishlist block patterns (gated)
Pro pluginwp-content/plugins/aegis-proHook pattern CPT, video stack, query pro, license, Pro patterns

Template gating

FSE templates remain in the theme (templates/ + theme.json). WooCommerce and wishlist templates are hidden from the Site Editor template picker when dependencies are inactive via vendor/aegis/framework/src/DesignSystem/Templates.php (get_block_templates filter). See Template Reference.

Theme Overview

Namespace Structure (src/)

Copied!
Directory tree
src/├── bootstrap.php # Composer files autoload — starts the theme services below├── helpers.php # Pattern URL helpers (required from functions.php)├── NavigationFallback.php # block_core_navigation_render_fallback: sample menu instead of every page├── PatternDependencies.php # rest_pre_dispatch (patterns endpoint): hide patterns with blocks from inactive plugins├── Admin/│ ├── CompanionNotice.php # Install Aegis Dash notice (release zip)│ └── GitHubUpdater.php # update_themes_github.com: updates from GitHub releases└── Blocks/ # block.json + TSX sources (compiled in place) ├── BlockRegistrar.php ├── RelatedPostsQuery.php ├── ToggleId.php # Stable data-toggle-id for Toggle └── blocks-manifest.php # Generated by npm run build

Framework (vendor/aegis/framework)

Registered via ServiceProvider when Aegis::register() runs:

Bootstrap Flow

1. functions.php

Loads Composer autoload, helpers, textdomain, and Aegis::register().

2. src/bootstrap.php

Initializes CompanionNotice, GitHubUpdater, BlockRegistrar, NavigationFallback, and PatternDependencies. Adds style.css as an editor style. Icon packs under vendor/aegis/icons/public/icons/ (including payment) are discovered automatically.

3. Aegis::register()

Boots the framework ServiceProvider (design system, core blocks, integrations).

What Moved to Plugins

These features are not in theme PHP — see plugin docs:

FeatureDocumentation
AnalyticsAegis Dash Analytics
Conditionals admin/evaluatorConditional Logic
Admin dashboardAegis Dash Architecture
Multi-step checkoutWooCommerce Checkout
Integrations dashboardIntegrations Dashboard
Hook pattern CPTPro Hook Patterns
Map / Modal blocksAegis Dash Custom Blocks

Build Pipeline

Dual build — see Building Assets:

Next Steps