Broadcast
Broadcasts are dynamic areas that rotate through nested Global Blocks for internal advertising, campaigns, and content promotion. Add them in the editor as Broadcast Blocks or render them from templates.
Terminology#
- A Broadcast is the dynamic container that rotates through a collection of nested Global Blocks.
- A Broadcast Block is the block representation of an existing Broadcast, similar to how Global Blocks can be reused.
Using Broadcast in PHP templates#
When a template needs to render a Broadcast directly, use the helper function:
text
if ( function_exists( 'Altis\\Accelerate\\Broadcast\\render' ) ) {
echo Altis\\Accelerate\\Broadcast\\render( $broadcast_id = 120, $client_id = 'footer-hero-broadcast' );
}$broadcast_idis the ID of the Broadcast to target.$client_idis an optional unique identifier for that instance, useful for analytics and reporting.