# Custom Blocks

> Aegis Dash registers eight blocks: Map and Modal, and, since 1.1.0, Countdown, Slider, Slide, Toggle, Toggle Content and Related Posts, which used to be Aegis theme blocks. core/video is not a separate block: the theme framework enhances it and the Aegis Video add-on provides the player.

## Block Ownership

| Block | Registered by | Notes |
| --- | --- | --- |
| `aegis/map` | **Aegis Dash** | Google Maps + OpenStreetMap fallback |
| `aegis/modal` | **Aegis Dash** | Popup/overlay dialogs |
| `aegis/countdown`, `slider`, `slide`, `toggle`, `toggle-content`, `related-posts` | **Aegis Dash** (since 1.1.0) | Moved from the theme; block names, markup, CSS classes and script handles are unchanged, so saved content keeps working. See [Countdown](https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/countdown/), [Slider and Slide](https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/slider/), [Toggle](https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/toggle/) and [Related Posts](https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/related-posts/) |
| `core/video` | **WordPress core** | Enhanced by the theme framework; the Aegis Video add-on provides the player (not a separate `aegis/video` block) |

Aegis Dash registers the six moved blocks only when the theme has not already registered them (older theme releases), and only on the Aegis theme or a child theme.

## Feature Toggles

Enable or disable block features at **Aegis → Blocks** (`admin.php?page=aegis-blocks`). Features are **off by default** on new installs.

