<div  class="ulp-announcements-list-wrapper"
      data-slug="<?php echo $data['post_slug'];?>"
      data-hash="<?php echo md5($data['post_slug'] . 'ulp_secret');?>"
      data-limit="<?php echo $data['limit'];?>"
>
<?php if ($data['announcements']):?>
    <?php foreach ($data['announcements'] as $object):?>
        <?php include ULP_PATH . 'views/templates/course/miniatures-single_announcement.php';?>
    <?php endforeach;?>

<?php if ($data['showMore']):?>
    <?php wp_enqueue_script('ulp-load_more_announcements', ULP_URL . 'assets/js/load_more_announcements.js', [], null);?>
    <div class="ulp-load-more-bttn-wrapp">
      <div class="ulp-load-more-bttn" id="ulp_course_announcements_load_more" ><?php _e('Show More', 'ulp');?></div>
    </div>
<?php endif;?>
<?php else :?>
  <div class="ulp-additional-message"><?php _e('No Announcements for you yet.', 'ulp');?></div>
<?php endif;?>
</div>
