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