Skip to content

Commit

Permalink
Update plugin.php
Browse files Browse the repository at this point in the history
  • Loading branch information
akashmdiu committed Dec 10, 2023
1 parent 0a4fedd commit 7d22dc9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Gutenberg/plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -782,6 +782,7 @@ function embedpress_pdf_render_block($attributes)

$url = !empty($attributes['href']) ? $attributes['href'] : '';

$adsAtts = '';
if(!empty($attributes['adManager'])) {
$ad = base64_encode(json_encode($attributes));
$adsAtts = "data-ad-id=$client_id data-ad-attrs=$ad class=ad-mask";
Expand Down

0 comments on commit 7d22dc9

Please sign in to comment.