<?php

if ( ! defined( 'ABSPATH' ) ) { return; }
if ( ! shortcode_exists( 'aieo_loyalty_information' ) ) { return; } 

$wrapper = function_exists( 'get_block_wrapper_attributes' )
	? get_block_wrapper_attributes( array( 'class' => 'aieo-loyalty-connection' ) )
	: 'class="aieo-loyalty-connection"';

echo '<div ' . $wrapper . '>' . do_shortcode( '[aieo_loyalty_information]' ) . '</div>';
