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 -77 1.161.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
@@ -85,15 +79,13 @@
85 79 protected $icon = 'fa-linkedin-in';
86 80 protected $color = '#007bb6';
87 81 protected $priority = 'unselected';
88 82
89 -
90 83 public function __construct()
91 84 {
85 + parent::__construct();
92 86 $this->label = __('Share','mbsocial');
93 87 $this->share_url = 'https://www.linkedin.com/shareArticle?mini=true&url={url}';
94 - $this->alternate_url = 'https://www.linkedin.com/company/{profile}';
95 - $this->alternate_label = __('Company Profile');
96 88 $this->profile_url = 'https://www.linkedin.com/in/{profile}';
97 89 // Linkedin counts where killed
98 90 //$this->count_api = 'https://www.linkedin.com/countserv/count/share?url={url}&format=json';
99 91 //$this->countable = true;
@@ -99,11 +91,8 @@
99 91 //$this->countable = true;
100 92 //$this->return_var = 'count';
101 93
102 94 $this->popup_dimensions = array(700,500);
103 -
104 - parent::__construct();
105 -
106 95 }
107 96
108 97 }
109 98
@@ -114,18 +103,15 @@
114 103 protected $icon = 'fa-print';
115 104 protected $icon_type = 'fas';
116 105 protected $color = '#5e5e5e';
117 106 protected $forcesamewindow = true;
118 - protected $is_popup = false;
119 107
120 108 public function __construct()
121 109 {
110 + parent::__construct();
122 111 $this->label = __('Print', 'mbsocial');
123 112 $this->share_url = 'javascript:window.print()';
124 113 $this->popup = false;
125 -
126 - parent::__construct();
127 -
128 114 }
129 115 }
130 116
131 117
@@ -137,8 +123,9 @@
137 123 protected $color = '#eb4924';
138 124
139 125 public function __construct()
140 126 {
127 + parent::__construct();
141 128 $this->label = __('Share','mbsocial');
142 129 $this->share_url = 'https://www.stumbleupon.com/submit?url={url}&title={title}';
143 130 $this->count_api = 'https://www.stumbleupon.com/services/1.01/badge.getinfo?url={url}';
144 131 $this->countable = true;
@@ -143,9 +130,9 @@
143 130 $this->count_api = 'https://www.stumbleupon.com/services/1.01/badge.getinfo?url={url}';
144 131 $this->countable = true;
145 132 $this->return_var = 'result|views';
146 133
147 - parent::__construct();
134 +
148 135 }
149 136 }
150 137
151 138 class redditNetwork extends mbNetwork
@@ -157,8 +144,9 @@
157 144
158 145
159 146 public function __construct()
160 147 {
148 + parent::__construct();
161 149 $this->label = __('Share', 'mbsocial');
162 150 $this->share_url = 'https://reddit.com/submit?url={url}&title={title}';
163 151 $this->count_api = 'https://buttons.reddit.com/button_info.json?url={url}';
164 152 $this->countable = true;
@@ -165,9 +153,8 @@
165 153 $this->profile_url = 'https://www.reddit.com/user/{profile}';
166 154 $this->return_var = 'data|children|0|data|score';
167 155 $this->popup_dimensions = array(800,500);
168 156
169 - parent::__construct();
170 157
171 158 }
172 159
173 160 }
@@ -183,13 +170,12 @@
183 170 protected $displayDesktop = false;
184 171
185 172 public function __construct()
186 173 {
174 + parent::__construct();
187 175 $this->label = __('Send', 'mbsocial');
188 176 $this->share_url = 'whatsapp://send?text={url} {title}';
189 177
190 - parent::__construct();
191 -
192 178 }
193 179
194 180 }
195 181
@@ -201,15 +187,14 @@
201 187 protected $color = '#517fa4';
202 188
203 189 public function __construct()
204 190 {
191 + parent::__construct();
205 192 $this->popup = false;
206 193
207 194 $this->label = __('Follow', 'mbsocial');
208 195 $this->profile_url = 'https://instagram.com/{profile}';
209 196
210 - parent::__construct();
211 -
212 197 }
213 198
214 199 }
215 200
@@ -222,14 +207,15 @@
222 207 protected $color = '#bb0000';
223 208
224 209 public function __construct()
225 210 {
211 + parent::__construct();
212 +
226 213 $this->popup = false;
227 214
228 215 $this->label = __('View', 'mbsocial');
229 216 $this->profile_url = 'https://youtube.com/{profile}';
230 217
231 - parent::__construct();
232 218 }
233 219 }
234 220
235 221 class snapchatNetwork extends mbNetwork
@@ -242,14 +228,13 @@
242 228 protected $displayDesktop = false;
243 229
244 230 public function __construct()
245 231 {
232 + parent::__construct();
246 233 $this->popup = false;
247 234 $this->label = __('Follow', 'mbsocial');
248 235 $this->profile_url = 'https://snapchat.com/{profile}';
249 236
250 - parent::__construct();
251 -
252 237 }
253 238
254 239 }
255 240
@@ -265,15 +250,15 @@
265 250 // protected $profile_placeholder = '';
266 251
267 252 public function __construct()
268 253 {
254 + parent::__construct();
255 +
269 256 $this->nice_name = __('RSS', 'mbsocial');
270 257 $this->profile_placeholder = __('Feed URL', 'mbsocial');
271 258 $this->popup = false;
272 259 $this->label = __('Follow', 'mbsocial');
273 260 $this->profile_url = '{profile}';
274 - parent::__construct();
275 -
276 261 }
277 262 /*
278 263 public function get_url()
279 264 {
@@ -286,8 +271,9 @@
286 271 } */
287 272
288 273 }
289 274
275 +
290 276 class vimeoNetwork extends mbNetwork
291 277 {
292 278 protected $network = 'vimeo';
293 279 protected $priority = 'readmore';
@@ -295,57 +281,13 @@
295 281 protected $color = '#1ab7ea';
296 282
297 283 public function __construct()
298 284 {
285 + parent::__construct();
286 +
299 287 $this->popup = false;
300 288 $this->label = __('View', 'mbsocial');
301 289 $this->profile_url = 'https://vimeo.com/{profile}';
302 290
303 - parent::__construct();
304 291
305 292 }
306 -}
307 -
308 -class tiktokNetwork extends mbNetwork
309 -{
310 -
311 - protected $network = 'tiktok';
312 - protected $priority = 'readmore';
313 - protected $icon = 'fa-tiktok';
314 - protected $icon_type = 'fab';
315 - protected $color = '#010101';
316 -
317 - public function __construct()
318 - {
319 - $this->popup = false;
320 - $this->nice_name = __('TikTok', 'mbsocial');
321 - $this->label = __('Follow', 'mbsocial');
322 - $this->profile_url = 'https://tiktok.com/{profile}';
323 -
324 - parent::__construct();
325 -
326 - }
327 -}
328 -
329 -
330 -class phoneNetwork extends mbNetwork
331 -{
332 - protected $network = 'phone';
333 - protected $priority = 'readmore';
334 - protected $icon = 'fa-phone';
335 - protected $icon_type = 'fas';
336 - protected $color = '#00932c';
337 -
338 - public function __construct()
339 - {
340 - $this->popup =false;
341 - $this->nice_name = __('Phone Number', 'mbsocial');
342 - $this->label = __('Call', 'mbsocial');
343 - $this->profile_url = 'tel:{profile}';
344 - $this->profile_placeholder = __('Phone Number', 'mbsocial');
345 - $this->displayDesktop = false;
346 -
347 - parent::__construct();
348 - }
349 -
350 -
351 293 }