Social Counter for WordPress – AccessPress Social Counter - Version 1.8.0

Version Description

  • Bug fix ralated to instagram count
  • Refinement in the code
Download this release

Release Info

Developer Access Keys
Plugin Icon 128x128 Social Counter for WordPress – AccessPress Social Counter
Version 1.8.0
Comparing to
See all releases

Code changes from version 1.7.9 to 1.8.0

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.7.9
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.7.9' );
33
  }
34
  if ( ! defined( 'SC_PATH' ) ) {
35
  define( 'SC_PATH', plugin_dir_path( __FILE__ ) );
@@ -43,11 +43,6 @@ if ( ! class_exists( 'SC_Class' ) ) {
43
  class SC_Class{
44
 
45
  var $apsc_settings;
46
-
47
- /**
48
- * Initializes the plugin functions
49
- */
50
-
51
  function __construct(){
52
  $this -> apsc_settings = get_option( 'apsc_settings' );
53
  register_activation_hook( __FILE__, array( $this, 'load_default_settings' ) ); //loads default settings for the plugin while activating the plugin
@@ -465,8 +460,6 @@ if ( ! class_exists( 'SC_Class' ) ) {
465
  }
466
  return $count;
467
  }
468
-
469
  }
470
-
471
- $sc_object = new SC_Class(); //initialization of plugin
472
  }
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.0
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.0' );
33
  }
34
  if ( ! defined( 'SC_PATH' ) ) {
35
  define( 'SC_PATH', plugin_dir_path( __FILE__ ) );
43
  class SC_Class{
44
 
45
  var $apsc_settings;
 
 
 
 
 
46
  function __construct(){
47
  $this -> apsc_settings = get_option( 'apsc_settings' );
48
  register_activation_hook( __FILE__, array( $this, 'load_default_settings' ) ); //loads default settings for the plugin while activating the plugin
460
  }
461
  return $count;
462
  }
 
463
  }
464
+ $sc_object = new SC_Class();
 
465
  }
inc/backend/boards/about.php CHANGED
@@ -24,10 +24,6 @@
24
  <img src = "<?php echo SC_IMAGE_DIR; ?>/plugin.png" alt = "<?php esc_attr_e( 'WordPress Plugins', 'accesspress-social-counter' ); ?>" />
25
  </a>
26
  </div>
27
-
28
-
29
-
30
-
31
  <div class = "product">
32
  <a href = "http://accesspressthemes.com/wordpress-themes" target = "_blank">
33
  <span class = "product-title"><?php _e( 'WordPress Themes', 'accesspress-social-counter' ); ?></span>
24
  <img src = "<?php echo SC_IMAGE_DIR; ?>/plugin.png" alt = "<?php esc_attr_e( 'WordPress Plugins', 'accesspress-social-counter' ); ?>" />
25
  </a>
26
  </div>
 
 
 
 
27
  <div class = "product">
28
  <a href = "http://accesspressthemes.com/wordpress-themes" target = "_blank">
29
  <span class = "product-title"><?php _e( 'WordPress Themes', 'accesspress-social-counter' ); ?></span>
inc/backend/save-settings.php CHANGED
@@ -1,77 +1,6 @@
1
  <?php
2
  defined('ABSPATH') or die("No script kiddies please!");
