Version Description
- Removed Google+ from the plugin
Download this release
Release Info
Developer | Access Keys |
Plugin | Social Counter for WordPress – AccessPress Social Counter |
Version | 1.8.2 |
Comparing to | |
See all releases |
Code changes from version 1.8.1 to 1.8.2
- accesspress-social-counter.php +4 -5
- inc/backend/boards/about.php +1 -2
- inc/backend/boards/display-settings.php +1 -2
- inc/backend/boards/how-to-use.php +1 -1
- inc/backend/boards/social-profiles.php +0 -53
- inc/frontend/api.php +0 -3
- inc/frontend/shortcode.php +0 -3
- inc/frontend/social_network/div/googlePlus.php +0 -12
- inc/frontend/social_network/extract_count/googlePlus.php +0 -30
- readme.txt +8 -5
accesspress-social-counter.php
CHANGED
@@ -6,7 +6,7 @@ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
|
|
6 |
* Plugin Name: AccessPress Social Counter
|
7 |
* Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-counter/
|
8 |
* Description: A plugin to display your social accounts fans, subscribers and followers number on your website with handful of backend settings and interface.
|
9 |
-
* Version: 1.8.
|
10 |
* Author: AccessPress Themes
|
11 |
* Author URI: http://accesspressthemes.com
|
12 |
* Text Domain: aps-counter
|
@@ -29,7 +29,7 @@ if ( ! defined( 'SC_CSS_DIR' ) ) {
|
|
29 |
define( 'SC_CSS_DIR', plugin_dir_url( __FILE__ ) . 'css' );
|
30 |
}
|
31 |
if ( ! defined( 'SC_VERSION' ) ) {
|
32 |
-
define( 'SC_VERSION', '1.8.
|
33 |
}
|
34 |
if ( ! defined( 'SC_PATH' ) ) {
|
35 |
define( 'SC_PATH', plugin_dir_path( __FILE__ ) );
|
@@ -158,13 +158,12 @@ if ( ! class_exists( 'SC_Class' ) ) {
|
|
158 |
function get_default_settings(){
|
159 |
$apsc_settings = array( 'social_profile' => array( 'facebook' => array( 'page_id' => '' ),
|
160 |
'twitter' => array( 'username' => '', 'consumer_key' => '', 'consumer_secret' => '', 'access_token' => '', 'access_token_secret' => '' ),
|
161 |
-
'googlePlus' => array( 'page_id' => '', 'api_key' => '' ),
|
162 |
'instagram' => array( 'username' => '', 'access_token' => '', 'user_id' => '' ),
|
163 |
'youtube' => array( 'username' => '', 'channel_url' => '' ),
|
164 |
'soundcloud' => array( 'username' => '', 'client_id' => '' ),
|
165 |
'dribbble' => array( 'username' => '' ),
|
166 |
),
|
167 |
-
'profile_order' => array( 'facebook', 'twitter', '
|
168 |
'social_profile_theme' => 'theme-1',
|
169 |
'counter_format' => 'comma',
|
170 |
'cache_period' => '',
|
@@ -197,7 +196,7 @@ if ( ! class_exists( 'SC_Class' ) ) {
|
|
197 |
*/
|
198 |
function apsc_delete_cache(){
|
199 |
if ( ! empty( $_GET ) && wp_verify_nonce( $_GET[ '_wpnonce' ], 'apsc-cache-nonce' ) ) {
|
200 |
-
$transient_array = array( 'apsc_facebook', 'apsc_twitter', 'apsc_youtube', 'apsc_instagram',
|
201 |
foreach ( $transient_array as $transient ) {
|
202 |
delete_transient( $transient );
|
203 |
}
|
6 |
* Plugin Name: AccessPress Social Counter
|
7 |
* Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-counter/
|
8 |
* Description: A plugin to display your social accounts fans, subscribers and followers number on your website with handful of backend settings and interface.
|
9 |
+
* Version: 1.8.2
|
10 |
* Author: AccessPress Themes
|
11 |
* Author URI: http://accesspressthemes.com
|
12 |
* Text Domain: aps-counter
|
29 |
define( 'SC_CSS_DIR', plugin_dir_url( __FILE__ ) . 'css' );
|
30 |
}
|
31 |
if ( ! defined( 'SC_VERSION' ) ) {
|
32 |
+
define( 'SC_VERSION', '1.8.2' );
|
33 |
}
|
34 |
if ( ! defined( 'SC_PATH' ) ) {
|
35 |
define( 'SC_PATH', plugin_dir_path( __FILE__ ) );
|
158 |
function get_default_settings(){
|
159 |
$apsc_settings = array( 'social_profile' => array( 'facebook' => array( 'page_id' => '' ),
|
160 |
'twitter' => array( 'username' => '', 'consumer_key' => '', 'consumer_secret' => '', 'access_token' => '', 'access_token_secret' => '' ),
|
|
|
161 |
'instagram' => array( 'username' => '', 'access_token' => '', 'user_id' => '' ),
|
162 |
'youtube' => array( 'username' => '', 'channel_url' => '' ),
|
163 |
'soundcloud' => array( 'username' => '', 'client_id' => '' ),
|
164 |
'dribbble' => array( 'username' => '' ),
|
165 |
),
|
166 |
+
'profile_order' => array( 'facebook', 'twitter', 'instagram', 'youtube', 'soundcloud', 'dribbble', 'posts', 'comments' ),
|
167 |
'social_profile_theme' => 'theme-1',
|
168 |
'counter_format' => 'comma',
|
169 |
'cache_period' => '',
|
196 |
*/
|
197 |
function apsc_delete_cache(){
|
198 |
if ( ! empty( $_GET ) && wp_verify_nonce( $_GET[ '_wpnonce' ], 'apsc-cache-nonce' ) ) {
|
199 |
+
$transient_array = array( 'apsc_facebook', 'apsc_twitter', 'apsc_youtube', 'apsc_instagram','apsc_soundcloud', 'apsc_dribbble', 'apsc_posts', 'apsc_comments' );
|
200 |
foreach ( $transient_array as $transient ) {
|
201 |
delete_transient( $transient );
|
202 |
}
|
inc/backend/boards/about.php
CHANGED
@@ -9,7 +9,7 @@
|
|
9 |
A perfect plugin to show your social media stats and encourage more to join your network.
|
10 |
You can select the social media profiles you want to activate, enter details of your social media and select one of the designs from beautifully designed 5 design themes.
|
11 |
All you have to do is either use a widget or shortcode to display your social media counter right on your website in your chosen location !
|
12 |
-
The available social media in FREE version are: Facebook, Twitter,
|
13 |
<div class = "halfseperator"></div>
|
14 |
<p><strong><?php _e( 'Please visit our product page for more details here:', 'accesspress-social-counter' ); ?></strong><br />
|
15 |
<a href = "https://accesspressthemes.com/wordpress-plugins/accesspress-social-counter/" target = "_blank">https://accesspressthemes.com/wordpress-plugins/accesspress-social-counter/</a></p>
|
@@ -56,7 +56,6 @@
|
|
56 |
<iframe style = "border: none; overflow: hidden; width: 764px; height: 206px;" src = "//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2Fpages%2FAccessPress-Themes%2F1396595907277967&width=842&height=258&colorscheme=light&show_faces=true&header=false&stream=false&show_border=true&appId=1411139805828592" width = "240" height = "150" frameborder = "0" scrolling = "no"></iframe></p>
|
57 |
|
58 |
<ul class = "social-icon">
|
59 |
-
<li><a href = "https://plus.google.com/u/0/+Accesspressthemesprofile/about" target = "_blank"><img src = "<?php echo SC_IMAGE_DIR; ?>/googleplus.png" alt = "google+"></a></li>
|
60 |
<li><a href = "http://www.pinterest.com/accesspresswp/" target = "_blank"><img src = "<?php echo SC_IMAGE_DIR; ?>/pinterest.png" alt = "pinterest"></a></li>
|
61 |
<li><a href = "https://www.flickr.com/photos/accesspressthemes/" target = "_blank"><img src = "<?php echo SC_IMAGE_DIR; ?>/flicker.png" alt = "flicker"></a></li>
|
62 |
<li><a href = "https://twitter.com/apthemes" target = "_blank"><img src = "<?php echo SC_IMAGE_DIR; ?>/twitter.png" alt = "twitter"/></a></li>
|
9 |
A perfect plugin to show your social media stats and encourage more to join your network.
|
10 |
You can select the social media profiles you want to activate, enter details of your social media and select one of the designs from beautifully designed 5 design themes.
|
11 |
All you have to do is either use a widget or shortcode to display your social media counter right on your website in your chosen location !
|
12 |
+
The available social media in FREE version are: Facebook, Twitter, Instagram, Youtube, Sound Cloud and Dribbble along with Posts and Comments count.', 'accesspress-social-counter' ); ?> </p>
|
13 |
<div class = "halfseperator"></div>
|
14 |
<p><strong><?php _e( 'Please visit our product page for more details here:', 'accesspress-social-counter' ); ?></strong><br />
|
15 |
<a href = "https://accesspressthemes.com/wordpress-plugins/accesspress-social-counter/" target = "_blank">https://accesspressthemes.com/wordpress-plugins/accesspress-social-counter/</a></p>
|
56 |
<iframe style = "border: none; overflow: hidden; width: 764px; height: 206px;" src = "//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2Fpages%2FAccessPress-Themes%2F1396595907277967&width=842&height=258&colorscheme=light&show_faces=true&header=false&stream=false&show_border=true&appId=1411139805828592" width = "240" height = "150" frameborder = "0" scrolling = "no"></iframe></p>
|
57 |
|
58 |
<ul class = "social-icon">
|
|
|
59 |
<li><a href = "http://www.pinterest.com/accesspresswp/" target = "_blank"><img src = "<?php echo SC_IMAGE_DIR; ?>/pinterest.png" alt = "pinterest"></a></li>
|
60 |
<li><a href = "https://www.flickr.com/photos/accesspressthemes/" target = "_blank"><img src = "<?php echo SC_IMAGE_DIR; ?>/flicker.png" alt = "flicker"></a></li>
|
61 |
<li><a href = "https://twitter.com/apthemes" target = "_blank"><img src = "<?php echo SC_IMAGE_DIR; ?>/twitter.png" alt = "twitter"/></a></li>
|
inc/backend/boards/display-settings.php
CHANGED
@@ -7,7 +7,6 @@
|
|
7 |
<?php
|
8 |
$social_profiles_ref = array( 'facebook' => 'Facebook',
|
9 |
'twitter' => 'Twitter',
|
10 |
-
'googlePlus' => 'Google Plus',
|
11 |
'instagram' => 'Instagram',
|
12 |
'soundcloud' => 'SoundCloud',
|
13 |
'dribbble' => 'Dribbble',
|
@@ -15,7 +14,7 @@
|
|
15 |
'posts' => 'Posts',
|
16 |
'comments' => 'Comments',
|
17 |
);
|
18 |
-
//$social_profiles = array('facebook','twitter','
|
19 |
$social_profiles = $apsc_settings[ 'profile_order' ];
|
20 |
foreach ( $social_profiles as $social_profile ) {
|
21 |
?>
|
7 |
<?php
|
8 |
$social_profiles_ref = array( 'facebook' => 'Facebook',
|
9 |
'twitter' => 'Twitter',
|
|
|
10 |
'instagram' => 'Instagram',
|
11 |
'soundcloud' => 'SoundCloud',
|
12 |
'dribbble' => 'Dribbble',
|
14 |
'posts' => 'Posts',
|
15 |
'comments' => 'Comments',
|
16 |
);
|
17 |
+
//$social_profiles = array('facebook','twitter','instagram','soundcloud','dribbble','youtube','posts','comments');
|
18 |
$social_profiles = $apsc_settings[ 'profile_order' ];
|
19 |
foreach ( $social_profiles as $social_profile ) {
|
20 |
?>
|
inc/backend/boards/how-to-use.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
<p><?php _e( 'You can also pass the theme parameter in the shorcode to get the desired theme while displaying the count. For example [aps-counter theme="theme-1"] . There are 5 available themes so you can change theme-1 upto theme-5.', 'accesspress-social-counter' ); ?> </p>
|
5 |
<p><?php _e( 'For the complete documentation please visit:', 'accesspress-social-counter' ); ?><br/> <a href="https://accesspressthemes.com/documentation/accesspress-social-counter/" target="_blank">https://accesspressthemes.com/documentation/accesspress-social-counter/</a></p>
|
6 |
<p><?php _e( 'To get the individual count, please use below shortcode', 'accesspress-social-counter' ); ?></p><br /><br />
|
7 |
-
[aps-get-count social_media="facebook/twitter/
|
8 |
<p><strong>Note</strong>: Use any value separated by "/" . For example [aps-get-count social_media="facebook" count_format="short"]</p>
|
9 |
|
10 |
<p><?php _e( 'You can check our full plugin setup tutorial in below video.', 'accesspress-social-counter' ); ?></p>
|
4 |
<p><?php _e( 'You can also pass the theme parameter in the shorcode to get the desired theme while displaying the count. For example [aps-counter theme="theme-1"] . There are 5 available themes so you can change theme-1 upto theme-5.', 'accesspress-social-counter' ); ?> </p>
|
5 |
<p><?php _e( 'For the complete documentation please visit:', 'accesspress-social-counter' ); ?><br/> <a href="https://accesspressthemes.com/documentation/accesspress-social-counter/" target="_blank">https://accesspressthemes.com/documentation/accesspress-social-counter/</a></p>
|
6 |
<p><?php _e( 'To get the individual count, please use below shortcode', 'accesspress-social-counter' ); ?></p><br /><br />
|
7 |
+
[aps-get-count social_media="facebook/twitter/instagram/youtube/soundcloud/dribbble/posts/comments" count_format="default/comma/short"]
|
8 |
<p><strong>Note</strong>: Use any value separated by "/" . For example [aps-get-count social_media="facebook" count_format="short"]</p>
|
9 |
|
10 |
<p><?php _e( 'You can check our full plugin setup tutorial in below video.', 'accesspress-social-counter' ); ?></p>
|
inc/backend/boards/social-profiles.php
CHANGED
@@ -218,59 +218,6 @@
|
|
218 |
</div>
|
219 |
<!--Twitter-->
|
220 |
|
221 |
-
<!--Google Plus-->
|
222 |
-
<div class="apsc-option-outer-wrapper">
|
223 |
-
<h4><?php _e( 'Google Plus', 'accesspress-social-counter' ); ?></h4>
|
224 |
-
<div class="apsc-extra-note"><?php _e( 'Please be informed that Google has officially started the process of shutting down and deleting all consumer accounts on its Google+ social network platform' ); ?></div>
|
225 |
-
|
226 |
-
<div class="apsc-option-inner-wrapper">
|
227 |
-
<label><?php _e( 'Display Counter', 'accesspress-social-counter' ) ?></label>
|
228 |
-
<div class="apsc-option-field"><label><input type="checkbox" name="social_profile[googlePlus][active]" value="1" class="apsc-counter-activation-trigger" <?php if ( isset( $apsc_settings[ 'social_profile' ][ 'googlePlus' ][ 'active' ] ) ) { ?>checked="checked"<?php } ?>/><?php _e( 'Show/Hide', 'accesspress-social-counter' ); ?></label></div>
|
229 |
-
</div>
|
230 |
-
<div class="apsc-option-extra">
|
231 |
-
<div class="apsc-option-inner-wrapper">
|
232 |
-
<label><?php _e( 'Google Plus Page Name or Profile ID', 'accesspress-social-counter' ); ?></label>
|
233 |
-
<div class="apsc-option-field">
|
234 |
-
<input type="text" name="social_profile[googlePlus][page_id]" value="<?php echo esc_attr( $apsc_settings[ 'social_profile' ][ 'googlePlus' ][ 'page_id' ] ); ?>"/>
|
235 |
-
<div class="apsc-option-note"><?php _e( 'Please enter the page name or profile ID.For example:If your page url is https://plus.google.com/+BBCNews then your page name is +BBCNews', 'accesspress-social-counter' ); ?></div>
|
236 |
-
</div>
|
237 |
-
</div>
|
238 |
-
<div class="apsc-option-inner-wrapper">
|
239 |
-
<label><?php _e( 'Google API Key', 'accesspress-social-counter' ); ?></label>
|
240 |
-
<div class="apsc-option-field">
|
241 |
-
<input type="text" name="social_profile[googlePlus][api_key]" value="<?php echo esc_attr( $apsc_settings[ 'social_profile' ][ 'googlePlus' ][ 'api_key' ] ); ?>"/>
|
242 |
-
<div class="apsc-option-note">
|
243 |
-
<p><?php _e( 'To get your API Key, please go to <a href="https://console.developers.google.com/project" target="_blank">https://console.developers.google.com/project</a> and follow below steps.', 'accesspress-social-counter' ); ?></p>
|
244 |
-
<ol>
|
245 |
-
<li> <?php _e( 'Click on create project.', 'accesspress-social-counter' ); ?></li>
|
246 |
-
<li> <?php _e( 'Enter project name and click create, A new page will load with newly created app dashboard.', 'accesspress-social-counter' ); ?></li>
|
247 |
-
<li> <?php _e( 'In the blue API box click on "Enable and manage APIs".', 'accesspress-social-counter' ); ?></li>
|
248 |
-
<li> <?php _e( 'Enable google+ api by clicking on it.', 'accesspress-social-counter' ); ?></li>
|
249 |
-
<li> <?php _e( 'Now click on credentials tab.', 'accesspress-social-counter' ); ?></li>
|
250 |
-
<li> <?php _e( 'When you click on "Create Credentials" button, options will appear.', 'accesspress-social-counter' ); ?></li>
|
251 |
-
<li> <?php _e( 'Now click on API key, a popup will appear.', 'accesspress-social-counter' ); ?></li>
|
252 |
-
<li> <?php _e( 'Now click on Browser key.', 'accesspress-social-counter' ); ?></li>
|
253 |
-
<li> <?php _e( 'Copy the browser key and paste in the above field.', 'accesspress-social-counter' ); ?></li>
|
254 |
-
</ol>
|
255 |
-
<p class="description">
|
256 |
-
<?php _e( 'If still, the count is not displaying then there may be a privacy issue within the google+ account.You may need to public some of your settings in it.Please chek in the below screenshot:', 'accesspress-social-counter' ); ?>
|
257 |
-
</p>
|
258 |
-
<a href="https://i.imgur.com/4zbtqKH.png" target="_blank">https://i.imgur.com/4zbtqKH.png</a>
|
259 |
-
</div>
|
260 |
-
</div>
|
261 |
-
</div>
|
262 |
-
<div class="apsc-option-inner-wrapper apsc-row-even">
|
263 |
-
<label><?php _e( 'Default Count', 'ap-social-pro' ); ?></label>
|
264 |
-
<div class="apsc-option-field">
|
265 |
-
<input type="text" name="social_profile[googlePlus][default_count]" value="<?php echo isset( $apsc_settings[ 'social_profile' ][ 'googlePlus' ][ 'default_count' ] ) && $apsc_settings[ 'social_profile' ][ 'googlePlus' ][ 'default_count' ] != '' ? $apsc_settings[ 'social_profile' ][ 'googlePlus' ][ 'default_count' ] : ''; ?>"/>
|
266 |
-
<div class="apsc-option-note"><?php _e( 'Please enter the default count to show instead of 0 when API\'s are not available.', 'ap-social-pro' ); ?></div>
|
267 |
-
</div>
|
268 |
-
</div>
|
269 |
-
</div>
|
270 |
-
<div class="apsc-extra-note"><?php _e( 'Please use: [aps-get-count social_media="googlePlus"] to get the Google Plus Count only.You can also pass count_format parameter too in this shortcode to format your count.Formats are "short" for abbreviated format and "comma" for comma separated formats.' ); ?></div>
|
271 |
-
</div>
|
272 |
-
<!--Google Plus-->
|
273 |
-
|
274 |
<!--Instagram-->
|
275 |
<div class="apsc-option-outer-wrapper">
|
276 |
<h4><?php _e( 'Instagram', 'accesspress-social-counter' ) ?></h4>
|
218 |
</div>
|
219 |
<!--Twitter-->
|
220 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
221 |
<!--Instagram-->
|
222 |
<div class="apsc-option-outer-wrapper">
|
223 |
<h4><?php _e( 'Instagram', 'accesspress-social-counter' ) ?></h4>
|
inc/frontend/api.php
CHANGED
@@ -10,9 +10,6 @@ switch ( $social_media ) {
|
|
10 |
case 'twitter':
|
11 |
include(SC_PATH . 'inc/frontend/social_network/extract_count/twitter.php');
|
12 |
break;
|
13 |
-
case 'googlePlus':
|
14 |
-
include(SC_PATH . 'inc/frontend/social_network/extract_count/googlePlus.php');
|
15 |
-
break;
|
16 |
case 'instagram':
|
17 |
include(SC_PATH . 'inc/frontend/social_network/extract_count/instagram.php');
|
18 |
break;
|
10 |
case 'twitter':
|
11 |
include(SC_PATH . 'inc/frontend/social_network/extract_count/twitter.php');
|
12 |
break;
|
|
|
|
|
|
|
13 |
case 'instagram':
|
14 |
include(SC_PATH . 'inc/frontend/social_network/extract_count/instagram.php');
|
15 |
break;
|
inc/frontend/shortcode.php
CHANGED
@@ -23,9 +23,6 @@ $format = isset( $apsc_settings[ 'counter_format' ] ) ? esc_attr( $apsc_settings
|
|
23 |
case 'twitter':
|
24 |
include(SC_PATH . 'inc/frontend/social_network/div/twitter.php');
|
25 |
break;
|
26 |
-
case 'googlePlus':
|
27 |
-
include(SC_PATH . 'inc/frontend/social_network/div/googlePlus.php');
|
28 |
-
break;
|
29 |
case 'instagram':
|
30 |
include(SC_PATH . 'inc/frontend/social_network/div/instagram.php');
|
31 |
break;
|
23 |
case 'twitter':
|
24 |
include(SC_PATH . 'inc/frontend/social_network/div/twitter.php');
|
25 |
break;
|
|
|
|
|
|
|
26 |
case 'instagram':
|
27 |
include(SC_PATH . 'inc/frontend/social_network/div/instagram.php');
|
28 |
break;
|
inc/frontend/social_network/div/googlePlus.php
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
defined( 'ABSPATH' ) or die( "No script kiddies please!" );
|
3 |
-
|
4 |
-
$social_profile_url = 'https://plus.google.com/' . $apsc_settings[ 'social_profile' ][ 'googlePlus' ][ 'page_id' ];
|
5 |
-
?>
|
6 |
-
|
7 |
-
<a class="apsc-google-plus-icon clearfix" href="<?php echo $social_profile_url; ?>" target="_blank" <?php do_action( 'apsc_googlePlus_link' ); ?>>
|
8 |
-
<div class="apsc-inner-block">
|
9 |
-
<span class="social-icon"><i class="apsc-googlePlus fa fa-google-plus"></i><span class="media-name">google+</span></span>
|
10 |
-
<span class="apsc-count"><?php echo $count; ?></span><span class="apsc-media-type">Followers</span>
|
11 |
-
</div>
|
12 |
-
</a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inc/frontend/social_network/extract_count/googlePlus.php
DELETED
@@ -1,30 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
defined( 'ABSPATH' ) or die( "No script kiddies please!" );
|
3 |
-
|
4 |
-
$social_profile_url = 'https://plus.google.com/' . $apsc_settings[ 'social_profile' ][ 'googlePlus' ][ 'page_id' ];
|
5 |
-
$default_count = isset( $apsc_settings[ 'social_profile' ][ 'googlePlus' ][ 'default_count' ] ) && $apsc_settings[ 'social_profile' ][ 'googlePlus' ][ 'default_count' ] != '' ? $apsc_settings[ 'social_profile' ][ 'googlePlus' ][ 'default_count' ] : '0';
|
6 |
-
|
7 |
-
$googlePlus_count = get_transient( 'apsc_googlePlus' );
|
8 |
-
if ( false === $googlePlus_count ) {
|
9 |
-
$api_url = 'https://www.googleapis.com/plus/v1/people/' . $apsc_settings[ 'social_profile' ][ 'googlePlus' ][ 'page_id' ] . '?key=' . $apsc_settings[ 'social_profile' ][ 'googlePlus' ][ 'api_key' ];
|
10 |
-
$params = array(
|
11 |
-
'sslverify' => false,
|
12 |
-
'timeout' => 60
|
13 |
-
);
|
14 |
-
$connection = wp_remote_get( $api_url, $params );
|
15 |
-
|
16 |
-
if ( is_wp_error( $connection ) ) {
|
17 |
-
$count = $default_count;
|
18 |
-
} else {
|
19 |
-
$_data = json_decode( $connection[ 'body' ], true );
|
20 |
-
|
21 |
-
if ( isset( $_data[ 'circledByCount' ] ) ) {
|
22 |
-
$count = (intval( $_data[ 'circledByCount' ] ));
|
23 |
-
set_transient( 'apsc_googlePlus', $count, $cache_period );
|
24 |
-
} else {
|
25 |
-
$count = $default_count;
|
26 |
-
}
|
27 |
-
}
|
28 |
-
} else {
|
29 |
-
$count = $googlePlus_count;
|
30 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: social count, social counter, social counters, social media counters, soci
|
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 5.2.1
|
7 |
-
Stable tag: 1.8.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -20,7 +20,7 @@ You can select the social media profiles you want to activate, enter details of
|
|
20 |
|
21 |
All you have to do is either use a widget or shortcode to display your social media counter right on your website in your chosen location!
|
22 |
|
23 |
-
The available social media in FREE version are: Facebook, Twitter,
|
24 |
|
25 |
Just get it done in a few minutes!
|
26 |
|
@@ -33,7 +33,7 @@ Note: If Instagram followers count is returning 0, it is due to change in the in
|
|
33 |
= Free Features: =
|
34 |
|
35 |
* <strong>Beautifully designed 5 themes to select from.</strong> More available in Pro versoin.
|
36 |
-
* <strong>Major 7 social media included </strong>(Facebook, Twitter,
|
37 |
* <strong>Latest use of APIs to fetch data</strong>
|
38 |
* <strong>Auto updates on all APIs</strong>
|
39 |
* <strong>Option to select which social media profile to show</strong>
|
@@ -52,7 +52,7 @@ Note: If Instagram followers count is returning 0, it is due to change in the in
|
|
52 |
[youtube https://www.youtube.com/watch?v=96E67Z6AKM8]
|
53 |
|
54 |
= Premium Features: =
|
55 |
-
★ Major 18 social media included(Facebook, Twitter,
|
56 |
SoundCloud, Dribbble, Youtube, Steam, Vimeo, Pinterest, Forrst, VK,
|
57 |
Flickr, Behance, Github, Envato,Posts, Comments)
|
58 |
|
@@ -90,7 +90,6 @@ Note: If Instagram followers count is returning 0, it is due to change in the in
|
|
90 |
* <strong>Facebook link</strong>: https://www.facebook.com/AccessPressThemes
|
91 |
|
92 |
|
93 |
-
|
94 |
For a easy installation guide checkout the Installation tab above.
|
95 |
|
96 |
For complete information and documentation regarding plugin,please visit below links.
|
@@ -148,6 +147,10 @@ Once you install the plugin , you can check some general documentation about how
|
|
148 |
5. Backend Cache Settings Section
|
149 |
|
150 |
== Changelog ==
|
|
|
|
|
|
|
|
|
151 |
= 1.8.1 =
|
152 |
* Bug fix ralated to Facebook link
|
153 |
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 5.2.1
|
7 |
+
Stable tag: 1.8.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
20 |
|
21 |
All you have to do is either use a widget or shortcode to display your social media counter right on your website in your chosen location!
|
22 |
|
23 |
+
The available social media in FREE version are: Facebook, Twitter, Instagram, Youtube, Sound Cloud and Dribbble along with Posts and Comments count.
|
24 |
|
25 |
Just get it done in a few minutes!
|
26 |
|
33 |
= Free Features: =
|
34 |
|
35 |
* <strong>Beautifully designed 5 themes to select from.</strong> More available in Pro versoin.
|
36 |
+
* <strong>Major 7 social media included </strong>(Facebook, Twitter, Instagram, Youtube, Sound Cloud and Dribbble). More available in Pro versoin.
|
37 |
* <strong>Latest use of APIs to fetch data</strong>
|
38 |
* <strong>Auto updates on all APIs</strong>
|
39 |
* <strong>Option to select which social media profile to show</strong>
|
52 |
[youtube https://www.youtube.com/watch?v=96E67Z6AKM8]
|
53 |
|
54 |
= Premium Features: =
|
55 |
+
★ Major 18 social media included(Facebook, Twitter, Instagram,
|
56 |
SoundCloud, Dribbble, Youtube, Steam, Vimeo, Pinterest, Forrst, VK,
|
57 |
Flickr, Behance, Github, Envato,Posts, Comments)
|
58 |
|
90 |
* <strong>Facebook link</strong>: https://www.facebook.com/AccessPressThemes
|
91 |
|
92 |
|
|
|
93 |
For a easy installation guide checkout the Installation tab above.
|
94 |
|
95 |
For complete information and documentation regarding plugin,please visit below links.
|
147 |
5. Backend Cache Settings Section
|
148 |
|
149 |
== Changelog ==
|
150 |
+
|
151 |
+
= 1.8.2 =
|
152 |
+
* Removed Google+ from the plugin
|
153 |
+
|
154 |
= 1.8.1 =
|
155 |
* Bug fix ralated to Facebook link
|
156 |
|