Version Description
- Updated backend notes to dismissible notices
- Added below hooks on all the social network anchor links
- apsc_facebook_link
- apsc_twitter_link
- apsc_googlePlus_link
- apsc_instagram_link
- apsc_youtube_link
- apsc_soundcloud_link
- apsc_dribbble_link
- apsc_posts_link
- apsc_comments_link
Download this release
Release Info
Developer | Access Keys |
Plugin | Social Counter for WordPress – AccessPress Social Counter |
Version | 1.6.1 |
Comparing to | |
See all releases |
Code changes from version 1.6.0 to 1.6.1
- accesspress-social-counter.php +2 -2
- inc/backend/settings.php +7 -2
- inc/frontend/shortcode.php +9 -9
- readme.txt +14 -1
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.6.
|
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.6.
|
28 |
}
|
29 |
/**
|
30 |
* Register of widgets
|
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.6.1
|
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.6.1');
|
28 |
}
|
29 |
/**
|
30 |
* Register of widgets
|
inc/backend/settings.php
CHANGED
@@ -35,8 +35,13 @@ $apsc_settings = $this->apsc_settings;
|
|
35 |
<div class="apsc-title"><?php _e('AccessPress Social Counter', 'accesspress-social-counter'); ?></div>
|
36 |
</div>
|
37 |
<?php if(isset($_SESSION['apsc_message'])){?><div class="notice notice-success is-dismissible"><p><?php echo $_SESSION['apsc_message'];unset($_SESSION['apsc_message']);?></p></div><?php }?>
|
38 |
-
|
39 |
-
|
|
|
|
|
|
|
|
|
|
|
40 |
|
41 |
<div class="apsc-boards-wrapper">
|
42 |
<ul class="apsc-settings-tabs">
|
35 |
<div class="apsc-title"><?php _e('AccessPress Social Counter', 'accesspress-social-counter'); ?></div>
|
36 |
</div>
|
37 |
<?php if(isset($_SESSION['apsc_message'])){?><div class="notice notice-success is-dismissible"><p><?php echo $_SESSION['apsc_message'];unset($_SESSION['apsc_message']);?></p></div><?php }?>
|
38 |
+
<div class="notice notice-info is-dismissible"> <p><?php _e('Note: Please check the System Status if your server system status meets all the requirement for the plugin before you use the plugin','accesspress-social-counter');?></p></div>
|
39 |
+
|
40 |
+
<div class="notice notice-info is-dismissible">
|
41 |
+
<p>
|
42 |
+
<?php _e('If you find any unsual issues then please check by deleting cache using the "Delete Cache" button below.And if you 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" target="_blank"> here </a>. Its the only way to keep us motivated to make the plugin even better.','accesspress-social-counter');?>
|
43 |
+
</p>
|
44 |
+
</div>
|
45 |
|
46 |
<div class="apsc-boards-wrapper">
|
47 |
<ul class="apsc-settings-tabs">
|
inc/frontend/shortcode.php
CHANGED
@@ -20,7 +20,7 @@ $format = isset($apsc_settings['counter_format'])?$apsc_settings['counter_format
|
|
20 |
case 'facebook':
|
21 |
$facebook_page_id = $apsc_settings['social_profile']['facebook']['page_id'];
|
22 |
?>
|
23 |
-
<a class="apsc-facebook-icon clearfix" href="<?php echo "https://facebook.com/" . $facebook_page_id; ?>" target="_blank"
|
24 |
<div class="apsc-inner-block">
|
25 |
<span class="social-icon"><i class="fa fa-facebook apsc-facebook"></i><span class="media-name">Facebook</span></span>
|
26 |
<span class="apsc-count"><?php echo $count; ?></span><span class="apsc-media-type">Fans</span>
|
@@ -30,7 +30,7 @@ $format = isset($apsc_settings['counter_format'])?$apsc_settings['counter_format
|
|
30 |
break;
|
31 |
case 'twitter':
|
32 |
?>
|
33 |
-
<a class="apsc-twitter-icon clearfix" href="<?php echo 'https://twitter.com/'.$apsc_settings['social_profile']['twitter']['username'];?>" target="_blank"
|
34 |
<div class="apsc-inner-block">
|
35 |
<span class="social-icon"><i class="fa fa-twitter apsc-twitter"></i><span class="media-name">Twitter</span></span>
|
36 |
<span class="apsc-count"><?php echo $count; ?></span><span class="apsc-media-type">Followers</span>
|
@@ -41,7 +41,7 @@ $format = isset($apsc_settings['counter_format'])?$apsc_settings['counter_format
|
|
41 |
case 'googlePlus':
|
42 |
$social_profile_url = 'https://plus.google.com/' . $apsc_settings['social_profile']['googlePlus']['page_id'];
|
43 |
?>
|
44 |
-
<a class="apsc-google-plus-icon clearfix" href="<?php echo $social_profile_url; ?>" target="_blank"
|
45 |
<div class="apsc-inner-block">
|
46 |
<span class="social-icon"><i class="apsc-googlePlus fa fa-google-plus"></i><span class="media-name">google+</span></span>
|
47 |
<span class="apsc-count"><?php echo $count; ?></span><span class="apsc-media-type">Followers</span>
|
@@ -54,7 +54,7 @@ $format = isset($apsc_settings['counter_format'])?$apsc_settings['counter_format
|
|
54 |
$user_id = $apsc_settings['social_profile']['instagram']['user_id'];
|
55 |
$social_profile_url = 'https://instagram.com/' . $username;
|
56 |
?>
|
57 |
-
<a class="apsc-instagram-icon clearfix" href="<?php echo $social_profile_url; ?>" target="_blank"
|
58 |
<div class="apsc-inner-block">
|
59 |
<span class="social-icon"><i class="apsc-instagram fa fa-instagram"></i><span class="media-name">Instagram</span></span>
|
60 |
<span class="apsc-count"><?php echo $count; ?></span><span class="apsc-media-type">Followers</span>
|
@@ -65,7 +65,7 @@ $format = isset($apsc_settings['counter_format'])?$apsc_settings['counter_format
|
|
65 |
case 'youtube':
|
66 |
$social_profile_url = esc_url($apsc_settings['social_profile']['youtube']['channel_url']);
|
67 |
?>
|
68 |
-
<a class="apsc-youtube-icon clearfix" href="<?php echo $social_profile_url; ?>" target="_blank"
|
69 |
<div class="apsc-inner-block">
|
70 |
<span class="social-icon"><i class="apsc-youtube fa fa-youtube"></i><span class="media-name">Youtube</span></span>
|
71 |
<span class="apsc-count"><?php echo $count; ?></span><span class="apsc-media-type">Subscriber</span>
|
@@ -77,7 +77,7 @@ $format = isset($apsc_settings['counter_format'])?$apsc_settings['counter_format
|
|
77 |
$username = $apsc_settings['social_profile']['soundcloud']['username'];
|
78 |
$social_profile_url = 'https://soundcloud.com/' . $username;
|
79 |
?>
|
80 |
-
<a class="apsc-soundcloud-icon clearfix" href="<?php echo $social_profile_url; ?>" target="_blank"
|
81 |
<div class="apsc-inner-block">
|
82 |
<span class="social-icon"><i class="apsc-soundcloud fa fa-soundcloud"></i><span class="media-name">Soundcloud</span></span>
|
83 |
<span class="apsc-count"><?php echo $count; ?></span><span class="apsc-media-type">Followers</span>
|
@@ -88,7 +88,7 @@ $format = isset($apsc_settings['counter_format'])?$apsc_settings['counter_format
|
|
88 |
case 'dribbble':
|
89 |
$social_profile_url = 'https://dribbble.com/'.$apsc_settings['social_profile']['dribbble']['username'];
|
90 |
?>
|
91 |
-
<a class="apsc-dribble-icon clearfix" href="<?php echo $social_profile_url; ?>" target="_blank"
|
92 |
<div class="apsc-inner-block">
|
93 |
<span class="social-icon"><i class="apsc-dribbble fa fa-dribbble"></i><span class="media-name">dribble</span></span>
|
94 |
<span class="apsc-count"><?php echo $count; ?></span><span class="apsc-media-type">Followers</span>
|
@@ -98,7 +98,7 @@ $format = isset($apsc_settings['counter_format'])?$apsc_settings['counter_format
|
|
98 |
break;
|
99 |
case 'posts':
|
100 |
?>
|
101 |
-
<a class="apsc-edit-icon clearfix" href="javascript:void(0);"
|
102 |
<div class="apsc-inner-block">
|
103 |
<span class="social-icon"><i class="apsc-posts fa fa-edit"></i><span class="media-name">Post</span></span>
|
104 |
<span class="apsc-count"><?php echo $count; ?></span><span class="apsc-media-type">Post</span>
|
@@ -108,7 +108,7 @@ $format = isset($apsc_settings['counter_format'])?$apsc_settings['counter_format
|
|
108 |
break;
|
109 |
case 'comments':
|
110 |
?>
|
111 |
-
<a class="apsc-comment-icon clearfix" href="javascript:void(0);"
|
112 |
<div class="apsc-inner-block">
|
113 |
<span class="social-icon"><i class="apsc-comments fa fa-comments"></i><span class="media-name">Comment</span></span>
|
114 |
<span class="apsc-count"><?php echo $count; ?></span><span class="apsc-media-type">Comments</span>
|
20 |
case 'facebook':
|
21 |
$facebook_page_id = $apsc_settings['social_profile']['facebook']['page_id'];
|
22 |
?>
|
23 |
+
<a class="apsc-facebook-icon clearfix" href="<?php echo "https://facebook.com/" . $facebook_page_id; ?>" target="_blank" <?php do_action('apsc_facebook_link');?>>
|
24 |
<div class="apsc-inner-block">
|
25 |
<span class="social-icon"><i class="fa fa-facebook apsc-facebook"></i><span class="media-name">Facebook</span></span>
|
26 |
<span class="apsc-count"><?php echo $count; ?></span><span class="apsc-media-type">Fans</span>
|
30 |
break;
|
31 |
case 'twitter':
|
32 |
?>
|
33 |
+
<a class="apsc-twitter-icon clearfix" href="<?php echo 'https://twitter.com/'.$apsc_settings['social_profile']['twitter']['username'];?>" target="_blank" <?php do_action('apsc_twitter_link');?>>
|
34 |
<div class="apsc-inner-block">
|
35 |
<span class="social-icon"><i class="fa fa-twitter apsc-twitter"></i><span class="media-name">Twitter</span></span>
|
36 |
<span class="apsc-count"><?php echo $count; ?></span><span class="apsc-media-type">Followers</span>
|
41 |
case 'googlePlus':
|
42 |
$social_profile_url = 'https://plus.google.com/' . $apsc_settings['social_profile']['googlePlus']['page_id'];
|
43 |
?>
|
44 |
+
<a class="apsc-google-plus-icon clearfix" href="<?php echo $social_profile_url; ?>" target="_blank" <?php do_action('apsc_googlePlus_link');?>>
|
45 |
<div class="apsc-inner-block">
|
46 |
<span class="social-icon"><i class="apsc-googlePlus fa fa-google-plus"></i><span class="media-name">google+</span></span>
|
47 |
<span class="apsc-count"><?php echo $count; ?></span><span class="apsc-media-type">Followers</span>
|
54 |
$user_id = $apsc_settings['social_profile']['instagram']['user_id'];
|
55 |
$social_profile_url = 'https://instagram.com/' . $username;
|
56 |
?>
|
57 |
+
<a class="apsc-instagram-icon clearfix" href="<?php echo $social_profile_url; ?>" target="_blank" <?php do_action('apsc_instagram_link');?>>
|
58 |
<div class="apsc-inner-block">
|
59 |
<span class="social-icon"><i class="apsc-instagram fa fa-instagram"></i><span class="media-name">Instagram</span></span>
|
60 |
<span class="apsc-count"><?php echo $count; ?></span><span class="apsc-media-type">Followers</span>
|
65 |
case 'youtube':
|
66 |
$social_profile_url = esc_url($apsc_settings['social_profile']['youtube']['channel_url']);
|
67 |
?>
|
68 |
+
<a class="apsc-youtube-icon clearfix" href="<?php echo $social_profile_url; ?>" target="_blank" <?php do_action('apsc_youtube_link');?>>
|
69 |
<div class="apsc-inner-block">
|
70 |
<span class="social-icon"><i class="apsc-youtube fa fa-youtube"></i><span class="media-name">Youtube</span></span>
|
71 |
<span class="apsc-count"><?php echo $count; ?></span><span class="apsc-media-type">Subscriber</span>
|
77 |
$username = $apsc_settings['social_profile']['soundcloud']['username'];
|
78 |
$social_profile_url = 'https://soundcloud.com/' . $username;
|
79 |
?>
|
80 |
+
<a class="apsc-soundcloud-icon clearfix" href="<?php echo $social_profile_url; ?>" target="_blank" <?php do_action('apsc_soundcloud_link');?>>
|
81 |
<div class="apsc-inner-block">
|
82 |
<span class="social-icon"><i class="apsc-soundcloud fa fa-soundcloud"></i><span class="media-name">Soundcloud</span></span>
|
83 |
<span class="apsc-count"><?php echo $count; ?></span><span class="apsc-media-type">Followers</span>
|
88 |
case 'dribbble':
|
89 |
$social_profile_url = 'https://dribbble.com/'.$apsc_settings['social_profile']['dribbble']['username'];
|
90 |
?>
|
91 |
+
<a class="apsc-dribble-icon clearfix" href="<?php echo $social_profile_url; ?>" target="_blank" <?php do_action('apsc_dribbble_link');?>>
|
92 |
<div class="apsc-inner-block">
|
93 |
<span class="social-icon"><i class="apsc-dribbble fa fa-dribbble"></i><span class="media-name">dribble</span></span>
|
94 |
<span class="apsc-count"><?php echo $count; ?></span><span class="apsc-media-type">Followers</span>
|
98 |
break;
|
99 |
case 'posts':
|
100 |
?>
|
101 |
+
<a class="apsc-edit-icon clearfix" href="javascript:void(0);" <?php do_action('apsc_posts_link');?>>
|
102 |
<div class="apsc-inner-block">
|
103 |
<span class="social-icon"><i class="apsc-posts fa fa-edit"></i><span class="media-name">Post</span></span>
|
104 |
<span class="apsc-count"><?php echo $count; ?></span><span class="apsc-media-type">Post</span>
|
108 |
break;
|
109 |
case 'comments':
|
110 |
?>
|
111 |
+
<a class="apsc-comment-icon clearfix" href="javascript:void(0);" <?php do_action('apsc_comments_link');?>>
|
112 |
<div class="apsc-inner-block">
|
113 |
<span class="social-icon"><i class="apsc-comments fa fa-comments"></i><span class="media-name">Comment</span></span>
|
114 |
<span class="apsc-count"><?php echo $count; ?></span><span class="apsc-media-type">Comments</span>
|
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.5
|
7 |
-
Stable tag: 1.6.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -129,6 +129,19 @@ Once you install the plugin , you can check some general documentation about how
|
|
129 |
5. Backend Cache Settings Section
|
130 |
|
131 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
= 1.6.0 =
|
133 |
* Added tutuorial video in how to use section.
|
134 |
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.5
|
7 |
+
Stable tag: 1.6.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
129 |
5. Backend Cache Settings Section
|
130 |
|
131 |
== Changelog ==
|
132 |
+
= 1.6.1 =
|
133 |
+
* Updated backend notes to dismissible notices
|
134 |
+
* Added below hooks on all the social network anchor links
|
135 |
+
- apsc_facebook_link
|
136 |
+
- apsc_twitter_link
|
137 |
+
- apsc_googlePlus_link
|
138 |
+
- apsc_instagram_link
|
139 |
+
- apsc_youtube_link
|
140 |
+
- apsc_soundcloud_link
|
141 |
+
- apsc_dribbble_link
|
142 |
+
- apsc_posts_link
|
143 |
+
- apsc_comments_link
|
144 |
+
|
145 |
= 1.6.0 =
|
146 |
* Added tutuorial video in how to use section.
|
147 |
|