'rooster-announcement-bar' . ( $dismissible ? ' rooster-announcement-bar--dismissible' : '' ), 'role' => 'region', 'aria-label' => __( 'Announcement', 'ai-eshop-optimizer' ), 'data-rooster-key' => $key, ] ); $text = $href ? sprintf( '%s', $href, esc_html( $message ) ) : ''; $icon = ! empty( $attributes['showIcon'] ) ? '' : ''; $close = $dismissible ? sprintf( '', esc_attr__( 'Dismiss announcement', 'ai-eshop-optimizer' ), rooster_icon( 'x', [ 'width' => 18, 'height' => 18 ] ) ) : ''; AIEO_Engine_Blocks::out( sprintf( '