File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
plugins/bcc-login/includes Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -90,5 +90,19 @@ function bcc_widgets_shortcodes() {
9090
9191 return $ html . PHP_EOL ;
9292 } );
93+
94+ add_shortcode ( 'bcc-newsfeed-new ' , function () {
95+ $ html = '<bcc-newsfeed-new authentication-type="WebApp" authentication-location=" ' . site_url ( '?bcc-login=access-token ' ) .'" ' ;
96+ $ html .= 'language=" ' . get_culture () . '"></bcc-newsfeed-new> ' ;
97+
98+ return $ html . PHP_EOL ;
99+ } );
100+
101+ add_shortcode ( 'bcc-newsfeed-public ' , function () {
102+ $ html = '<bcc-newsfeed-public language=" ' . get_culture () . '"></bcc-newsfeed-public> ' ;
103+ $ html .= '<script src="https://widgets.bcc.no/scripts/main.js" type="module"></script> ' ;
104+
105+ return $ html . PHP_EOL ;
106+ } );
93107 }
94108}
You can’t perform that action at this time.
0 commit comments