Version Description
- Updated note in social profiles section
- Updated rating link in settings header
Download this release
Release Info
Developer | Access Keys |
Plugin | Social Counter for WordPress – AccessPress Social Counter |
Version | 1.3.6 |
Comparing to | |
See all releases |
Code changes from version 1.3.5 to 1.3.6
- accesspress-social-counter.php +10 -3
- css/backend.css +1 -0
- inc/backend/boards/social-profiles.php +9 -9
- inc/backend/settings.php +1 -1
- inc/frontend/shortcode.php +2 -1
- readme.txt +6 -2
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.3.
|
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.3.
|
28 |
}
|
29 |
/**
|
30 |
* Register of widgets
|
@@ -579,4 +579,11 @@ if (!class_exists('SC_Class')) {
|
|
579 |
}
|
580 |
|
581 |
$sc_object = new SC_Class(); //initialization of plugin
|
582 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.3.6
|
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.3.6');
|
28 |
}
|
29 |
/**
|
30 |
* Register of widgets
|
579 |
}
|
580 |
|
581 |
$sc_object = new SC_Class(); //initialization of plugin
|
582 |
+
}
|
583 |
+
add_action( 'wp_enqueue_scripts', 'remove_font_awesome', 99 );
|
584 |
+
|
585 |
+
function remove_font_awesome(){
|
586 |
+
wp_dequeue_style( 'apsc-font-awesome-css' );
|
587 |
+
}
|
588 |
+
|
589 |
+
remove_action('wp_enqueue_scripts', array('SC_Class', 'register_frontend_assets'),99);
|
css/backend.css
CHANGED
@@ -742,4 +742,5 @@ padding: 1px 12px;
|
|
742 |
font-style: italic;
|
743 |
margin-bottom: 25px;
|
744 |
margin-top: 25px;
|
|
|
745 |
}
|
742 |
font-style: italic;
|
743 |
margin-bottom: 25px;
|
744 |
margin-top: 25px;
|
745 |
+
line-height:1.75;
|
746 |
}
|
inc/backend/boards/social-profiles.php
CHANGED
@@ -25,7 +25,7 @@
|
|
25 |
</div>
|
26 |
</div>
|
27 |
</div>
|
28 |
-
<div class="apsc-extra-note"><?php _e('Please use: [aps-get-count social_media="facebook"] to get the Facebook Count only');?></div>
|
29 |
</div>
|
30 |
<!---Facebook-->
|
31 |
|
@@ -74,7 +74,7 @@
|
|
74 |
</div>
|
75 |
|
76 |
</div>
|
77 |
-
<div class="apsc-extra-note"><?php _e('Please use: [aps-get-count social_media="twitter"] to get the Twitter Count only');?></div>
|
78 |
</div>
|
79 |
<!--Twitter-->
|
80 |
|
@@ -101,7 +101,7 @@
|
|
101 |
</div>
|
102 |
</div>
|
103 |
</div>
|
104 |
-
<div class="apsc-extra-note"><?php _e('Please use: [aps-get-count social_media="googlePlus"] to get the Google Plus Count only');?></div>
|
105 |
</div>
|
106 |
<!--Google Plus-->
|
107 |
|
@@ -135,7 +135,7 @@
|
|
135 |
</div>
|
136 |
</div>
|
137 |
</div>
|
138 |
-
<div class="apsc-extra-note"><?php _e('Please use: [aps-get-count social_media="instagram"] to get the Instagram Count only');?></div>
|
139 |
</div>
|
140 |
<!--Instagram-->
|
141 |
|
@@ -172,7 +172,7 @@
|
|
172 |
</div>
|
173 |
</div>
|
174 |
</div>
|
175 |
-
<div class="apsc-extra-note"><?php _e('Please use: [aps-get-count social_media="youtube"] to get the Youtube Count only');?></div>
|
176 |
</div>
|
177 |
<!--Youtube-->
|
178 |
|
@@ -199,7 +199,7 @@
|
|
199 |
</div>
|
200 |
</div>
|
201 |
</div>
|
202 |
-
<div class="apsc-extra-note"><?php _e('Please use: [aps-get-count social_media="soundcloud"] to get the SoundCloud Count only');?></div>
|
203 |
</div>
|
204 |
<!--Sound Cloud-->
|
205 |
|
@@ -219,7 +219,7 @@
|
|
219 |
</div>
|
220 |
</div>
|
221 |
</div>
|
222 |
-
<div class="apsc-extra-note"><?php _e('Please use: [aps-get-count social_media="dribbble"] to get the Dribbble Count only');?></div>
|
223 |
</div>
|
224 |
<!--Dribbble-->
|
225 |
|
@@ -230,7 +230,7 @@
|
|
230 |
<label><?php _e('Display Counter','aps-counter');?></label>
|
231 |
<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>
|
232 |
</div>
|
233 |
-
<div class="apsc-extra-note"><?php _e('Please use: [aps-get-count social_media="posts"] to get the Posts Count only');?></div>
|
234 |
</div>
|
235 |
<!--Posts-->
|
236 |
|
@@ -241,7 +241,7 @@
|
|
241 |
<label><?php _e('Display Counter','aps-counter');?></label>
|
242 |
<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>
|
243 |
</div>
|
244 |
-
<div class="apsc-extra-note"><?php _e('Please use: [aps-get-count social_media="comments"] to get the Comments Count only');?></div>
|
245 |
</div>
|
246 |
<!--Comments-->
|
247 |
|
25 |
</div>
|
26 |
</div>
|
27 |
</div>
|
28 |
+
<div class="apsc-extra-note"><?php _e('Please use: [aps-get-count social_media="facebook"] to get the Facebook 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>
|
29 |
</div>
|
30 |
<!---Facebook-->
|
31 |
|
74 |
</div>
|
75 |
|
76 |
</div>
|
77 |
+
<div class="apsc-extra-note"><?php _e('Please use: [aps-get-count social_media="twitter"] to get the Twitter 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>
|
78 |
</div>
|
79 |
<!--Twitter-->
|
80 |
|
101 |
</div>
|
102 |
</div>
|
103 |
</div>
|
104 |
+
<div class="apsc-extra-note"><?php _e('Please use: [aps-get-count social_media="googlePlus"] to get the Google Plus Count only.You can also pass count_format parameter too in this shortcode to format your count.Formats are "short" for abbreviated format and "comma" for comma separated formats.');?></div>
|
105 |
</div>
|
106 |
<!--Google Plus-->
|
107 |
|
135 |
</div>
|
136 |
</div>
|
137 |
</div>
|
138 |
+
<div class="apsc-extra-note"><?php _e('Please use: [aps-get-count social_media="instagram"] to get the Instagram 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>
|
139 |
</div>
|
140 |
<!--Instagram-->
|
141 |
|
172 |
</div>
|
173 |
</div>
|
174 |
</div>
|
175 |
+
<div class="apsc-extra-note"><?php _e('Please use: [aps-get-count social_media="youtube"] to get the Youtube 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>
|
176 |
</div>
|
177 |
<!--Youtube-->
|
178 |
|
199 |
</div>
|
200 |
</div>
|
201 |
</div>
|
202 |
+
<div class="apsc-extra-note"><?php _e('Please use: [aps-get-count social_media="soundcloud"] to get the SoundCloud 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>
|
203 |
</div>
|
204 |
<!--Sound Cloud-->
|
205 |
|
219 |
</div>
|
220 |
</div>
|
221 |
</div>
|
222 |
+
<div class="apsc-extra-note"><?php _e('Please use: [aps-get-count social_media="dribbble"] to get the Dribbble 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>
|
223 |
</div>
|
224 |
<!--Dribbble-->
|
225 |
|
230 |
<label><?php _e('Display Counter','aps-counter');?></label>
|
231 |
<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>
|
232 |
</div>
|
233 |
+
<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>
|
234 |
</div>
|
235 |
<!--Posts-->
|
236 |
|
241 |
<label><?php _e('Display Counter','aps-counter');?></label>
|
242 |
<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>
|
243 |
</div>
|
244 |
+
<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>
|
245 |
</div>
|
246 |
<!--Comments-->
|
247 |
|
inc/backend/settings.php
CHANGED
@@ -34,7 +34,7 @@ $apsc_settings = $this->apsc_settings;
|
|
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/
|
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">
|
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">
|
inc/frontend/shortcode.php
CHANGED
@@ -3,6 +3,7 @@ defined('ABSPATH') or die("No script kiddies please!");
|
|
3 |
|
4 |
$apsc_settings = $this->apsc_settings;
|
5 |
$cache_period = ($apsc_settings['cache_period'] != '') ? $apsc_settings['cache_period']*60*60 : 24 * 60 * 60;
|
|
|
6 |
$apsc_settings['social_profile_theme'] = isset($atts['theme'])?$atts['theme']:$apsc_settings['social_profile_theme'];
|
7 |
$format = isset($apsc_settings['counter_format'])?$apsc_settings['counter_format']:'comma';
|
8 |
?>
|
@@ -21,7 +22,7 @@ $format = isset($apsc_settings['counter_format'])?$apsc_settings['counter_format
|
|
21 |
<?php
|
22 |
$facebook_count = get_transient('apsc_facebook');
|
23 |
if (false === $facebook_count) {
|
24 |
-
|
25 |
$api_url = 'https://www.facebook.com/' . $facebook_page_id;
|
26 |
|
27 |
$count = $this->facebook_count($api_url);
|
3 |
|
4 |
$apsc_settings = $this->apsc_settings;
|
5 |
$cache_period = ($apsc_settings['cache_period'] != '') ? $apsc_settings['cache_period']*60*60 : 24 * 60 * 60;
|
6 |
+
|
7 |
$apsc_settings['social_profile_theme'] = isset($atts['theme'])?$atts['theme']:$apsc_settings['social_profile_theme'];
|
8 |
$format = isset($apsc_settings['counter_format'])?$apsc_settings['counter_format']:'comma';
|
9 |
?>
|
22 |
<?php
|
23 |
$facebook_count = get_transient('apsc_facebook');
|
24 |
if (false === $facebook_count) {
|
25 |
+
|
26 |
$api_url = 'https://www.facebook.com/' . $facebook_page_id;
|
27 |
|
28 |
$count = $this->facebook_count($api_url);
|
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: 3.8
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -125,6 +125,10 @@ Once you install the plugin , you can check some general documentation about how
|
|
125 |
5. Backend Cache Settings Section
|
126 |
|
127 |
== Changelog ==
|
|
|
|
|
|
|
|
|
128 |
= 1.3.5 =
|
129 |
* Removed font awesome dependency from frontend.css
|
130 |
* Fixed some css conflicts for anchor links color and hover color
|
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: 3.8
|
6 |
+
Tested up to: 4.3
|
7 |
+
Stable tag: 1.3.6
|
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.3.6 =
|
129 |
+
* Updated note in social profiles section
|
130 |
+
* Updated rating link in settings header
|
131 |
+
|
132 |
= 1.3.5 =
|
133 |
* Removed font awesome dependency from frontend.css
|
134 |
* Fixed some css conflicts for anchor links color and hover color
|