@@ -59,13 +59,13 @@ function get_share_link( string $name, string $link_to_share, array $share_attri
59
59
'u ' => $ link_to_share ,
60
60
],
61
61
],
62
- 'twitter ' => [
62
+ 'x ' => [
63
63
'attributes ' => [
64
- 'title ' => __ ( 'Share on Twitter ' , 'beapi-frontend-framework ' ),
64
+ 'title ' => __ ( 'Share on X ' , 'beapi-frontend-framework ' ),
65
65
'href ' => 'https://twitter.com/intent/tweet ' ,
66
66
'class ' => 'share__link ' ,
67
67
],
68
- 'icon ' => 'social/twitter ' ,
68
+ 'icon ' => 'social/x ' ,
69
69
'params ' => [
70
70
'url ' => $ link_to_share ,
71
71
],
@@ -92,17 +92,6 @@ function get_share_link( string $name, string $link_to_share, array $share_attri
92
92
'url ' => $ link_to_share ,
93
93
],
94
94
],
95
- 'xing ' => [
96
- 'attributes ' => [
97
- 'title ' => __ ( 'Share on Xing ' , 'beapi-frontend-framework ' ),
98
- 'href ' => 'https://www.xing.com/spi/shares/new ' ,
99
- 'class ' => 'share__link ' ,
100
- ],
101
- 'icon ' => 'social/xing ' ,
102
- 'params ' => [
103
- 'url ' => $ link_to_share ,
104
- ],
105
- ],
106
95
'email ' => [
107
96
'attributes ' => [
108
97
'title ' => __ ( 'Share on Email ' , 'beapi-frontend-framework ' ),
@@ -128,8 +117,8 @@ function get_share_link( string $name, string $link_to_share, array $share_attri
128
117
$ network ['params ' ] ?? []
129
118
);
130
119
131
- $ network ['attributes ' ]['href ' ] = add_query_arg ( $ network ['params ' ], $ network ['attributes ' ]['href ' ] ?? '' );
132
- $ network ['attributes ' ]['target ' ] = '_blank ' ;
120
+ $ network ['attributes ' ]['href ' ] = add_query_arg ( $ network ['params ' ], $ network ['attributes ' ]['href ' ] ?? '' );
121
+ $ network ['attributes ' ]['target ' ] = '_blank ' ;
133
122
134
123
$ attributes = wp_parse_args ( $ attributes , $ network ['attributes ' ] );
135
124
0 commit comments