<# const validAlertTypes = [ 'info', 'success', 'warning', 'danger' ]; if ( ! validAlertTypes.includes( data.alert_type ) ) { data.alert_type = 'info'; } data.content = elementor.compileTemplate( data.content, { view } ); #>
<# if ( data.heading ) { #>
{{{ data.heading }}}
<# } #> <# if ( data.content ) { #>
{{{ data.content }}}
<# } #>
'', // info, success, warning, danger. 'heading' => '', 'content' => '', ]; } }