Version Description
- Added submenu in settings page.
=
Download this release
Release Info
Developer | claudiosanches |
Plugin | Social Count Plus |
Version | 3.3.1 |
Comparing to | |
See all releases |
Code changes from version 3.3.0 to 3.3.1
- includes/admin/class-social-count-plus-admin.php +27 -32
- includes/admin/views/html-settings-page.php +13 -21
- languages/social-count-plus.pot +35 -47
- readme.txt +31 -17
- social-count-plus.php +2 -2
includes/admin/class-social-count-plus-admin.php
CHANGED
@@ -58,11 +58,11 @@ class Social_Count_Plus_Admin {
|
|
58 |
}
|
59 |
|
60 |
/**
|
61 |
-
*
|
62 |
*
|
63 |
* @return array
|
64 |
*/
|
65 |
-
protected static function
|
66 |
$twitter_oauth_description = sprintf( __( 'Create an App on Twitter in %s and get this data.', 'social-count-plus' ), '<a href="https://dev.twitter.com/apps" target="_blank">https://dev.twitter.com/apps</a>' );
|
67 |
|
68 |
$facebook_app_description = sprintf( __( 'Create an App on Facebook in %s and get this data.', 'social-count-plus' ), '<a href="https://developers.facebook.com/" target="_blank">https://developers.facebook.com/</a>' );
|
@@ -519,14 +519,14 @@ class Social_Count_Plus_Admin {
|
|
519 |
public function plugin_settings() {
|
520 |
|
521 |
// Process the settings.
|
522 |
-
foreach ( self::
|
523 |
|
524 |
// Create the sections.
|
525 |
foreach ( $sections as $section_id => $section ) {
|
526 |
add_settings_section(
|
527 |
$section_id,
|
528 |
$section['title'],
|
529 |
-
'
|
530 |
$settings_id
|
531 |
);
|
532 |
|
@@ -660,11 +660,18 @@ class Social_Count_Plus_Admin {
|
|
660 |
}
|
661 |
|
662 |
/**
|
663 |
-
*
|
664 |
*
|
665 |
-
* @param
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
666 |
*
|
667 |
-
* @
|
668 |
*/
|
669 |
public function text_element_callback( $args ) {
|
670 |
$tab = $args['tab'];
|
@@ -683,11 +690,9 @@ class Social_Count_Plus_Admin {
|
|
683 |
}
|
684 |
|
685 |
/**
|
686 |
-
* Checkbox field
|
687 |
-
*
|
688 |
-
* @param array $args Field arguments.
|
689 |
*
|
690 |
-
* @
|
691 |
*/
|
692 |
public function checkbox_element_callback( $args ) {
|
693 |
$tab = $args['tab'];
|
@@ -706,11 +711,9 @@ class Social_Count_Plus_Admin {
|
|
706 |
}
|
707 |
|
708 |
/**
|
709 |
-
* Post Type element
|
710 |
*
|
711 |
-
* @param
|
712 |
-
*
|
713 |
-
* @return string Post Type field.
|
714 |
*/
|
715 |
public function post_type_element_callback( $args ) {
|
716 |
$tab = $args['tab'];
|
@@ -734,11 +737,9 @@ class Social_Count_Plus_Admin {
|
|
734 |
}
|
735 |
|
736 |
/**
|
737 |
-
* User Role element
|
738 |
-
*
|
739 |
-
* @param array $args Field arguments.
|
740 |
*
|
741 |
-
* @
|
742 |
*/
|
743 |
public function user_role_element_callback( $args ) {
|
744 |
global $wp_roles;
|
@@ -765,11 +766,9 @@ class Social_Count_Plus_Admin {
|
|
765 |
}
|
766 |
|
767 |
/**
|
768 |
-
* Models element
|
769 |
-
*
|
770 |
-
* @param array $args Field arguments.
|
771 |
*
|
772 |
-
* @
|
773 |
*/
|
774 |
public function models_element_callback( $args ) {
|
775 |
$tab = $args['tab'];
|
@@ -808,11 +807,9 @@ class Social_Count_Plus_Admin {
|
|
808 |
}
|
809 |
|
810 |
/**
|
811 |
-
* Icons order element
|
812 |
*
|
813 |
-
* @param
|
814 |
-
*
|
815 |
-
* @return string Icons order field.
|
816 |
*/
|
817 |
public function icons_order_element_callback( $args ) {
|
818 |
$tab = $args['tab'];
|
@@ -836,11 +833,9 @@ class Social_Count_Plus_Admin {
|
|
836 |
}
|
837 |
|
838 |
/**
|
839 |
-
* Color element
|
840 |
-
*
|
841 |
-
* @param array $args Field arguments.
|
842 |
*
|
843 |
-
* @
|
844 |
*/
|
845 |
public function color_element_callback( $args ) {
|
846 |
$tab = $args['tab'];
|
@@ -1000,7 +995,7 @@ class Social_Count_Plus_Admin {
|
|
1000 |
|
1001 |
// Install options and updated old versions for 3.0.0.
|
1002 |
if ( version_compare( $version, '3.0.0', '<' ) ) {
|
1003 |
-
foreach ( self::
|
1004 |
$saved = get_option( $settings_id, array() );
|
1005 |
|
1006 |
foreach ( $sections as $section_id => $section ) {
|
58 |
}
|
59 |
|
60 |
/**
|
61 |
+
* Get the plugin options.
|
62 |
*
|
63 |
* @return array
|
64 |
*/
|
65 |
+
protected static function get_plugin_options() {
|
66 |
$twitter_oauth_description = sprintf( __( 'Create an App on Twitter in %s and get this data.', 'social-count-plus' ), '<a href="https://dev.twitter.com/apps" target="_blank">https://dev.twitter.com/apps</a>' );
|
67 |
|
68 |
$facebook_app_description = sprintf( __( 'Create an App on Facebook in %s and get this data.', 'social-count-plus' ), '<a href="https://developers.facebook.com/" target="_blank">https://developers.facebook.com/</a>' );
|
519 |
public function plugin_settings() {
|
520 |
|
521 |
// Process the settings.
|
522 |
+
foreach ( self::get_plugin_options() as $settings_id => $sections ) {
|
523 |
|
524 |
// Create the sections.
|
525 |
foreach ( $sections as $section_id => $section ) {
|
526 |
add_settings_section(
|
527 |
$section_id,
|
528 |
$section['title'],
|
529 |
+
array( $this, 'title_element_callback' ),
|
530 |
$settings_id
|
531 |
);
|
532 |
|
660 |
}
|
661 |
|
662 |
/**
|
663 |
+
* Title element callback.
|
664 |
*
|
665 |
+
* @param array $args Field arguments.
|
666 |
+
*/
|
667 |
+
public function title_element_callback( $args ) {
|
668 |
+
echo ! empty( $args['id'] ) ? '<div id="section-' . esc_attr( $args['id'] ) . '"></div>' : '';
|
669 |
+
}
|
670 |
+
|
671 |
+
/**
|
672 |
+
* Text element callback.
|
673 |
*
|
674 |
+
* @param array $args Field arguments.
|
675 |
*/
|
676 |
public function text_element_callback( $args ) {
|
677 |
$tab = $args['tab'];
|
690 |
}
|
691 |
|
692 |
/**
|
693 |
+
* Checkbox field callback.
|
|
|
|
|
694 |
*
|
695 |
+
* @param array $args Field arguments.
|
696 |
*/
|
697 |
public function checkbox_element_callback( $args ) {
|
698 |
$tab = $args['tab'];
|
711 |
}
|
712 |
|
713 |
/**
|
714 |
+
* Post Type element callback.
|
715 |
*
|
716 |
+
* @param array $args Field arguments.
|
|
|
|
|
717 |
*/
|
718 |
public function post_type_element_callback( $args ) {
|
719 |
$tab = $args['tab'];
|
737 |
}
|
738 |
|
739 |
/**
|
740 |
+
* User Role element callback.
|
|
|
|
|
741 |
*
|
742 |
+
* @param array $args Field arguments.
|
743 |
*/
|
744 |
public function user_role_element_callback( $args ) {
|
745 |
global $wp_roles;
|
766 |
}
|
767 |
|
768 |
/**
|
769 |
+
* Models element callback.
|
|
|
|
|
770 |
*
|
771 |
+
* @param array $args Field arguments.
|
772 |
*/
|
773 |
public function models_element_callback( $args ) {
|
774 |
$tab = $args['tab'];
|
807 |
}
|
808 |
|
809 |
/**
|
810 |
+
* Icons order element callback.
|
811 |
*
|
812 |
+
* @param array $args Field arguments.
|
|
|
|
|
813 |
*/
|
814 |
public function icons_order_element_callback( $args ) {
|
815 |
$tab = $args['tab'];
|
833 |
}
|
834 |
|
835 |
/**
|
836 |
+
* Color element callback.
|
|
|
|
|
837 |
*
|
838 |
+
* @param array $args Field arguments.
|
839 |
*/
|
840 |
public function color_element_callback( $args ) {
|
841 |
$tab = $args['tab'];
|
995 |
|
996 |
// Install options and updated old versions for 3.0.0.
|
997 |
if ( version_compare( $version, '3.0.0', '<' ) ) {
|
998 |
+
foreach ( self::get_plugin_options() as $settings_id => $sections ) {
|
999 |
$saved = get_option( $settings_id, array() );
|
1000 |
|
1001 |
foreach ( $sections as $section_id => $section ) {
|
includes/admin/views/html-settings-page.php
CHANGED
@@ -9,27 +9,6 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
9 |
<a href="options-general.php?page=social-count-plus&tab=settings" class="nav-tab <?php echo $current_tab == 'settings' ? 'nav-tab-active' : ''; ?>"><?php _e( 'Settings', 'social-count-plus' ); ?></a><a href="options-general.php?page=social-count-plus&tab=design" class="nav-tab <?php echo $current_tab == 'design' ? 'nav-tab-active' : ''; ?>"><?php _e( 'Design', 'social-count-plus' ); ?></a><a href="options-general.php?page=social-count-plus&tab=shortcodes" class="nav-tab <?php echo $current_tab == 'shortcodes' ? 'nav-tab-active' : ''; ?>"><?php _e( 'Shortcodes and Functions', 'social-count-plus' ); ?></a><a href="options-general.php?page=social-count-plus&tab=system_status" class="nav-tab <?php echo $current_tab == 'system_status' ? 'nav-tab-active' : ''; ?>"><?php _e( 'System Status', 'social-count-plus' ); ?></a>
|
10 |
</h2>
|
11 |
|
12 |
-
<?php
|
13 |
-
if ( isset( $this->plugin_settings['twitter_active'] ) && (
|
14 |
-
empty( $this->plugin_settings['twitter_user'] )
|
15 |
-
|| empty( $this->plugin_settings['twitter_consumer_key'] )
|
16 |
-
|| empty( $this->plugin_settings['twitter_consumer_secret'] )
|
17 |
-
|| empty( $this->plugin_settings['twitter_access_token'] )
|
18 |
-
|| empty( $this->plugin_settings['twitter_access_token_secret'] )
|
19 |
-
) ) :
|
20 |
-
?>
|
21 |
-
<div class="error">
|
22 |
-
<p><?php _e( 'To use the counter of Twitter you need to fill the fields:', 'social-count-plus' ); ?></p>
|
23 |
-
<ul style="list-style: disc; margin-left: 20px;">
|
24 |
-
<li><strong><?php _e( 'Twitter username', 'social-count-plus' ); ?></strong></li>
|
25 |
-
<li><strong><?php _e( 'Twitter Consumer key', 'social-count-plus' ); ?></strong></li>
|
26 |
-
<li><strong><?php _e( 'Twitter Consumer secret', 'social-count-plus' ); ?></strong></li>
|
27 |
-
<li><strong><?php _e( 'Twitter Access token', 'social-count-plus' ); ?></strong></li>
|
28 |
-
<li><strong><?php _e( 'Twitter Access token secret', 'social-count-plus' ); ?></strong></li>
|
29 |
-
</ul>
|
30 |
-
</div>
|
31 |
-
<?php endif; ?>
|
32 |
-
|
33 |
<?php include 'html-help-us.php'; ?>
|
34 |
|
35 |
<form method="post" action="options.php">
|
@@ -43,6 +22,19 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
43 |
} else if ( 'system_status' == $current_tab ) {
|
44 |
include 'html-settings-system-status-page.php';
|
45 |
} else {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
settings_fields( 'socialcountplus_settings' );
|
47 |
do_settings_sections( 'socialcountplus_settings' );
|
48 |
submit_button();
|
9 |
<a href="options-general.php?page=social-count-plus&tab=settings" class="nav-tab <?php echo $current_tab == 'settings' ? 'nav-tab-active' : ''; ?>"><?php _e( 'Settings', 'social-count-plus' ); ?></a><a href="options-general.php?page=social-count-plus&tab=design" class="nav-tab <?php echo $current_tab == 'design' ? 'nav-tab-active' : ''; ?>"><?php _e( 'Design', 'social-count-plus' ); ?></a><a href="options-general.php?page=social-count-plus&tab=shortcodes" class="nav-tab <?php echo $current_tab == 'shortcodes' ? 'nav-tab-active' : ''; ?>"><?php _e( 'Shortcodes and Functions', 'social-count-plus' ); ?></a><a href="options-general.php?page=social-count-plus&tab=system_status" class="nav-tab <?php echo $current_tab == 'system_status' ? 'nav-tab-active' : ''; ?>"><?php _e( 'System Status', 'social-count-plus' ); ?></a>
|
10 |
</h2>
|
11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
<?php include 'html-help-us.php'; ?>
|
13 |
|
14 |
<form method="post" action="options.php">
|
22 |
} else if ( 'system_status' == $current_tab ) {
|
23 |
include 'html-settings-system-status-page.php';
|
24 |
} else {
|
25 |
+
$options = self::get_plugin_options();
|
26 |
+
$options = $options['socialcountplus_settings'];
|
27 |
+
$options_keys = array_keys( $options );
|
28 |
+
$last = end( $options_keys );
|
29 |
+
|
30 |
+
echo '<ul class="subsubsub">';
|
31 |
+
foreach ( $options as $section => $data ) {
|
32 |
+
echo '<li><a href="#section-' . esc_attr( $section ) . '">' . esc_html( $data['title'] ) . '</a>';
|
33 |
+
echo $last !== $section ? ' | ' : '';
|
34 |
+
echo '</li>';
|
35 |
+
}
|
36 |
+
echo '</ul><br class="clear">';
|
37 |
+
|
38 |
settings_fields( 'socialcountplus_settings' );
|
39 |
do_settings_sections( 'socialcountplus_settings' );
|
40 |
submit_button();
|
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: 2015-09-
|
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:77
|
35 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
36 |
msgid "Comments"
|
37 |
msgstr ""
|
38 |
|
@@ -47,7 +47,7 @@ msgid "URL"
|
|
47 |
msgstr ""
|
48 |
|
49 |
#: includes/admin/class-social-count-plus-admin.php:92
|
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:121
|
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:135
|
102 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
103 |
msgid "Google+"
|
104 |
msgstr ""
|
105 |
|
@@ -134,7 +134,7 @@ msgid ""
|
|
134 |
msgstr ""
|
135 |
|
136 |
#: includes/admin/class-social-count-plus-admin.php:161
|
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:185
|
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:204
|
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:218
|
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:238
|
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:257
|
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:271
|
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:305
|
300 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
301 |
msgid "Twitch"
|
302 |
msgstr ""
|
303 |
|
@@ -314,7 +314,7 @@ msgid "Insert your Twitch username."
|
|
314 |
msgstr ""
|
315 |
|
316 |
#: includes/admin/class-social-count-plus-admin.php:319
|
317 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
318 |
msgid "Twitter"
|
319 |
msgstr ""
|
320 |
|
@@ -331,27 +331,23 @@ msgid "Insert the Twitter username. Example: %s."
|
|
331 |
msgstr ""
|
332 |
|
333 |
#: includes/admin/class-social-count-plus-admin.php:331
|
334 |
-
#: includes/admin/views/html-settings-page.php:25
|
335 |
msgid "Twitter Consumer key"
|
336 |
msgstr ""
|
337 |
|
338 |
#: includes/admin/class-social-count-plus-admin.php:336
|
339 |
-
#: includes/admin/views/html-settings-page.php:26
|
340 |
msgid "Twitter Consumer secret"
|
341 |
msgstr ""
|
342 |
|
343 |
#: includes/admin/class-social-count-plus-admin.php:341
|
344 |
-
#: includes/admin/views/html-settings-page.php:27
|
345 |
msgid "Twitter Access token"
|
346 |
msgstr ""
|
347 |
|
348 |
#: includes/admin/class-social-count-plus-admin.php:346
|
349 |
-
#: includes/admin/views/html-settings-page.php:28
|
350 |
msgid "Twitter Access token secret"
|
351 |
msgstr ""
|
352 |
|
353 |
#: includes/admin/class-social-count-plus-admin.php:353
|
354 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
355 |
msgid "Users"
|
356 |
msgstr ""
|
357 |
|
@@ -373,7 +369,7 @@ msgid "users"
|
|
373 |
msgstr ""
|
374 |
|
375 |
#: includes/admin/class-social-count-plus-admin.php:378
|
376 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
377 |
msgid "Vimeo"
|
378 |
msgstr ""
|
379 |
|
@@ -390,7 +386,7 @@ msgid "Insert your Vimeo username. Example: %s."
|
|
390 |
msgstr ""
|
391 |
|
392 |
#: includes/admin/class-social-count-plus-admin.php:392
|
393 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
394 |
msgid "YouTube"
|
395 |
msgstr ""
|
396 |
|
@@ -424,7 +420,7 @@ msgid ""
|
|
424 |
msgstr ""
|
425 |
|
426 |
#: includes/admin/class-social-count-plus-admin.php:419
|
427 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
428 |
#: includes/admin/views/html-settings-page.php:9
|
429 |
msgid "Settings"
|
430 |
msgstr ""
|
@@ -467,62 +463,62 @@ msgstr ""
|
|
467 |
msgid "Social Count Plus"
|
468 |
msgstr ""
|
469 |
|
470 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
471 |
msgid "Activate/Deactivate"
|
472 |
msgstr ""
|
473 |
|
474 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
475 |
msgid "All Roles"
|
476 |
msgstr ""
|
477 |
|
478 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
479 |
msgid "General Info"
|
480 |
msgstr ""
|
481 |
|
482 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
483 |
#: includes/admin/views/html-settings-system-status-page.php:11
|
484 |
msgid "Social Count Plus Version"
|
485 |
msgstr ""
|
486 |
|
487 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
488 |
#: includes/admin/views/html-settings-system-status-page.php:15
|
489 |
msgid "WordPress Version"
|
490 |
msgstr ""
|
491 |
|
492 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
493 |
#: includes/admin/views/html-settings-system-status-page.php:19
|
494 |
msgid "WP Multisite Enabled"
|
495 |
msgstr ""
|
496 |
|
497 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
498 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
499 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
500 |
#: includes/admin/views/html-settings-system-status-page.php:20
|
501 |
msgid "Yes"
|
502 |
msgstr ""
|
503 |
|
504 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
505 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
506 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
507 |
#: includes/admin/views/html-settings-system-status-page.php:20
|
508 |
msgid "No"
|
509 |
msgstr ""
|
510 |
|
511 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
512 |
#: includes/admin/views/html-settings-system-status-page.php:23
|
513 |
msgid "Web Server Info"
|
514 |
msgstr ""
|
515 |
|
516 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
517 |
#: includes/admin/views/html-settings-system-status-page.php:27
|
518 |
msgid "PHP Version"
|
519 |
msgstr ""
|
520 |
|
521 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
522 |
msgid "Social Connections"
|
523 |
msgstr ""
|
524 |
|
525 |
-
#: includes/admin/class-social-count-plus-admin.php:
|
526 |
msgid "You do not have any counter that needs to connect remotely currently active"
|
527 |
msgstr ""
|
528 |
|
@@ -579,14 +575,6 @@ msgstr ""
|
|
579 |
msgid "System Status"
|
580 |
msgstr ""
|
581 |
|
582 |
-
#: includes/admin/views/html-settings-page.php:22
|
583 |
-
msgid "To use the counter of Twitter you need to fill the fields:"
|
584 |
-
msgstr ""
|
585 |
-
|
586 |
-
#: includes/admin/views/html-settings-page.php:24
|
587 |
-
msgid "Twitter username"
|
588 |
-
msgstr ""
|
589 |
-
|
590 |
#: includes/admin/views/html-settings-system-status-page.php:5
|
591 |
msgid "Environment"
|
592 |
msgstr ""
|
2 |
# This file is distributed under the GPLv2 or later.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Social Count Plus 3.3.1\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/plugins/woocommerce-domination/\n"
|
7 |
+
"POT-Creation-Date: 2015-09-27 23:08:13+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:77
|
35 |
+
#: includes/admin/class-social-count-plus-admin.php:1066
|
36 |
msgid "Comments"
|
37 |
msgstr ""
|
38 |
|
47 |
msgstr ""
|
48 |
|
49 |
#: includes/admin/class-social-count-plus-admin.php:92
|
50 |
+
#: includes/admin/class-social-count-plus-admin.php:1067
|
51 |
msgid "Facebook"
|
52 |
msgstr ""
|
53 |
|
82 |
msgstr ""
|
83 |
|
84 |
#: includes/admin/class-social-count-plus-admin.php:121
|
85 |
+
#: includes/admin/class-social-count-plus-admin.php:1068
|
86 |
msgid "GitHub"
|
87 |
msgstr ""
|
88 |
|
99 |
msgstr ""
|
100 |
|
101 |
#: includes/admin/class-social-count-plus-admin.php:135
|
102 |
+
#: includes/admin/class-social-count-plus-admin.php:1069
|
103 |
msgid "Google+"
|
104 |
msgstr ""
|
105 |
|
134 |
msgstr ""
|
135 |
|
136 |
#: includes/admin/class-social-count-plus-admin.php:161
|
137 |
+
#: includes/admin/class-social-count-plus-admin.php:1070
|
138 |
msgid "Instagram"
|
139 |
msgstr ""
|
140 |
|
167 |
msgstr ""
|
168 |
|
169 |
#: includes/admin/class-social-count-plus-admin.php:185
|
170 |
+
#: includes/admin/class-social-count-plus-admin.php:1071
|
171 |
msgid "LinkedIn"
|
172 |
msgstr ""
|
173 |
|
192 |
msgstr ""
|
193 |
|
194 |
#: includes/admin/class-social-count-plus-admin.php:204
|
195 |
+
#: includes/admin/class-social-count-plus-admin.php:1072
|
196 |
msgid "Pinterest"
|
197 |
msgstr ""
|
198 |
|
209 |
msgstr ""
|
210 |
|
211 |
#: includes/admin/class-social-count-plus-admin.php:218
|
212 |
+
#: includes/admin/class-social-count-plus-admin.php:1073
|
213 |
msgid "Posts"
|
214 |
msgstr ""
|
215 |
|
222 |
msgstr ""
|
223 |
|
224 |
#: includes/admin/class-social-count-plus-admin.php:238
|
225 |
+
#: includes/admin/class-social-count-plus-admin.php:1074
|
226 |
msgid "SoundCloud"
|
227 |
msgstr ""
|
228 |
|
247 |
msgstr ""
|
248 |
|
249 |
#: includes/admin/class-social-count-plus-admin.php:257
|
250 |
+
#: includes/admin/class-social-count-plus-admin.php:1075
|
251 |
msgid "Steam"
|
252 |
msgstr ""
|
253 |
|
264 |
msgstr ""
|
265 |
|
266 |
#: includes/admin/class-social-count-plus-admin.php:271
|
267 |
+
#: includes/admin/class-social-count-plus-admin.php:1076
|
268 |
msgid "Tumblr"
|
269 |
msgstr ""
|
270 |
|
297 |
msgstr ""
|
298 |
|
299 |
#: includes/admin/class-social-count-plus-admin.php:305
|
300 |
+
#: includes/admin/class-social-count-plus-admin.php:1077
|
301 |
msgid "Twitch"
|
302 |
msgstr ""
|
303 |
|
314 |
msgstr ""
|
315 |
|
316 |
#: includes/admin/class-social-count-plus-admin.php:319
|
317 |
+
#: includes/admin/class-social-count-plus-admin.php:1078
|
318 |
msgid "Twitter"
|
319 |
msgstr ""
|
320 |
|
331 |
msgstr ""
|
332 |
|
333 |
#: includes/admin/class-social-count-plus-admin.php:331
|
|
|
334 |
msgid "Twitter Consumer key"
|
335 |
msgstr ""
|
336 |
|
337 |
#: includes/admin/class-social-count-plus-admin.php:336
|
|
|
338 |
msgid "Twitter Consumer secret"
|
339 |
msgstr ""
|
340 |
|
341 |
#: includes/admin/class-social-count-plus-admin.php:341
|
|
|
342 |
msgid "Twitter Access token"
|
343 |
msgstr ""
|
344 |
|
345 |
#: includes/admin/class-social-count-plus-admin.php:346
|
|
|
346 |
msgid "Twitter Access token secret"
|
347 |
msgstr ""
|
348 |
|
349 |
#: includes/admin/class-social-count-plus-admin.php:353
|
350 |
+
#: includes/admin/class-social-count-plus-admin.php:1079
|
351 |
msgid "Users"
|
352 |
msgstr ""
|
353 |
|
369 |
msgstr ""
|
370 |
|
371 |
#: includes/admin/class-social-count-plus-admin.php:378
|
372 |
+
#: includes/admin/class-social-count-plus-admin.php:1080
|
373 |
msgid "Vimeo"
|
374 |
msgstr ""
|
375 |
|
386 |
msgstr ""
|
387 |
|
388 |
#: includes/admin/class-social-count-plus-admin.php:392
|
389 |
+
#: includes/admin/class-social-count-plus-admin.php:1081
|
390 |
msgid "YouTube"
|
391 |
msgstr ""
|
392 |
|
420 |
msgstr ""
|
421 |
|
422 |
#: includes/admin/class-social-count-plus-admin.php:419
|
423 |
+
#: includes/admin/class-social-count-plus-admin.php:904
|
424 |
#: includes/admin/views/html-settings-page.php:9
|
425 |
msgid "Settings"
|
426 |
msgstr ""
|
463 |
msgid "Social Count Plus"
|
464 |
msgstr ""
|
465 |
|
466 |
+
#: includes/admin/class-social-count-plus-admin.php:703
|
467 |
msgid "Activate/Deactivate"
|
468 |
msgstr ""
|
469 |
|
470 |
+
#: includes/admin/class-social-count-plus-admin.php:757
|
471 |
msgid "All Roles"
|
472 |
msgstr ""
|
473 |
|
474 |
+
#: includes/admin/class-social-count-plus-admin.php:957
|
475 |
msgid "General Info"
|
476 |
msgstr ""
|
477 |
|
478 |
+
#: includes/admin/class-social-count-plus-admin.php:958
|
479 |
#: includes/admin/views/html-settings-system-status-page.php:11
|
480 |
msgid "Social Count Plus Version"
|
481 |
msgstr ""
|
482 |
|
483 |
+
#: includes/admin/class-social-count-plus-admin.php:959
|
484 |
#: includes/admin/views/html-settings-system-status-page.php:15
|
485 |
msgid "WordPress Version"
|
486 |
msgstr ""
|
487 |
|
488 |
+
#: includes/admin/class-social-count-plus-admin.php:960
|
489 |
#: includes/admin/views/html-settings-system-status-page.php:19
|
490 |
msgid "WP Multisite Enabled"
|
491 |
msgstr ""
|
492 |
|
493 |
+
#: includes/admin/class-social-count-plus-admin.php:960
|
494 |
+
#: includes/admin/class-social-count-plus-admin.php:963
|
495 |
+
#: includes/admin/class-social-count-plus-admin.php:964
|
496 |
#: includes/admin/views/html-settings-system-status-page.php:20
|
497 |
msgid "Yes"
|
498 |
msgstr ""
|
499 |
|
500 |
+
#: includes/admin/class-social-count-plus-admin.php:960
|
501 |
+
#: includes/admin/class-social-count-plus-admin.php:963
|
502 |
+
#: includes/admin/class-social-count-plus-admin.php:964
|
503 |
#: includes/admin/views/html-settings-system-status-page.php:20
|
504 |
msgid "No"
|
505 |
msgstr ""
|
506 |
|
507 |
+
#: includes/admin/class-social-count-plus-admin.php:961
|
508 |
#: includes/admin/views/html-settings-system-status-page.php:23
|
509 |
msgid "Web Server Info"
|
510 |
msgstr ""
|
511 |
|
512 |
+
#: includes/admin/class-social-count-plus-admin.php:962
|
513 |
#: includes/admin/views/html-settings-system-status-page.php:27
|
514 |
msgid "PHP Version"
|
515 |
msgstr ""
|
516 |
|
517 |
+
#: includes/admin/class-social-count-plus-admin.php:965
|
518 |
msgid "Social Connections"
|
519 |
msgstr ""
|
520 |
|
521 |
+
#: includes/admin/class-social-count-plus-admin.php:975
|
522 |
msgid "You do not have any counter that needs to connect remotely currently active"
|
523 |
msgstr ""
|
524 |
|
575 |
msgid "System Status"
|
576 |
msgstr ""
|
577 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
578 |
#: includes/admin/views/html-settings-system-status-page.php:5
|
579 |
msgid "Environment"
|
580 |
msgstr ""
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
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.3
|
7 |
-
Stable tag: 3.3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -36,10 +36,6 @@ The results of the counters are cached and new values are checked only onc
|
|
36 |
|
37 |
The cache avoids not only that your blog be seeking new results every time a page is loaded, but also prevents collapse of services from Twitter and Facebook, if one of these services does not respond, the counter displays the last count it was successful.
|
38 |
|
39 |
-
#### Translate ####
|
40 |
-
|
41 |
-
You can contribute to the source code in our [Transifex](https://www.transifex.com/claudiosmweb/social-count-plus/) page.
|
42 |
-
|
43 |
#### Contribute ####
|
44 |
|
45 |
You can contribute to the source code in our [GitHub](https://github.com/claudiosmweb/social-count-plus) page.
|
@@ -70,19 +66,23 @@ Get your Company ID and Access Token in: https://socialcountplus-linkedin.heroku
|
|
70 |
|
71 |
You must create a Facebook app to use the Facebook Graph API.
|
72 |
|
73 |
-
https://
|
|
|
|
|
74 |
|
75 |
-
|
76 |
|
77 |
= Google+ and YouTube =
|
78 |
|
79 |
-
|
|
|
|
|
80 |
|
81 |
https://www.youtube.com/watch?v=EAQA-tJUWas
|
82 |
|
83 |
= Twitter =
|
84 |
|
85 |
-
You need create a Twitter App and copy the Consumer key, Consumer secret, Access token and Access token secret:
|
86 |
|
87 |
https://www.youtube.com/watch?v=26dpo-g_jQc
|
88 |
|
@@ -125,17 +125,28 @@ Select one of the options without icons in "WordPress admin > Social Count Plus
|
|
125 |
|
126 |
The CSS classes you will need to use:
|
127 |
|
128 |
-
.social-count-plus .custom .count-
|
129 |
.social-count-plus .custom .count-facebook a {}
|
130 |
-
.social-count-plus .custom .count-
|
131 |
.social-count-plus .custom .count-googleplus a {}
|
132 |
.social-count-plus .custom .count-instagram a {}
|
|
|
|
|
|
|
|
|
133 |
.social-count-plus .custom .count-steam a {}
|
|
|
134 |
.social-count-plus .custom .count-twitch a {}
|
135 |
-
.social-count-plus .custom .count-
|
136 |
-
.social-count-plus .custom .count-
|
137 |
-
.social-count-plus .custom .count-
|
|
|
|
|
|
|
|
|
|
|
138 |
|
|
|
139 |
|
140 |
== Screenshots ==
|
141 |
|
@@ -147,6 +158,10 @@ The CSS classes you will need to use:
|
|
147 |
|
148 |
== Changelog ==
|
149 |
|
|
|
|
|
|
|
|
|
150 |
= 3.3.0 - 2015/09/05 =
|
151 |
|
152 |
* Added option to show all user roles in users integration.
|
@@ -327,10 +342,9 @@ The CSS classes you will need to use:
|
|
327 |
|
328 |
== Upgrade Notice ==
|
329 |
|
330 |
-
= 3.3.
|
331 |
|
332 |
-
* Added
|
333 |
-
* Fixed errors in PHP 5.2.
|
334 |
|
335 |
== License ==
|
336 |
|
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.3
|
7 |
+
Stable tag: 3.3.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
36 |
|
37 |
The cache avoids not only that your blog be seeking new results every time a page is loaded, but also prevents collapse of services from Twitter and Facebook, if one of these services does not respond, the counter displays the last count it was successful.
|
38 |
|
|
|
|
|
|
|
|
|
39 |
#### Contribute ####
|
40 |
|
41 |
You can contribute to the source code in our [GitHub](https://github.com/claudiosmweb/social-count-plus) page.
|
66 |
|
67 |
You must create a Facebook app to use the Facebook Graph API.
|
68 |
|
69 |
+
Log in https://developers.facebook.com/ and go to "My Apps > Add a New App".
|
70 |
+
|
71 |
+
Then follow the steps in this video:
|
72 |
|
73 |
+
https://www.youtube.com/watch?v=m1QArbW2z4A
|
74 |
|
75 |
= Google+ and YouTube =
|
76 |
|
77 |
+
It's required a Google API Key for Google+ and YouTube.
|
78 |
+
|
79 |
+
Access https://console.developers.google.com/project to create you Google API key following this steps:
|
80 |
|
81 |
https://www.youtube.com/watch?v=EAQA-tJUWas
|
82 |
|
83 |
= Twitter =
|
84 |
|
85 |
+
You need access https://dev.twitter.com/apps, then create a Twitter App and copy the Consumer key, Consumer secret, Access token and Access token secret:
|
86 |
|
87 |
https://www.youtube.com/watch?v=26dpo-g_jQc
|
88 |
|
125 |
|
126 |
The CSS classes you will need to use:
|
127 |
|
128 |
+
.social-count-plus .custom .count-comments a {}
|
129 |
.social-count-plus .custom .count-facebook a {}
|
130 |
+
.social-count-plus .custom .count-github a {}
|
131 |
.social-count-plus .custom .count-googleplus a {}
|
132 |
.social-count-plus .custom .count-instagram a {}
|
133 |
+
.social-count-plus .custom .count-linkedin a {}
|
134 |
+
.social-count-plus .custom .count-pinterest a {}
|
135 |
+
.social-count-plus .custom .count-posts a {}
|
136 |
+
.social-count-plus .custom .count-soundcloud a {}
|
137 |
.social-count-plus .custom .count-steam a {}
|
138 |
+
.social-count-plus .custom .count-tumblr a {}
|
139 |
.social-count-plus .custom .count-twitch a {}
|
140 |
+
.social-count-plus .custom .count-twitter a {}
|
141 |
+
.social-count-plus .custom .count-users a {}
|
142 |
+
.social-count-plus .custom .count-vimeo a {}
|
143 |
+
|
144 |
+
|
145 |
+
= Having troubles? =
|
146 |
+
|
147 |
+
If you have any problems with the numbers, go to the plugin settings and then to the "System Status" tab and click the "Get System Report" button.
|
148 |
|
149 |
+
Copy the report file content and paste it in [gist.github.com](https://gist.github.com) or [pastebin.com](http://pastebin.com), save and get a link, finally create a topic in our [support forum](https://wordpress.org/support/plugin/social-count-plus).
|
150 |
|
151 |
== Screenshots ==
|
152 |
|
158 |
|
159 |
== Changelog ==
|
160 |
|
161 |
+
= 3.3.1 - 2015/09/28 =
|
162 |
+
|
163 |
+
* Added submenu in settings page.
|
164 |
+
|
165 |
= 3.3.0 - 2015/09/05 =
|
166 |
|
167 |
* Added option to show all user roles in users integration.
|
342 |
|
343 |
== Upgrade Notice ==
|
344 |
|
345 |
+
= 3.3.1 =
|
346 |
|
347 |
+
* Added submenu in settings page.
|
|
|
348 |
|
349 |
== License ==
|
350 |
|
social-count-plus.php
CHANGED
@@ -5,7 +5,7 @@
|
|
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: http://claudiosmweb.com/
|
8 |
-
* Version: 3.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.3.
|
35 |
|
36 |
/**
|
37 |
* Instance of this class.
|
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: http://claudiosmweb.com/
|
8 |
+
* Version: 3.3.1
|
9 |
* License: GPLv2 or later
|
10 |
* Text Domain: social-count-plus
|
11 |
* Domain Path: /languages/
|
31 |
*
|
32 |
* @var string
|
33 |
*/
|
34 |
+
const VERSION = '3.3.1';
|
35 |
|
36 |
/**
|
37 |
* Instance of this class.
|