3
- /**
4
- * Posted Data
5
- * Array
6
- (
7
- [action] => apsc_settings_action
8
- [social_profile] => Array
9
- (
10
- [facebook] => Array
11
- (
12
- [page_id] =>
13
- )
14
 
15
- [twitter] => Array
16
- (
17
- [username] =>
18
- [cosumer_key] =>
19
- [cosumer_secret] =>
20
- [access_token] =>
21
- [access_token_secret] =>
22
- )
23
-
24
- [googlePlus] => Array
25
- (
26
- [page_id] =>
27
- [api_key] =>
28
- )
29
-
30
- [instagram] => Array
31
- (
32
- [username] =>
33
- [access_token] =>
34
- )
35
-
36
- [youtube] => Array
37
- (
38
- [username] =>
39
- [channel_url] =>
40
- )
41
-
42
- [soundcloud] => Array
43
- (
44
- [username] =>
45
- [client_id] =>
46
- )
47
-
48
- [dribbble] => Array
49
- (
50
- [username] =>
51
- )
52
-
53
- )
54
-
55
- [profile_order] => Array
56
- (
57
- [0] => facebook
58
- [1] => twitter
59
- [2] => googlePlus
60
- [3] => instagram
61
- [4] => soundcloud
62
- [5] => dribbble
63
- [6] => youtube
64
- [7] => posts
65
- [8] => comments
66
- )
67
-
68
- [cache_period] =>
69
- [apsc_settings_nonce] => ddf794f2f0
70
- [_wp_http_referer] => /accesspress-social-counter/wp-admin/admin.php?page=ap-social-counter
71
- [ap_settings_submit] => Save all changes
72
- )
73
- */
74
- //$this->print_array($_POST);die();
75
  foreach($_POST as $key=>$val)