![Aegis → Blocks with a block's section expanded and its feature toggles switched on and off.](https://www.atmostfear-entertainment.com/wp-content/uploads/2026/11/blocks-sections.png)

*Turn block features on or off in Aegis → Blocks.*

Parent block sections:

| Section | Block / variation |
| --- | --- |
| Accordion | List variation |
| Countdown | Countdown block — [Countdown](https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/countdown/) |
| Counter | Paragraph variation |
| Icon | Core Icon block (`core/icon`). Aegis collections register on the WordPress Icon library (WP 7.1+). There is no Image Icon variation. |
| Lightbox | Core Image lightbox extras (grouped nav, zoom, thumbnails, swipe) — [Theme Lightbox](https://www.atmostfear-entertainment.com/docs/aegis/themes/theme/lightbox/) |
| Compare | Pro `aegis/image-compare` before/after slider — extras at **Aegis → Blocks → Compare**; see [Pro Blocks](https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/) |
| Map | Map block (plugin) |
| Marquee | Group variation — [Marquee](https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/marquee/) |
| Modal | Modal block (plugin) |
| Newsletter | Search variation — [Newsletter](https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/newsletter/) |
| Query Loop | Core query enhancement — [Query Loop](https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/query-loop/) |
| Related Posts | Related Posts block — extras at **Aegis → Blocks → Related Posts**; see [Related Posts](https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/related-posts/) |
| Slider | Slider and Slide blocks — extras at **Aegis → Blocks → Slider**; see [Slider and Slide](https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/slider/) |
| SVG | Image variation (`is-style-svg` on `core/image`). Style registered in PHP. Extras at **Aegis → Blocks → SVG**. Paste markup in **SVG Settings**. Decorative icons use the Icon block, not this variation. |
| Toggle | Toggle and Toggle Content blocks — [Toggle](https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/toggle/) |
| Video | Core video enhancement |

Each section includes sub-feature toggles. Items marked **Pro** require Aegis Pro.

## Map Block

See [Map Block](https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/map/) for full documentation: API keys, OSM fallback, schema, Static Maps facade styles, and **Aegis → Blocks → Map** extras.

- Interactive Google Maps with API keys under **Aegis → Connectors → Google Maps**
- Click-to-load Static Maps facade using the same style presets (and Pro custom JSON) as the interactive map
- Optional OpenStreetMap provider, plus an OSM fallback when Google has no key
- Schema.org Local Business output when the schema extra is enabled

## Modal Block

See [Modal Block](https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/modal/) for full documentation: layouts, triggers, **Aegis → Blocks → Modal** extras, and render fallbacks.

- Popup, off-canvas, bottom sheet, and fullscreen dialogs (the latter two extras fall back to popup when off)
- Click triggers (button, text, icon, image) plus Pro exit intent, scroll depth, and time delay
- Theme light/dark tokens on the dialog; close control **Top right of screen** (default) or **On dialog**
- Instance list and starters at **Aegis → Modals** (starters enable the extras their patterns use)

Manage modal overview stats at **Aegis → Modals**. Create modal content by adding `aegis/modal` blocks in the editor.

## Slider Block

Theme-owned (`aegis/slider` + `aegis/slide`). There is no parent Slider toggle: enabling any extra at **Aegis → Blocks → Slider** implies the block. Plugin demo patterns `aegis/slider-*` register only when the block is implied on.

Free extras: Slide, Fade, Navigation Arrows, Pagination Dots, Infinite Loop, Keyboard Navigation, Responsive Slides. Pro extras: Autoplay, Advanced Effects (fade), Thumbnails, Lightbox, Mousewheel, Aspect Ratio, Lazy Loading, Arrow Styles, Dot Styles.

Splide registers as WordPress handles (`splide`, `splide-autoscroll`) so the view script can mount. Default **Slides Per Page** is 1; existing saved blocks keep their stored value. Full attributes and Pro vs Splide notes: [Slider and Slide](https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/slider/).

## Related Posts Block

Theme-owned (`aegis/related-posts`). There is no parent Related Posts toggle: enabling any extra at **Aegis → Blocks → Related Posts** implies the block.

| Extra | Inspector | Off fallback |
| --- | --- | --- |
| Related By | Related By | `auto` |
| Order By | Order By / Order | date, descending |
| Fallback Behavior | Fallback | latest posts |
| Style Variants | Grid / List / Cards / Minimal | `grid` |
| Excerpt Length | Excerpt Length | 20 words |
| Image Aspect Ratio | Image Aspect Ratio | `16/9` |

Heading, post count, columns, and display toggles stay available when the block is registered. Theme patterns `blog-related-posts-{grid,list,cards,minimal}` unregister when the block is implied off. Do not ship duplicate related-posts patterns from this plugin.

Full attributes, query filter, and Pro vs Query Loop notes: [Related Posts](https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/related-posts/).

## Countdown Block

Plugin-owned (`aegis/countdown`). There is no parent Countdown toggle: enabling any extra at **Aegis → Blocks → Countdown** implies the block.

Free extras: segment toggles, custom labels, separator, layout, expiry message, timezone, Schema.org Event. Pro extras: evergreen timer, animation styles, auto-restart, expiry actions, urgency styling.

The datetime picker stays available when the block is registered. Full attributes: [Theme Countdown](https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/countdown/).

## Compare Block

Pro-only (`aegis/image-compare`). There is no parent Compare toggle: enabling any extra at **Aegis → Blocks → Compare** implies the block in the inserter. Saved blocks still render when extras are off.

All extras are Pro: orientation, before/after labels (including show-on-hover), starting position, slide on hover, circle handle, smooth motion, fluid clip. Smooth Motion extra off leaves the library default (smooth, 100ms). Aspect ratio, height, object-fit, and object-position stay on the theme Image inspector (not Blocks extras); height applies CSS custom properties on the wrapper. Pick two images on the block; extras only expose those inspector controls.

See [Pro Blocks](https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/).

## Toggle Block

Theme-owned (`aegis/toggle` + `aegis/toggle-content`). There is no parent Toggle toggle: enabling any extra at **Aegis → Blocks → Toggle** implies the block.

Free extras: pill, switch, and button switcher styles; alignment; custom labels. Pro extras: URL sync, state persistence, animations (fade, slide, flip, scale on click), nested toggles, conditional visibility.

Pill and button styles follow Aegis light/dark tokens (page surface and theme button colors). The block is a two-view content switcher, not an accordion. Heading tag, icon type, FAQ schema, and allow-multiple were accordion leftovers and are removed. Full attributes: [Theme Toggle](https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/toggle/).

## Next Steps

- [Block Variations (Plugin Toggles)](https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/block-variations/) — Framework variations and toggles
- [Map Block](https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/map/) — Map block details
- [Modal Block](https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/modal/) — Modal block details
- [Marquee](https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/marquee/) — Group Marquee variation
- [Newsletter](https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/newsletter/) — Search Newsletter variation
- [Slider and Slide](https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/slider/) — Slider extras
- [Related Posts](https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/related-posts/) — Related Posts extras
- [Theme Countdown](https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/countdown/) — Countdown extras
- [Theme Toggle](https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/toggle/) — Toggle extras
- [Modals Tab](https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/modals/) — Modals admin tab
- [Integrations Dashboard](https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/integrations-dashboard/) — Google Maps API keys
- [Pro Blocks](https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/) — Compare extras
- [Theme Custom Blocks](https://www.atmostfear-entertainment.com/docs/aegis/themes/theme/custom-blocks/)

---

Source: https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/custom-blocks/ · Updated 2026-11-22
