Social Counter for WordPress – AccessPress Social Counter - Version 1.9.0

Version Description

  • Few backend code refinement
Download this release

Release Info

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

Code changes from version 1.8.9 to 1.9.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.8.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
  }
30
 
31
  if ( ! defined( 'SC_VERSION' ) ) {
32
- define( 'SC_VERSION', '1.8.9' );
33
  }
34
 
35
  if ( ! defined( 'SC_PATH' ) ) {
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.9.0
10
  * Author: AccessPress Themes
11
  * Author URI: http://accesspressthemes.com
12
  * Text Domain: aps-counter
29
  }
30
 
31
  if ( ! defined( 'SC_VERSION' ) ) {
32
+ define( 'SC_VERSION', '1.9.0' );
33
  }
34
 
35
  if ( ! defined( 'SC_PATH' ) ) {
inc/backend/boards/about.php CHANGED
@@ -26,12 +26,12 @@
26
  <div class = "halfseperator"></div>
27
  <p>
28
  <strong><?php _e( 'Plugin demo can be found here:', 'accesspress-social-counter' ); ?></strong><br />
29
- <a href = "<?php echo APSC_LITE_DEMO; ?>" target = "_blank"><?php echo APSC_LITE_DEMO; ?></a>
30
  </p>
31
 
32
  <div class = "halfseperator"></div>
33
  <p><strong><?php _e( 'Premium version of the plugin can be found here:', 'accesspress-social-counter' ); ?></strong><br />
34
- <a href = "<?php echo APSC_PRO_LINK; ?>" target = "_blank"><?php echo APSC_PRO_LINK; ?></a>
35
  </p>
36
 
37
 
26
  <div class = "halfseperator"></div>
27
  <p>
28
  <strong><?php _e( 'Plugin demo can be found here:', 'accesspress-social-counter' ); ?></strong><br />
29
+ <a href = "<?php echo esc_attr(APSC_LITE_DEMO); ?>" target = "_blank"><?php echo esc_attr(APSC_LITE_DEMO); ?></a>
30
  </p>
31
 
32
  <div class = "halfseperator"></div>
33
  <p><strong><?php _e( 'Premium version of the plugin can be found here:', 'accesspress-social-counter' ); ?></strong><br />
34
+ <a href = "<?php echo esc_attr(APSC_PRO_LINK); ?>" target = "_blank"><?php echo esc_attr(APSC_PRO_LINK); ?></a>
35
  </p>
36
 
37
 
inc/backend/boards/cache-settings.php CHANGED
@@ -3,7 +3,7 @@
3
  <div class="apsc-option-inner-wrapper">
4
  <label><?php _e( 'Cache Period', 'accesspress-social-counter' ); ?></label>
5
  <div class="apsc-option-field">
6
- <input type="number" name="cache_period" value="<?php echo $apsc_settings[ 'cache_period' ]; ?>" min="0"/>
7
  <div class="apsc-option-note"><?php _e( 'Please enter the time in hours in which the count should be updated.Default is 24 hours', 'accesspress-social-counter' ); ?></div>
8
  </div>
9
  </div>
3
  <div class="apsc-option-inner-wrapper">
4
  <label><?php _e( 'Cache Period', 'accesspress-social-counter' ); ?></label>
5
  <div class="apsc-option-field">
6
+ <input type="number" name="cache_period" value="<?php echo esc_attr($apsc_settings[ 'cache_period' ]); ?>" min="0"/>
7
  <div class="apsc-option-note"><?php _e( 'Please enter the time in hours in which the count should be updated.Default is 24 hours', 'accesspress-social-counter' ); ?></div>
8
  </div>
9
  </div>
inc/backend/boards/display-settings.php CHANGED
@@ -20,7 +20,7 @@
20
  if ($social_profile != 'googlePlus') {
21
  ?>
22
  <li><span class="left-icon"><i class="fa fa-arrows"></i></span><span class="social-name"><?php _e($social_profiles_ref[$social_profile], 'accesspress-social-counter'); ?></span>
23
- <input type="hidden" name="profile_order[]" value="<?php echo $social_profile; ?>"/>
24
  </li>
25
  <?php
26
  }
@@ -34,23 +34,23 @@
34
  <div class="apsc-option-field">
35
  <label>
36
  <input type="radio" name="social_profile_theme" value="theme-1" <?php if ($apsc_settings['social_profile_theme'] == 'theme-1') { ?>checked="checked"<?php } ?>/><?php _e('Theme 1', 'accesspress-social-counter'); ?>
37
- <div class="apsc-theme-image"><img src="<?php echo SC_IMAGE_DIR . '/themes/theme-1.jpg'; ?>"/></div>
38
  </label>
39
  <label>
40
  <input type="radio" name="social_profile_theme" value="theme-2" <?php if ($apsc_settings['social_profile_theme'] == 'theme-2') { ?>checked="checked"<?php } ?>/><?php _e('Theme 2', 'accesspress-social-counter'); ?>
41
- <div class="apsc-theme-image"><img src="<?php echo SC_IMAGE_DIR . '/themes/theme-2.jpg'; ?>"/></div>
42
  </label>
43
  <label>
44
  <input type="radio" name="social_profile_theme" value="theme-3" <?php if ($apsc_settings['social_profile_theme'] == 'theme-3') { ?>checked="checked"<?php } ?>/><?php _e('Theme 3', 'accesspress-social-counter'); ?>
45
- <div class="apsc-theme-image"><img src="<?php echo SC_IMAGE_DIR . '/themes/theme-3.jpg'; ?>"/></div>
46
  </label>
47
  <label>
48
  <input type="radio" name="social_profile_theme" value="theme-4" <?php if ($apsc_settings['social_profile_theme'] == 'theme-4') { ?>checked="checked"<?php } ?>/><?php _e('Theme 4', 'accesspress-social-counter'); ?>
49
- <div class="apsc-theme-image"><img src="<?php echo SC_IMAGE_DIR . '/themes/theme-4.jpg'; ?>"/></div>
50
  </label>
51
  <label>
52
  <input type="radio" name="social_profile_theme" value="theme-5" <?php if ($apsc_settings['social_profile_theme'] == 'theme-5') { ?>checked="checked"<?php } ?>/><?php _e('Theme 5', 'accesspress-social-counter'); ?>
53
- <div class="apsc-theme-image"><img src="<?php echo SC_IMAGE_DIR . '/themes/theme-5.jpg'; ?>"/></div>
54
  </label>
55
  </div>
56
  </div>
20
  if ($social_profile != 'googlePlus') {
21
  ?>
22
  <li><span class="left-icon"><i class="fa fa-arrows"></i></span><span class="social-name"><?php _e($social_profiles_ref[$social_profile], 'accesspress-social-counter'); ?></span>
23
+ <input type="hidden" name="profile_order[]" value="<?php echo esc_attr($social_profile); ?>"/>
24
  </li>
25
  <?php
26
  }
34
  <div class="apsc-option-field">
35
  <label>
36
  <input type="radio" name="social_profile_theme" value="theme-1" <?php if ($apsc_settings['social_profile_theme'] == 'theme-1') { ?>checked="checked"<?php } ?>/><?php _e('Theme 1', 'accesspress-social-counter'); ?>
37
+ <div class="apsc-theme-image"><img src="<?php echo esc_attr(SC_IMAGE_DIR) . '/themes/theme-1.jpg'; ?>"/></div>
38
  </label>
39
  <label>
40
  <input type="radio" name="social_profile_theme" value="theme-2" <?php if ($apsc_settings['social_profile_theme'] == 'theme-2') { ?>checked="checked"<?php } ?>/><?php _e('Theme 2', 'accesspress-social-counter'); ?>
41
+ <div class="apsc-theme-image"><img src="<?php echo esc_attr(SC_IMAGE_DIR) . '/themes/theme-2.jpg'; ?>"/></div>
42
  </label>
43
  <label>
44
  <input type="radio" name="social_profile_theme" value="theme-3" <?php if ($apsc_settings['social_profile_theme'] == 'theme-3') { ?>checked="checked"<?php } ?>/><?php _e('Theme 3', 'accesspress-social-counter'); ?>
45
+ <div class="apsc-theme-image"><img src="<?php echo esc_attr(SC_IMAGE_DIR) . '/themes/theme-3.jpg'; ?>"/></div>
46
  </label>
47
  <label>
48
  <input type="radio" name="social_profile_theme" value="theme-4" <?php if ($apsc_settings['social_profile_theme'] == 'theme-4') { ?>checked="checked"<?php } ?>/><?php _e('Theme 4', 'accesspress-social-counter'); ?>
49
+ <div class="apsc-theme-image"><img src="<?php echo esc_attr(SC_IMAGE_DIR) . '/themes/theme-4.jpg'; ?>"/></div>
50
  </label>
51
  <label>
52
  <input type="radio" name="social_profile_theme" value="theme-5" <?php if ($apsc_settings['social_profile_theme'] == 'theme-5') { ?>checked="checked"<?php } ?>/><?php _e('Theme 5', 'accesspress-social-counter'); ?>
53
+ <div class="apsc-theme-image"><img src="<?php echo esc_attr(SC_IMAGE_DIR) . '/themes/theme-5.jpg'; ?>"/></div>
54
  </label>
55
  </div>
56
  </div>
inc/backend/boards/social-profiles.php CHANGED
@@ -131,7 +131,7 @@
131
  <div class="apsc-option-field">
132
  <input type="text" name="social_profile[facebook][default_count]" value="<?php
133
  if ( isset( $apsc_settings[ 'social_profile' ][ 'facebook' ][ 'default_count' ] ) ) {
134
- echo $apsc_settings[ 'social_profile' ][ 'facebook' ][ 'default_count' ];
135
  } else {
136
  echo '';
137
  }
@@ -209,7 +209,7 @@
209
  <div class="apsc-option-inner-wrapper apsc-row-odd">
210
  <label><?php _e( 'Default Count', 'accesspress-social-counter' ); ?></label>
211
  <div class="apsc-option-field">
212
- <input type="text" name="social_profile[twitter][default_count]" value="<?php echo isset( $apsc_settings[ 'social_profile' ][ 'twitter' ][ 'default_count' ] ) && $apsc_settings[ 'social_profile' ][ 'twitter' ][ 'default_count' ] != '' ? $apsc_settings[ 'social_profile' ][ 'twitter' ][ 'default_count' ] : ''; ?>"/>
213
  <div class="apsc-option-note"><?php _e( 'Please enter the default count to show instead of 0 when API\'s are not available.', 'accesspress-social-counter' ); ?></div>
214
  </div>
215
  </div>
@@ -236,7 +236,7 @@
236
  <div class="apsc-option-inner-wrapper">
237
  <label><?php _e('Facebook App ID', 'accesspress-social-counter'); ?></label>
238
  <div class="apsc-option-field">
239
- <input type="text" name="social_profile[instagram][app_id]" placeholder="Enter your facebook app id" value="<?php echo isset($apsc_settings['social_profile']['instagram']['app_id']) && $apsc_settings['social_profile']['instagram']['app_id'] != '' ? $apsc_settings['social_profile']['instagram']['app_id'] : ''; ?>"/>
240
  <div class="apsc-option-note"><?php _e('Please enter your facebook app id from developers page.', 'accesspress-social-counter'); ?></div>
241
  </div>
242
  </div>
@@ -308,7 +308,7 @@
308
  <div class="apsc-option-inner-wrapper apsc-row-odd">
309
  <label><?php _e( 'Default Count', 'accesspress-social-counter' ); ?></label>
310
  <div class="apsc-option-field">
311
- <input type="text" name="social_profile[instagram][default_count]" value="<?php echo isset( $apsc_settings[ 'social_profile' ][ 'instagram' ][ 'default_count' ] ) && $apsc_settings[ 'social_profile' ][ 'instagram' ][ 'default_count' ] != '' ? $apsc_settings[ 'social_profile' ][ 'instagram' ][ 'default_count' ] : ''; ?>"/>
312
  <div class="apsc-option-note"><?php _e( 'Please enter the default count to show instead of 0 when API\'s are not available.', 'accesspress-social-counter' ); ?></div>
313
  </div>
314
  </div>
@@ -369,7 +369,7 @@
369
  <div class="apsc-option-inner-wrapper">
370
  <label><?php _e( 'SoundCloud Username', 'accesspress-social-counter' ); ?></label>
371
  <div class="apsc-option-field">
372
- <input type="text" name="social_profile[soundcloud][username]" value="<?php echo $apsc_settings[ 'social_profile' ][ 'soundcloud' ][ 'username' ]; ?>"/>
373
  <div class="apsc-option-note"><?php _e( 'Please enter the SoundCloud username.For example:bchettri', 'accesspress-social-counter' ); ?></div>
374
  </div>
375
  </div>
@@ -383,7 +383,7 @@
383
  <div class="apsc-option-inner-wrapper apsc-row-even">
384
  <label><?php _e( 'Default Count', 'accesspress-social-counter' ); ?></label>
385
  <div class="apsc-option-field">
386
- <input type="text" name="social_profile[soundcloud][default_count]" value="<?php echo isset( $apsc_settings[ 'social_profile' ][ 'soundcloud' ][ 'default_count' ] ) && $apsc_settings[ 'social_profile' ][ 'soundcloud' ][ 'default_count' ] != '' ? $apsc_settings[ 'social_profile' ][ 'soundcloud' ][ 'default_count' ] : ''; ?>"/>
387
  <div class="apsc-option-note"><?php _e( 'Please enter the default count to show instead of 0 when API\'s are not available.', 'accesspress-social-counter' ); ?></div>
388
  </div>
389
  </div>
@@ -410,14 +410,14 @@
410
  <div class="apsc-option-inner-wrapper apsc-row-odd">
411
  <label><?php _e('Dribbble Client id', 'accesspress-social-counter'); ?></label>
412
  <div class="apsc-option-field">
413
- <input type="text" name="social_profile[dribbble][client_id]" value="<?php echo isset($apsc_settings['social_profile']['dribbble']['client_id']) && $apsc_settings['social_profile']['dribbble']['client_id'] != '' ? $apsc_settings['social_profile']['dribbble']['client_id'] : ''; ?>"/>
414
  <div class="apsc-option-note"><?php _e('Please enter your dribbble client id', 'accesspress-social-counter'); ?></div>
415
  </div>
416
  </div>
417
  <div class="apsc-option-inner-wrapper apsc-row-even">
418
  <label><?php _e('Dribbble Client secret', 'accesspress-social-counter'); ?></label>
419
  <div class="apsc-option-field">
420
- <input type="text" name="social_profile[dribbble][client_secret]" value="<?php echo isset($apsc_settings['social_profile']['dribbble']['client_secret']) && $apsc_settings['social_profile']['dribbble']['client_secret'] != '' ? $apsc_settings['social_profile']['dribbble']['client_secret'] : ''; ?>"/>
421
  <div class="apsc-option-note"><?php _e('Please enter your dribbble client secret', 'accesspress-social-counter'); ?></div>
422
  </div>
423
  </div>
@@ -438,7 +438,7 @@
438
  <label><?php _e('Get Dribbble access token', 'accesspress-social-counter'); ?></label>
439
  <!-- <div class="apsc-option-field"> -->
440
  <div class="apsc-option-field">
441
- <a target="_self" id="get_token" href="https://dribbble.com/oauth/authorize?client_id=<?php echo $dribble_client_id; ?>&client_secret=<?php echo $dribble_client_secret; ?>">Get access token</a>
442
  <div class="apsc-option-note">
443
  <?php $back_url = admin_url('admin.php?page=ap-social-counter');
444
  ?>
@@ -472,9 +472,9 @@
472
  <div class="apsc-option-field">
473
  <input type="text" name="social_profile[dribbble][access_token]" value="<?php
474
  if (isset($accessToken)) {
475
- echo $accessToken;
476
  } elseif (isset($apsc_settings['social_profile']['dribbble']['access_token'])) {
477
- echo $apsc_settings['social_profile']['dribbble']['access_token'];
478
  }
479
  ?>"/>
480
  <div class="apsc-option-note"><?php _e('Note: If not loaded automatically after clicking Get Access Token button provided above, please check if you have followed all steps properly.', 'accesspress-social-counter'); ?></div>
@@ -489,7 +489,7 @@
489
  <div class="apsc-option-inner-wrapper apsc-row-even">
490
  <label><?php _e( 'Default Count', 'accesspress-social-counter' ); ?></label>
491
  <div class="apsc-option-field">
492
- <input type="text" name="social_profile[dribbble][default_count]" value="<?php echo isset( $apsc_settings[ 'social_profile' ][ 'dribbble' ][ 'default_count' ] ) && $apsc_settings[ 'social_profile' ][ 'dribbble' ][ 'default_count' ] != '' ? $apsc_settings[ 'social_profile' ][ 'dribbble' ][ 'default_count' ] : ''; ?>"/>
493
  <div class="apsc-option-note"><?php _e( 'Please enter the default count to show instead of 0 when API\'s are not available.', 'accesspress-social-counter' ); ?></div>
494
  </div>
495
  </div>
131
  <div class="apsc-option-field">
132
  <input type="text" name="social_profile[facebook][default_count]" value="<?php
133
  if ( isset( $apsc_settings[ 'social_profile' ][ 'facebook' ][ 'default_count' ] ) ) {
134
+ echo esc_attr($apsc_settings[ 'social_profile' ][ 'facebook' ][ 'default_count' ]);
135
  } else {
136
  echo '';
137
  }
209
  <div class="apsc-option-inner-wrapper apsc-row-odd">
210
  <label><?php _e( 'Default Count', 'accesspress-social-counter' ); ?></label>
211
  <div class="apsc-option-field">
212
+ <input type="text" name="social_profile[twitter][default_count]" value="<?php echo isset( $apsc_settings[ 'social_profile' ][ 'twitter' ][ 'default_count' ] ) && $apsc_settings[ 'social_profile' ][ 'twitter' ][ 'default_count' ] != '' ? esc_attr($apsc_settings[ 'social_profile' ][ 'twitter' ][ 'default_count' ]) : ''; ?>"/>
213
  <div class="apsc-option-note"><?php _e( 'Please enter the default count to show instead of 0 when API\'s are not available.', 'accesspress-social-counter' ); ?></div>
214
  </div>
215
  </div>
236
  <div class="apsc-option-inner-wrapper">
237
  <label><?php _e('Facebook App ID', 'accesspress-social-counter'); ?></label>
238
  <div class="apsc-option-field">
239
+ <input type="text" name="social_profile[instagram][app_id]" placeholder="Enter your facebook app id" value="<?php echo isset($apsc_settings['social_profile']['instagram']['app_id']) && $apsc_settings['social_profile']['instagram']['app_id'] != '' ? esc_attr($apsc_settings['social_profile']['instagram']['app_id']) : ''; ?>"/>
240
  <div class="apsc-option-note"><?php _e('Please enter your facebook app id from developers page.', 'accesspress-social-counter'); ?></div>
241
  </div>
242
  </div>
308
  <div class="apsc-option-inner-wrapper apsc-row-odd">
309
  <label><?php _e( 'Default Count', 'accesspress-social-counter' ); ?></label>
310
  <div class="apsc-option-field">
311
+ <input type="text" name="social_profile[instagram][default_count]" value="<?php echo isset( $apsc_settings[ 'social_profile' ][ 'instagram' ][ 'default_count' ] ) && $apsc_settings[ 'social_profile' ][ 'instagram' ][ 'default_count' ] != '' ? esc_attr($apsc_settings[ 'social_profile' ][ 'instagram' ][ 'default_count' ]) : ''; ?>"/>
312
  <div class="apsc-option-note"><?php _e( 'Please enter the default count to show instead of 0 when API\'s are not available.', 'accesspress-social-counter' ); ?></div>
313
  </div>
314
  </div>
369
  <div class="apsc-option-inner-wrapper">
370
  <label><?php _e( 'SoundCloud Username', 'accesspress-social-counter' ); ?></label>
371
  <div class="apsc-option-field">
372
+ <input type="text" name="social_profile[soundcloud][username]" value="<?php echo esc_attr($apsc_settings[ 'social_profile' ][ 'soundcloud' ][ 'username' ]); ?>"/>
373
  <div class="apsc-option-note"><?php _e( 'Please enter the SoundCloud username.For example:bchettri', 'accesspress-social-counter' ); ?></div>
374
  </div>
375
  </div>
383
  <div class="apsc-option-inner-wrapper apsc-row-even">
384
  <label><?php _e( 'Default Count', 'accesspress-social-counter' ); ?></label>
385
  <div class="apsc-option-field">
386
+ <input type="text" name="social_profile[soundcloud][default_count]" value="<?php echo isset( $apsc_settings[ 'social_profile' ][ 'soundcloud' ][ 'default_count' ] ) && $apsc_settings[ 'social_profile' ][ 'soundcloud' ][ 'default_count' ] != '' ? esc_attr($apsc_settings[ 'social_profile' ][ 'soundcloud' ][ 'default_count' ]) : ''; ?>"/>
387
  <div class="apsc-option-note"><?php _e( 'Please enter the default count to show instead of 0 when API\'s are not available.', 'accesspress-social-counter' ); ?></div>
388
  </div>
389
  </div>
410
  <div class="apsc-option-inner-wrapper apsc-row-odd">
411
  <label><?php _e('Dribbble Client id', 'accesspress-social-counter'); ?></label>
412
  <div class="apsc-option-field">
413
+ <input type="text" name="social_profile[dribbble][client_id]" value="<?php echo isset($apsc_settings['social_profile']['dribbble']['client_id']) && $apsc_settings['social_profile']['dribbble']['client_id'] != '' ? esc_attr($apsc_settings['social_profile']['dribbble']['client_id']) : ''; ?>"/>
414
  <div class="apsc-option-note"><?php _e('Please enter your dribbble client id', 'accesspress-social-counter'); ?></div>
415
  </div>
416
  </div>
417
  <div class="apsc-option-inner-wrapper apsc-row-even">
418
  <label><?php _e('Dribbble Client secret', 'accesspress-social-counter'); ?></label>
419
  <div class="apsc-option-field">
420
+ <input type="text" name="social_profile[dribbble][client_secret]" value="<?php echo isset($apsc_settings['social_profile']['dribbble']['client_secret']) && $apsc_settings['social_profile']['dribbble']['client_secret'] != '' ? esc_attr($apsc_settings['social_profile']['dribbble']['client_secret']) : ''; ?>"/>
421
  <div class="apsc-option-note"><?php _e('Please enter your dribbble client secret', 'accesspress-social-counter'); ?></div>
422
  </div>
423
  </div>
438
  <label><?php _e('Get Dribbble access token', 'accesspress-social-counter'); ?></label>
439
  <!-- <div class="apsc-option-field"> -->
440
  <div class="apsc-option-field">
441
+ <a target="_self" id="get_token" href="https://dribbble.com/oauth/authorize?client_id=<?php echo esc_attr($dribble_client_id); ?>&client_secret=<?php echo esc_attr($dribble_client_secret); ?>">Get access token</a>
442
  <div class="apsc-option-note">
443
  <?php $back_url = admin_url('admin.php?page=ap-social-counter');
444
  ?>
472
  <div class="apsc-option-field">
473
  <input type="text" name="social_profile[dribbble][access_token]" value="<?php
474
  if (isset($accessToken)) {
475
+ echo esc_attr($accessToken);
476
  } elseif (isset($apsc_settings['social_profile']['dribbble']['access_token'])) {
477
+ echo esc_attr($apsc_settings['social_profile']['dribbble']['access_token']);
478
  }
479
  ?>"/>
480
  <div class="apsc-option-note"><?php _e('Note: If not loaded automatically after clicking Get Access Token button provided above, please check if you have followed all steps properly.', 'accesspress-social-counter'); ?></div>
489
  <div class="apsc-option-inner-wrapper apsc-row-even">
490
  <label><?php _e( 'Default Count', 'accesspress-social-counter' ); ?></label>
491
  <div class="apsc-option-field">
492
+ <input type="text" name="social_profile[dribbble][default_count]" value="<?php echo isset( $apsc_settings[ 'social_profile' ][ 'dribbble' ][ 'default_count' ] ) && $apsc_settings[ 'social_profile' ][ 'dribbble' ][ 'default_count' ] != '' ? esc_attr($apsc_settings[ 'social_profile' ][ 'dribbble' ][ 'default_count' ]) : ''; ?>"/>
493
  <div class="apsc-option-note"><?php _e( 'Please enter the default count to show instead of 0 when API\'s are not available.', 'accesspress-social-counter' ); ?></div>
494
  </div>
495
  </div>
inc/backend/settings.php CHANGED
@@ -9,7 +9,7 @@ $apsc_settings = $this->apsc_settings;
9
  <div class="apsc-panel">
10
  <div class="apsc-settings-header">
11
  <div class="apsc-logo">
12
- <img src="<?php echo SC_IMAGE_DIR; ?>/logo.png" alt="<?php esc_attr_e('AccessPress Social Counter', 'accesspress-social-counter'); ?>" />
13
  </div>
14
 
15
  <div class="apsc-socials">
@@ -55,7 +55,7 @@ $apsc_settings = $this->apsc_settings;
55
 
56
  <div class="metabox-holder">
57
  <div id="optionsframework" class="postbox" style="float: left;">
58
- <form class="apsc-settings-form" method="post" action="<?php echo admin_url() . 'admin-post.php' ?>">
59
  <input type="hidden" name="action" value="apsc_settings_action"/>
60
  <?php
61
  /**
@@ -123,22 +123,22 @@ $apsc_settings = $this->apsc_settings;
123
  </div> -->
124
 
125
  <div class="apsc-upgrade-wrapper">
126
- <a href="<?php echo APSC_PRO_LINK ?>" target="_blank">
127
- <img src="<?php echo SC_IMAGE_DIR . '/upgrade-to-pro/upgrade-to-pro.png' ?>" style="width:100%;">
128
  </a>
129
 
130
  <div class="apsc-upgrade-button-wrap-backend">
131
 
132
- <a href="<?php echo APSC_PRO_DEMO; ?>" class="smls-demo-btn" target="_blank">Demo</a>
133
 
134
- <a href="<?php echo APSC_PRO_LINK; ?>" target="_blank" class="smls-upgrade-btn">Upgrade</a>
135
 
136
- <a href="<?php echo APSC_PRO_DETAIL; ?>" target="_blank" class="smls-upgrade-btn">Plugin Information</a>
137
 
138
  </div>
139
 
140
- <a href="<?php echo APSC_PRO_LINK ?>" target="_blank">
141
- <img src="<?php echo SC_IMAGE_DIR; ?>/upgrade-to-pro/upgrade-to-pro-feature.png" alt="<?php _e( 'AccessPress Social Pro', 'accesspress-social-counter' ); ?>" style="width:100%;">
142
  </a>
143
  </div>
144
  </div>
9
  <div class="apsc-panel">
10
  <div class="apsc-settings-header">
11
  <div class="apsc-logo">
12
+ <img src="<?php echo esc_attr(SC_IMAGE_DIR); ?>/logo.png" alt="<?php esc_attr_e('AccessPress Social Counter', 'accesspress-social-counter'); ?>" />
13
  </div>
14
 
15
  <div class="apsc-socials">
55
 
56
  <div class="metabox-holder">
57
  <div id="optionsframework" class="postbox" style="float: left;">
58
+ <form class="apsc-settings-form" method="post" action="<?php echo esc_url(admin_url()) . 'admin-post.php' ?>">
59
  <input type="hidden" name="action" value="apsc_settings_action"/>
60
  <?php
61
  /**
123
  </div> -->
124
 
125
  <div class="apsc-upgrade-wrapper">
126
+ <a href="<?php echo esc_url(APSC_PRO_LINK); ?>" target="_blank">
127
+ <img src="<?php echo esc_attr(SC_IMAGE_DIR) . '/upgrade-to-pro/upgrade-to-pro.png' ?>" style="width:100%;">
128
  </a>
129
 
130
  <div class="apsc-upgrade-button-wrap-backend">
131
 
132
+ <a href="<?php echo esc_attr(APSC_PRO_DEMO); ?>" class="smls-demo-btn" target="_blank">Demo</a>
133
 
134
+ <a href="<?php echo esc_url(APSC_PRO_LINK); ?>" target="_blank" class="smls-upgrade-btn">Upgrade</a>
135
 
136
+ <a href="<?php echo esc_attr(APSC_PRO_DETAIL); ?>" target="_blank" class="smls-upgrade-btn">Plugin Information</a>
137
 
138
  </div>
139
 
140
+ <a href="<?php echo esc_url(APSC_PRO_LINK); ?>" target="_blank">
141
+ <img src="<?php echo esc_attr(SC_IMAGE_DIR); ?>/upgrade-to-pro/upgrade-to-pro-feature.png" alt="<?php _e( 'AccessPress Social Pro', 'accesspress-social-counter' ); ?>" style="width:100%;">
142
  </a>
143
  </div>
144
  </div>
inc/frontend/shortcode.php CHANGED
@@ -18,7 +18,7 @@ if ($enable_font_css) {
18
  }
19
  include(SC_PATH . 'inc/frontend/font-awesome-icon.php');
20
  ?>
21
- <div class="apsc-icons-wrapper clearfix apsc-<?php echo $apsc_settings['social_profile_theme']; ?> <?php echo $font_awesome_version; ?>" >
22
  <?php
23
  if (isset($apsc_settings['profile_order']) && !empty($apsc_settings['profile_order'])) {
24
  foreach ($apsc_settings['profile_order'] as $social_profile) {
18
  }
19
  include(SC_PATH . 'inc/frontend/font-awesome-icon.php');
20
  ?>
21
+ <div class="apsc-icons-wrapper clearfix apsc-<?php echo esc_attr($apsc_settings['social_profile_theme']); ?> <?php echo esc_attr($font_awesome_version); ?>" >
22
  <?php
23
  if (isset($apsc_settings['profile_order']) && !empty($apsc_settings['profile_order'])) {
24
  foreach ($apsc_settings['profile_order'] as $social_profile) {
inc/frontend/social_network/div/comments.php CHANGED
@@ -3,6 +3,6 @@
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 <?php echo esc_attr($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>
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 <?php echo esc_attr($comments);?>"></i><span class="media-name">Comment</span></span>
6
+ <span class="apsc-count"><?php echo esc_attr($count); ?></span><span class="apsc-media-type">Comments</span>
7
  </div>
8
  </a>
inc/frontend/social_network/div/dribbble.php CHANGED
@@ -4,9 +4,9 @@ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
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 <?php echo esc_attr($dribble);?>"></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>
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 esc_url($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 <?php echo esc_attr($dribble);?>"></i><span class="media-name">dribble</span></span>
10
+ <span class="apsc-count"><?php echo esc_attr($count); ?></span><span class="apsc-media-type">Followers</span>
11
  </div>
12
  </a>
inc/frontend/social_network/div/facebook.php CHANGED
@@ -3,14 +3,14 @@ defined('ABSPATH') or die("No script kiddies please!");
3
 
4
  $facebook_method = ( isset($apsc_settings['social_profile']['facebook']['method']) && $apsc_settings['social_profile']['facebook']['method'] != '' ) ? esc_attr($apsc_settings['social_profile']['facebook']['method']) : '2';
5
  if ($facebook_method == '1') {
6
- $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'] : '';
7
  } else {
8
- $facebook_page_id = isset($apsc_settings['social_profile']['facebook']['fb_page_id']) && $apsc_settings['social_profile']['facebook']['fb_page_id'] != '' ? $apsc_settings['social_profile']['facebook']['fb_page_id'] : '';
9
  }
10
  ?>
11
  <a class="apsc-facebook-icon clearfix" href="<?php echo "https://facebook.com/" . $facebook_page_id; ?>" target="_blank" <?php do_action('apsc_facebook_link'); ?>>
12
  <div class="apsc-inner-block">
13
  <span class="social-icon"><i class="<?php echo esc_attr($facebook); ?> apsc-facebook"></i><span class="media-name">Facebook</span></span>
14
- <span class="apsc-count"><?php echo $count; ?></span><span class="apsc-media-type">Fans</span>
15
  </div>
16
  </a>
3
 
4
  $facebook_method = ( isset($apsc_settings['social_profile']['facebook']['method']) && $apsc_settings['social_profile']['facebook']['method'] != '' ) ? esc_attr($apsc_settings['social_profile']['facebook']['method']) : '2';
5
  if ($facebook_method == '1') {
6
+ $facebook_page_id = isset($apsc_settings['social_profile']['facebook']['page_id']) && $apsc_settings['social_profile']['facebook']['page_id'] != '' ? esc_attr($apsc_settings['social_profile']['facebook']['page_id']) : '';
7
  } else {
8
+ $facebook_page_id = isset($apsc_settings['social_profile']['facebook']['fb_page_id']) && $apsc_settings['social_profile']['facebook']['fb_page_id'] != '' ? esc_attr($apsc_settings['social_profile']['facebook']['fb_page_id']) : '';
9
  }
10
  ?>
11
  <a class="apsc-facebook-icon clearfix" href="<?php echo "https://facebook.com/" . $facebook_page_id; ?>" target="_blank" <?php do_action('apsc_facebook_link'); ?>>
12
  <div class="apsc-inner-block">
13
  <span class="social-icon"><i class="<?php echo esc_attr($facebook); ?> apsc-facebook"></i><span class="media-name">Facebook</span></span>
14
+ <span class="apsc-count"><?php echo esc_attr($count); ?></span><span class="apsc-media-type">Fans</span>
15
  </div>
16
  </a>
inc/frontend/social_network/div/instagram.php CHANGED
@@ -5,9 +5,9 @@ $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 <?php echo esc_attr($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>
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 esc_url($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 <?php echo esc_attr($instagram);?>"></i><span class="media-name">Instagram</span></span>
11
+ <span class="apsc-count"><?php echo esc_attr($count); ?></span><span class="apsc-media-type">Followers</span>
12
  </div>
13
  </a>
inc/frontend/social_network/div/posts.php CHANGED
@@ -3,6 +3,6 @@
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 <?php echo esc_attr($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>
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 <?php echo esc_attr($edit);?>"></i><span class="media-name">Post</span></span>
6
+ <span class="apsc-count"><?php echo esc_attr($count); ?></span><span class="apsc-media-type">Post</span>
7
  </div>
8
  </a>
inc/frontend/social_network/div/soundcloud.php CHANGED
@@ -4,9 +4,9 @@ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
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 <?php echo esc_attr($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>
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 esc_url($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 <?php echo esc_attr($soundcloud);?>"></i><span class="media-name">Soundcloud</span></span>
10
+ <span class="apsc-count"><?php echo esc_attr($count); ?></span><span class="apsc-media-type">Followers</span>
11
  </div>
12
  </a>
inc/frontend/social_network/div/twitter.php CHANGED
@@ -1,7 +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="<?php echo esc_attr($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>
1
  <?php defined( 'ABSPATH' ) or die( "No script kiddies please!" ); ?>
2
+ <a class="apsc-twitter-icon clearfix" href="<?php echo 'https://twitter.com/' . esc_attr($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="<?php echo esc_attr($twitter);?> apsc-twitter"></i><span class="media-name">Twitter</span></span>
5
+ <span class="apsc-count"><?php echo esc_attr($count); ?></span><span class="apsc-media-type">Followers</span>
6
  </div>
7
  </a>
inc/frontend/social_network/div/youtube.php CHANGED
@@ -4,9 +4,9 @@ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
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 <?php echo esc_attr($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>
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 esc_url($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 <?php echo esc_attr($youtube);?>"></i><span class="media-name">Youtube</span></span>
10
+ <span class="apsc-count"><?php echo esc_attr($count); ?></span><span class="apsc-media-type">Subscriber</span>
11
  </div>
12
  </a>
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.5
7
- Stable tag: 1.8.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -130,6 +130,9 @@ Once you install the plugin , you can check some general documentation about how
130
 
131
  == Changelog ==
132
 
 
 
 
133
  = 1.8.9 =
134
  * Solved facebook page follower count issue.
135
  * Added new settings for instagram and dribbble to fetch follower count.
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.7
7
+ Stable tag: 1.9.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
130
 
131
  == Changelog ==
132
 
133
+ = 1.9.0 =
134
+ * Few backend code refinement
135
+
136
  = 1.8.9 =
137
  * Solved facebook page follower count issue.
138
  * Added new settings for instagram and dribbble to fetch follower count.