Version Description
- Addition of do_action hooks to make users add more social networks if they need it. You can use add_action using these tags for 'apss_more_networks' in content and 'apss_more_networks_in_shortcodes' for shortcode.
Download this release
Release Info
Developer | Access Keys |
Plugin | Social Share WordPress Plugin – AccessPress Social Share |
Version | 4.2.9 |
Comparing to | |
See all releases |
Code changes from version 4.2.8 to 4.2.9
- accesspress-social-share.php +2 -2
- inc/frontend/content-filter.php +3 -0
- inc/frontend/shortcode.php +143 -136
- readme.txt +4 -1
accesspress-social-share.php
CHANGED
@@ -4,7 +4,7 @@ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
|
|
4 |
Plugin name: Social Share WordPress Plugin - AccessPress Social Share
|
5 |
Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-share/
|
6 |
Description: A plugin to add various social media shares to a site with dynamic configuration options.
|
7 |
-
Version: 4.2.
|
8 |
Author: AccessPress Themes
|
9 |
Author URI: http://accesspressthemes.com
|
10 |
Text Domain: accesspress-social-share
|
@@ -30,7 +30,7 @@ if ( !defined( 'APSS_LANG_DIR' ) ) {
|
|
30 |
}
|
31 |
|
32 |
if ( !defined( 'APSS_VERSION' ) ) {
|
33 |
-
define( 'APSS_VERSION', '4.2.
|
34 |
}
|
35 |
|
36 |
if ( !defined( 'APSS_TEXT_DOMAIN' ) ) {
|
4 |
Plugin name: Social Share WordPress Plugin - AccessPress Social Share
|
5 |
Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-share/
|
6 |
Description: A plugin to add various social media shares to a site with dynamic configuration options.
|
7 |
+
Version: 4.2.9
|
8 |
Author: AccessPress Themes
|
9 |
Author URI: http://accesspressthemes.com
|
10 |
Text Domain: accesspress-social-share
|
30 |
}
|
31 |
|
32 |
if ( !defined( 'APSS_VERSION' ) ) {
|
33 |
+
define( 'APSS_VERSION', '4.2.9' );
|
34 |
}
|
35 |
|
36 |
if ( !defined( 'APSS_TEXT_DOMAIN' ) ) {
|
inc/frontend/content-filter.php
CHANGED
@@ -291,6 +291,9 @@ foreach ( $options['social_networks'] as $key => $value ) {
|
|
291 |
}
|
292 |
}
|
293 |
}
|
|
|
|
|
|
|
294 |
if ( isset( $enable_counter ) && $enable_counter == '1' ) {
|
295 |
?>
|
296 |
<div class='apss-total-share-count'>
|
291 |
}
|
292 |
}
|
293 |
}
|
294 |
+
|
295 |
+
do_action('apss_more_networks');
|
296 |
+
|
297 |
if ( isset( $enable_counter ) && $enable_counter == '1' ) {
|
298 |
?>
|
299 |
<div class='apss-total-share-count'>
|
inc/frontend/shortcode.php
CHANGED
@@ -55,31 +55,29 @@ if ( isset( $attr['counter'] ) ) {
|
|
55 |
?>
|
56 |
|
57 |
<div class='apss-social-share apss-theme-<?php echo $icon_set_value; ?> clearfix'>
|
58 |
-
<?php
|
59 |
-
$title = trim(str_replace( '+', '%20', urlencode( $post->post_title ) ));
|
60 |
-
$content = trim(strip_shortcodes( strip_tags( $post->post_content ) ));
|
61 |
-
if ( strlen( $content ) >= 100 ) {
|
62 |
-
|
63 |
-
} else {
|
64 |
-
|
65 |
-
}
|
66 |
-
|
67 |
-
?>
|
68 |
|
69 |
-
|
70 |
<?php
|
71 |
$total_count = 0;
|
72 |
foreach ( $options['social_networks'] as $key => $value ) {
|
73 |
if ( intval( $value ) == '1' ) {
|
74 |
$count = $this->get_count( $key, $url );
|
75 |
-
|
76 |
////////////////////////////////////////
|
77 |
if(isset($http_url_checked) && $http_url_checked=='1'){
|
78 |
$url_check = parse_url($url);
|
79 |
if($url_check['scheme'] == 'https'){
|
80 |
$flag=TRUE;
|
81 |
}else{
|
82 |
-
$flag=FALSE;
|
83 |
}
|
84 |
|
85 |
if($flag == TRUE){
|
@@ -102,7 +100,7 @@ if ( strlen( $content ) >= 100 ) {
|
|
102 |
if($url_check['scheme'] == 'https'){
|
103 |
$flag=TRUE;
|
104 |
}else{
|
105 |
-
$flag=FALSE;
|
106 |
}
|
107 |
|
108 |
if($flag == TRUE){
|
@@ -119,40 +117,42 @@ if ( strlen( $content ) >= 100 ) {
|
|
119 |
<span class='apss-social-text'><?php _e( 'Share on Facebook', 'accesspress-social-share' ); ?></span>
|
120 |
<span class='apss-share'><?php _e( 'Share', 'accesspress-social-share' ); ?></span>
|
121 |
</div>
|
122 |
-
|
|
|
123 |
<div class='count apss-count' data-url='<?php echo $url; ?>' data-social-network='<?php echo $key; ?>' data-social-detail="<?php echo $url . '_' . $key; ?>"><?php echo $count; ?></div>
|
124 |
-
|
|
|
125 |
</a>
|
126 |
</div>
|
127 |
-
|
128 |
-
|
129 |
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
<div class='apss-twitter apss-single-icon'>
|
157 |
<a rel='nofollow' <?php if($apss_link_open_option_value == 2){ ?> onclick="apss_open_in_popup_window(event, '<?php echo $link; ?>');" href='javascript:void(0);' <?php }else{ ?> href="<?php echo $link; ?>" <?php } ?> title='<?php _e( 'Share on Twitter', 'accesspress-social-share' ); ?>' target='<?php echo $apss_link_open_option; ?>'>
|
158 |
<div class='apss-icon-block clearfix'>
|
@@ -164,31 +164,31 @@ if ( strlen( $content ) >= 100 ) {
|
|
164 |
<?php } ?>
|
165 |
</a>
|
166 |
</div>
|
167 |
-
|
168 |
-
|
169 |
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
|
191 |
-
|
192 |
<div class='apss-google-plus apss-single-icon'>
|
193 |
<a rel='nofollow' <?php if($apss_link_open_option_value == 2){ ?> onclick="apss_open_in_popup_window(event, '<?php echo $link; ?>');" <?php } ?> title='<?php _e( 'Share on Google Plus', 'accesspress-social-share' ); ?>' target='<?php echo $apss_link_open_option; ?>' href='<?php echo $link; ?>'>
|
194 |
<div class='apss-icon-block clearfix'>
|
@@ -196,33 +196,35 @@ if ( strlen( $content ) >= 100 ) {
|
|
196 |
<span class='apss-social-text'><?php _e( 'Share on Google Plus', 'accesspress-social-share' ); ?> </span>
|
197 |
<span class='apss-share'><?php _e( 'Share', 'accesspress-social-share' ); ?></span>
|
198 |
</div>
|
199 |
-
|
|
|
200 |
<div class='count apss-count' data-url='<?php echo $url; ?>' data-social-network='<?php echo $key; ?>' data-social-detail="<?php echo $url . '_' . $key; ?>"><?php echo $count; ?></div>
|
201 |
-
|
|
|
202 |
</a>
|
203 |
</div>
|
204 |
-
|
205 |
-
|
206 |
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
<div class='apss-pinterest apss-single-icon'>
|
227 |
<a rel='nofollow' title='<?php _e( 'Share on Pinterest', 'accesspress-social-share' ); ?>' href='javascript:pinIt();'>
|
228 |
<div class='apss-icon-block clearfix'>
|
@@ -230,34 +232,36 @@ if ( strlen( $content ) >= 100 ) {
|
|
230 |
<span class='apss-social-text'><?php _e( 'Share on Pinterest', 'accesspress-social-share' ); ?></span>
|
231 |
<span class='apss-share'><?php _e( 'Share', 'accesspress-social-share' ); ?></span>
|
232 |
</div>
|
233 |
-
|
|
|
234 |
<div class='count apss-count' data-url='<?php echo $url; ?>' data-social-network='<?php echo $key; ?>' data-social-detail="<?php echo $url . '_' . $key; ?>"><?php echo $count; ?></div>
|
235 |
-
|
|
|
236 |
</a>
|
237 |
</div>
|
238 |
-
|
239 |
-
|
240 |
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
<div class='apss-linkedin apss-single-icon'>
|
262 |
<a rel='nofollow' <?php if($apss_link_open_option_value == 2){ ?> onclick="apss_open_in_popup_window(event, '<?php echo $link; ?>');" <?php } ?> title='<?php _e( 'Share on LinkedIn', 'accesspress-social-share' ); ?>' target='<?php echo $apss_link_open_option; ?>' href='<?php echo $link; ?>'>
|
263 |
<div class='apss-icon-block clearfix'><i class='fa fa-linkedin'></i>
|
@@ -265,19 +269,21 @@ if ( strlen( $content ) >= 100 ) {
|
|
265 |
<span class='apss-share'><?php _e( 'Share', 'accesspress-social-share' ); ?></span>
|
266 |
</div>
|
267 |
|
268 |
-
|
|
|
269 |
<div class='count apss-count' data-url='<?php echo $url; ?>' data-social-network='<?php echo $key; ?>' data-social-detail="<?php echo $url . '_' . $key; ?>"><?php echo $count; ?></div>
|
270 |
-
|
|
|
271 |
|
272 |
</a>
|
273 |
</div>
|
274 |
-
|
275 |
-
|
276 |
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
<div class='apss-digg apss-single-icon'>
|
282 |
<a rel='nofollow' <?php if($apss_link_open_option_value == 2){ ?> onclick="apss_open_in_popup_window(event, '<?php echo $link; ?>');" <?php } ?> title='<?php _e( 'Share on Digg', 'accesspress-social-share' ); ?>' target='<?php echo $apss_link_open_option; ?>' href='<?php echo $link; ?>'>
|
283 |
<div class='apss-icon-block clearfix'>
|
@@ -287,18 +293,17 @@ if ( strlen( $content ) >= 100 ) {
|
|
287 |
</div>
|
288 |
</a>
|
289 |
</div>
|
290 |
-
|
291 |
-
<?php
|
292 |
break;
|
293 |
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
<div class='apss-email apss-single-icon'>
|
303 |
<a rel='nofollow' class='share-email-popup' title='<?php _e( 'Share it on Email', 'accesspress-social-share' ); ?>' target='<?php echo $apss_link_open_option; ?>' href='<?php echo $link; ?>'>
|
304 |
<div class='apss-icon-block clearfix'>
|
@@ -308,12 +313,11 @@ if ( strlen( $content ) >= 100 ) {
|
|
308 |
</div>
|
309 |
</a>
|
310 |
</div>
|
311 |
-
|
312 |
-
<?php
|
313 |
break;
|
314 |
|
315 |
-
|
316 |
-
|
317 |
<div class='apss-print apss-single-icon'>
|
318 |
<a rel='nofollow' title='<?php _e( 'Print', 'accesspress-social-share' ); ?>' href='javascript:void(0);' onclick='window.print(); return false;'>
|
319 |
<div class='apss-icon-block clearfix'><i class='fa fa-print'></i>
|
@@ -322,18 +326,21 @@ if ( strlen( $content ) >= 100 ) {
|
|
322 |
</div>
|
323 |
</a>
|
324 |
</div>
|
325 |
-
|
326 |
break;
|
|
|
327 |
}
|
328 |
}
|
329 |
-
}
|
330 |
|
331 |
-
|
332 |
-
|
|
|
|
|
333 |
<div class='apss-total-share-count'>
|
334 |
<span class='apss-count-number'><?php echo $total_count; ?></span>
|
335 |
<div class="apss-total-shares"><span class='apss-total-text'><?php echo _e( ' Total', 'accesspress-social-share' ); ?></span>
|
336 |
<span class='apss-shares-text'><?php echo _e( ' Shares', 'accesspress-social-share' ); ?></span></div>
|
337 |
</div>
|
338 |
-
<?php
|
|
|
339 |
</div>
|
55 |
?>
|
56 |
|
57 |
<div class='apss-social-share apss-theme-<?php echo $icon_set_value; ?> clearfix'>
|
58 |
+
<?php
|
59 |
+
$title = trim(str_replace( '+', '%20', urlencode( $post->post_title ) ));
|
60 |
+
$content = trim(strip_shortcodes( strip_tags( $post->post_content ) ));
|
61 |
+
if ( strlen( $content ) >= 100 ) {
|
62 |
+
$excerpt = urlencode(substr( $content, 0, 100 ) . '...');
|
63 |
+
} else {
|
64 |
+
$excerpt = urlencode($content);
|
65 |
+
}
|
|
|
|
|
66 |
|
67 |
+
if ( isset( $attr['share_text'] ) && $attr['share_text'] != '' ) { ?> <div class='apss-share-text'><?php echo $attr['share_text']; ?></div> <?php } ?>
|
68 |
<?php
|
69 |
$total_count = 0;
|
70 |
foreach ( $options['social_networks'] as $key => $value ) {
|
71 |
if ( intval( $value ) == '1' ) {
|
72 |
$count = $this->get_count( $key, $url );
|
73 |
+
|
74 |
////////////////////////////////////////
|
75 |
if(isset($http_url_checked) && $http_url_checked=='1'){
|
76 |
$url_check = parse_url($url);
|
77 |
if($url_check['scheme'] == 'https'){
|
78 |
$flag=TRUE;
|
79 |
}else{
|
80 |
+
$flag=FALSE;
|
81 |
}
|
82 |
|
83 |
if($flag == TRUE){
|
100 |
if($url_check['scheme'] == 'https'){
|
101 |
$flag=TRUE;
|
102 |
}else{
|
103 |
+
$flag=FALSE;
|
104 |
}
|
105 |
|
106 |
if($flag == TRUE){
|
117 |
<span class='apss-social-text'><?php _e( 'Share on Facebook', 'accesspress-social-share' ); ?></span>
|
118 |
<span class='apss-share'><?php _e( 'Share', 'accesspress-social-share' ); ?></span>
|
119 |
</div>
|
120 |
+
<?php
|
121 |
+
if ( isset( $counter_enable_options ) && $counter_enable_options == '1' ) { ?>
|
122 |
<div class='count apss-count' data-url='<?php echo $url; ?>' data-social-network='<?php echo $key; ?>' data-social-detail="<?php echo $url . '_' . $key; ?>"><?php echo $count; ?></div>
|
123 |
+
<?php
|
124 |
+
} ?>
|
125 |
</a>
|
126 |
</div>
|
127 |
+
<?php
|
128 |
+
break;
|
129 |
|
130 |
+
//counter available for twitter
|
131 |
+
case 'twitter':
|
132 |
+
$url_twitter = $url;
|
133 |
+
$url_twitter = urlencode( $url_twitter );
|
134 |
+
if ( isset( $twitter_user ) && $twitter_user != '' ) {
|
135 |
+
$twitter_user = 'via=' . $twitter_user;
|
136 |
+
}
|
137 |
+
$link = "https://twitter.com/intent/tweet?text=$title&url=$url_twitter&$twitter_user";
|
138 |
+
$count = $this->get_count( $key, $url );
|
139 |
+
|
140 |
+
////////////////////////////////////////
|
141 |
+
if(isset($http_url_checked) && $http_url_checked=='1'){
|
142 |
+
$url_check = parse_url($url);
|
143 |
+
if($url_check['scheme'] == 'https'){
|
144 |
+
$flag=TRUE;
|
145 |
+
}else{
|
146 |
+
$flag=FALSE;
|
147 |
+
}
|
148 |
|
149 |
+
if($flag == TRUE){
|
150 |
+
$url1 = APSS_Class:: get_http_url($url);
|
151 |
+
$count += APSS_Class:: get_count($key, $url1);
|
152 |
+
}
|
153 |
+
}
|
154 |
+
///////////////////////////////////////////
|
155 |
+
?>
|
156 |
<div class='apss-twitter apss-single-icon'>
|
157 |
<a rel='nofollow' <?php if($apss_link_open_option_value == 2){ ?> onclick="apss_open_in_popup_window(event, '<?php echo $link; ?>');" href='javascript:void(0);' <?php }else{ ?> href="<?php echo $link; ?>" <?php } ?> title='<?php _e( 'Share on Twitter', 'accesspress-social-share' ); ?>' target='<?php echo $apss_link_open_option; ?>'>
|
158 |
<div class='apss-icon-block clearfix'>
|
164 |
<?php } ?>
|
165 |
</a>
|
166 |
</div>
|
167 |
+
<?php
|
168 |
+
break;
|
169 |
|
170 |
+
//counter available for google plus
|
171 |
+
case 'google-plus':
|
172 |
+
$link = 'https://plus.google.com/share?url=' . $url;
|
173 |
+
$count = $this->get_count( $key, $url );
|
174 |
|
175 |
+
////////////////////////////////////////
|
176 |
+
if(isset($http_url_checked) && $http_url_checked=='1'){
|
177 |
+
$url_check = parse_url($url);
|
178 |
+
if($url_check['scheme'] == 'https'){
|
179 |
+
$flag=TRUE;
|
180 |
+
}else{
|
181 |
+
$flag=FALSE;
|
182 |
+
}
|
183 |
|
184 |
+
if($flag == TRUE){
|
185 |
+
$url1 = APSS_Class:: get_http_url($url);
|
186 |
+
$count += APSS_Class:: get_count($key, $url1);
|
187 |
+
}
|
188 |
+
}
|
189 |
+
///////////////////////////////////////////
|
190 |
|
191 |
+
?>
|
192 |
<div class='apss-google-plus apss-single-icon'>
|
193 |
<a rel='nofollow' <?php if($apss_link_open_option_value == 2){ ?> onclick="apss_open_in_popup_window(event, '<?php echo $link; ?>');" <?php } ?> title='<?php _e( 'Share on Google Plus', 'accesspress-social-share' ); ?>' target='<?php echo $apss_link_open_option; ?>' href='<?php echo $link; ?>'>
|
194 |
<div class='apss-icon-block clearfix'>
|
196 |
<span class='apss-social-text'><?php _e( 'Share on Google Plus', 'accesspress-social-share' ); ?> </span>
|
197 |
<span class='apss-share'><?php _e( 'Share', 'accesspress-social-share' ); ?></span>
|
198 |
</div>
|
199 |
+
<?php
|
200 |
+
if ( isset( $counter_enable_options ) && $counter_enable_options == '1' ) { ?>
|
201 |
<div class='count apss-count' data-url='<?php echo $url; ?>' data-social-network='<?php echo $key; ?>' data-social-detail="<?php echo $url . '_' . $key; ?>"><?php echo $count; ?></div>
|
202 |
+
<?php
|
203 |
+
} ?>
|
204 |
</a>
|
205 |
</div>
|
206 |
+
<?php
|
207 |
+
break;
|
208 |
|
209 |
+
//counter available for pinterest
|
210 |
+
case 'pinterest':
|
211 |
+
$count = $this->get_count( $key, $url );
|
212 |
+
////////////////////////////////////////
|
213 |
+
if(isset($http_url_checked) && $http_url_checked=='1'){
|
214 |
+
$url_check = parse_url($url);
|
215 |
+
if($url_check['scheme'] == 'https'){
|
216 |
+
$flag=TRUE;
|
217 |
+
}else{
|
218 |
+
$flag=FALSE;
|
219 |
+
}
|
220 |
|
221 |
+
if($flag == TRUE){
|
222 |
+
$url1 = APSS_Class:: get_http_url($url);
|
223 |
+
$count += APSS_Class:: get_count($key, $url1);
|
224 |
+
}
|
225 |
+
}
|
226 |
+
///////////////////////////////////////////
|
227 |
+
?>
|
228 |
<div class='apss-pinterest apss-single-icon'>
|
229 |
<a rel='nofollow' title='<?php _e( 'Share on Pinterest', 'accesspress-social-share' ); ?>' href='javascript:pinIt();'>
|
230 |
<div class='apss-icon-block clearfix'>
|
232 |
<span class='apss-social-text'><?php _e( 'Share on Pinterest', 'accesspress-social-share' ); ?></span>
|
233 |
<span class='apss-share'><?php _e( 'Share', 'accesspress-social-share' ); ?></span>
|
234 |
</div>
|
235 |
+
<?php
|
236 |
+
if ( isset( $counter_enable_options ) && $counter_enable_options == '1' ) { ?>
|
237 |
<div class='count apss-count' data-url='<?php echo $url; ?>' data-social-network='<?php echo $key; ?>' data-social-detail="<?php echo $url . '_' . $key; ?>"><?php echo $count; ?></div>
|
238 |
+
<?php
|
239 |
+
} ?>
|
240 |
</a>
|
241 |
</div>
|
242 |
+
<?php
|
243 |
+
break;
|
244 |
|
245 |
+
//couter available for linkedin
|
246 |
+
case 'linkedin':
|
247 |
+
$link = "http://www.linkedin.com/shareArticle?mini=true&title=" . $title . "&url=" . $url . "&summary=" . $excerpt;
|
248 |
+
$count = $this->get_count( $key, $url );
|
249 |
+
////////////////////////////////////////
|
250 |
+
if(isset($http_url_checked) && $http_url_checked=='1'){
|
251 |
+
$url_check = parse_url($url);
|
252 |
+
if($url_check['scheme'] == 'https'){
|
253 |
+
$flag=TRUE;
|
254 |
+
}else{
|
255 |
+
$flag=FALSE;
|
256 |
+
}
|
257 |
|
258 |
+
if($flag == TRUE){
|
259 |
+
$url1 = APSS_Class:: get_http_url($url);
|
260 |
+
$count += APSS_Class:: get_count($key, $url1);
|
261 |
+
}
|
262 |
+
}
|
263 |
+
///////////////////////////////////////////
|
264 |
+
?>
|
265 |
<div class='apss-linkedin apss-single-icon'>
|
266 |
<a rel='nofollow' <?php if($apss_link_open_option_value == 2){ ?> onclick="apss_open_in_popup_window(event, '<?php echo $link; ?>');" <?php } ?> title='<?php _e( 'Share on LinkedIn', 'accesspress-social-share' ); ?>' target='<?php echo $apss_link_open_option; ?>' href='<?php echo $link; ?>'>
|
267 |
<div class='apss-icon-block clearfix'><i class='fa fa-linkedin'></i>
|
269 |
<span class='apss-share'><?php _e( 'Share', 'accesspress-social-share' ); ?></span>
|
270 |
</div>
|
271 |
|
272 |
+
<?php
|
273 |
+
if ( isset( $counter_enable_options ) && $counter_enable_options == '1' ) { ?>
|
274 |
<div class='count apss-count' data-url='<?php echo $url; ?>' data-social-network='<?php echo $key; ?>' data-social-detail="<?php echo $url . '_' . $key; ?>"><?php echo $count; ?></div>
|
275 |
+
<?php
|
276 |
+
} ?>
|
277 |
|
278 |
</a>
|
279 |
</div>
|
280 |
+
<?php
|
281 |
+
break;
|
282 |
|
283 |
+
//there is no counter available for digg
|
284 |
+
case 'digg':
|
285 |
+
$link = "http://digg.com/submit?phase=2%20&url=" . $url . "&title=" . $title;
|
286 |
+
?>
|
287 |
<div class='apss-digg apss-single-icon'>
|
288 |
<a rel='nofollow' <?php if($apss_link_open_option_value == 2){ ?> onclick="apss_open_in_popup_window(event, '<?php echo $link; ?>');" <?php } ?> title='<?php _e( 'Share on Digg', 'accesspress-social-share' ); ?>' target='<?php echo $apss_link_open_option; ?>' href='<?php echo $link; ?>'>
|
289 |
<div class='apss-icon-block clearfix'>
|
293 |
</div>
|
294 |
</a>
|
295 |
</div>
|
296 |
+
<?php
|
|
|
297 |
break;
|
298 |
|
299 |
+
case 'email':
|
300 |
+
if ( strpos( $options['apss_email_body'], '%%' ) || strpos( $options['apss_email_subject'], '%%' ) ) {
|
301 |
+
$link = 'mailto:?subject=' . $options['apss_email_subject'] . '&body=' . $options['apss_email_body'];
|
302 |
+
$link = preg_replace( array( '#%%title%%#', '#%%siteurl%%#', '#%%permalink%%#', '#%%url%%#' ), array( $title, get_site_url(), get_permalink(), $url ), $link );
|
303 |
+
} else {
|
304 |
+
$link = 'mailto:?subject=' . $options['apss_email_subject'] . '&body=' . $options['apss_email_body'] . ": " . $url;
|
305 |
+
}
|
306 |
+
?>
|
307 |
<div class='apss-email apss-single-icon'>
|
308 |
<a rel='nofollow' class='share-email-popup' title='<?php _e( 'Share it on Email', 'accesspress-social-share' ); ?>' target='<?php echo $apss_link_open_option; ?>' href='<?php echo $link; ?>'>
|
309 |
<div class='apss-icon-block clearfix'>
|
313 |
</div>
|
314 |
</a>
|
315 |
</div>
|
316 |
+
<?php
|
|
|
317 |
break;
|
318 |
|
319 |
+
case 'print':
|
320 |
+
?>
|
321 |
<div class='apss-print apss-single-icon'>
|
322 |
<a rel='nofollow' title='<?php _e( 'Print', 'accesspress-social-share' ); ?>' href='javascript:void(0);' onclick='window.print(); return false;'>
|
323 |
<div class='apss-icon-block clearfix'><i class='fa fa-print'></i>
|
326 |
</div>
|
327 |
</a>
|
328 |
</div>
|
329 |
+
<?php
|
330 |
break;
|
331 |
+
}
|
332 |
}
|
333 |
}
|
|
|
334 |
|
335 |
+
do_action('apss_more_networks_in_shortcodes');
|
336 |
+
|
337 |
+
if ( isset( $total_counter_enable_options ) && $total_counter_enable_options == '1' ) {
|
338 |
+
?>
|
339 |
<div class='apss-total-share-count'>
|
340 |
<span class='apss-count-number'><?php echo $total_count; ?></span>
|
341 |
<div class="apss-total-shares"><span class='apss-total-text'><?php echo _e( ' Total', 'accesspress-social-share' ); ?></span>
|
342 |
<span class='apss-shares-text'><?php echo _e( ' Shares', 'accesspress-social-share' ); ?></span></div>
|
343 |
</div>
|
344 |
+
<?php
|
345 |
+
} ?>
|
346 |
</div>
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: social share counter, social share, social media share, social network sha
|
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.7
|
7 |
-
Stable tag: 4.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -141,6 +141,9 @@ Yes. You can use the AccessPress social share by using shortcode anywhere you wa
|
|
141 |
6. Backend Miscellaneous Settings Section
|
142 |
|
143 |
== Changelog ==
|
|
|
|
|
|
|
144 |
= 4.2.8 =
|
145 |
* Done the bug fixings for the url encoding issue for the linkedin share summary text.
|
146 |
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.7
|
7 |
+
Stable tag: 4.2.9
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
141 |
6. Backend Miscellaneous Settings Section
|
142 |
|
143 |
== Changelog ==
|
144 |
+
= 4.2.9 =
|
145 |
+
* Addition of do_action hooks to make users add more social networks if they need it. You can use add_action using these tags for 'apss_more_networks' in content and 'apss_more_networks_in_shortcodes' for shortcode.
|
146 |
+
|
147 |
= 4.2.8 =
|
148 |
* Done the bug fixings for the url encoding issue for the linkedin share summary text.
|
149 |
|