<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly 

$wdpops = WDPOP_Helper::get_all_active_popups();

foreach ( $wdpops as $item_id => $this_popup ) {
    ?>
    <button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target=".wing-modal--<?php echo esc_attr($item_id);?>">
        <?php echo esc_html('Launch demo modal '. $item_id);?>
    </button>    
    <?php    
}


?>
<button type="button" class="btn btn-primary wing-popup-test-01" id="wing-popup-test-01">
    <?php echo esc_html('Launch a demo modal');?>
</button>    
<button type="button" class="btn btn-primary wing-popup-test-02" id="wing-popup-test-02">
    <?php echo esc_html('Launch a demo modal');?>
</button>    
<button type="button" class="btn btn-primary wing-popup-test-03" id="wing-popup-test-03">
    <?php echo esc_html('Launch a demo modal');?>
</button>    



