File tree Expand file tree Collapse file tree
plugins/bcc-login/includes Expand file tree Collapse file tree Original file line number Diff line number Diff 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 } );
You can’t perform that action at this time.
0 commit comments