Social Counter for WordPress – AccessPress Social Counter - Version 1.4.3

Version Description

  • Updated text domain to match the plugin's slug
Download this release

Release Info

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

Code changes from version 1.4.2 to 1.4.3

accesspress-social-counter.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: AccessPress Social Counter
4
  * Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-counter/
5
  * Description: A plugin to display your social accounts fans, subscribers and followers number on your website with handful of backend settings and interface.
6
- * Version: 1.4.2
7
  * Author: AccessPress Themes
8
  * Author URI: http://accesspressthemes.com
9
  * Text Domain: aps-counter
@@ -24,7 +24,7 @@ if (!defined('SC_CSS_DIR')) {
24
  define('SC_CSS_DIR', plugin_dir_url(__FILE__) . 'css');
25
  }
26
  if (!defined('SC_VERSION')) {
27
- define('SC_VERSION', '1.4.2');
28
  }
29
  /**
30
  * Register of widgets
@@ -59,7 +59,7 @@ if (!class_exists('SC_Class')) {
59
  * Plugin Translation
60
  */
61
  function plugin_text_domain() {
62
- load_plugin_textdomain('aps-counter', false, basename(dirname(__FILE__)) . '/languages/');
63
  }
64
 
65
  /**
@@ -76,7 +76,7 @@ if (!class_exists('SC_Class')) {
76
  * Plugin Admin Menu
77
  */
78
  function add_sc_menu() {
79
- add_menu_page(__('AccessPress Social Counter', 'aps-counter'), __('AccessPress Social Counter', 'aps-counter'), 'manage_options', 'ap-social-counter', array($this, 'sc_settings'), SC_IMAGE_DIR.'/sc-icon.png');
80
  }
81
 
82
  /**
@@ -147,7 +147,7 @@ if (!class_exists('SC_Class')) {
147
  if (!empty($_GET) && wp_verify_nonce($_GET['_wpnonce'], 'apsc-restore-default-nonce')) {
148
  $apsc_settings = $this->get_default_settings();
149
  update_option('apsc_settings', $apsc_settings);
150
- $_SESSION['apsc_message'] = __('Default Settings Restored Successfully', 'aps-counter');
151
  wp_redirect(admin_url() . 'admin.php?page=ap-social-counter');
152
  }
153
  }
@@ -201,7 +201,7 @@ if (!class_exists('SC_Class')) {
201
  foreach ($transient_array as $transient) {
202
  delete_transient($transient);
203
  }
204
- $_SESSION['apsc_message'] = __('Cache Deleted Successfully', 'aps-counter');
205
  wp_redirect(admin_url() . 'admin.php?page=ap-social-counter');
206
  }
207
  }
3
  * Plugin Name: AccessPress Social Counter
4
  * Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-counter/
5
  * Description: A plugin to display your social accounts fans, subscribers and followers number on your website with handful of backend settings and interface.
6
+ * Version: 1.4.3
7
  * Author: AccessPress Themes
8
  * Author URI: http://accesspressthemes.com
9
  * Text Domain: aps-counter
24
  define('SC_CSS_DIR', plugin_dir_url(__FILE__) . 'css');
25
  }
26
  if (!defined('SC_VERSION')) {
27
+ define('SC_VERSION', '1.4.3');
28
  }
29
  /**
30
  * Register of widgets
59
  * Plugin Translation
60
  */
61
  function plugin_text_domain() {
62
+ load_plugin_textdomain('accesspress-social-counter', false, basename(dirname(__FILE__)) . '/languages/');
63
  }
64
 
65
  /**
76
  * Plugin Admin Menu
77
  */
78
  function add_sc_menu() {
79
+ add_menu_page(__('AccessPress Social Counter', 'accesspress-social-counter'), __('AccessPress Social Counter', 'accesspress-social-counter'), 'manage_options', 'ap-social-counter', array($this, 'sc_settings'), SC_IMAGE_DIR.'/sc-icon.png');
80
  }
81
 
