Version Description
2017/10/25 =
Updated Twitch integration requiring "Twitch Client ID".
Fixed PHP notices when Pinterest profile does not exist.
Introduced the
social_count_plus_get_view_li
filter.
Download this release
Release Info
Developer | claudiosanches |
Plugin | Social Count Plus |
Version | 3.4.0 |
Comparing to | |
See all releases |
Code changes from version 3.3.6 to 3.4.0
- includes/abstracts/abstract-social-count-plus-counter.php +1 -1
- includes/admin/class-social-count-plus-admin.php +9 -4
- includes/counters/class-social-count-plus-pinterest-counter.php +1 -1
- includes/counters/class-social-count-plus-twitch-counter.php +2 -5
- languages/social-count-plus.pot +80 -72
- readme.txt +9 -3
- social-count-plus.php +4 -4
includes/abstracts/abstract-social-count-plus-counter.php
CHANGED
@@ -80,7 +80,7 @@ abstract class Social_Count_Plus_Counter {
|
|
80 |
$html .= '</span>';
|
81 |
$html .= '</li>';
|
82 |
|
83 |
-
return $html;
|
84 |
}
|
85 |
|
86 |
/**
|
80 |
$html .= '</span>';
|
81 |
$html .= '</li>';
|
82 |
|
83 |
+
return apply_filters( 'social_count_plus_get_view_li', $html, $url, $count, $label, $color, $settings, $this->id );
|
84 |
}
|
85 |
|
86 |
/**
|
includes/admin/class-social-count-plus-admin.php
CHANGED
@@ -126,7 +126,7 @@ class Social_Count_Plus_Admin {
|
|
126 |
'github_username' => array(
|
127 |
'title' => __( 'GitHub Username', 'social-count-plus' ),
|
128 |
'type' => 'text',
|
129 |
-
'description' => sprintf( __( 'Insert your GitHub username. Example: %s.', 'social-count-plus' ), '<code>
|
130 |
),
|
131 |
)
|
132 |
),
|
@@ -311,8 +311,13 @@ class Social_Count_Plus_Admin {
|
|
311 |
'title' => __( 'Twitch Username', 'social-count-plus' ),
|
312 |
'type' => 'text',
|
313 |
'description' => __( 'Insert your Twitch username.', 'social-count-plus' )
|
314 |
-
)
|
315 |
-
|
|
|
|
|
|
|
|
|
|
|
316 |
),
|
317 |
'twitter' => array(
|
318 |
'title' => __( 'Twitter', 'social-count-plus' ),
|
@@ -324,7 +329,7 @@ class Social_Count_Plus_Admin {
|
|
324 |
'twitter_user' => array(
|
325 |
'title' => __( 'Twitter Username', 'social-count-plus' ),
|
326 |
'type' => 'text',
|
327 |
-
'description' => sprintf( __( 'Insert the Twitter username. Example: %s.', 'social-count-plus' ), '<code>
|
328 |
),
|
329 |
'twitter_consumer_key' => array(
|
330 |
'title' => __( 'Twitter Consumer key', 'social-count-plus' ),
|
126 |
'github_username' => array(
|
127 |
'title' => __( 'GitHub Username', 'social-count-plus' ),
|
128 |
'type' => 'text',
|
129 |
+
'description' => sprintf( __( 'Insert your GitHub username. Example: %s.', 'social-count-plus' ), '<code>claudiosanches</code>' )
|
130 |
),
|
131 |
)
|
132 |
),
|
311 |
'title' => __( 'Twitch Username', 'social-count-plus' ),
|
312 |
'type' => 'text',
|
313 |
'description' => __( 'Insert your Twitch username.', 'social-count-plus' )
|
314 |
+
),
|
315 |
+
'twitch_client_ID' => array(
|
316 |
+
'title' => __( 'Twitch Client ID', 'social-count-plus' ),
|
317 |
+
'type' => 'text',
|
318 |
+
'description' => __( 'Insert your Twitch Client ID.', 'social-count-plus' ),
|
319 |
+
),
|
320 |
+
),
|
321 |
),
|
322 |
'twitter' => array(
|
323 |
'title' => __( 'Twitter', 'social-count-plus' ),
|
329 |
'twitter_user' => array(
|
330 |
'title' => __( 'Twitter Username', 'social-count-plus' ),
|
331 |
'type' => 'text',
|
332 |
+
'description' => sprintf( __( 'Insert the Twitter username. Example: %s.', 'social-count-plus' ), '<code>claudiosanchesm</code>' )
|
333 |
),
|
334 |
'twitter_consumer_key' => array(
|
335 |
'title' => __( 'Twitter Consumer key', 'social-count-plus' ),
|
includes/counters/class-social-count-plus-pinterest-counter.php
CHANGED
@@ -60,7 +60,7 @@ class Social_Count_Plus_Pinterest_Counter extends Social_Count_Plus_Counter {
|
|
60 |
$regex = '/property\=\"pinterestapp:followers\" name\=\"pinterestapp:followers\" content\=\"(.*?)" data-app/';
|
61 |
preg_match( $regex, $this->connection['body'], $tags );
|
62 |
|
63 |
-
$count = intval( $tags[1] );
|
64 |
}
|
65 |
|
66 |
if ( 0 < $count ) {
|
60 |
$regex = '/property\=\"pinterestapp:followers\" name\=\"pinterestapp:followers\" content\=\"(.*?)" data-app/';
|
61 |
preg_match( $regex, $this->connection['body'], $tags );
|
62 |
|
63 |
+
$count = isset( $tags[1] ) ? intval( $tags[1] ) : 0;
|
64 |
}
|
65 |
|
66 |
if ( 0 < $count ) {
|
includes/counters/class-social-count-plus-twitch-counter.php
CHANGED
@@ -35,7 +35,7 @@ class Social_Count_Plus_Twitch_Counter extends Social_Count_Plus_Counter {
|
|
35 |
* @return bool
|
36 |
*/
|
37 |
public function is_available( $settings ) {
|
38 |
-
return isset( $settings['twitch_active'] ) && ! empty( $settings['twitch_username'] );
|
39 |
}
|
40 |
|
41 |
/**
|
@@ -50,12 +50,9 @@ class Social_Count_Plus_Twitch_Counter extends Social_Count_Plus_Counter {
|
|
50 |
if ( $this->is_available( $settings ) ) {
|
51 |
$params = array(
|
52 |
'timeout' => 60,
|
53 |
-
'headers' => array(
|
54 |
-
'accept' => 'application/vnd.twitchtv.v3+json'
|
55 |
-
)
|
56 |
);
|
57 |
|
58 |
-
$this->connection = wp_remote_get( $this->api_url .
|
59 |
|
60 |
if ( is_wp_error( $this->connection ) || ( isset( $this->connection['response']['code'] ) && 200 != $this->connection['response']['code'] ) ) {
|
61 |
$this->total = ( isset( $cache[ $this->id ] ) ) ? $cache[ $this->id ] : 0;
|
35 |
* @return bool
|
36 |
*/
|
37 |
public function is_available( $settings ) {
|
38 |
+
return isset( $settings['twitch_active'] ) && ! empty( $settings['twitch_username'] ) && ! empty( $settings['twitch_client_ID'] );
|
39 |
}
|
40 |
|
41 |
/**
|
50 |
if ( $this->is_available( $settings ) ) {
|
51 |
$params = array(
|
52 |
'timeout' => 60,
|
|
|
|
|
|
|
53 |
);
|
54 |
|
55 |
+
$this->connection = wp_remote_get( esc_url_raw( $this->api_url . $settings['twitch_username'] . '?client_id=' . $settings['twitch_client_ID'] ), $params );
|
56 |
|
57 |
if ( is_wp_error( $this->connection ) || ( isset( $this->connection['response']['code'] ) && 200 != $this->connection['response']['code'] ) ) {
|
58 |
$this->total = ( isset( $cache[ $this->id ] ) ) ? $cache[ $this->id ] : 0;
|
languages/social-count-plus.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the GPLv2 or later.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Social Count Plus 3.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/plugins/woocommerce-domination/\n"
|
7 |
-
"POT-Creation-Date: 2017-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -32,7 +32,7 @@ msgid ""
|
|
32 |
msgstr ""
|
33 |
|
34 |
#: includes/admin/class-social-count-plus-admin.php:76
|
35 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
36 |
msgid "Comments"
|
37 |
msgstr ""
|
38 |
|
@@ -42,12 +42,12 @@ msgstr ""
|
|
42 |
|
43 |
#: includes/admin/class-social-count-plus-admin.php:84
|
44 |
#: includes/admin/class-social-count-plus-admin.php:230
|
45 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
46 |
msgid "URL"
|
47 |
msgstr ""
|
48 |
|
49 |
#: includes/admin/class-social-count-plus-admin.php:91
|
50 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
51 |
msgid "Facebook"
|
52 |
msgstr ""
|
53 |
|
@@ -82,7 +82,7 @@ msgid "Facebook App Secret"
|
|
82 |
msgstr ""
|
83 |
|
84 |
#: includes/admin/class-social-count-plus-admin.php:120
|
85 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
86 |
msgid "GitHub"
|
87 |
msgstr ""
|
88 |
|
@@ -99,7 +99,7 @@ msgid "Insert your GitHub username. Example: %s."
|
|
99 |
msgstr ""
|
100 |
|
101 |
#: includes/admin/class-social-count-plus-admin.php:134
|
102 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
103 |
msgid "Google+"
|
104 |
msgstr ""
|
105 |
|
@@ -120,7 +120,7 @@ msgid "Example:"
|
|
120 |
msgstr ""
|
121 |
|
122 |
#: includes/admin/class-social-count-plus-admin.php:150
|
123 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
124 |
msgid "Google API Key"
|
125 |
msgstr ""
|
126 |
|
@@ -134,7 +134,7 @@ msgid ""
|
|
134 |
msgstr ""
|
135 |
|
136 |
#: includes/admin/class-social-count-plus-admin.php:160
|
137 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
138 |
msgid "Instagram"
|
139 |
msgstr ""
|
140 |
|
@@ -167,7 +167,7 @@ msgid "Insert your Instagram Access Token."
|
|
167 |
msgstr ""
|
168 |
|
169 |
#: includes/admin/class-social-count-plus-admin.php:184
|
170 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
171 |
msgid "LinkedIn"
|
172 |
msgstr ""
|
173 |
|
@@ -192,7 +192,7 @@ msgid "Get your Access Token in %s."
|
|
192 |
msgstr ""
|
193 |
|
194 |
#: includes/admin/class-social-count-plus-admin.php:203
|
195 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
196 |
msgid "Pinterest"
|
197 |
msgstr ""
|
198 |
|
@@ -209,7 +209,7 @@ msgid "Insert your Pinterest username. Example: %s."
|
|
209 |
msgstr ""
|
210 |
|
211 |
#: includes/admin/class-social-count-plus-admin.php:217
|
212 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
213 |
msgid "Posts"
|
214 |
msgstr ""
|
215 |
|
@@ -222,7 +222,7 @@ msgid "Post Type"
|
|
222 |
msgstr ""
|
223 |
|
224 |
#: includes/admin/class-social-count-plus-admin.php:237
|
225 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
226 |
msgid "SoundCloud"
|
227 |
msgstr ""
|
228 |
|
@@ -247,7 +247,7 @@ msgid "Insert your SoundCloud App Client ID. Generate this data in %s."
|
|
247 |
msgstr ""
|
248 |
|
249 |
#: includes/admin/class-social-count-plus-admin.php:256
|
250 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
251 |
msgid "Steam"
|
252 |
msgstr ""
|
253 |
|
@@ -264,7 +264,7 @@ msgid "Insert your Steam Community group name. Example: %s."
|
|
264 |
msgstr ""
|
265 |
|
266 |
#: includes/admin/class-social-count-plus-admin.php:270
|
267 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
268 |
msgid "Tumblr"
|
269 |
msgstr ""
|
270 |
|
@@ -297,7 +297,7 @@ msgid "Tumblr Token Secret"
|
|
297 |
msgstr ""
|
298 |
|
299 |
#: includes/admin/class-social-count-plus-admin.php:304
|
300 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
301 |
msgid "Twitch"
|
302 |
msgstr ""
|
303 |
|
@@ -313,104 +313,112 @@ msgstr ""
|
|
313 |
msgid "Insert your Twitch username."
|
314 |
msgstr ""
|
315 |
|
|
|
|
|
|
|
|
|
316 |
#: includes/admin/class-social-count-plus-admin.php:318
|
317 |
-
|
|
|
|
|
|
|
|
|
318 |
msgid "Twitter"
|
319 |
msgstr ""
|
320 |
|
321 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
322 |
msgid "Display Twitter Counter"
|
323 |
msgstr ""
|
324 |
|
325 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
326 |
msgid "Twitter Username"
|
327 |
msgstr ""
|
328 |
|
329 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
330 |
msgid "Insert the Twitter username. Example: %s."
|
331 |
msgstr ""
|
332 |
|
333 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
334 |
msgid "Twitter Consumer key"
|
335 |
msgstr ""
|
336 |
|
337 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
338 |
msgid "Twitter Consumer secret"
|
339 |
msgstr ""
|
340 |
|
341 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
342 |
msgid "Twitter Access token"
|
343 |
msgstr ""
|
344 |
|
345 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
346 |
msgid "Twitter Access token secret"
|
347 |
msgstr ""
|
348 |
|
349 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
350 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
351 |
msgid "Users"
|
352 |
msgstr ""
|
353 |
|
354 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
355 |
msgid "Display Users Counter"
|
356 |
msgstr ""
|
357 |
|
358 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
359 |
msgid "User Role"
|
360 |
msgstr ""
|
361 |
|
362 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
363 |
msgid "Label"
|
364 |
msgstr ""
|
365 |
|
366 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
367 |
#: includes/counters/class-social-count-plus-users-counter.php:76
|
368 |
msgid "users"
|
369 |
msgstr ""
|
370 |
|
371 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
372 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
373 |
msgid "Vimeo"
|
374 |
msgstr ""
|
375 |
|
376 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
377 |
msgid "Display Vimeo Counter"
|
378 |
msgstr ""
|
379 |
|
380 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
381 |
msgid "Vimeo Username"
|
382 |
msgstr ""
|
383 |
|
384 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
385 |
msgid "Insert your Vimeo username. Example: %s."
|
386 |
msgstr ""
|
387 |
|
388 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
389 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
390 |
msgid "YouTube"
|
391 |
msgstr ""
|
392 |
|
393 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
394 |
msgid "Display YouTube Counter"
|
395 |
msgstr ""
|
396 |
|
397 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
398 |
msgid "YouTube Channel ID"
|
399 |
msgstr ""
|
400 |
|
401 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
402 |
msgid "Insert the YouTube Channel ID. Example: %s."
|
403 |
msgstr ""
|
404 |
|
405 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
406 |
msgid "YouTube Channel URL"
|
407 |
msgstr ""
|
408 |
|
409 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
410 |
msgid "Insert the YouTube channel URL. Example: %s."
|
411 |
msgstr ""
|
412 |
|
413 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
414 |
msgid ""
|
415 |
"Get your API key creating a project/app in %s, then inside your project go "
|
416 |
"to \"APIs & auth > APIs\" and turn on the \"YouTube API\", finally go to "
|
@@ -419,43 +427,43 @@ msgid ""
|
|
419 |
"the \"CREATE\" button, now just copy your API key and paste here."
|
420 |
msgstr ""
|
421 |
|
422 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
423 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
424 |
#: includes/admin/views/html-settings-page.php:9
|
425 |
msgid "Settings"
|
426 |
msgstr ""
|
427 |
|
428 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
429 |
msgid "Open URLs in new tab/window"
|
430 |
msgstr ""
|
431 |
|
432 |
-
#: includes/admin/class-social-count-plus-admin.php:423
|
433 |
#: includes/admin/class-social-count-plus-admin.php:428
|
|
|
434 |
msgid "This option add %s in all counters URLs."
|
435 |
msgstr ""
|
436 |
|
437 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
438 |
msgid "Add nofollow in URLs"
|
439 |
msgstr ""
|
440 |
|
441 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
442 |
#: includes/admin/views/html-settings-page.php:9
|
443 |
msgid "Design"
|
444 |
msgstr ""
|
445 |
|
446 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
447 |
msgid "Layout Models"
|
448 |
msgstr ""
|
449 |
|
450 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
451 |
msgid "Text Color"
|
452 |
msgstr ""
|
453 |
|
454 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
455 |
msgid "Order"
|
456 |
msgstr ""
|
457 |
|
458 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
459 |
msgid "This option controls the order of the icons in the widget."
|
460 |
msgstr ""
|
461 |
|
@@ -463,62 +471,62 @@ msgstr ""
|
|
463 |
msgid "Social Count Plus"
|
464 |
msgstr ""
|
465 |
|
466 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
467 |
msgid "Activate/Deactivate"
|
468 |
msgstr ""
|
469 |
|
470 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
471 |
msgid "All Roles"
|
472 |
msgstr ""
|
473 |
|
474 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
475 |
msgid "General Info"
|
476 |
msgstr ""
|
477 |
|
478 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
479 |
#: includes/admin/views/html-settings-system-status-page.php:17
|
480 |
msgid "Social Count Plus Version"
|
481 |
msgstr ""
|
482 |
|
483 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
484 |
#: includes/admin/views/html-settings-system-status-page.php:21
|
485 |
msgid "WordPress Version"
|
486 |
msgstr ""
|
487 |
|
488 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
489 |
#: includes/admin/views/html-settings-system-status-page.php:25
|
490 |
msgid "WP Multisite Enabled"
|
491 |
msgstr ""
|
492 |
|
493 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
494 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
495 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
496 |
#: includes/admin/views/html-settings-system-status-page.php:26
|
497 |
msgid "Yes"
|
498 |
msgstr ""
|
499 |
|
500 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
501 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
502 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
503 |
#: includes/admin/views/html-settings-system-status-page.php:26
|
504 |
msgid "No"
|
505 |
msgstr ""
|
506 |
|
507 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
508 |
#: includes/admin/views/html-settings-system-status-page.php:29
|
509 |
msgid "Web Server Info"
|
510 |
msgstr ""
|
511 |
|
512 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
513 |
#: includes/admin/views/html-settings-system-status-page.php:33
|
514 |
msgid "PHP Version"
|
515 |
msgstr ""
|
516 |
|
517 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
518 |
msgid "Social Connections"
|
519 |
msgstr ""
|
520 |
|
521 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
522 |
msgid "You do not have any counter that needs to connect remotely currently active"
|
523 |
msgstr ""
|
524 |
|
@@ -649,7 +657,7 @@ msgstr ""
|
|
649 |
#: includes/counters/class-social-count-plus-pinterest-counter.php:92
|
650 |
#: includes/counters/class-social-count-plus-soundcloud-counter.php:83
|
651 |
#: includes/counters/class-social-count-plus-tumblr-counter.php:187
|
652 |
-
#: includes/counters/class-social-count-plus-twitch-counter.php:
|
653 |
#: includes/counters/class-social-count-plus-twitter-counter.php:188
|
654 |
#: includes/counters/class-social-count-plus-vimeo-counter.php:83
|
655 |
msgid "followers"
|
@@ -664,7 +672,7 @@ msgid "subscribers"
|
|
664 |
msgstr ""
|
665 |
|
666 |
#. Plugin URI of the plugin/theme
|
667 |
-
msgid "https://github.com/
|
668 |
msgstr ""
|
669 |
|
670 |
#. Description of the plugin/theme
|
@@ -679,5 +687,5 @@ msgid "Claudio Sanches"
|
|
679 |
msgstr ""
|
680 |
|
681 |
#. Author URI of the plugin/theme
|
682 |
-
msgid "
|
683 |
msgstr ""
|
2 |
# This file is distributed under the GPLv2 or later.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Social Count Plus 3.4.0\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/plugins/woocommerce-domination/\n"
|
7 |
+
"POT-Creation-Date: 2017-10-26 00:19:09+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
32 |
msgstr ""
|
33 |
|
34 |
#: includes/admin/class-social-count-plus-admin.php:76
|
35 |
+
#: includes/admin/class-social-count-plus-admin.php:1070
|
36 |
msgid "Comments"
|
37 |
msgstr ""
|
38 |
|
42 |
|
43 |
#: includes/admin/class-social-count-plus-admin.php:84
|
44 |
#: includes/admin/class-social-count-plus-admin.php:230
|
45 |
+
#: includes/admin/class-social-count-plus-admin.php:375
|
46 |
msgid "URL"
|
47 |
msgstr ""
|
48 |
|
49 |
#: includes/admin/class-social-count-plus-admin.php:91
|
50 |
+
#: includes/admin/class-social-count-plus-admin.php:1071
|
51 |
msgid "Facebook"
|
52 |
msgstr ""
|
53 |
|
82 |
msgstr ""
|
83 |
|
84 |
#: includes/admin/class-social-count-plus-admin.php:120
|
85 |
+
#: includes/admin/class-social-count-plus-admin.php:1072
|
86 |
msgid "GitHub"
|
87 |
msgstr ""
|
88 |
|
99 |
msgstr ""
|
100 |
|
101 |
#: includes/admin/class-social-count-plus-admin.php:134
|
102 |
+
#: includes/admin/class-social-count-plus-admin.php:1073
|
103 |
msgid "Google+"
|
104 |
msgstr ""
|
105 |
|
120 |
msgstr ""
|
121 |
|
122 |
#: includes/admin/class-social-count-plus-admin.php:150
|
123 |
+
#: includes/admin/class-social-count-plus-admin.php:413
|
124 |
msgid "Google API Key"
|
125 |
msgstr ""
|
126 |
|
134 |
msgstr ""
|
135 |
|
136 |
#: includes/admin/class-social-count-plus-admin.php:160
|
137 |
+
#: includes/admin/class-social-count-plus-admin.php:1074
|
138 |
msgid "Instagram"
|
139 |
msgstr ""
|
140 |
|
167 |
msgstr ""
|
168 |
|
169 |
#: includes/admin/class-social-count-plus-admin.php:184
|
170 |
+
#: includes/admin/class-social-count-plus-admin.php:1075
|
171 |
msgid "LinkedIn"
|
172 |
msgstr ""
|
173 |
|
192 |
msgstr ""
|
193 |
|
194 |
#: includes/admin/class-social-count-plus-admin.php:203
|
195 |
+
#: includes/admin/class-social-count-plus-admin.php:1076
|
196 |
msgid "Pinterest"
|
197 |
msgstr ""
|
198 |
|
209 |
msgstr ""
|
210 |
|
211 |
#: includes/admin/class-social-count-plus-admin.php:217
|
212 |
+
#: includes/admin/class-social-count-plus-admin.php:1077
|
213 |
msgid "Posts"
|
214 |
msgstr ""
|
215 |
|
222 |
msgstr ""
|
223 |
|
224 |
#: includes/admin/class-social-count-plus-admin.php:237
|
225 |
+
#: includes/admin/class-social-count-plus-admin.php:1078
|
226 |
msgid "SoundCloud"
|
227 |
msgstr ""
|
228 |
|
247 |
msgstr ""
|
248 |
|
249 |
#: includes/admin/class-social-count-plus-admin.php:256
|
250 |
+
#: includes/admin/class-social-count-plus-admin.php:1079
|
251 |
msgid "Steam"
|
252 |
msgstr ""
|
253 |
|
264 |
msgstr ""
|
265 |
|
266 |
#: includes/admin/class-social-count-plus-admin.php:270
|
267 |
+
#: includes/admin/class-social-count-plus-admin.php:1080
|
268 |
msgid "Tumblr"
|
269 |
msgstr ""
|
270 |
|
297 |
msgstr ""
|
298 |
|
299 |
#: includes/admin/class-social-count-plus-admin.php:304
|
300 |
+
#: includes/admin/class-social-count-plus-admin.php:1081
|
301 |
msgid "Twitch"
|
302 |
msgstr ""
|
303 |
|
313 |
msgid "Insert your Twitch username."
|
314 |
msgstr ""
|
315 |
|
316 |
+
#: includes/admin/class-social-count-plus-admin.php:316
|
317 |
+
msgid "Twitch Client ID"
|
318 |
+
msgstr ""
|
319 |
+
|
320 |
#: includes/admin/class-social-count-plus-admin.php:318
|
321 |
+
msgid "Insert your Twitch Client ID."
|
322 |
+
msgstr ""
|
323 |
+
|
324 |
+
#: includes/admin/class-social-count-plus-admin.php:323
|
325 |
+
#: includes/admin/class-social-count-plus-admin.php:1082
|
326 |
msgid "Twitter"
|
327 |
msgstr ""
|
328 |
|
329 |
+
#: includes/admin/class-social-count-plus-admin.php:326
|
330 |
msgid "Display Twitter Counter"
|
331 |
msgstr ""
|
332 |
|
333 |
+
#: includes/admin/class-social-count-plus-admin.php:330
|
334 |
msgid "Twitter Username"
|
335 |
msgstr ""
|
336 |
|
337 |
+
#: includes/admin/class-social-count-plus-admin.php:332
|
338 |
msgid "Insert the Twitter username. Example: %s."
|
339 |
msgstr ""
|
340 |
|
341 |
+
#: includes/admin/class-social-count-plus-admin.php:335
|
342 |
msgid "Twitter Consumer key"
|
343 |
msgstr ""
|
344 |
|
345 |
+
#: includes/admin/class-social-count-plus-admin.php:340
|
346 |
msgid "Twitter Consumer secret"
|
347 |
msgstr ""
|
348 |
|
349 |
+
#: includes/admin/class-social-count-plus-admin.php:345
|
350 |
msgid "Twitter Access token"
|
351 |
msgstr ""
|
352 |
|
353 |
+
#: includes/admin/class-social-count-plus-admin.php:350
|
354 |
msgid "Twitter Access token secret"
|
355 |
msgstr ""
|
356 |
|
357 |
+
#: includes/admin/class-social-count-plus-admin.php:357
|
358 |
+
#: includes/admin/class-social-count-plus-admin.php:1083
|
359 |
msgid "Users"
|
360 |
msgstr ""
|
361 |
|
362 |
+
#: includes/admin/class-social-count-plus-admin.php:360
|
363 |
msgid "Display Users Counter"
|
364 |
msgstr ""
|
365 |
|
366 |
+
#: includes/admin/class-social-count-plus-admin.php:365
|
367 |
msgid "User Role"
|
368 |
msgstr ""
|
369 |
|
370 |
+
#: includes/admin/class-social-count-plus-admin.php:370
|
371 |
msgid "Label"
|
372 |
msgstr ""
|
373 |
|
374 |
+
#: includes/admin/class-social-count-plus-admin.php:371
|
375 |
#: includes/counters/class-social-count-plus-users-counter.php:76
|
376 |
msgid "users"
|
377 |
msgstr ""
|
378 |
|
379 |
+
#: includes/admin/class-social-count-plus-admin.php:382
|
380 |
+
#: includes/admin/class-social-count-plus-admin.php:1084
|
381 |
msgid "Vimeo"
|
382 |
msgstr ""
|
383 |
|
384 |
+
#: includes/admin/class-social-count-plus-admin.php:385
|
385 |
msgid "Display Vimeo Counter"
|
386 |
msgstr ""
|
387 |
|
388 |
+
#: includes/admin/class-social-count-plus-admin.php:389
|
389 |
msgid "Vimeo Username"
|
390 |
msgstr ""
|
391 |
|
392 |
+
#: includes/admin/class-social-count-plus-admin.php:391
|
393 |
msgid "Insert your Vimeo username. Example: %s."
|
394 |
msgstr ""
|
395 |
|
396 |
+
#: includes/admin/class-social-count-plus-admin.php:396
|
397 |
+
#: includes/admin/class-social-count-plus-admin.php:1085
|
398 |
msgid "YouTube"
|
399 |
msgstr ""
|
400 |
|
401 |
+
#: includes/admin/class-social-count-plus-admin.php:399
|
402 |
msgid "Display YouTube Counter"
|
403 |
msgstr ""
|
404 |
|
405 |
+
#: includes/admin/class-social-count-plus-admin.php:403
|
406 |
msgid "YouTube Channel ID"
|
407 |
msgstr ""
|
408 |
|
409 |
+
#: includes/admin/class-social-count-plus-admin.php:405
|
410 |
msgid "Insert the YouTube Channel ID. Example: %s."
|
411 |
msgstr ""
|
412 |
|
413 |
+
#: includes/admin/class-social-count-plus-admin.php:408
|
414 |
msgid "YouTube Channel URL"
|
415 |
msgstr ""
|
416 |
|
417 |
+
#: includes/admin/class-social-count-plus-admin.php:410
|
418 |
msgid "Insert the YouTube channel URL. Example: %s."
|
419 |
msgstr ""
|
420 |
|
421 |
+
#: includes/admin/class-social-count-plus-admin.php:416
|
422 |
msgid ""
|
423 |
"Get your API key creating a project/app in %s, then inside your project go "
|
424 |
"to \"APIs & auth > APIs\" and turn on the \"YouTube API\", finally go to "
|
427 |
"the \"CREATE\" button, now just copy your API key and paste here."
|
428 |
msgstr ""
|
429 |
|
430 |
+
#: includes/admin/class-social-count-plus-admin.php:423
|
431 |
+
#: includes/admin/class-social-count-plus-admin.php:908
|
432 |
#: includes/admin/views/html-settings-page.php:9
|
433 |
msgid "Settings"
|
434 |
msgstr ""
|
435 |
|
436 |
+
#: includes/admin/class-social-count-plus-admin.php:426
|
437 |
msgid "Open URLs in new tab/window"
|
438 |
msgstr ""
|
439 |
|
|
|
440 |
#: includes/admin/class-social-count-plus-admin.php:428
|
441 |
+
#: includes/admin/class-social-count-plus-admin.php:433
|
442 |
msgid "This option add %s in all counters URLs."
|
443 |
msgstr ""
|
444 |
|
445 |
+
#: includes/admin/class-social-count-plus-admin.php:431
|
446 |
msgid "Add nofollow in URLs"
|
447 |
msgstr ""
|
448 |
|
449 |
+
#: includes/admin/class-social-count-plus-admin.php:440
|
450 |
#: includes/admin/views/html-settings-page.php:9
|
451 |
msgid "Design"
|
452 |
msgstr ""
|
453 |
|
454 |
+
#: includes/admin/class-social-count-plus-admin.php:443
|
455 |
msgid "Layout Models"
|
456 |
msgstr ""
|
457 |
|
458 |
+
#: includes/admin/class-social-count-plus-admin.php:449
|
459 |
msgid "Text Color"
|
460 |
msgstr ""
|
461 |
|
462 |
+
#: includes/admin/class-social-count-plus-admin.php:454
|
463 |
msgid "Order"
|
464 |
msgstr ""
|
465 |
|
466 |
+
#: includes/admin/class-social-count-plus-admin.php:456
|
467 |
msgid "This option controls the order of the icons in the widget."
|
468 |
msgstr ""
|
469 |
|
471 |
msgid "Social Count Plus"
|
472 |
msgstr ""
|
473 |
|
474 |
+
#: includes/admin/class-social-count-plus-admin.php:707
|
475 |
msgid "Activate/Deactivate"
|
476 |
msgstr ""
|
477 |
|
478 |
+
#: includes/admin/class-social-count-plus-admin.php:761
|
479 |
msgid "All Roles"
|
480 |
msgstr ""
|
481 |
|
482 |
+
#: includes/admin/class-social-count-plus-admin.php:961
|
483 |
msgid "General Info"
|
484 |
msgstr ""
|
485 |
|
486 |
+
#: includes/admin/class-social-count-plus-admin.php:962
|
487 |
#: includes/admin/views/html-settings-system-status-page.php:17
|
488 |
msgid "Social Count Plus Version"
|
489 |
msgstr ""
|
490 |
|
491 |
+
#: includes/admin/class-social-count-plus-admin.php:963
|
492 |
#: includes/admin/views/html-settings-system-status-page.php:21
|
493 |
msgid "WordPress Version"
|
494 |
msgstr ""
|
495 |
|
496 |
+
#: includes/admin/class-social-count-plus-admin.php:964
|
497 |
#: includes/admin/views/html-settings-system-status-page.php:25
|
498 |
msgid "WP Multisite Enabled"
|
499 |
msgstr ""
|
500 |
|
501 |
+
#: includes/admin/class-social-count-plus-admin.php:964
|
502 |
+
#: includes/admin/class-social-count-plus-admin.php:967
|
503 |
+
#: includes/admin/class-social-count-plus-admin.php:968
|
504 |
#: includes/admin/views/html-settings-system-status-page.php:26
|
505 |
msgid "Yes"
|
506 |
msgstr ""
|
507 |
|
508 |
+
#: includes/admin/class-social-count-plus-admin.php:964
|
509 |
+
#: includes/admin/class-social-count-plus-admin.php:967
|
510 |
+
#: includes/admin/class-social-count-plus-admin.php:968
|
511 |
#: includes/admin/views/html-settings-system-status-page.php:26
|
512 |
msgid "No"
|
513 |
msgstr ""
|
514 |
|
515 |
+
#: includes/admin/class-social-count-plus-admin.php:965
|
516 |
#: includes/admin/views/html-settings-system-status-page.php:29
|
517 |
msgid "Web Server Info"
|
518 |
msgstr ""
|
519 |
|
520 |
+
#: includes/admin/class-social-count-plus-admin.php:966
|
521 |
#: includes/admin/views/html-settings-system-status-page.php:33
|
522 |
msgid "PHP Version"
|
523 |
msgstr ""
|
524 |
|
525 |
+
#: includes/admin/class-social-count-plus-admin.php:969
|
526 |
msgid "Social Connections"
|
527 |
msgstr ""
|
528 |
|
529 |
+
#: includes/admin/class-social-count-plus-admin.php:979
|
530 |
msgid "You do not have any counter that needs to connect remotely currently active"
|
531 |
msgstr ""
|
532 |
|
657 |
#: includes/counters/class-social-count-plus-pinterest-counter.php:92
|
658 |
#: includes/counters/class-social-count-plus-soundcloud-counter.php:83
|
659 |
#: includes/counters/class-social-count-plus-tumblr-counter.php:187
|
660 |
+
#: includes/counters/class-social-count-plus-twitch-counter.php:87
|
661 |
#: includes/counters/class-social-count-plus-twitter-counter.php:188
|
662 |
#: includes/counters/class-social-count-plus-vimeo-counter.php:83
|
663 |
msgid "followers"
|
672 |
msgstr ""
|
673 |
|
674 |
#. Plugin URI of the plugin/theme
|
675 |
+
msgid "https://github.com/claudiosanches/social-count-plus"
|
676 |
msgstr ""
|
677 |
|
678 |
#. Description of the plugin/theme
|
687 |
msgstr ""
|
688 |
|
689 |
#. Author URI of the plugin/theme
|
690 |
+
msgid "https://claudiosanches.com/"
|
691 |
msgstr ""
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: claudiosanches, felipesantana, deblynprado
|
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Y8HP99ZJ5Z59L
|
4 |
Tags: counter, widget, shortcode, facebook, github, googleplus, instagram, linkedin, pinterest, soundcloud, steam, tumblr, twitch, twitter, vimeo, youtube
|
5 |
Requires at least: 4.0
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -38,7 +38,7 @@ The cache avoids not only that your blog be seeking new results every time a pag
|
|
38 |
|
39 |
#### Contribute ####
|
40 |
|
41 |
-
You can contribute to the source code in our [GitHub](https://github.com/
|
42 |
|
43 |
#### Credits ####
|
44 |
|
@@ -178,6 +178,12 @@ Copy the report file content and paste it in [gist.github.com](https://gist.gith
|
|
178 |
|
179 |
== Changelog ==
|
180 |
|
|
|
|
|
|
|
|
|
|
|
|
|
181 |
= 3.3.6 - 2017/04/25 =
|
182 |
|
183 |
* Fixed Facebook integration according with new Facebook API requirements (Thanks to [tc33](https://github.com/claudiosanches/social-count-plus/pull/38)).
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Y8HP99ZJ5Z59L
|
4 |
Tags: counter, widget, shortcode, facebook, github, googleplus, instagram, linkedin, pinterest, soundcloud, steam, tumblr, twitch, twitter, vimeo, youtube
|
5 |
Requires at least: 4.0
|
6 |
+
Tested up to: 4.9
|
7 |
+
Stable tag: 3.4.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
38 |
|
39 |
#### Contribute ####
|
40 |
|
41 |
+
You can contribute to the source code in our [GitHub](https://github.com/claudiosanches/social-count-plus) page.
|
42 |
|
43 |
#### Credits ####
|
44 |
|
178 |
|
179 |
== Changelog ==
|
180 |
|
181 |
+
= 3.4.0 - 2017/10/25 =
|
182 |
+
|
183 |
+
- Updated Twitch integration requiring "Twitch Client ID".
|
184 |
+
- Fixed PHP notices when Pinterest profile does not exist.
|
185 |
+
- Introduced the `social_count_plus_get_view_li` filter.
|
186 |
+
|
187 |
= 3.3.6 - 2017/04/25 =
|
188 |
|
189 |
* Fixed Facebook integration according with new Facebook API requirements (Thanks to [tc33](https://github.com/claudiosanches/social-count-plus/pull/38)).
|
social-count-plus.php
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Social Count Plus
|
4 |
-
* Plugin URI: https://github.com/
|
5 |
* Description: Displays your numbers in Facebook, GitHub, Google+, Instagram, LinkedIn, Pinterest, SoundCloud, Steam Community, Tumblr, Twitch, Twitter, Vimeo, Youtube, posts, comments and users.
|
6 |
* Author: Claudio Sanches
|
7 |
-
* Author URI:
|
8 |
-
* Version: 3.
|
9 |
* License: GPLv2 or later
|
10 |
* Text Domain: social-count-plus
|
11 |
* Domain Path: /languages/
|
@@ -31,7 +31,7 @@ class Social_Count_Plus {
|
|
31 |
*
|
32 |
* @var string
|
33 |
*/
|
34 |
-
const VERSION = '3.
|
35 |
|
36 |
/**
|
37 |
* Instance of this class.
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Social Count Plus
|
4 |
+
* Plugin URI: https://github.com/claudiosanches/social-count-plus
|
5 |
* Description: Displays your numbers in Facebook, GitHub, Google+, Instagram, LinkedIn, Pinterest, SoundCloud, Steam Community, Tumblr, Twitch, Twitter, Vimeo, Youtube, posts, comments and users.
|
6 |
* Author: Claudio Sanches
|
7 |
+
* Author URI: https://claudiosanches.com/
|
8 |
+
* Version: 3.4.0
|
9 |
* License: GPLv2 or later
|
10 |
* Text Domain: social-count-plus
|
11 |
* Domain Path: /languages/
|
31 |
*
|
32 |
* @var string
|
33 |
*/
|
34 |
+
const VERSION = '3.4.0';
|
35 |
|
36 |
/**
|
37 |
* Instance of this class.
|