diff --git a/includes/class-newspack-popups-model.php b/includes/class-newspack-popups-model.php index 2741c71f..78ce2805 100644 --- a/includes/class-newspack-popups-model.php +++ b/includes/class-newspack-popups-model.php @@ -1045,14 +1045,6 @@ public static function get_data_status_preview_attrs( $popup ) { public static function generate_inline_popup( $popup ) { global $wp; - do_action( 'newspack_campaigns_before_campaign_render', $popup ); - $blocks = parse_blocks( $popup['content'] ); - $body = ''; - foreach ( $blocks as $block ) { - $body .= render_block( $block ); - } - do_action( 'newspack_campaigns_after_campaign_render', $popup ); - $element_id = self::get_uniqid(); $endpoint = self::get_reader_endpoint(); $display_title = $popup['options']['display_title']; @@ -1066,6 +1058,38 @@ public static function generate_inline_popup( $popup ) { $classes[] = $hide_border ? 'newspack-lightbox-no-border' : null; $classes[] = $is_newsletter_prompt ? 'newspack-newsletter-prompt-inline' : null; + ob_start(); + ?> + + + class="" + role="button" + tabindex="0" + style="" + id="" + > + + + - - - - class="" - role="button" - tabindex="0" - style="" - id="" - > - + + + +
+

- +
+
- - - -
- -

- - -
+