82
  /**
147
  if (!empty($_GET) && wp_verify_nonce($_GET['_wpnonce'], 'apsc-restore-default-nonce')) {
148
  $apsc_settings = $this->get_default_settings();
149
  update_option('apsc_settings', $apsc_settings);
150
+ $_SESSION['apsc_message'] = __('Default Settings Restored Successfully', 'accesspress-social-counter');
151
  wp_redirect(admin_url() . 'admin.php?page=ap-social-counter');
152
  }
153
  }
201
  foreach ($transient_array as $transient) {
202
  delete_transient($transient);
203
  }
204
+ $_SESSION['apsc_message'] = __('Cache Deleted Successfully', 'accesspress-social-counter');
205
  wp_redirect(admin_url() . 'admin.php?page=ap-social-counter');
206
  }
207
  }
inc/backend/boards/about.php CHANGED
@@ -23,14 +23,14 @@ The available social media in FREE version are: Facebook, Twitter, Google+, Inst
23
 
24
  <h3>Other products by AccessPress themes </h3>
25
  <div class="product">
26
- <div class="logo-product"><img src="<?php echo SC_IMAGE_DIR;?>/aplite.png" alt="<?php esc_attr_e('AccessPress Social Counter','aps-counter'); ?>" /></div>
27
  <div class="productext"><p><strong>AccessPress Lite</strong> - A very popular Free WordPress theme, available in WordPress.org<br />
28
  <a href="http://accesspressthemes.com/wordpress-themes/accesspress-lite/" target="_blank">http://accesspressthemes.com/wordpress-themes/accesspress-lite/</a></p>
29
  </div>
30
  </div>
31
 
32
  <div class="product">
33
- <div class="logo-product"><img src="<?php echo SC_IMAGE_DIR;?>/appro.png" alt="<?php esc_attr_e('AccessPress Social Counter','aps-counter'); ?>" /></div>
34
  <div class="productext"><p><strong>AccessPress Pro</strong> - Premium version of AccessPress lite<br />
35
  <a href="http://accesspressthemes.com/wordpress-themes/accesspress-lite/" target="_blank">http://accesspressthemes.com/wordpress-themes/accesspress-pro/</a></p>
36
  </div>
23
 
24
  <h3>Other products by AccessPress themes </h3>
25
  <div class="product">
26
+ <div class="logo-product"><img src="<?php echo SC_IMAGE_DIR;?>/aplite.png" alt="<?php esc_attr_e('AccessPress Social Counter','accesspress-social-counter'); ?>" /></div>
27
  <div class="productext"><p><strong>AccessPress Lite</strong> - A very popular Free WordPress theme, available in WordPress.org<br />
28
  <a href="http://accesspressthemes.com/wordpress-themes/accesspress-lite/" target="_blank">http://accesspressthemes.com/wordpress-themes/accesspress-lite/</a></p>
29
  </div>
30
  </div>
31
 
32
  <div class="product">
33
+ <div class="logo-product"><img src="<?php echo SC_IMAGE_DIR;?>/appro.png" alt="<?php esc_attr_e('AccessPress Social Counter','accesspress-social-counter'); ?>" /></div>
34
  <div class="productext"><p><strong>AccessPress Pro</strong> - Premium version of AccessPress lite<br />
35
  <a href="http://accesspressthemes.com/wordpress-themes/accesspress-lite/" target="_blank">http://accesspressthemes.com/wordpress-themes/accesspress-pro/</a></p>
36
  </div>
inc/backend/boards/cache-settings.php CHANGED
@@ -1,10 +1,10 @@
1
  <div class="apsc-boards-tabs" id="apsc-board-cache-settings" style="display:none">
2
  <div class="apsc-tab-wrapper">
3
  <div class="apsc-option-inner-wrapper">
4
- <label><?php _e('Cache Period','aps-counter');?></label>
5
  <div class="apsc-option-field">
6
  <input type="text" name="cache_period" value="<?php echo $apsc_settings['cache_period'];?>"/>
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','aps-counter');?></div>
8
  </div>
9
  </div>
10
  </div>
1
  <div class="apsc-boards-tabs" id="apsc-board-cache-settings" style="display:none">
2
  <div class="apsc-tab-wrapper">
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="text" name="cache_period" value="<?php echo $apsc_settings['cache_period'];?>"/>
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>
10
  </div>
inc/backend/boards/display-settings.php CHANGED
@@ -1,7 +1,7 @@
1
  <div class="apsc-boards-tabs" id="apsc-board-display-settings" style="display: none">
2
  <div class="apsc-tab-wrapper">
3
  <div class="apsc-option-inner-wrapper">
4
- <label><?php _e('Social Profile Order', 'aps-counter'); ?></label>
5
  <div class="apsc-option-field">
6
  <ul class="apsc-sortable">
7
  <?php
@@ -19,7 +19,7 @@
19
  $social_profiles = $apsc_settings['profile_order'];
20
  foreach ($social_profiles as $social_profile) {
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], 'aps-counter'); ?></span>
23
  <input type="hidden" name="profile_order[]" value="<?php echo $social_profile; ?>"/>
24
  </li>
25
  <?php
@@ -29,32 +29,32 @@
29
  </div>
30
  </div>
31
  <div class="apsc-option-inner-wrapper">
32
- <label><?php _e('Choose Theme', 'aps-counter'); ?></label>
33
  <div class="apsc-option-field">
34
  <label>
35
- <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', 'aps-counter'); ?>
36
  <div class="apsc-theme-image"><img src="<?php echo SC_IMAGE_DIR.'/themes/theme-1.jpg';?>"/></div>
37
  </label>
38
  <label>
39
- <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', 'aps-counter'); ?>
40
  <div class="apsc-theme-image"><img src="<?php echo SC_IMAGE_DIR.'/themes/theme-2.jpg';?>"/></div>
41
  </label>
42
  <label>
43
- <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', 'aps-counter'); ?>
44
  <div class="apsc-theme-image"><img src="<?php echo SC_IMAGE_DIR.'/themes/theme-3.jpg';?>"/></div>
45
  </label>
46
  <label>
47
- <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', 'aps-counter'); ?>
48
  <div class="apsc-theme-image"><img src="<?php echo SC_IMAGE_DIR.'/themes/theme-4.jpg';?>"/></div>
49
  </label>
50
  <label>
51
- <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', 'aps-counter'); ?>
52
  <div class="apsc-theme-image"><img src="<?php echo SC_IMAGE_DIR.'/themes/theme-5.jpg';?>"/></div>
53
  </label>
54
  </div>
55
  </div>
56
  <div class="apsc-option-inner-wrapper">
57
- <label><?php _e('Counter Format','aps-counter');?></label>
58
  <div class="apsc-option-field">
59
  <label>
60
  <input type="radio" name="counter_format" value="default" <?php if(isset($apsc_settings['counter_format'])){checked($apsc_settings['counter_format'],'default');}?> checked="checked"/>12200
@@ -68,15 +68,15 @@
68
  </div>
69
  </div>
70
  <div class="apsc-option-inner-wrapper">
71
- <label><?php _e('Disable Font CSS','aps-counter');?></label>
72
  <div class="apsc-option-field">
73
- <label><input type="checkbox" name="disable_font_css" <?php echo (isset($apsc_settings['disable_font_css']) && $apsc_settings['disable_font_css']==1)?'checked="checked"':'';?>/><span class="apsc-option-trigger"><?php _e('Check if you want to disable the font awesome css of our plugin','aps-counter');?></span> </label>
74
  </div>
75
  </div>
76
  <div class="apsc-option-inner-wrapper">
77
- <label><?php _e('Disable Frontend CSS','aps-counter');?></label>
78
  <div class="apsc-option-field">
79
- <label><input type="checkbox" name="disable_frontend_css" <?php echo (isset($apsc_settings['disable_frontend_css']) && $apsc_settings['disable_frontend_css']==1)?'checked="checked"':'';?>/><span class="apsc-option-trigger"><?php _e('Check if you want to disable all the frontend css of our plugin','aps-counter');?></span> </label>
80
  </div>
81
  </div>
82
  </div>
1
  <div class="apsc-boards-tabs" id="apsc-board-display-settings" style="display: none">
2
  <div class="apsc-tab-wrapper">
3
  <div class="apsc-option-inner-wrapper">
4
+ <label><?php _e('Social Profile Order', 'accesspress-social-counter'); ?></label>
5
  <div class="apsc-option-field">
6
  <ul class="apsc-sortable">
7
  <?php
19
  $social_profiles = $apsc_settings['profile_order'];
20
  foreach ($social_profiles as $social_profile) {
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
29
  </div>
30
  </div>
31
  <div class="apsc-option-inner-wrapper">
32
+ <label><?php _e('Choose Theme', 'accesspress-social-counter'); ?></label>
33
  <div class="apsc-option-field">
34
  <label>
35
+ <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'); ?>
36
  <div class="apsc-theme-image"><img src="<?php echo SC_IMAGE_DIR.'/themes/theme-1.jpg';?>"/></div>
37
  </label>
38
  <label>
39
+ <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'); ?>
40
  <div class="apsc-theme-image"><img src="<?php echo SC_IMAGE_DIR.'/themes/theme-2.jpg';?>"/></div>
41
  </label>
42
  <label>
43
+ <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'); ?>
44
  <div class="apsc-theme-image"><img src="<?php echo SC_IMAGE_DIR.'/themes/theme-3.jpg';?>"/></div>
45
  </label>
46
  <label>
47
+ <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'); ?>
48
  <div class="apsc-theme-image"><img src="<?php echo SC_IMAGE_DIR.'/themes/theme-4.jpg';?>"/></div>
49
  </label>
50
  <label>
51
+ <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'); ?>
52
  <div class="apsc-theme-image"><img src="<?php echo SC_IMAGE_DIR.'/themes/theme-5.jpg';?>"/></div>
53
  </label>
54
  </div>
55
  </div>
56
  <div class="apsc-option-inner-wrapper">
57
+ <label><?php _e('Counter Format','accesspress-social-counter');?></label>
58
  <div class="apsc-option-field">
59
  <label>
60
  <input type="radio" name="counter_format" value="default" <?php if(isset($apsc_settings['counter_format'])){checked($apsc_settings['counter_format'],'default');}?> checked="checked"/>12200
68
  </div>
69
  </div>
70
  <div class="apsc-option-inner-wrapper">
71
+ <label><?php _e('Disable Font CSS','accesspress-social-counter');?></label>
72
  <div class="apsc-option-field">
73
+ <label><input type="checkbox" name="disable_font_css" <?php echo (isset($apsc_settings['disable_font_css']) && $apsc_settings['disable_font_css']==1)?'checked="checked"':'';?>/><span class="apsc-option-trigger"><?php _e('Check if you want to disable the font awesome css of our plugin','accesspress-social-counter');?></span> </label>
74
  </div>
75
  </div>
76
  <div class="apsc-option-inner-wrapper">
77
+ <label><?php _e('Disable Frontend CSS','accesspress-social-counter');?></label>
78
  <div class="apsc-option-field">
79
+ <label><input type="checkbox" name="disable_frontend_css" <?php echo (isset($apsc_settings['disable_frontend_css']) && $apsc_settings['disable_frontend_css']==1)?'checked="checked"':'';?>/><span class="apsc-option-trigger"><?php _e('Check if you want to disable all the frontend css of our plugin','accesspress-social-counter');?></span> </label>
80
  </div>
81
  </div>
82
  </div>
inc/backend/boards/social-profiles.php CHANGED
@@ -2,25 +2,25 @@
2
  <div class="apsc-tab-wrapper">
3
  <!---Facebook-->
4
  <div class="apsc-option-outer-wrapper">
5
- <h4><?php _e('Facebook', 'aps-counter') ?></h4>
6
  <div class="apsc-option-inner-wrapper">
7
- <label><?php _e('Display Counter', 'aps-counter') ?></label>
8
- <div class="apsc-option-field"><label><input type="checkbox" name="social_profile[facebook][active]" value="1" class="apsc-counter-activation-trigger" <?php if(isset($apsc_settings['social_profile']['facebook']['active'])){?>checked="checked"<?php } ?>/><?php _e('Show/Hide', 'aps-counter'); ?></label></div>
9
  </div>
10
  <div class="apsc-option-extra">
11
  <div class="apsc-option-inner-wrapper">
12
- <label><?php _e('Facebook Page ID', 'aps-counter'); ?></label>
13
  <div class="apsc-option-field">
14
  <input type="text" name="social_profile[facebook][page_id]" value="<?php echo esc_attr($apsc_settings['social_profile']['facebook']['page_id']);?>"/>
15
- <div class="apsc-option-note"><?php _e('Please enter the page ID or page name.For example:If your page url is https://www.facebook.com/AccessPressThemes then your page ID is AccessPressThemes.', 'aps-counter'); ?></div>
16
 
17
  </div>
18
  </div>
19
  <div class="apsc-option-inner-wrapper">
20
- <label><?php _e('Facebook Default Count', 'aps-counter'); ?></label>
21
  <div class="apsc-option-field">
22
  <input type="text" name="social_profile[facebook][default_count]" value="<?php echo isset($apsc_settings['social_profile']['facebook']['default_count'])?esc_attr($apsc_settings['social_profile']['facebook']['default_count']):'';?>"/>
23
- <div class="apsc-option-note"><?php _e('Please enter the default count for facebook to show whenever the API is unavailable.', 'aps-counter'); ?></div>
24
 
25
  </div>
26
  </div>
@@ -31,45 +31,45 @@
31
 
32
  <!--Twitter-->
33
  <div class="apsc-option-outer-wrapper">
34
- <h4><?php _e('Twitter', 'aps-counter') ?></h4>
35
  <div class="apsc-option-inner-wrapper">
36
- <label><?php _e('Display Counter', 'aps-counter') ?></label>
37
- <div class="apsc-option-field"><label><input type="checkbox" name="social_profile[twitter][active]" value="1" class="apsc-counter-activation-trigger" <?php if(isset($apsc_settings['social_profile']['twitter']['active'])){?>checked="checked"<?php } ?>/><?php _e('Show/Hide', 'aps-counter'); ?></label></div>
38
  </div>
39
  <div class="apsc-option-extra">
40
  <div class="apsc-option-inner-wrapper">
41
- <label><?php _e('Twitter Username', 'aps-counter'); ?></label>
42
  <div class="apsc-option-field">
43
  <input type="text" name="social_profile[twitter][username]" value="<?php echo esc_attr($apsc_settings['social_profile']['twitter']['username']);?>"/>
44
- <div class="apsc-option-note"><?php _e('Please enter the twitter username.For example:apthemes', 'aps-counter'); ?></div>
45
  </div>
46
  </div>
47
  <div class="apsc-option-inner-wrapper">
48
- <label><?php _e('Twitter Consumer Key', 'aps-counter'); ?></label>
49
  <div class="apsc-option-field">
50
  <input type="text" name="social_profile[twitter][consumer_key]" value="<?php echo esc_attr($apsc_settings['social_profile']['twitter']['consumer_key']);?>"/>
51
- <div class="apsc-option-note"><?php _e('Please create an app on Twitter through this link:', 'aps-counter'); ?><a href="https://dev.twitter.com/apps" target="_blank">https://dev.twitter.com/apps</a><?php _e(' and get this information.'); ?></div>
52
  </div>
53
  </div>
54
  <div class="apsc-option-inner-wrapper">
55
- <label><?php _e('Twitter Consumer Secret', 'aps-counter'); ?></label>
56
  <div class="apsc-option-field">
57
  <input type="text" name="social_profile[twitter][consumer_secret]" value="<?php echo esc_attr($apsc_settings['social_profile']['twitter']['consumer_secret']);?>"/>
58
- <div class="apsc-option-note"><?php _e('Please create an app on Twitter through this link:', 'aps-counter'); ?><a href="https://dev.twitter.com/apps" target="_blank">https://dev.twitter.com/apps </a><?php _e(' and get this information.'); ?></div>
59
  </div>
60
  </div>
61
  <div class="apsc-option-inner-wrapper">
62
- <label><?php _e('Twitter Access Token', 'aps-counter'); ?></label>
63
  <div class="apsc-option-field">
64
  <input type="text" name="social_profile[twitter][access_token]" value="<?php echo esc_attr($apsc_settings['social_profile']['twitter']['access_token']);?>"/>
65
- <div class="apsc-option-note"><?php _e('Please create an app on Twitter through this link:', 'aps-counter'); ?><a href="https://dev.twitter.com/apps" target="_blank">https://dev.twitter.com/apps </a><?php _e(' and get this information.'); ?></div>
66
  </div>
67
  </div>
68
  <div class="apsc-option-inner-wrapper">
69
- <label><?php _e('Twitter Access Token Secret', 'aps-counter'); ?></label>
70
  <div class="apsc-option-field">
71
  <input type="text" name="social_profile[twitter][access_token_secret]" value="<?php echo esc_attr($apsc_settings['social_profile']['twitter']['access_token_secret']);?>"/>
72
- <div class="apsc-option-note"><?php _e('Please create an app on Twitter through this link:', 'aps-counter'); ?><a href="https://dev.twitter.com/apps" target="_blank">https://dev.twitter.com/apps </a><?php _e(' and get this information.'); ?></div>
73
  </div>
74
  </div>
75
 
@@ -80,24 +80,24 @@
80
 
81
  <!--Google Plus-->
82
  <div class="apsc-option-outer-wrapper">
83
- <h4><?php _e('Google Plus', 'aps-counter'); ?></h4>
84
  <div class="apsc-option-inner-wrapper">
85
- <label><?php _e('Display Counter', 'aps-counter') ?></label>
86
- <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', 'aps-counter'); ?></label></div>
87
  </div>
88
  <div class="apsc-option-extra">
89
  <div class="apsc-option-inner-wrapper">
90
- <label><?php _e('Google Plus Page Name or Profile ID', 'aps-counter'); ?></label>
91
  <div class="apsc-option-field">
92
  <input type="text" name="social_profile[googlePlus][page_id]" value="<?php echo esc_attr($apsc_settings['social_profile']['googlePlus']['page_id']);?>"/>
93
- <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', 'aps-counter'); ?></div>
94
  </div>
95
  </div>
96
  <div class="apsc-option-inner-wrapper">
97
- <label><?php _e('Google API Key', 'aps-counter'); ?></label>
98
  <div class="apsc-option-field">
99
  <input type="text" name="social_profile[googlePlus][api_key]" value="<?php echo esc_attr($apsc_settings['social_profile']['googlePlus']['api_key']);?>"/>
100
- <div class="apsc-option-note"><?php _e('To get your API Key, first create a project/app in <a href="https://console.developers.google.com/project" target="_blank">https://console.developers.google.com/project</a> and then turn on Google+ API from "APIs & auth >APIs inside your project.Then again go to "APIs & auth > APIs > Credentials > Public API access" and then click "CREATE A NEW KEY" button, select the "Browser key" option and click in the "CREATE" button, and then copy your API key and paste in above field.', 'aps-counter'); ?></div>
101
  </div>
102
  </div>
103
  </div>
@@ -107,31 +107,31 @@
107
 
108
  <!--Instagram-->
109
  <div class="apsc-option-outer-wrapper">
110
- <h4><?php _e('Instagram', 'aps-counter') ?></h4>
111
  <div class="apsc-option-inner-wrapper">
112
- <label><?php _e('Display Counter', 'aps-counter') ?></label>
113
- <div class="apsc-option-field"><label><input type="checkbox" name="social_profile[instagram][active]" value="1" class="apsc-counter-activation-trigger" <?php if(isset($apsc_settings['social_profile']['instagram']['active'])){?>checked="checked"<?php } ?>/><?php _e('Show/Hide', 'aps-counter'); ?></label></div>
114
  </div>
115
  <div class="apsc-option-extra">
116
  <div class="apsc-option-inner-wrapper">
117
- <label><?php _e('Instagram Username', 'aps-counter'); ?></label>
118
  <div class="apsc-option-field">
119
  <input type="text" name="social_profile[instagram][username]" value="<?php echo esc_attr($apsc_settings['social_profile']['instagram']['username']);?>"/>
120
- <div class="apsc-option-note"><?php _e('Please enter the instagram username', 'aps-counter'); ?></div>
121
  </div>
122
  </div>
123
  <div class="apsc-option-inner-wrapper">
124
- <label><?php _e('Instagram User ID', 'aps-counter'); ?></label>
125
  <div class="apsc-option-field">
126
  <input type="text" name="social_profile[instagram][user_id]" value="<?php echo esc_attr($apsc_settings['social_profile']['instagram']['user_id']);?>"/>
127
- <div class="apsc-option-note"><?php _e('Please enter the instagram user ID.You can get this information from <a href="http://www.pinceladasdaweb.com.br/instagram/access-token/" target="_blank">http://www.pinceladasdaweb.com.br/instagram/access-token/</a>', 'aps-counter'); ?></div>
128
  </div>
129
  </div>
130
  <div class="apsc-option-inner-wrapper">
131
- <label><?php _e('Instagram Access Token', 'aps-counter'); ?></label>
132
  <div class="apsc-option-field">
133
  <input type="text" name="social_profile[instagram][access_token]" value="<?php echo esc_attr($apsc_settings['social_profile']['instagram']['access_token']);?>"/>
134
- <div class="apsc-option-note"><?php _e('Please enter the instagram Access Token.You can get this information from <a href="http://www.pinceladasdaweb.com.br/instagram/access-token/" target="_blank">http://www.pinceladasdaweb.com.br/instagram/access-token/</a>', 'aps-counter'); ?></div>
135
  </div>
136
  </div>
137
  </div>
@@ -141,41 +141,41 @@
141
 
142
  <!--Youtube-->
143
  <div class="apsc-option-outer-wrapper">
144
- <h4><?php _e('Youtube', 'aps-counter') ?></h4>
145
  <div class="apsc-extra-note">
146
- <p><?php _e('Note: We have updated the functionality to work with youtube API v3 for automatic count update. So please fill the necessary credentials below.','aps-counter')?></p>
147
  </div>
148
  <div class="apsc-option-inner-wrapper">
149
- <label><?php _e('Display Counter', 'aps-counter') ?></label>
150
- <div class="apsc-option-field"><label><input type="checkbox" name="social_profile[youtube][active]" value="1" class="apsc-counter-activation-trigger" <?php if(isset($apsc_settings['social_profile']['youtube']['active'])){?>checked="checked"<?php } ?>/><?php _e('Show/Hide', 'aps-counter'); ?></label></div>
151
  </div>
152
  <div class="apsc-option-extra">
153
  <div class="apsc-option-inner-wrapper">
154
- <label><?php _e('Youtube Channel ID', 'aps-counter'); ?></label>
155
  <div class="apsc-option-field">
156
  <input type="text" name="social_profile[youtube][channel_id]" value="<?php echo isset($apsc_settings['social_profile']['youtube']['channel_id'])?esc_attr($apsc_settings['social_profile']['youtube']['channel_id']):'';?>"/>
157
- <div class="apsc-option-note"><?php _e('Please enter the youtube channel ID.Your channel ID looks like: UC4WMyzBds5sSZcQxyAhxJ8g. And please note that your channel ID is different from username.Please go <a href="https://support.google.com/youtube/answer/3250431?hl=en" target="_blank">here</a> to know how to get your channel ID.', 'aps-counter'); ?></div>
158
  </div>
159
  </div>
160
  <div class="apsc-option-inner-wrapper">
161
- <label><?php _e('Youtube Channel URL', 'aps-counter'); ?></label>
162
  <div class="apsc-option-field">
163
  <input type="text" name="social_profile[youtube][channel_url]" value="<?php echo esc_attr($apsc_settings['social_profile']['youtube']['channel_url']);?>"/>
164
- <div class="apsc-option-note"><?php _e('Please enter the youtube channel URL.For example:https://www.youtube.com/user/accesspressthemes', 'aps-counter'); ?></div>
165
  </div>
166
  </div>
167
  <div class="apsc-option-inner-wrapper">
168
- <label><?php _e('Youtube API Key', 'aps-counter'); ?></label>
169
  <div class="apsc-option-field">
170
  <input type="text" name="social_profile[youtube][api_key]" value="<?php echo isset($apsc_settings['social_profile']['youtube']['api_key'])?esc_attr($apsc_settings['social_profile']['youtube']['api_key']):'';?>"/>
171
- <div class="apsc-option-note"><?php _e('To get your API Key, first create a project/app in <a href="https://console.developers.google.com/project" target="_blank">https://console.developers.google.com/project</a> and then turn on both Youtube Data and Analytics API from "APIs & auth >APIs inside your project.Then again go to "APIs & auth > APIs > Credentials > Public API access" and then click "CREATE A NEW KEY" button, select the "Browser key" option and click in the "CREATE" button, and then copy your API key and paste in above field.', 'aps-counter'); ?></div>
172
  </div>
173
  </div>
174
  <div class="apsc-option-inner-wrapper">
175
- <label><?php _e('Default Subscribers Count', 'aps-counter'); ?></label>
176
  <div class="apsc-option-field">
177
  <input type="text" name="social_profile[youtube][subscribers_count]" value="<?php echo isset($apsc_settings['social_profile']['youtube']['subscribers_count'])?esc_attr($apsc_settings['social_profile']['youtube']['subscribers_count']):0;?>"/>
178
- <div class="apsc-option-note"><?php _e('Please enter total number of subscribers that your youtube channel has in case the API fetching is failed for automatic update.', 'aps-counter'); ?></div>
179
  </div>
180
  </div>
181
  </div>
@@ -185,24 +185,24 @@
185
 
186
  <!--Sound Cloud-->
187
  <div class="apsc-option-outer-wrapper">
188
- <h4><?php _e('Sound Cloud', 'aps-counter') ?></h4>
189
  <div class="apsc-option-inner-wrapper">
190
- <label><?php _e('Display Counter', 'aps-counter') ?></label>
191
- <div class="apsc-option-field"><label><input type="checkbox" name="social_profile[soundcloud][active]" value="1" class="apsc-counter-activation-trigger" <?php if(isset($apsc_settings['social_profile']['soundcloud']['active'])){?>checked="checked"<?php } ?>/><?php _e('Show/Hide', 'aps-counter'); ?></label></div>
192
  </div>
193
  <div class="apsc-option-extra">
194
  <div class="apsc-option-inner-wrapper">
195
- <label><?php _e('SoundCloud Username', 'aps-counter'); ?></label>
196
  <div class="apsc-option-field">
197
  <input type="text" name="social_profile[soundcloud][username]" value="<?php echo $apsc_settings['social_profile']['soundcloud']['username'];?>"/>
198
- <div class="apsc-option-note"><?php _e('Please enter the SoundCloud username.For example:bchettri', 'aps-counter'); ?></div>
199
  </div>
200
  </div>
201
  <div class="apsc-option-inner-wrapper">
202
- <label><?php _e('SoundCloud Client ID', 'aps-counter'); ?></label>
203
  <div class="apsc-option-field">
204
  <input type="text" name="social_profile[soundcloud][client_id]" value="<?php echo esc_attr($apsc_settings['social_profile']['soundcloud']['client_id']);?>"/>
205
- <div class="apsc-option-note"><?php _e('Please enter the SoundCloud APP Client ID.You can get this information from <a href="http://soundcloud.com/you/apps/new">http://soundcloud.com/you/apps/new</a> after creating a new app', 'aps-counter'); ?></div>
206
  </div>
207
  </div>
208
  </div>
@@ -212,17 +212,17 @@
212
 
213
  <!--Dribbble-->
214
  <div class="apsc-option-outer-wrapper">
215
- <h4><?php _e('Dribbble', 'aps-counter') ?></h4>
216
  <div class="apsc-option-inner-wrapper">
217
- <label><?php _e('Display Counter', 'aps-counter') ?></label>
218
- <div class="apsc-option-field"><label><input type="checkbox" name="social_profile[dribbble][active]" value="1" class="apsc-counter-activation-trigger" <?php if(isset($apsc_settings['social_profile']['dribbble']['active'])){?>checked="checked"<?php } ?>/><?php _e('Show/Hide', 'aps-counter'); ?></label></div>
219
  </div>
220
  <div class="apsc-option-extra">
221
  <div class="apsc-option-inner-wrapper">
222
- <label><?php _e('Dribbble Username', 'aps-counter'); ?></label>
223
  <div class="apsc-option-field">
224
  <input type="text" name="social_profile[dribbble][username]" value="<?php echo esc_attr($apsc_settings['social_profile']['dribbble']['username']);?>"/>
225
- <div class="apsc-option-note"><?php _e('Please enter your dribbble username.For example:Creativedash', 'aps-counter'); ?></div>
226
  </div>
227
  </div>
228
  </div>
@@ -232,10 +232,10 @@
232
 
233
  <!--Posts-->
234
  <div class="apsc-option-outer-wrapper">
235
- <h4><?php _e("Posts",'aps-counter')?></h4>
236
  <div class="apsc-option-inner-wrapper">
237
- <label><?php _e('Display Counter','aps-counter');?></label>
238
- <div class="apsc-option-field"><label><input type="checkbox" name="social_profile[posts][active]" value="1" class="apsc-counter-activation-trigger" <?php if(isset($apsc_settings['social_profile']['posts']['active'])){?>checked="checked"<?php } ?>/><?php _e('Show/Hide', 'aps-counter'); ?></label></div>
239
  </div>
240
  <div class="apsc-extra-note"><?php _e('Please use: [aps-get-count social_media="posts"] to get the Posts 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>
241
  </div>
@@ -243,10 +243,10 @@
243
 
244
  <!--Comments-->
245
  <div class="apsc-option-outer-wrapper">
246
- <h4><?php _e("Comments",'aps-counter');?></h4>
247
  <div class="apsc-option-inner-wrapper">
248
- <label><?php _e('Display Counter','aps-counter');?></label>
249
- <div class="apsc-option-field"><label><input type="checkbox" name="social_profile[comments][active]" value="1" class="apsc-counter-activation-trigger" <?php if(isset($apsc_settings['social_profile']['comments']['active'])){?>checked="checked"<?php } ?>/><?php _e('Show/Hide', 'aps-counter'); ?></label></div>
250
  </div>
251
  <div class="apsc-extra-note"><?php _e('Please use: [aps-get-count social_media="comments"] to get the Comments 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>
252
  </div>
2
  <div class="apsc-tab-wrapper">
3
  <!---Facebook-->
4
  <div class="apsc-option-outer-wrapper">
5
+ <h4><?php _e('Facebook', 'accesspress-social-counter') ?></h4>
6
  <div class="apsc-option-inner-wrapper">
7
+ <label><?php _e('Display Counter', 'accesspress-social-counter') ?></label>
8
+ <div class="apsc-option-field"><label><input type="checkbox" name="social_profile[facebook][active]" value="1" class="apsc-counter-activation-trigger" <?php if(isset($apsc_settings['social_profile']['facebook']['active'])){?>checked="checked"<?php } ?>/><?php _e('Show/Hide', 'accesspress-social-counter'); ?></label></div>
9
  </div>
10
  <div class="apsc-option-extra">
11
  <div class="apsc-option-inner-wrapper">
12
+ <label><?php _e('Facebook Page ID', 'accesspress-social-counter'); ?></label>
13
  <div class="apsc-option-field">
14
  <input type="text" name="social_profile[facebook][page_id]" value="<?php echo esc_attr($apsc_settings['social_profile']['facebook']['page_id']);?>"/>
15
+ <div class="apsc-option-note"><?php _e('Please enter the page ID or page name.For example:If your page url is https://www.facebook.com/AccessPressThemes then your page ID is AccessPressThemes.', 'accesspress-social-counter'); ?></div>
16
 
17
  </div>
18
  </div>
19
  <div class="apsc-option-inner-wrapper">
20
+ <label><?php _e('Facebook Default Count', 'accesspress-social-counter'); ?></label>
21
  <div class="apsc-option-field">
22
  <input type="text" name="social_profile[facebook][default_count]" value="<?php echo isset($apsc_settings['social_profile']['facebook']['default_count'])?esc_attr($apsc_settings['social_profile']['facebook']['default_count']):'';?>"/>
23
+ <div class="apsc-option-note"><?php _e('Please enter the default count for facebook to show whenever the API is unavailable.', 'accesspress-social-counter'); ?></div>
24
 
25
  </div>
26
  </div>
31
 
32
  <!--Twitter-->
33
  <div class="apsc-option-outer-wrapper">
34
+ <h4><?php _e('Twitter', 'accesspress-social-counter') ?></h4>
35
  <div class="apsc-option-inner-wrapper">
36
+ <label><?php _e('Display Counter', 'accesspress-social-counter') ?></label>
37
+ <div class="apsc-option-field"><label><input type="checkbox" name="social_profile[twitter][active]" value="1" class="apsc-counter-activation-trigger" <?php if(isset($apsc_settings['social_profile']['twitter']['active'])){?>checked="checked"<?php } ?>/><?php _e('Show/Hide', 'accesspress-social-counter'); ?></label></div>
38
  </div>
39
  <div class="apsc-option-extra">
40
  <div class="apsc-option-inner-wrapper">
41
+ <label><?php _e('Twitter Username', 'accesspress-social-counter'); ?></label>
42
  <div class="apsc-option-field">
43
  <input type="text" name="social_profile[twitter][username]" value="<?php echo esc_attr($apsc_settings['social_profile']['twitter']['username']);?>"/>
44
+ <div class="apsc-option-note"><?php _e('Please enter the twitter username.For example:apthemes', 'accesspress-social-counter'); ?></div>
45
  </div>
46
  </div>
47
  <div class="apsc-option-inner-wrapper">
48
+ <label><?php _e('Twitter Consumer Key', 'accesspress-social-counter'); ?></label>
49
  <div class="apsc-option-field">
50
  <input type="text" name="social_profile[twitter][consumer_key]" value="<?php echo esc_attr($apsc_settings['social_profile']['twitter']['consumer_key']);?>"/>
51
+ <div class="apsc-option-note"><?php _e('Please create an app on Twitter through this link:', 'accesspress-social-counter'); ?><a href="https://dev.twitter.com/apps" target="_blank">https://dev.twitter.com/apps</a><?php _e(' and get this information.'); ?></div>
52
  </div>
53
  </div>
54
  <div class="apsc-option-inner-wrapper">
55
+ <label><?php _e('Twitter Consumer Secret', 'accesspress-social-counter'); ?></label>
56
  <div class="apsc-option-field">
57
  <input type="text" name="social_profile[twitter][consumer_secret]" value="<?php echo esc_attr($apsc_settings['social_profile']['twitter']['consumer_secret']);?>"/>
58
+ <div class="apsc-option-note"><?php _e('Please create an app on Twitter through this link:', 'accesspress-social-counter'); ?><a href="https://dev.twitter.com/apps" target="_blank">https://dev.twitter.com/apps </a><?php _e(' and get this information.'); ?></div>
59
  </div>
60
  </div>
61
  <div class="apsc-option-inner-wrapper">
62
+ <label><?php _e('Twitter Access Token', 'accesspress-social-counter'); ?></label>
63
  <div class="apsc-option-field">
64
  <input type="text" name="social_profile[twitter][access_token]" value="<?php echo esc_attr($apsc_settings['social_profile']['twitter']['access_token']);?>"/>
65
+ <div class="apsc-option-note"><?php _e('Please create an app on Twitter through this link:', 'accesspress-social-counter'); ?><a href="https://dev.twitter.com/apps" target="_blank">https://dev.twitter.com/apps </a><?php _e(' and get this information.'); ?></div>
66
  </div>
67
  </div>
68
  <div class="apsc-option-inner-wrapper">
69
+ <label><?php _e('Twitter Access Token Secret', 'accesspress-social-counter'); ?></label>
70
  <div class="apsc-option-field">
71
  <input type="text" name="social_profile[twitter][access_token_secret]" value="<?php echo esc_attr($apsc_settings['social_profile']['twitter']['access_token_secret']);?>"/>
72
+ <div class="apsc-option-note"><?php _e('Please create an app on Twitter through this link:', 'accesspress-social-counter'); ?><a href="https://dev.twitter.com/apps" target="_blank">https://dev.twitter.com/apps </a><?php _e(' and get this information.'); ?></div>
73
  </div>
74
  </div>
75
 
80
 
81
  <!--Google Plus-->
82
  <div class="apsc-option-outer-wrapper">
83
+ <h4><?php _e('Google Plus', 'accesspress-social-counter'); ?></h4>
84
  <div class="apsc-option-inner-wrapper">
85
+ <label><?php _e('Display Counter', 'accesspress-social-counter') ?></label>
86
+ <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>
87
  </div>
88
  <div class="apsc-option-extra">
89
  <div class="apsc-option-inner-wrapper">
90
+ <label><?php _e('Google Plus Page Name or Profile ID', 'accesspress-social-counter'); ?></label>
91
  <div class="apsc-option-field">
92
  <input type="text" name="social_profile[googlePlus][page_id]" value="<?php echo esc_attr($apsc_settings['social_profile']['googlePlus']['page_id']);?>"/>
93
+ <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>
94
  </div>
95
  </div>
96
  <div class="apsc-option-inner-wrapper">
97
+ <label><?php _e('Google API Key', 'accesspress-social-counter'); ?></label>
98
  <div class="apsc-option-field">
99
  <input type="text" name="social_profile[googlePlus][api_key]" value="<?php echo esc_attr($apsc_settings['social_profile']['googlePlus']['api_key']);?>"/>
100
+ <div class="apsc-option-note"><?php _e('To get your API Key, first create a project/app in <a href="https://console.developers.google.com/project" target="_blank">https://console.developers.google.com/project</a> and then turn on Google+ API from "APIs & auth >APIs inside your project.Then again go to "APIs & auth > APIs > Credentials > Public API access" and then click "CREATE A NEW KEY" button, select the "Browser key" option and click in the "CREATE" button, and then copy your API key and paste in above field.', 'accesspress-social-counter'); ?></div>
101
  </div>
102
  </div>
103
  </div>
107
 
108
  <!--Instagram-->
109
  <div class="apsc-option-outer-wrapper">
110
+ <h4><?php _e('Instagram', 'accesspress-social-counter') ?></h4>
111
  <div class="apsc-option-inner-wrapper">
112
+ <label><?php _e('Display Counter', 'accesspress-social-counter') ?></label>
113
+ <div class="apsc-option-field"><label><input type="checkbox" name="social_profile[instagram][active]" value="1" class="apsc-counter-activation-trigger" <?php if(isset($apsc_settings['social_profile']['instagram']['active'])){?>checked="checked"<?php } ?>/><?php _e('Show/Hide', 'accesspress-social-counter'); ?></label></div>
114
  </div>
115
  <div class="apsc-option-extra">
116
  <div class="apsc-option-inner-wrapper">
117
+ <label><?php _e('Instagram Username', 'accesspress-social-counter'); ?></label>
118
  <div class="apsc-option-field">
119
  <input type="text" name="social_profile[instagram][username]" value="<?php echo esc_attr($apsc_settings['social_profile']['instagram']['username']);?>"/>
120
+ <div class="apsc-option-note"><?php _e('Please enter the instagram username', 'accesspress-social-counter'); ?></div>
121
  </div>
122
  </div>
123
  <div class="apsc-option-inner-wrapper">
124
+ <label><?php _e('Instagram User ID', 'accesspress-social-counter'); ?></label>
125
  <div class="apsc-option-field">
126
  <input type="text" name="social_profile[instagram][user_id]" value="<?php echo esc_attr($apsc_settings['social_profile']['instagram']['user_id']);?>"/>
127
+ <div class="apsc-option-note"><?php _e('Please enter the instagram user ID.You can get this information from <a href="http://www.pinceladasdaweb.com.br/instagram/access-token/" target="_blank">http://www.pinceladasdaweb.com.br/instagram/access-token/</a>', 'accesspress-social-counter'); ?></div>
128
  </div>
129
  </div>
130
  <div class="apsc-option-inner-wrapper">
131
+ <label><?php _e('Instagram Access Token', 'accesspress-social-counter'); ?></label>
132
  <div class="apsc-option-field">
133
  <input type="text" name="social_profile[instagram][access_token]" value="<?php echo esc_attr($apsc_settings['social_profile']['instagram']['access_token']);?>"/>
134
+ <div class="apsc-option-note"><?php _e('Please enter the instagram Access Token.You can get this information from <a href="http://www.pinceladasdaweb.com.br/instagram/access-token/" target="_blank">http://www.pinceladasdaweb.com.br/instagram/access-token/</a>', 'accesspress-social-counter'); ?></div>
135
  </div>
136
  </div>
137
  </div>
141
 
142
  <!--Youtube-->
143
  <div class="apsc-option-outer-wrapper">
144
+ <h4><?php _e('Youtube', 'accesspress-social-counter') ?></h4>
145
  <div class="apsc-extra-note">
146
+ <p><?php _e('Note: We have updated the functionality to work with youtube API v3 for automatic count update. So please fill the necessary credentials below.','accesspress-social-counter')?></p>
147
  </div>
148
  <div class="apsc-option-inner-wrapper">
149
+ <label><?php _e('Display Counter', 'accesspress-social-counter') ?></label>
150
+ <div class="apsc-option-field"><label><input type="checkbox" name="social_profile[youtube][active]" value="1" class="apsc-counter-activation-trigger" <?php if(isset($apsc_settings['social_profile']['youtube']['active'])){?>checked="checked"<?php } ?>/><?php _e('Show/Hide', 'accesspress-social-counter'); ?></label></div>
151
  </div>
152
  <div class="apsc-option-extra">
153
  <div class="apsc-option-inner-wrapper">
154
+ <label><?php _e('Youtube Channel ID', 'accesspress-social-counter'); ?></label>
155
  <div class="apsc-option-field">
156
  <input type="text" name="social_profile[youtube][channel_id]" value="<?php echo isset($apsc_settings['social_profile']['youtube']['channel_id'])?esc_attr($apsc_settings['social_profile']['youtube']['channel_id']):'';?>"/>
157
+ <div class="apsc-option-note"><?php _e('Please enter the youtube channel ID.Your channel ID looks like: UC4WMyzBds5sSZcQxyAhxJ8g. And please note that your channel ID is different from username.Please go <a href="https://support.google.com/youtube/answer/3250431?hl=en" target="_blank">here</a> to know how to get your channel ID.', 'accesspress-social-counter'); ?></div>
158
  </div>
159
  </div>
160
  <div class="apsc-option-inner-wrapper">
161
+ <label><?php _e('Youtube Channel URL', 'accesspress-social-counter'); ?></label>
162
  <div class="apsc-option-field">
163
  <input type="text" name="social_profile[youtube][channel_url]" value="<?php echo esc_attr($apsc_settings['social_profile']['youtube']['channel_url']);?>"/>
164
+ <div class="apsc-option-note"><?php _e('Please enter the youtube channel URL.For example:https://www.youtube.com/user/accesspressthemes', 'accesspress-social-counter'); ?></div>
165
  </div>
166
  </div>
167
  <div class="apsc-option-inner-wrapper">
168
+ <label><?php _e('Youtube API Key', 'accesspress-social-counter'); ?></label>
169
  <div class="apsc-option-field">
170
  <input type="text" name="social_profile[youtube][api_key]" value="<?php echo isset($apsc_settings['social_profile']['youtube']['api_key'])?esc_attr($apsc_settings['social_profile']['youtube']['api_key']):'';?>"/>
171
+ <div class="apsc-option-note"><?php _e('To get your API Key, first create a project/app in <a href="https://console.developers.google.com/project" target="_blank">https://console.developers.google.com/project</a> and then turn on both Youtube Data and Analytics API from "APIs & auth >APIs inside your project.Then again go to "APIs & auth > APIs > Credentials > Public API access" and then click "CREATE A NEW KEY" button, select the "Browser key" option and click in the "CREATE" button, and then copy your API key and paste in above field.', 'accesspress-social-counter'); ?></div>
172
  </div>
173
  </div>
174
  <div class="apsc-option-inner-wrapper">
175
+ <label><?php _e('Default Subscribers Count', 'accesspress-social-counter'); ?></label>
176
  <div class="apsc-option-field">
177
  <input type="text" name="social_profile[youtube][subscribers_count]" value="<?php echo isset($apsc_settings['social_profile']['youtube']['subscribers_count'])?esc_attr($apsc_settings['social_profile']['youtube']['subscribers_count']):0;?>"/>
178
+ <div class="apsc-option-note"><?php _e('Please enter total number of subscribers that your youtube channel has in case the API fetching is failed for automatic update.', 'accesspress-social-counter'); ?></div>
179
  </div>
180
  </div>
181
  </div>
185
 
186
  <!--Sound Cloud-->
187
  <div class="apsc-option-outer-wrapper">
188
+ <h4><?php _e('Sound Cloud', 'accesspress-social-counter') ?></h4>
189
  <div class="apsc-option-inner-wrapper">
190
+ <label><?php _e('Display Counter', 'accesspress-social-counter') ?></label>
191
+ <div class="apsc-option-field"><label><input type="checkbox" name="social_profile[soundcloud][active]" value="1" class="apsc-counter-activation-trigger" <?php if(isset($apsc_settings['social_profile']['soundcloud']['active'])){?>checked="checked"<?php } ?>/><?php _e('Show/Hide', 'accesspress-social-counter'); ?></label></div>
192
  </div>
193
  <div class="apsc-option-extra">
194
  <div class="apsc-option-inner-wrapper">
195
+ <label><?php _e('SoundCloud Username', 'accesspress-social-counter'); ?></label>
196
  <div class="apsc-option-field">
197
  <input type="text" name="social_profile[soundcloud][username]" value="<?php echo $apsc_settings['social_profile']['soundcloud']['username'];?>"/>
198
+ <div class="apsc-option-note"><?php _e('Please enter the SoundCloud username.For example:bchettri', 'accesspress-social-counter'); ?></div>
199
  </div>
200
  </div>
201
  <div class="apsc-option-inner-wrapper">
202
+ <label><?php _e('SoundCloud Client ID', 'accesspress-social-counter'); ?></label>
203
  <div class="apsc-option-field">
204
  <input type="text" name="social_profile[soundcloud][client_id]" value="<?php echo esc_attr($apsc_settings['social_profile']['soundcloud']['client_id']);?>"/>
205
+ <div class="apsc-option-note"><?php _e('Please enter the SoundCloud APP Client ID.You can get this information from <a href="http://soundcloud.com/you/apps/new">http://soundcloud.com/you/apps/new</a> after creating a new app', 'accesspress-social-counter'); ?></div>
206
  </div>
207
  </div>
208
  </div>
212
 
213
  <!--Dribbble-->
214
  <div class="apsc-option-outer-wrapper">
215
+ <h4><?php _e('Dribbble', 'accesspress-social-counter') ?></h4>
216
  <div class="apsc-option-inner-wrapper">
217
+ <label><?php _e('Display Counter', 'accesspress-social-counter') ?></label>
218
+ <div class="apsc-option-field"><label><input type="checkbox" name="social_profile[dribbble][active]" value="1" class="apsc-counter-activation-trigger" <?php if(isset($apsc_settings['social_profile']['dribbble']['active'])){?>checked="checked"<?php } ?>/><?php _e('Show/Hide', 'accesspress-social-counter'); ?></label></div>
219
  </div>
220
  <div class="apsc-option-extra">
221
  <div class="apsc-option-inner-wrapper">
222
+ <label><?php _e('Dribbble Username', 'accesspress-social-counter'); ?></label>
223
  <div class="apsc-option-field">
224
  <input type="text" name="social_profile[dribbble][username]" value="<?php echo esc_attr($apsc_settings['social_profile']['dribbble']['username']);?>"/>
225
+ <div class="apsc-option-note"><?php _e('Please enter your dribbble username.For example:Creativedash', 'accesspress-social-counter'); ?></div>
226
  </div>
227
  </div>
228
  </div>
232
 
233
  <!--Posts-->
234
  <div class="apsc-option-outer-wrapper">
235
+ <h4><?php _e("Posts",'accesspress-social-counter')?></h4>
236
  <div class="apsc-option-inner-wrapper">
237
+ <label><?php _e('Display Counter','accesspress-social-counter');?></label>
238
+ <div class="apsc-option-field"><label><input type="checkbox" name="social_profile[posts][active]" value="1" class="apsc-counter-activation-trigger" <?php if(isset($apsc_settings['social_profile']['posts']['active'])){?>checked="checked"<?php } ?>/><?php _e('Show/Hide', 'accesspress-social-counter'); ?></label></div>
239
  </div>
240
  <div class="apsc-extra-note"><?php _e('Please use: [aps-get-count social_media="posts"] to get the Posts 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>
241
  </div>
243
 
244
  <!--Comments-->
245
  <div class="apsc-option-outer-wrapper">
246
+ <h4><?php _e("Comments",'accesspress-social-counter');?></h4>
247
  <div class="apsc-option-inner-wrapper">
248
+ <label><?php _e('Display Counter','accesspress-social-counter');?></label>
249
+ <div class="apsc-option-field"><label><input type="checkbox" name="social_profile[comments][active]" value="1" class="apsc-counter-activation-trigger" <?php if(isset($apsc_settings['social_profile']['comments']['active'])){?>checked="checked"<?php } ?>/><?php _e('Show/Hide', 'accesspress-social-counter'); ?></label></div>
250
  </div>
251
  <div class="apsc-extra-note"><?php _e('Please use: [aps-get-count social_media="comments"] to get the Comments 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>
252
  </div>
inc/backend/save-settings.php CHANGED
@@ -85,7 +85,7 @@ $apsc_settings['counter_format'] = $counter_format;
85
  $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
- $_SESSION['apsc_message'] = __('Settings Saved Successfully','aps-counter');
89
  wp_redirect(admin_url().'admin.php?page=ap-social-counter');
90
 
91
 
85
  $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
+ $_SESSION['apsc_message'] = __('Settings Saved Successfully','accesspress-social-counter');
89
  wp_redirect(admin_url().'admin.php?page=ap-social-counter');
90
 
91
 
inc/backend/settings.php CHANGED
@@ -9,11 +9,11 @@ $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', 'aps-counter'); ?>" />
13
  </div>
14
 
15
  <div class="apsc-socials">
16
- <p><?php _e('Follow us for new updates', 'aps-counter') ?></p>
17
  <div class="ap-social-bttns">
18
 
19
  <iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2Fpages%2FAccessPress-Themes%2F1396595907277967&amp;width&amp;layout=button&amp;action=like&amp;show_faces=false&amp;share=false&amp;height=35&amp;appId=1411139805828592" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:20px; width:50px " allowTransparency="true"></iframe>
@@ -32,17 +32,17 @@ $apsc_settings = $this->apsc_settings;
32
  </div>
33
  </div>
34
 
35
- <div class="apsc-title"><?php _e('AccessPress Social Counter', 'aps-counter'); ?></div>
36
  </div>
37
  <div class="apsc-extra-note"><?php _e('Note: If you find any unsual issues then please check by deleting cache using the "Delete Cache" button below.And if you found our plugin helpful and like our plugin then please don\'t forget to give us a rating <a href="https://wordpress.org/support/view/plugin-reviews/accesspress-social-counter#postform"> here </a>. Its the only way to keep us motivated to make the plugin even better.
38
- ','aps-counter');?></div>
39
  <?php if(isset($_SESSION['apsc_message'])){?><div class="apsc-success-message"><p><?php echo $_SESSION['apsc_message'];unset($_SESSION['apsc_message']);?></p></div><?php }?>
40
  <div class="apsc-boards-wrapper">
41
  <ul class="apsc-settings-tabs">
42
- <li><a href="javascript:void(0)" id="social-profile-settings" class="apsc-tabs-trigger apsc-active-tab"><?php _e('Social Profiles', 'aps-counter') ?></a></li>
43
- <li><a href="javascript:void(0)" id="display-settings" class="apsc-tabs-trigger"><?php _e('Display Settings', 'aps-counter'); ?></a></li>
44
- <li><a href="javascript:void(0)" id="cache-settings" class="apsc-tabs-trigger"><?php _e('Cache Settings', 'aps-counter'); ?></a></li>
45
- <li><a href="javascript:void(0)" id="how_to_use-settings" class="apsc-tabs-trigger"><?php _e('How to use', 'aps-counter'); ?></a></li>
46
  <li><a href="javascript:void(0)" id="about-settings" class="apsc-tabs-trigger"><?php _e('About', 'anonymous-post'); ?></a></li>
47
  </ul>
48
  <div class="metabox-holder">
@@ -96,8 +96,8 @@ $apsc_settings = $this->apsc_settings;
96
  $nonce = wp_create_nonce('apsc-restore-default-nonce');
97
  $cache_nonce = wp_create_nonce('apsc-cache-nonce');
98
  ?>
99
- <a href="<?php echo admin_url() . 'admin-post.php?action=apsc_restore_default&_wpnonce=' . $nonce; ?>" onclick="return confirm('<?php _e('Are you sure you want to restore default settings?', 'aps-counter'); ?>')"><input type="button" value="<?php _e('Restore Default Settings','aps-counter');?>" class="ap-reset-button button button-primary"/></a>
100
- <a href="<?php echo admin_url() . 'admin-post.php?action=apsc_delete_cache&_wpnonce=' . $cache_nonce; ?>" onclick="return confirm('<?php _e('Are you sure you want to delete cache?', 'aps-counter'); ?>')"><input type="button" value="<?php _e('Delete Cache','aps-counter');?>" class="ap-reset-button button button-primary"/></a>
101
  </div>
102
  </form>
103
  </div><!--optionsframework-->
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">
16
+ <p><?php _e('Follow us for new updates', 'accesspress-social-counter') ?></p>
17
  <div class="ap-social-bttns">
18
 
19
  <iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2Fpages%2FAccessPress-Themes%2F1396595907277967&amp;width&amp;layout=button&amp;action=like&amp;show_faces=false&amp;share=false&amp;height=35&amp;appId=1411139805828592" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:20px; width:50px " allowTransparency="true"></iframe>
32
  </div>
33
  </div>
34
 
35
+ <div class="apsc-title"><?php _e('AccessPress Social Counter', 'accesspress-social-counter'); ?></div>
36
  </div>
37
  <div class="apsc-extra-note"><?php _e('Note: If you find any unsual issues then please check by deleting cache using the "Delete Cache" button below.And if you found our plugin helpful and like our plugin then please don\'t forget to give us a rating <a href="https://wordpress.org/support/view/plugin-reviews/accesspress-social-counter#postform"> here </a>. Its the only way to keep us motivated to make the plugin even better.
38
+ ','accesspress-social-counter');?></div>
39
  <?php if(isset($_SESSION['apsc_message'])){?><div class="apsc-success-message"><p><?php echo $_SESSION['apsc_message'];unset($_SESSION['apsc_message']);?></p></div><?php }?>
40
  <div class="apsc-boards-wrapper">
41
  <ul class="apsc-settings-tabs">
42
+ <li><a href="javascript:void(0)" id="social-profile-settings" class="apsc-tabs-trigger apsc-active-tab"><?php _e('Social Profiles', 'accesspress-social-counter') ?></a></li>
43
+ <li><a href="javascript:void(0)" id="display-settings" class="apsc-tabs-trigger"><?php _e('Display Settings', 'accesspress-social-counter'); ?></a></li>
44
+ <li><a href="javascript:void(0)" id="cache-settings" class="apsc-tabs-trigger"><?php _e('Cache Settings', 'accesspress-social-counter'); ?></a></li>
45
+ <li><a href="javascript:void(0)" id="how_to_use-settings" class="apsc-tabs-trigger"><?php _e('How to use', 'accesspress-social-counter'); ?></a></li>
46
  <li><a href="javascript:void(0)" id="about-settings" class="apsc-tabs-trigger"><?php _e('About', 'anonymous-post'); ?></a></li>
47
  </ul>
48
  <div class="metabox-holder">
96
  $nonce = wp_create_nonce('apsc-restore-default-nonce');
97
  $cache_nonce = wp_create_nonce('apsc-cache-nonce');
98
  ?>
99
+ <a href="<?php echo admin_url() . 'admin-post.php?action=apsc_restore_default&_wpnonce=' . $nonce; ?>" onclick="return confirm('<?php _e('Are you sure you want to restore default settings?', 'accesspress-social-counter'); ?>')"><input type="button" value="<?php _e('Restore Default Settings','accesspress-social-counter');?>" class="ap-reset-button button button-primary"/></a>
100
+ <a href="<?php echo admin_url() . 'admin-post.php?action=apsc_delete_cache&_wpnonce=' . $cache_nonce; ?>" onclick="return confirm('<?php _e('Are you sure you want to delete cache?', 'accesspress-social-counter'); ?>')"><input type="button" value="<?php _e('Delete Cache','accesspress-social-counter');?>" class="ap-reset-button button button-primary"/></a>
101
  </div>
102
  </form>
103
  </div><!--optionsframework-->
inc/backend/widget.php CHANGED
@@ -11,8 +11,8 @@ class APSC_Widget extends WP_Widget {
11
  function __construct() {
12
  parent::__construct(
13
  'apsc_widget', // Base ID
14
- __('AccessPress Social Counter', 'aps-counter'), // Name
15
- array('description' => __('AccessPress Social Counter Widget', 'aps-counter')) // Args
16
  );
17
  }
18
 
@@ -55,12 +55,12 @@ class APSC_Widget extends WP_Widget {
55
  ?>
56
  <p>
57
 
58
- <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:', 'aps-counter'); ?></label>
59
  <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($title); ?>"/>
60
  </p>
61
  <p>
62
 
63
- <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Theme:', 'aps-counter'); ?></label>
64
  <select class="widefat" id="<?php echo $this->get_field_id('theme'); ?>" name="<?php echo $this->get_field_name('theme'); ?>" >
65
  <option value="">Default</option>
66
  <?php for($i=1;$i<=5;$i++){
11
  function __construct() {
12
  parent::__construct(
13
  'apsc_widget', // Base ID
14
+ __('AccessPress Social Counter', 'accesspress-social-counter'), // Name
15
+ array('description' => __('AccessPress Social Counter Widget', 'accesspress-social-counter')) // Args
16
  );
17
  }
18
 
55
  ?>
56
  <p>
57
 
58
+ <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:', 'accesspress-social-counter'); ?></label>
59
  <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($title); ?>"/>
60
  </p>
61
  <p>
62
 
63
+ <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Theme:', 'accesspress-social-counter'); ?></label>
64
  <select class="widefat" id="<?php echo $this->get_field_id('theme'); ?>" name="<?php echo $this->get_field_name('theme'); ?>" >
65
  <option value="">Default</option>
66
  <?php for($i=1;$i<=5;$i++){
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: 3.8
6
  Tested up to: 4.3
7
- Stable tag: 1.4.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -125,6 +125,9 @@ Once you install the plugin , you can check some general documentation about how
125
  5. Backend Cache Settings Section
126
 
127
  == Changelog ==
 
 
 
128
  = 1.4.2 =
129
  * Fixed small bug regarding new added option
130
 
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 4.3
7
+ Stable tag: 1.4.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
125
  5. Backend Cache Settings Section
126
 
127
  == Changelog ==
128
+ = 1.4.3 =
129
+ * Updated text domain to match the plugin's slug
130
+
131
  = 1.4.2 =
132
  * Fixed small bug regarding new added option
133