Skip to content

Commit 1f1c3fd

Browse files
committed
chore: if any config not provided then hide view
1 parent 0022b40 commit 1f1c3fd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/views/reportOptIn.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@
66
</p>
77

88
<div style="margin-bottom: 15px;">
9+
<?php if ($args['termsUrl'] !== '') { ?>
910
<a href="<?php echo esc_attr($args['termsUrl']); ?>" style="text-decoration: none;">Terms of service</a> &nbsp; &nbsp;
10-
<a href="<?php echo esc_attr($args['policyUrl']); ?>" style="text-decoration: none;">Privacy Policy</a>
11+
<?php } ?>
12+
13+
<?php if ($args['policyUrl'] !== '') { ?>
14+
<a href="<?php echo esc_attr($args['policyUrl']); ?>" style="text-decoration: none;">Privacy Policy</a>
15+
<?php } ?>
1116
</div>
1217

1318
<div>

0 commit comments

Comments
 (0)