PluginProbe
Social Share Buttons / 1.5
Social Share Buttons v1.5
trunk 0.9 1.0 1.1 1.1.1 1.1.2 1.10 1.11 1.12 1.15 1.16 1.17 1.18 1.19 1.2 1.20 1.3 1.30 1.4 1.5 1.6 1.7 1.8 1.9
← All changes | classes/network/simple.php +19 -50 1.151.5 View file →
@@ -39,22 +39,15 @@
39 39 protected $icon = 'fa-envelope';
40 40 protected $icon_type = 'fas';
41 41 protected $color = '#5e5e5e';
42 42 protected $forcesamewindow = true;
43 - protected $is_popup = false;
44 43
45 44 public function __construct()
46 45 {
46 + parent::__construct();
47 47 $this->label = __('Email', 'mbsocial');
48 - if (Install::isPro() )
49 - $this->share_url = 'mailto:?subject={email_subject}&body={email_content}';
50 - else {
51 - $this->share_url = 'mailto:?subject={title}&body={url}';
52 - }
48 + $this->share_url = 'mailto:?subject={title}&body={url}';
53 49 $this->popup = false;
54 -
55 - parent::__construct();
56 -
57 50 }
58 51 }
59 52
60 53 class facebookNetwork extends mbNetwork
@@ -65,8 +58,10 @@
65 58 protected $color = '#3b5998';
66 59
67 60 public function __construct()
68 61 {
62 + parent::__construct();
63 +
69 64 $this->label = __('Share', 'mbsocial');
70 65 $this->share_url = 'https://www.facebook.com/sharer.php?u={url}';
71 66 $this->profile_url = 'https://www.facebook.com/{profile}';
72 67 $this->countable = true;
@@ -73,9 +68,8 @@
73 68 $this->count_api = 'https://graph.facebook.com/{url}';
74 69 $this->return_var = 'share|share_count';
75 70 $this->popup_dimensions = array(550,320);
76 71
77 - parent::__construct();
78 72 }
79 73
80 74 }
81 75
@@ -87,8 +81,9 @@
87 81 protected $priority = 'unselected';
88 82
89 83 public function __construct()
90 84 {
85 + parent::__construct();
91 86 $this->label = __('Share','mbsocial');
92 87 $this->share_url = 'https://www.linkedin.com/shareArticle?mini=true&url={url}';
93 88 $this->profile_url = 'https://www.linkedin.com/in/{profile}';
94 89 // Linkedin counts where killed
@@ -96,11 +91,8 @@
96 91 //$this->countable = true;
97 92 //$this->return_var = 'count';
98 93
99 94 $this->popup_dimensions = array(700,500);
100 -
101 - parent::__construct();
102 -
103 95 }
104 96
105 97 }
106 98
@@ -111,18 +103,15 @@
111 103 protected $icon = 'fa-print';
112 104 protected $icon_type = 'fas';
113 105 protected $color = '#5e5e5e';
114 106 protected $forcesamewindow = true;
115 - protected $is_popup = false;
116 107
117 108 public function __construct()
118 109 {
110 + parent::__construct();
119 111 $this->label = __('Print', 'mbsocial');
120 112 $this->share_url = 'javascript:window.print()';
121 113 $this->popup = false;
122 -
123 - parent::__construct();
124 -
125 114 }
126 115 }
127 116
128 117
@@ -134,8 +123,9 @@
134 123 protected $color = '#eb4924';
135 124
136 125 public function __construct()
137 126 {
127 + parent::__construct();
138 128 $this->label = __('Share','mbsocial');
139 129 $this->share_url = 'https://www.stumbleupon.com/submit?url={url}&title={title}';
140 130 $this->count_api = 'https://www.stumbleupon.com/services/1.01/badge.getinfo?url={url}';
141 131 $this->countable = true;
@@ -140,9 +130,9 @@
140 130 $this->count_api = 'https://www.stumbleupon.com/services/1.01/badge.getinfo?url={url}';
141 131 $this->countable = true;
142 132 $this->return_var = 'result|views';
143 133
144 - parent::__construct();
134 +
145 135 }
146 136 }
147 137
148 138 class redditNetwork extends mbNetwork
@@ -154,8 +144,9 @@
154 144
155 145
156 146 public function __construct()
157 147 {
148 + parent::__construct();
158 149 $this->label = __('Share', 'mbsocial');
159 150 $this->share_url = 'https://reddit.com/submit?url={url}&title={title}';
160 151 $this->count_api = 'https://buttons.reddit.com/button_info.json?url={url}';
161 152 $this->countable = true;
@@ -162,9 +153,8 @@
162 153 $this->profile_url = 'https://www.reddit.com/user/{profile}';
163 154 $this->return_var = 'data|children|0|data|score';
164 155 $this->popup_dimensions = array(800,500);
165 156
166 - parent::__construct();
167 157
168 158 }
169 159
170 160 }
@@ -180,13 +170,12 @@
180 170 protected $displayDesktop = false;
181 171
182 172 public function __construct()
183 173 {
174 + parent::__construct();
184 175 $this->label = __('Send', 'mbsocial');
185 176 $this->share_url = 'whatsapp://send?text={url} {title}';
186 177
187 - parent::__construct();
188 -
189 178 }
190 179
191 180 }
192 181
@@ -198,15 +187,14 @@
198 187 protected $color = '#517fa4';
199 188
200 189 public function __construct()
201 190 {
191 + parent::__construct();
202 192 $this->popup = false;
203 193
204 194 $this->label = __('Follow', 'mbsocial');
205 195 $this->profile_url = 'https://instagram.com/{profile}';
206 196
207 - parent::__construct();
208 -
209 197 }
210 198
211 199 }
212 200
@@ -219,14 +207,15 @@
219 207 protected $color = '#bb0000';
220 208
221 209 public function __construct()
222 210 {
211 + parent::__construct();
212 +
223 213 $this->popup = false;
224 214
225 215 $this->label = __('View', 'mbsocial');
226 216 $this->profile_url = 'https://youtube.com/{profile}';
227 217
228 - parent::__construct();
229 218 }
230 219 }
231 220
232 221 class snapchatNetwork extends mbNetwork
@@ -239,14 +228,13 @@
239 228 protected $displayDesktop = false;
240 229
241 230 public function __construct()
242 231 {
232 + parent::__construct();
243 233 $this->popup = false;
244 234 $this->label = __('Follow', 'mbsocial');
245 235 $this->profile_url = 'https://snapchat.com/{profile}';
246 236
247 - parent::__construct();
248 -
249 237 }
250 238
251 239 }
252 240
@@ -262,15 +250,15 @@
262 250 // protected $profile_placeholder = '';
263 251
264 252 public function __construct()
265 253 {
254 + parent::__construct();
255 +
266 256 $this->nice_name = __('RSS', 'mbsocial');
267 257 $this->profile_placeholder = __('Feed URL', 'mbsocial');
268 258 $this->popup = false;
269 259 $this->label = __('Follow', 'mbsocial');
270 260 $this->profile_url = '{profile}';
271 - parent::__construct();
272 -
273 261 }
274 262 /*
275 263 public function get_url()
276 264 {
@@ -283,8 +271,9 @@
283 271 } */
284 272
285 273 }
286 274
275 +
287 276 class vimeoNetwork extends mbNetwork
288 277 {
289 278 protected $network = 'vimeo';
290 279 protected $priority = 'readmore';
@@ -292,33 +281,13 @@
292 281 protected $color = '#1ab7ea';
293 282
294 283 public function __construct()
295 284 {
285 + parent::__construct();
286 +
296 287 $this->popup = false;
297 288 $this->label = __('View', 'mbsocial');
298 289 $this->profile_url = 'https://vimeo.com/{profile}';
299 290
300 - parent::__construct();
301 -
302 - }
303 -}
304 -
305 -class tiktokNetwork extends mbNetwork
306 -{
307 -
308 - protected $network = 'tiktok';
309 - protected $priority = 'readmore';
310 - protected $icon = 'fa-tiktok';
311 - protected $icon_type = 'fab';
312 - protected $color = '#010101';
313 -
314 - public function __construct()
315 - {
316 - $this->popup = false;
317 - $this->nice_name = __('TikTok', 'mbsocial');
318 - $this->label = __('Follow', 'mbsocial');
319 - $this->profile_url = 'https://tiktok.com/{profile}';
320 -
321 - parent::__construct();
322 291
323 292 }
324 293 }