<# if ( ! data.shouldRenderNotice ) { return; } const validNoticeTypes = [ 'info', 'success', 'warning', 'danger' ]; const showIcon = validNoticeTypes.includes( data.notice_type ); data.content = elementor.compileTemplate( data.content, { view } ); #>
<# if ( showIcon && data.icon ) { #>
<# } #>
<# if ( data.heading ) { #>
{{{ data.heading }}}
<# } #> <# if ( data.content ) { #>
{{{ data.content }}}
<# } #> <# if ( data.button_text || data.button_text2 ) { #>
<# if ( data.button_text || data.button_event ) { #> <# } #> <# if ( data.button_text2 || data.button_event2 ) { #> <# } #>
<# } #>
<# if ( data.dismissible ) { #> <# } #>
'', // info, success, warning, danger 'icon' => true, 'dismissible' => false, 'heading' => '', 'content' => '', 'button_text' => '', 'button_event' => '', 'button_text2' => '', 'button_event2' => '', ]; } }