PluginProbe
Social Share Buttons / 1.30
Social Share Buttons v1.30
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 +49 -22 1.61.30 View file →
@@ -1,22 +1,8 @@
1 1 <?php
2 2 namespace MBSocial;
3 3 defined('ABSPATH') or die('No direct access permitted');
4 4
5 -/*
6 -class blogLovingNetwork extends mbNetwork
7 -{
8 - protected $network = 'blogloving';
9 - protected $icon = 'fa-bold';
10 -
11 -
12 - public function __construct()
13 - {
14 -
15 - $this->popup = false;
16 - }
17 -} */
18 -
19 5 class diggNetwork extends mbNetwork
20 6 {
21 7 protected $network = 'digg';
22 8 protected $icon = 'fa-digg';
@@ -49,9 +35,8 @@
49 35 $this->share_url = 'mailto:?subject={email_subject}&body={email_content}';
50 36 else {
51 37 $this->share_url = 'mailto:?subject={title}&body={url}';
52 38 }
53 - $this->popup = false;
54 39
55 40 parent::__construct();
56 41
57 42 }
@@ -85,12 +70,15 @@
85 70 protected $icon = 'fa-linkedin-in';
86 71 protected $color = '#007bb6';
87 72 protected $priority = 'unselected';
88 73
74 +
89 75 public function __construct()
90 76 {
91 77 $this->label = __('Share','mbsocial');
92 78 $this->share_url = 'https://www.linkedin.com/shareArticle?mini=true&url={url}';
79 + $this->alternate_url = 'https://www.linkedin.com/company/{profile}';
80 + $this->alternate_label = __('Company Profile');
93 81 $this->profile_url = 'https://www.linkedin.com/in/{profile}';
94 82 // Linkedin counts where killed
95 83 //$this->count_api = 'https://www.linkedin.com/countserv/count/share?url={url}&format=json';
96 84 //$this->countable = true;
@@ -117,9 +105,8 @@
117 105 public function __construct()
118 106 {
119 107 $this->label = __('Print', 'mbsocial');
120 108 $this->share_url = 'javascript:window.print()';
121 - $this->popup = false;
122 109
123 110 parent::__construct();
124 111
125 112 }
@@ -198,9 +185,8 @@
198 185 protected $color = '#517fa4';
199 186
200 187 public function __construct()
201 188 {
202 - $this->popup = false;
203 189
204 190 $this->label = __('Follow', 'mbsocial');
205 191 $this->profile_url = 'https://instagram.com/{profile}';
206 192
@@ -216,13 +202,12 @@
216 202 protected $network = 'youtube';
217 203 protected $priority = 'readmore';
218 204 protected $icon = 'fa-youtube';
219 205 protected $color = '#bb0000';
206 + protected $is_popup = false;
220 207
221 208 public function __construct()
222 209 {
223 - $this->popup = false;
224 -
225 210 $this->label = __('View', 'mbsocial');
226 211 $this->profile_url = 'https://youtube.com/{profile}';
227 212
228 213 parent::__construct();
@@ -239,9 +224,8 @@
239 224 protected $displayDesktop = false;
240 225
241 226 public function __construct()
242 227 {
243 - $this->popup = false;
244 228 $this->label = __('Follow', 'mbsocial');
245 229 $this->profile_url = 'https://snapchat.com/{profile}';
246 230
247 231 parent::__construct();
@@ -258,8 +242,9 @@
258 242 protected $icon_type = 'fas';
259 243 protected $color = '#F99000';
260 244
261 245 protected $share_profile = false;
246 + protected $is_popup = false;
262 247 // protected $profile_placeholder = '';
263 248
264 249 public function __construct()
265 250 {
@@ -264,9 +249,8 @@
264 249 public function __construct()
265 250 {
266 251 $this->nice_name = __('RSS', 'mbsocial');
267 252 $this->profile_placeholder = __('Feed URL', 'mbsocial');
268 - $this->popup = false;
269 253 $this->label = __('Follow', 'mbsocial');
270 254 $this->profile_url = '{profile}';
271 255 parent::__construct();
272 256
@@ -292,9 +276,8 @@
292 276 protected $color = '#1ab7ea';
293 277
294 278 public function __construct()
295 279 {
296 - $this->popup = false;
297 280 $this->label = __('View', 'mbsocial');
298 281 $this->profile_url = 'https://vimeo.com/{profile}';
299 282
300 283 parent::__construct();
@@ -299,5 +282,49 @@
299 282
300 283 parent::__construct();
301 284
302 285 }
286 +}
287 +
288 +class tiktokNetwork extends mbNetwork
289 +{
290 +
291 + protected $network = 'tiktok';
292 + protected $priority = 'readmore';
293 + protected $icon = 'fa-tiktok';
294 + protected $icon_type = 'fab';
295 + protected $color = '#010101';
296 +
297 + public function __construct()
298 + {
299 + $this->nice_name = __('TikTok', 'mbsocial');
300 + $this->label = __('Follow', 'mbsocial');
301 + $this->profile_url = 'https://tiktok.com/{profile}';
302 +
303 + parent::__construct();
304 +
305 + }
306 +}
307 +
308 +
309 +class phoneNetwork extends mbNetwork
310 +{
311 + protected $network = 'phone';
312 + protected $priority = 'readmore';
313 + protected $icon = 'fa-phone';
314 + protected $icon_type = 'fas';
315 + protected $color = '#00932c';
316 + protected $is_popup = false;
317 +
318 + public function __construct()
319 + {
320 + $this->nice_name = __('Phone Number', 'mbsocial');
321 + $this->label = __('Call', 'mbsocial');
322 + $this->profile_url = 'tel:{profile}';
323 + $this->profile_placeholder = __('Phone Number', 'mbsocial');
324 + $this->displayDesktop = false;
325 +
326 + parent::__construct();
327 + }
328 +
329 +
303 330 }