Skip to content

Commit

Permalink
chore: report opt-in view change & condition applied
Browse files Browse the repository at this point in the history
  • Loading branch information
shuvomohajan committed May 8, 2024
1 parent 1f1c3fd commit 60668ed
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions src/views/reportOptIn.php
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
<div class="updated" style="border: 1px solid #c3c4c7; padding: 15px">
<h1 style="padding: 0;">We hope you love <?php echo esc_attr($args['title']); ?>.</h1>

<p style="margin-bottom: 10px;">
<p style="margin-bottom: 15px;">
<?php echo esc_attr($args['description']); ?>
</p>

<div style="margin-bottom: 15px;">
<?php if ($args['termsUrl'] !== '') { ?>
<a href="<?php echo esc_attr($args['termsUrl']); ?>" style="text-decoration: none;">Terms of service</a> &nbsp; &nbsp;
<?php } ?>
<div style="display: flex; justify-content: space-between;">
<div>
<a href="<?php echo esc_attr(esc_url($args['optInUrl'])); ?>" class="button-primary button-large">Allow & Continue</a> &nbsp;
<a href="<?php echo esc_attr(esc_url($args['optOutUrl'])); ?>" class="button-secondary button-large" style="border-color: transparent">Skip</a>
</div>
<div>
<?php if ($args['termsUrl'] !== '') { ?>
<a href="<?php echo esc_attr($args['termsUrl']); ?>">Terms of service</a> &nbsp; &nbsp;
<?php } ?>

<?php if ($args['policyUrl'] !== '') { ?>
<a href="<?php echo esc_attr($args['policyUrl']); ?>" style="text-decoration: none;">Privacy Policy</a>
<?php } ?>
</div>

<div>
<a href="<?php echo esc_attr(esc_url($args['optInUrl'])); ?>" class="button-primary button-large">Allow & Continue</a> &nbsp;
<a href="<?php echo esc_attr(esc_url($args['optOutUrl'])); ?>" class="button-secondary button-large" style="border-color: transparent">Skip</a>
<?php if ($args['policyUrl'] !== '') { ?>
<a href="<?php echo esc_attr($args['policyUrl']); ?>">Privacy Policy</a>
<?php } ?>
</div>
</div>
</div>

0 comments on commit 60668ed

Please sign in to comment.