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 @@ -1051,15 +1051,14 @@ function post_group_tags_widget($atts) {
10511051 $ attributes = shortcode_atts (
10521052 array (
10531053 'limit ' => 100 ,
1054- 'with_link ' => true ,
1054+ 'link ' => '' ,
10551055 'only_user_groups ' => false
10561056 ),
10571057 $ atts
10581058 );
10591059
1060- // Convert to actual booleans
1060+ // Convert to actual boolean
10611061 $ only_user_groups = filter_var ($ attributes ['only_user_groups ' ], FILTER_VALIDATE_BOOLEAN );
1062- $ with_link = filter_var ($ attributes ['with_link ' ], FILTER_VALIDATE_BOOLEAN );
10631062
10641063 $ post_groups = get_post_meta ($ post_id , 'bcc_groups ' , false );
10651064 $ filtering_groups = $ this ->_settings ->filtering_groups ;
@@ -1075,7 +1074,7 @@ function post_group_tags_widget($atts) {
10751074 $ html = '' ;
10761075
10771076 foreach ($ shown_groups as $ group ) {
1078- $ link = $ with_link ? ' /informasjon/ ?target-groups[]= ' . $ group : ' javascript:void(0) ' ;
1077+ $ link = $ attributes [ ' link ' ] . ' ?target-groups[]= ' . $ group ;
10791078 $ html .= '<a class="bcc-badge bcc-badge-sm bcc-badge-custom" href=" ' . $ link . '"><i class="material-symbols-rounded">info</i><span> ' . $ this ->get_group_name ($ group ) . '</span></a> ' ;
10801079 }
10811080
You can’t perform that action at this time.
0 commit comments