76
  {
77
  $$key = $val;
@@ -86,6 +15,3 @@ $apsc_settings['disable_font_css'] = isset($disable_font_css)?1:0;
86
  $apsc_settings['disable_frontend_css'] = isset($disable_frontend_css)?1:0;
87
  update_option('apsc_settings', $apsc_settings);
88
  wp_redirect(admin_url().'admin.php?page=ap-social-counter&message=1');
89
-
90
-
91
-
1
  <?php
2
  defined('ABSPATH') or die("No script kiddies please!");
 
 
 
 
 
 
 
 
 
 
 
3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  foreach($_POST as $key=>$val)
5
  {
6
  $$key = $val;
15
  $apsc_settings['disable_frontend_css'] = isset($disable_frontend_css)?1:0;
16
  update_option('apsc_settings', $apsc_settings);
17
  wp_redirect(admin_url().'admin.php?page=ap-social-counter&message=1');
 
 
 
inc/frontend/api.php CHANGED
@@ -5,32 +5,32 @@ $apsc_settings = $this -> apsc_settings;
5
  $cache_period = ($apsc_settings[ 'cache_period' ] != '') ? esc_attr( $apsc_settings[ 'cache_period' ] ) * 60 * 60 : 24 * 60 * 60;
6
  switch ( $social_media ) {
7
  case 'facebook':
8
- include(SC_PATH . 'inc/frontend/social_network/facebook.php');
9
  break;
10
  case 'twitter':
11
- include(SC_PATH . 'inc/frontend/social_network/twitter.php');
12
  break;
13
  case 'googlePlus':
14
- include(SC_PATH . 'inc/frontend/social_network/googlePlus.php');
15
  break;
16
  case 'instagram':
17
- include(SC_PATH . 'inc/frontend/social_network/instagram.php');
18
  break;
19
  case 'youtube':
20
- include(SC_PATH . 'inc/frontend/social_network/youtube.php');
21
  break;
22
  case 'soundcloud':
23
- include(SC_PATH . 'inc/frontend/social_network/soundcloud.php');
24
  break;
25
  case 'dribbble':
26
- include(SC_PATH . 'inc/frontend/social_network/dribbble.php');
27
  break;
28
  case 'posts':
29
- include(SC_PATH . 'inc/frontend/social_network/posts.php');
30
  break;
31
  case 'comments':
32
- include(SC_PATH . 'inc/frontend/social_network/comments.php');
33
  break;
34
  default:
35
  break;
36
- }
5
  $cache_period = ($apsc_settings[ 'cache_period' ] != '') ? esc_attr( $apsc_settings[ 'cache_period' ] ) * 60 * 60 : 24 * 60 * 60;
6
  switch ( $social_media ) {
7
  case 'facebook':
8
+ include(SC_PATH . 'inc/frontend/social_network/extract_count/facebook.php');
9
  break;
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;
19
  case 'youtube':
20
+ include(SC_PATH . 'inc/frontend/social_network/extract_count/youtube.php');
21
  break;
22
  case 'soundcloud':
23
+ include(SC_PATH . 'inc/frontend/social_network/extract_count/soundcloud.php');
24
  break;
25
  case 'dribbble':
26
+ include(SC_PATH . 'inc/frontend/social_network/extract_count/dribbble.php');
27
  break;
28
  case 'posts':
29
+ include(SC_PATH . 'inc/frontend/social_network/extract_count/posts.php');
30
  break;
31
  case 'comments':
32
+ include(SC_PATH . 'inc/frontend/social_network/extract_count/comments.php');
33
  break;
34
  default:
35
  break;
36
+ }
inc/frontend/shortcode.php CHANGED
@@ -18,103 +18,31 @@ $format = isset( $apsc_settings[ 'counter_format' ] ) ? esc_attr( $apsc_settings
18
  $count = ($count != 0) ? $this -> get_formatted_count( $count, $format ) : $count;
19
  switch ( $social_profile ) {
20
  case 'facebook':
21
- $facebook_page_id = $apsc_settings[ 'social_profile' ][ 'facebook' ][ 'page_id' ];
22
- ?>
23
- <a class="apsc-facebook-icon clearfix" href="<?php echo "https://facebook.com/" . $facebook_page_id; ?>" target="_blank" <?php do_action( 'apsc_facebook_link' ); ?>>
24
- <div class="apsc-inner-block">
25
- <span class="social-icon"><i class="fa fa-facebook apsc-facebook"></i><span class="media-name">Facebook</span></span>
26
- <span class="apsc-count"><?php echo $count; ?></span><span class="apsc-media-type">Fans</span>
27
- </div>
28
- </a>
29
- <?php
30
  break;
31
  case 'twitter':
32
- ?>
33
- <a class="apsc-twitter-icon clearfix" href="<?php echo 'https://twitter.com/' . $apsc_settings[ 'social_profile' ][ 'twitter' ][ 'username' ]; ?>" target="_blank" <?php do_action( 'apsc_twitter_link' ); ?>>
34
- <div class="apsc-inner-block">
35
- <span class="social-icon"><i class="fa fa-twitter apsc-twitter"></i><span class="media-name">Twitter</span></span>
36
- <span class="apsc-count"><?php echo $count; ?></span><span class="apsc-media-type">Followers</span>
37
- </div>
38
- </a>
39
- <?php
40
  break;
41
  case 'googlePlus':
42
- $social_profile_url = 'https://plus.google.com/' . $apsc_settings[ 'social_profile' ][ 'googlePlus' ][ 'page_id' ];
43
- ?>
44
- <a class="apsc-google-plus-icon clearfix" href="<?php echo $social_profile_url; ?>" target="_blank" <?php do_action( 'apsc_googlePlus_link' ); ?>>
45
- <div class="apsc-inner-block">
46
- <span class="social-icon"><i class="apsc-googlePlus fa fa-google-plus"></i><span class="media-name">google+</span></span>
47
- <span class="apsc-count"><?php echo $count; ?></span><span class="apsc-media-type">Followers</span>
48
- </div>
49
- </a>
50
- <?php
51
  break;
52
  case 'instagram':
53
- $username = $apsc_settings[ 'social_profile' ][ 'instagram' ][ 'username' ];
54
- $user_id = $apsc_settings[ 'social_profile' ][ 'instagram' ][ 'user_id' ];
55
- $social_profile_url = 'https://instagram.com/' . $username;
56
- ?>
57
- <a class="apsc-instagram-icon clearfix" href="<?php echo $social_profile_url; ?>" target="_blank" <?php do_action( 'apsc_instagram_link' ); ?>>
58
- <div class="apsc-inner-block">
59
- <span class="social-icon"><i class="apsc-instagram fa fa-instagram"></i><span class="media-name">Instagram</span></span>
60
- <span class="apsc-count"><?php echo $count; ?></span><span class="apsc-media-type">Followers</span>
61
- </div>
62
- </a>
63
- <?php
64
  break;
65
  case 'youtube':
66
- $social_profile_url = esc_url( $apsc_settings[ 'social_profile' ][ 'youtube' ][ 'channel_url' ] );
67
- ?>
68
- <a class="apsc-youtube-icon clearfix" href="<?php echo $social_profile_url; ?>" target="_blank" <?php do_action( 'apsc_youtube_link' ); ?>>
69
- <div class="apsc-inner-block">
70
- <span class="social-icon"><i class="apsc-youtube fa fa-youtube"></i><span class="media-name">Youtube</span></span>
71
- <span class="apsc-count"><?php echo $count; ?></span><span class="apsc-media-type">Subscriber</span>
72
- </div>
73
- </a>
74
- <?php
75
  break;
76
  case 'soundcloud':
77
- $username = $apsc_settings[ 'social_profile' ][ 'soundcloud' ][ 'username' ];
78
- $social_profile_url = 'https://soundcloud.com/' . $username;
79
- ?>
80
- <a class="apsc-soundcloud-icon clearfix" href="<?php echo $social_profile_url; ?>" target="_blank" <?php do_action( 'apsc_soundcloud_link' ); ?>>
81
- <div class="apsc-inner-block">
82
- <span class="social-icon"><i class="apsc-soundcloud fa fa-soundcloud"></i><span class="media-name">Soundcloud</span></span>
83
- <span class="apsc-count"><?php echo $count; ?></span><span class="apsc-media-type">Followers</span>
84
- </div>
85
- </a>
86
- <?php
87
  break;
88
  case 'dribbble':
89
- $social_profile_url = 'https://dribbble.com/' . $apsc_settings[ 'social_profile' ][ 'dribbble' ][ 'username' ];
90
- ?>
91
- <a class="apsc-dribble-icon clearfix" href="<?php echo $social_profile_url; ?>" target="_blank" <?php do_action( 'apsc_dribbble_link' ); ?>>
92
- <div class="apsc-inner-block">
93
- <span class="social-icon"><i class="apsc-dribbble fa fa-dribbble"></i><span class="media-name">dribble</span></span>
94
- <span class="apsc-count"><?php echo $count; ?></span><span class="apsc-media-type">Followers</span>
95
- </div>
96
- </a>
97
- <?php
98
  break;
99
  case 'posts':
100
- ?>
101
- <a class="apsc-edit-icon clearfix" href="javascript:void(0);" <?php do_action( 'apsc_posts_link' ); ?>>
102
- <div class="apsc-inner-block">
103
- <span class="social-icon"><i class="apsc-posts fa fa-edit"></i><span class="media-name">Post</span></span>
104
- <span class="apsc-count"><?php echo $count; ?></span><span class="apsc-media-type">Post</span>
105
- </div>
106
- </a>
107
- <?php
108
  break;
109
  case 'comments':
110
- ?>
111
- <a class="apsc-comment-icon clearfix" href="javascript:void(0);" <?php do_action( 'apsc_comments_link' ); ?>>
112
- <div class="apsc-inner-block">
113
- <span class="social-icon"><i class="apsc-comments fa fa-comments"></i><span class="media-name">Comment</span></span>
114
- <span class="apsc-count"><?php echo $count; ?></span><span class="apsc-media-type">Comments</span>
115
- </div>
116
- </a>
117
- <?php
118
  break;
119
  default:
120
  break;
@@ -124,5 +52,4 @@ $format = isset( $apsc_settings[ 'counter_format' ] ) ? esc_attr( $apsc_settings
124
  }
125
  }
126
  ?>
127
- </div>
128
-
18
  $count = ($count != 0) ? $this -> get_formatted_count( $count, $format ) : $count;
19
  switch ( $social_profile ) {
20
  case 'facebook':
21
+ include(SC_PATH . 'inc/frontend/social_network/div/facebook.php');
 
 
 
 
 
 
 
 
22
  break;
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;
32
  case 'youtube':
33
+ include(SC_PATH . 'inc/frontend/social_network/div/youtube.php');
 
 
 
 
 
 
 
 
34
  break;
35
  case 'soundcloud':
36
+ include(SC_PATH . 'inc/frontend/social_network/div/soundcloud.php');
 
 
 
 
 
 
 
 
 
37
  break;
38
  case 'dribbble':
39
+ include(SC_PATH . 'inc/frontend/social_network/div/dribbble.php');
 
 
 
 
 
 
 
 
40
  break;
41
  case 'posts':
42
+ include(SC_PATH . 'inc/frontend/social_network/div/posts.php');
 
 
 
 
 
 
 
43
  break;
44
  case 'comments':
45
+ include(SC_PATH . 'inc/frontend/social_network/div/comments.php');
 
 
 
 
 
 
 
46
  break;
47
  default:
48
  break;
52
  }
53
  }
54
  ?>
55
+ </div>
 
inc/frontend/social_network/div/comments.php ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <?php defined( 'ABSPATH' ) or die( "No script kiddies please!" ); ?>
2
+
3
+ <a class="apsc-comment-icon clearfix" href="javascript:void(0);" <?php do_action( 'apsc_comments_link' ); ?>>
4
+ <div class="apsc-inner-block">
5
+ <span class="social-icon"><i class="apsc-comments fa fa-comments"></i><span class="media-name">Comment</span></span>
6
+ <span class="apsc-count"><?php echo $count; ?></span><span class="apsc-media-type">Comments</span>
7
+ </div>
8
+ </a>
inc/frontend/social_network/div/dribbble.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
3
+
4
+ $social_profile_url = 'https://dribbble.com/' . $apsc_settings[ 'social_profile' ][ 'dribbble' ][ 'username' ];
5
+ ?>
6
+
7
+ <a class="apsc-dribble-icon clearfix" href="<?php echo $social_profile_url; ?>" target="_blank" <?php do_action( 'apsc_dribbble_link' ); ?>>
8
+ <div class="apsc-inner-block">
9
+ <span class="social-icon"><i class="apsc-dribbble fa fa-dribbble"></i><span class="media-name">dribble</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/div/facebook.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
3
+
4
+ $facebook_page_id = $apsc_settings[ 'social_profile' ][ 'facebook' ][ 'page_id' ];
5
+ ?>
6
+
7
+ <a class="apsc-facebook-icon clearfix" href="<?php echo "https://facebook.com/" . $facebook_page_id; ?>" target="_blank" <?php do_action( 'apsc_facebook_link' ); ?>>
8
+ <div class="apsc-inner-block">
9
+ <span class="social-icon"><i class="fa fa-facebook apsc-facebook"></i><span class="media-name">Facebook</span></span>
10
+ <span class="apsc-count"><?php echo $count; ?></span><span class="apsc-media-type">Fans</span>
11
+ </div>
12
+ </a>
inc/frontend/social_network/div/googlePlus.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
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/div/instagram.php ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
3
+
4
+ $username = $apsc_settings[ 'social_profile' ][ 'instagram' ][ 'username' ];
5
+ $user_id = $apsc_settings[ 'social_profile' ][ 'instagram' ][ 'user_id' ];
6
+ $social_profile_url = 'https://instagram.com/' . $username;
7
+ ?>
8
+ <a class="apsc-instagram-icon clearfix" href="<?php echo $social_profile_url; ?>" target="_blank" <?php do_action( 'apsc_instagram_link' ); ?>>
9
+ <div class="apsc-inner-block">
10
+ <span class="social-icon"><i class="apsc-instagram fa fa-instagram"></i><span class="media-name">Instagram</span></span>
11
+ <span class="apsc-count"><?php echo $count; ?></span><span class="apsc-media-type">Followers</span>
12
+ </div>
13
+ </a>
inc/frontend/social_network/div/posts.php ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <?php defined( 'ABSPATH' ) or die( "No script kiddies please!" ); ?>
2
+
3
+ <a class="apsc-edit-icon clearfix" href="javascript:void(0);" <?php do_action( 'apsc_posts_link' ); ?>>
4
+ <div class="apsc-inner-block">
5
+ <span class="social-icon"><i class="apsc-posts fa fa-edit"></i><span class="media-name">Post</span></span>
6
+ <span class="apsc-count"><?php echo $count; ?></span><span class="apsc-media-type">Post</span>
7
+ </div>
8
+ </a>
inc/frontend/social_network/div/soundcloud.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
3
+
4
+ $username = $apsc_settings[ 'social_profile' ][ 'soundcloud' ][ 'username' ];
5
+ $social_profile_url = 'https://soundcloud.com/' . $username;
6
+ ?>
7
+ <a class="apsc-soundcloud-icon clearfix" href="<?php echo $social_profile_url; ?>" target="_blank" <?php do_action( 'apsc_soundcloud_link' ); ?>>
8
+ <div class="apsc-inner-block">
9
+ <span class="social-icon"><i class="apsc-soundcloud fa fa-soundcloud"></i><span class="media-name">Soundcloud</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/div/twitter.php ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <?php defined( 'ABSPATH' ) or die( "No script kiddies please!" ); ?>
2
+ <a class="apsc-twitter-icon clearfix" href="<?php echo 'https://twitter.com/' . $apsc_settings[ 'social_profile' ][ 'twitter' ][ 'username' ]; ?>" target="_blank" <?php do_action( 'apsc_twitter_link' ); ?>>
3
+ <div class="apsc-inner-block">
4
+ <span class="social-icon"><i class="fa fa-twitter apsc-twitter"></i><span class="media-name">Twitter</span></span>
5
+ <span class="apsc-count"><?php echo $count; ?></span><span class="apsc-media-type">Followers</span>
6
+ </div>
7
+ </a>
inc/frontend/social_network/div/youtube.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
3
+
4
+ $social_profile_url = esc_url( $apsc_settings[ 'social_profile' ][ 'youtube' ][ 'channel_url' ] );
5
+
6
+ ?>
7
+ <a class="apsc-youtube-icon clearfix" href="<?php echo $social_profile_url; ?>" target="_blank" <?php do_action( 'apsc_youtube_link' ); ?>>
8
+ <div class="apsc-inner-block">
9
+ <span class="social-icon"><i class="apsc-youtube fa fa-youtube"></i><span class="media-name">Youtube</span></span>
10
+ <span class="apsc-count"><?php echo $count; ?></span><span class="apsc-media-type">Subscriber</span>
11
+ </div>
12
+ </a>
inc/frontend/social_network/{comments.php → extract_count/comments.php} RENAMED
@@ -1,4 +1,5 @@
1
  <?php
 
2
 
3
  $comments_count = get_transient( 'apsc_comments' );
4
  if ( false === $comments_count ) {
1
  <?php
2
+ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
3
 
4
  $comments_count = get_transient( 'apsc_comments' );
5
  if ( false === $comments_count ) {
inc/frontend/social_network/{dribbble.php → extract_count/dribbble.php} RENAMED
@@ -1,4 +1,5 @@
1
  <?php
 
2
 
3
  $social_profile_url = 'http://dribbble.com/' . $apsc_settings[ 'social_profile' ][ 'dribbble' ][ 'username' ];
4
  $default_count = isset( $apsc_settings[ 'social_profile' ][ 'dribbble' ][ 'default_count' ] ) && $apsc_settings[ 'social_profile' ][ 'dribbble' ][ 'default_count' ] != '' ? $apsc_settings[ 'social_profile' ][ 'dribbble' ][ 'default_count' ] : '';
1
  <?php
2
+ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
3
 
4
  $social_profile_url = 'http://dribbble.com/' . $apsc_settings[ 'social_profile' ][ 'dribbble' ][ 'username' ];
5
  $default_count = isset( $apsc_settings[ 'social_profile' ][ 'dribbble' ][ 'default_count' ] ) && $apsc_settings[ 'social_profile' ][ 'dribbble' ][ 'default_count' ] != '' ? $apsc_settings[ 'social_profile' ][ 'dribbble' ][ 'default_count' ] : '';
inc/frontend/social_network/{facebook.php → extract_count/facebook.php} RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
-
3
  $facebook_page_id = isset( $apsc_settings[ 'social_profile' ][ 'facebook' ][ 'page_id' ] ) && $apsc_settings[ 'social_profile' ][ 'facebook' ][ 'page_id' ] != '' ? $apsc_settings[ 'social_profile' ][ 'facebook' ][ 'page_id' ] : '';
4
  $default_count = isset( $apsc_settings[ 'social_profile' ][ 'facebook' ][ 'default_count' ] ) && $apsc_settings[ 'social_profile' ][ 'facebook' ][ 'default_count' ] != '' ? $apsc_settings[ 'social_profile' ][ 'facebook' ][ 'default_count' ] : '0';
5
  $facebook_count = get_transient( 'apsc_facebook' );
1
  <?php
2
+ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
3
  $facebook_page_id = isset( $apsc_settings[ 'social_profile' ][ 'facebook' ][ 'page_id' ] ) && $apsc_settings[ 'social_profile' ][ 'facebook' ][ 'page_id' ] != '' ? $apsc_settings[ 'social_profile' ][ 'facebook' ][ 'page_id' ] : '';
4
  $default_count = isset( $apsc_settings[ 'social_profile' ][ 'facebook' ][ 'default_count' ] ) && $apsc_settings[ 'social_profile' ][ 'facebook' ][ 'default_count' ] != '' ? $apsc_settings[ 'social_profile' ][ 'facebook' ][ 'default_count' ] : '0';
5
  $facebook_count = get_transient( 'apsc_facebook' );
inc/frontend/social_network/{googlePlus.php → extract_count/googlePlus.php} RENAMED
@@ -1,4 +1,5 @@
1
  <?php
 
2
 
3
  $social_profile_url = 'https://plus.google.com/' . $apsc_settings[ 'social_profile' ][ 'googlePlus' ][ 'page_id' ];
4
  $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';
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';
inc/frontend/social_network/{instagram.php → extract_count/instagram.php} RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
-
3
  $username = isset( $apsc_settings[ 'social_profile' ][ 'instagram' ][ 'username' ] ) && $apsc_settings[ 'social_profile' ][ 'instagram' ][ 'username' ] != '' ? $apsc_settings[ 'social_profile' ][ 'instagram' ][ 'username' ] : '';
4
  $user_id = isset( $apsc_settings[ 'social_profile' ][ 'instagram' ][ 'user_id' ] ) && $apsc_settings[ 'social_profile' ][ 'instagram' ][ 'user_id' ] != '' ? $apsc_settings[ 'social_profile' ][ 'instagram' ][ 'user_id' ] : '';
5
  $default_count = isset( $apsc_settings[ 'social_profile' ][ 'instagram' ][ 'default_count' ] ) && $apsc_settings[ 'social_profile' ][ 'instagram' ][ 'default_count' ] != '' ? $apsc_settings[ 'social_profile' ][ 'instagram' ][ 'default_count' ] : '0';
1
  <?php
2
+ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
3
  $username = isset( $apsc_settings[ 'social_profile' ][ 'instagram' ][ 'username' ] ) && $apsc_settings[ 'social_profile' ][ 'instagram' ][ 'username' ] != '' ? $apsc_settings[ 'social_profile' ][ 'instagram' ][ 'username' ] : '';
4
  $user_id = isset( $apsc_settings[ 'social_profile' ][ 'instagram' ][ 'user_id' ] ) && $apsc_settings[ 'social_profile' ][ 'instagram' ][ 'user_id' ] != '' ? $apsc_settings[ 'social_profile' ][ 'instagram' ][ 'user_id' ] : '';
5
  $default_count = isset( $apsc_settings[ 'social_profile' ][ 'instagram' ][ 'default_count' ] ) && $apsc_settings[ 'social_profile' ][ 'instagram' ][ 'default_count' ] != '' ? $apsc_settings[ 'social_profile' ][ 'instagram' ][ 'default_count' ] : '0';
inc/frontend/social_network/{posts.php → extract_count/posts.php} RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
-
3
  $posts_count = get_transient( 'apsc_posts' );
4
  if ( false === $posts_count ) {
5
  $posts_count = wp_count_posts();
1
  <?php
2
+ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
3
  $posts_count = get_transient( 'apsc_posts' );
4
  if ( false === $posts_count ) {
5
  $posts_count = wp_count_posts();
inc/frontend/social_network/{soundcloud.php → extract_count/soundcloud.php} RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
-
3
  $username = isset( $apsc_settings[ 'social_profile' ][ 'soundcloud' ][ 'username' ] ) && $apsc_settings[ 'social_profile' ][ 'soundcloud' ][ 'username' ] != '' ? $apsc_settings[ 'social_profile' ][ 'soundcloud' ][ 'username' ] : '';
4
  $social_profile_url = 'https://soundcloud.com/' . $username;
5
  $default_count = isset( $apsc_settings[ 'social_profile' ][ 'soundcloud' ][ 'default_count' ] ) && $apsc_settings[ 'social_profile' ][ 'soundcloud' ][ 'default_count' ] != '' ? $apsc_settings[ 'social_profile' ][ 'soundcloud' ][ 'default_count' ] : '';
1
  <?php
2
+ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
3
  $username = isset( $apsc_settings[ 'social_profile' ][ 'soundcloud' ][ 'username' ] ) && $apsc_settings[ 'social_profile' ][ 'soundcloud' ][ 'username' ] != '' ? $apsc_settings[ 'social_profile' ][ 'soundcloud' ][ 'username' ] : '';
4
  $social_profile_url = 'https://soundcloud.com/' . $username;
5
  $default_count = isset( $apsc_settings[ 'social_profile' ][ 'soundcloud' ][ 'default_count' ] ) && $apsc_settings[ 'social_profile' ][ 'soundcloud' ][ 'default_count' ] != '' ? $apsc_settings[ 'social_profile' ][ 'soundcloud' ][ 'default_count' ] : '';
inc/frontend/social_network/{twitter.php → extract_count/twitter.php} RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
-
3
  $default_count = isset( $apsc_settings[ 'social_profile' ][ 'twitter' ][ 'default_count' ] ) && $apsc_settings[ 'social_profile' ][ 'twitter' ][ 'default_count' ] != '' ? $apsc_settings[ 'social_profile' ][ 'twitter' ][ 'default_count' ] : '0';
4
 
5
  $twitter_count = get_transient( 'apsc_twitter' );
1
  <?php
2
+ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
3
  $default_count = isset( $apsc_settings[ 'social_profile' ][ 'twitter' ][ 'default_count' ] ) && $apsc_settings[ 'social_profile' ][ 'twitter' ][ 'default_count' ] != '' ? $apsc_settings[ 'social_profile' ][ 'twitter' ][ 'default_count' ] : '0';
4
 
5
  $twitter_count = get_transient( 'apsc_twitter' );
inc/frontend/social_network/{youtube.php → extract_count/youtube.php} RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
-
3
  $social_profile_url = esc_url( $apsc_settings[ 'social_profile' ][ 'youtube' ][ 'channel_url' ] );
4
  $count = get_transient( 'apsc_youtube' );
5
  $default_count = isset( $apsc_settings[ 'social_profile' ][ 'youtube' ][ 'default_count' ] ) && $apsc_settings[ 'social_profile' ][ 'youtube' ][ 'default_count' ] != '' ? $apsc_settings[ 'social_profile' ][ 'youtube' ][ 'default_count' ] : '0';
1
  <?php
2
+ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
3
  $social_profile_url = esc_url( $apsc_settings[ 'social_profile' ][ 'youtube' ][ 'channel_url' ] );
4
  $count = get_transient( 'apsc_youtube' );
5
  $default_count = isset( $apsc_settings[ 'social_profile' ][ 'youtube' ][ 'default_count' ] ) && $apsc_settings[ 'social_profile' ][ 'youtube' ][ 'default_count' ] != '' ? $apsc_settings[ 'social_profile' ][ 'youtube' ][ 'default_count' ] : '0';
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Access Keys
3
  Tags: social count, social counter, social counters, social media counters, social media, social network, social profiles counter, social profile count, social profile, social icons, social icon counter
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 4.5
6
- Tested up to: 5.0
7
- Stable tag: 1.7.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -149,6 +149,10 @@ Once you install the plugin , you can check some general documentation about how
149
 
150
  == Changelog ==
151
 
 
 
 
 
152
  = 1.7.9 =
153
  * General bug fixes in the plugin
154
 
3
  Tags: social count, social counter, social counters, social media counters, social media, social network, social profiles counter, social profile count, social profile, social icons, social icon counter
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.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
149
 
150
  == Changelog ==
151
 
152
+ = 1.8.0 =
153
+ * Bug fix ralated to instagram count
154
+ * Refinement in the code
155
+
156
  = 1.7.9 =
157
  * General bug fixes in the plugin
158