Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions public/class-gdpr-public.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ public function privacy_bar() {
$registered_cookies = get_option( 'gdpr_cookie_popup_content', array() );
$show_cookie_cat_checkboxes = get_option( 'gdpr_display_cookie_categories_in_bar', false );
$button_text = apply_filters( 'gdpr_privacy_bar_button_text', esc_html__( 'I Agree', 'gdpr' ) );
$link_text = apply_filters( 'gdpr_privacy_bar_link_text', esc_html__( 'Privacy Preferences', 'gdpr' ) );
$privacy_bar_enabled = apply_filters( 'gdpr_privacy_bar_display', $privacy_bar_enabled );
$hide_from_bots = get_option( 'gdpr_hide_from_bots', true );

Expand All @@ -166,6 +167,7 @@ public function privacy_bar() {
'registered_cookies' => $registered_cookies,
'show_cookie_cat_checkboxes' => $show_cookie_cat_checkboxes,
'button_text' => $button_text,
'link_text' => $link_text,
) );
}

Expand Down
2 changes: 1 addition & 1 deletion templates/privacy-bar.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</ul>
<?php endif ?>
<div class="gdpr-buttons">
<button class="gdpr-preferences" type="button"><?php esc_html_e( 'Privacy Preferences', 'gdpr' ); ?></button>
<button class="gdpr-preferences" type="button"><?php echo esc_html( $args['link_text'] ); ?></button>
<button class="gdpr-agreement" type="button"><?php echo esc_html( $args['button_text'] ); ?></button>
</div>
<span class="gdpr-close"></span>
Expand Down