Ex08 — Code Blocks

Style non-Component tags with runcb="true" and sphp-cb-*. Shared blocks: UI kit sphpcodeblock.php. Project theme: overwrite or add blocks in masters/sphpcodeblock.php — FrontFiles stay the same.

1. Shared UI-kit blocks

Card title
Body from FrontFile — structure from Code Block card.
sphp-cb-border="3" + sphp-cb-color="primary"

2. Project override of shared shadow

FrontFile still uses sphp-cb-shadow; project re-register adds data-ex08-shadow="project".

Expect classes shadow-lg and attribute data-ex08-shadow="project".

3. Project-only blocks

Tip: Defined only in masters/sphpcodeblock.php.
Panel title
Comma args split inside the project callback (title + footer).

Reload | Ex04 FrontFile | Ex06 Components