Skip to content

Commit 8010e81

Browse files
committed
Update HT script
1 parent 3e1ac4e commit 8010e81

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

plugins/bcc-login/includes/class-bcc-login-widgets.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,10 @@ function bcc_widgets_shortcodes() {
135135
} );
136136

137137
add_shortcode( 'bcc-hidden-treasures', function () {
138-
$html = '<div id="bcc-hidden-treasures">';
139-
$html .= '<bcc-hidden-treasures'
140-
. ' language="' . esc_attr(get_culture()) . '"'
141-
. ' authentication-type="WebApp"'
142-
. ' authentication-location="' . site_url( '?bcc-login=access-token' ) . '"'
143-
. '></bcc-hidden-treasures>';
144-
$html .= '</div>';
145-
$html .= '<script src="'.$this->settings->widgets_base_url.'/widgets/HiddenTreasuresJs" defer></script>';
138+
$html = '<div id="bcc-hidden-treasures"></div>';
139+
$html .= '<script id="script-bcc-hidden-treasures" data-authentication-type="WebApp" data-authentication-location="' . site_url( '?bcc-login=access-token' ) . '" ';
140+
$html .= 'data-language="' . esc_attr(get_culture()) . '" ';
141+
$html .= 'src="'.$this->settings->widgets_base_url.'/widgets/HiddenTreasuresJs" defer></script>';
146142

147143
return $html . PHP_EOL;
148144
} );

0 commit comments

Comments
 (0)