Social Share WordPress Plugin – AccessPress Social Share - Version 4.5.4

Version Description

  • Few code refinement
Download this release

Release Info

Developer Access Keys
Plugin Icon 128x128 Social Share WordPress Plugin – AccessPress Social Share
Version 4.5.4
Comparing to
See all releases

Code changes from version 4.5.3 to 4.5.4

accesspress-social-share.php CHANGED
@@ -4,7 +4,7 @@ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
4
  Plugin name: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.5.3
8
  Author: AccessPress Themes
9
  Author URI: http://accesspressthemes.com
10
  Text Domain: accesspress-social-share
@@ -35,7 +35,7 @@ if ( ! defined( 'APSS_LANG_DIR' ) ) {
35
  }
36
 
37
  if ( ! defined( 'APSS_VERSION' ) ) {
38
- define( 'APSS_VERSION', '4.5.3' );
39
  }
40
 
41
  if ( ! defined( 'APSS_TEXT_DOMAIN' ) ) {
4
  Plugin name: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.5.4
8
  Author: AccessPress Themes
9
  Author URI: http://accesspressthemes.com
10
  Text Domain: accesspress-social-share
35
  }
36
 
37
  if ( ! defined( 'APSS_VERSION' ) ) {
38
+ define( 'APSS_VERSION', '4.5.4' );
39
  }
40
 
41
  if ( ! defined( 'APSS_TEXT_DOMAIN' ) ) {
inc/backend/about-apss.php CHANGED
@@ -13,7 +13,7 @@
13
  </p>
14
  <div class="halfseperator"></div>
15
  <p><strong><?php _e( 'If you like to buy premium version of this plugin please check here:', 'accesspress-social-share' ); ?></strong><br />
16
- <a href="<?php echo APSS_PRO_LINK; ?>" target="_blank"><?php echo APSS_PRO_LINK; ?></a>
17
  </p>
18
  <div class="halfseperator"></div>
19
  <p><strong><?php _e( 'Feature comparison between free and premium plugin is here:', 'accesspress-social-share' ); ?></strong><br />
13
  </p>
14
  <div class="halfseperator"></div>
15
  <p><strong><?php _e( 'If you like to buy premium version of this plugin please check here:', 'accesspress-social-share' ); ?></strong><br />
16
+ <a href="<?php echo esc_attr(APSS_PRO_LINK); ?>" target="_blank"><?php echo esc_attr(APSS_PRO_LINK); ?></a>
17
  </p>
18
  <div class="halfseperator"></div>
19
  <p><strong><?php _e( 'Feature comparison between free and premium plugin is here:', 'accesspress-social-share' ); ?></strong><br />
inc/backend/how-to-use.php CHANGED
@@ -21,8 +21,8 @@
21
  <li><i class="fa fa-check"></i><?php _e( 'You can setup the twitter username.', 'accesspress-social-share' ); ?></li>
22
  <li><i class="fa fa-check"></i><?php _e( 'You can enable/disable the social counter.', 'accesspress-social-share' ); ?></li>
23
  <li><i class="fa fa-check"></i><?php _e( 'Share link - You can enable the share options either in new tab/window or in same widow.', 'accesspress-social-share' ); ?></li>
24
- <li><i class="fa fa-check"></i>Cache settings - Here you can set the cache settings of the social share counter in hour format.','accesspress-social-share'); ?></li>
25
- <li><i class="fa fa-check"></i>Email settings - If you have enabled the email settings you can setup the email header and body part.','accesspress-social-share'); ?></li>
26
  </ul>
27
  </p></dd>
28
  <dt><strong>Shortcode</strong></dt>
@@ -39,24 +39,24 @@
39
  <li><i class = "fa fa-check"></i><?php _e( "custom_share_link : You can enter the custom share link in case if the link provided by shortcode is not as per your need. To enable the custom share link use custom_share_link = 'custom link as per your need.'", "accesspress-social-share" ); ?></li>
40
  <li><i class = 'fa fa-check'></i><?php _e( "http_count: You can set this option if you have moved your site from HTTP to HTTPS to show the share counts from your old http site as well. Please note that the share count will fetch if your site has been moved from HTTP to HTTPS eg if your old site was http://example.com and you have moved your site to https://example.com. But please not that if you have changed other url parameters then the count will not work for example if your old page slug was http://example.com/sample-page and you have changed it to https://example.com/sample-page-1 then the share counts will not work for old url.", "accesspress-social-share" ); ?></li>
41
  </ul>
42
- <li><i class = "fa fa-check"></i>Example 1.1: <code>[ apss_share networks = 'facebook, twitter, pinterest' share_text = 'Share it' counter = '1' total_counter = '1' http_count = '1' ]</code></li>
43
  </ul>
44
  </p></dd>
45
  <dd>
46
  <p><?php _e( "You can use the below shortcode to display the share counts number only in the content using shortcode. You can wrap that number in your reqired html tags and use it as per your need. The share count displayed will be the sum of entered network attributes.", "accesspress-social-share" ); ?>
47
  <ul class = "how-list">
48
- <li><li><i class = "fa fa-check"></i>Example 2: <code>[ apss_count ]</code></li></li>
49
  <li><?php _e( 'Available Parameters', 'accesspress-social-share' ); ?>
50
  <ul>
51
  <li><i class = "fa fa-check"></i><?php _e( "network : You can define which social medias to show total share counts. You need to enter the networks name in string in comma separated values. You need to enter at least one network attribute.", "accesspress-social-share" ); ?></li>
52
  <li><?php _e( "Available network parameters are: facebook, twitter, pinterest, linkedin", "accesspress-social-share" ); ?></li>
53
- <li><?php _e( "Example 2.1:", "accesspress-social-share" ); ?> <code>[ apss_count network = 'facebook, pinterest' ]</code></li>
54
  <li><?php _e( "This will show the sum of share counts from facebook and pinterest.", "accesspress-social-shares" ); ?></li>
55
  </ul>
56
  <ul>
57
  <li><i class = "fa fa-check"></i><?php _e( 'custom_url_link', 'accesspress-social-share' ); ?></li>
58
  <li><?php _e( 'Now you can use attribute "custom_url_link" to fetch the share counts for custom url as well.', 'accesspress-social-share' ); ?></li>
59
- <li><?php _e( "Example 2.2:", "accesspress-social-share" ); ?> <code>[ apss_count network = 'facebook, pinterest' custom_url_link = '<?php echo site_url( 'sample-page' ); ?>' ]</code></li>
60
  <li><?php _e( "This attribute is useful in case if the shortcode is not fetching the share counts for shortcode placed url and force the shortcode to use the url from the attribute defined in custom_url_link.", "accesspress-social-share" ); ?></li>
61
  </ul>
62
  </li>
@@ -64,7 +64,7 @@
64
  </p>
65
  </dd>
66
  <dd>
67
- <p><b><?php _e( "For now you can use shortcode", "accesspress-social-share" ); ?> [ apss-share ] and [ apss-count ]<?php _e( "for the display of the social shares and counts only as well but in upcoming plugin updates this shortcode will be removed and use the new one. So we suggest to use only the new shortcodes.", "accesspress-social-share" ); ?></b></p>
68
  </dd>
69
  <dd>
70
  <p><?php _e( 'For the complete documentation please visit:', 'accesspress-social-share' ); ?><br /> <a href = 'https://accesspressthemes.com/documentation/documentation-plugin-instruction-accesspress-social-share/' target = "_blank">https://accesspressthemes.com/documentation/documentation-plugin-instruction-accesspress-social-share/</a> </p>
21
  <li><i class="fa fa-check"></i><?php _e( 'You can setup the twitter username.', 'accesspress-social-share' ); ?></li>
22
  <li><i class="fa fa-check"></i><?php _e( 'You can enable/disable the social counter.', 'accesspress-social-share' ); ?></li>
23
  <li><i class="fa fa-check"></i><?php _e( 'Share link - You can enable the share options either in new tab/window or in same widow.', 'accesspress-social-share' ); ?></li>
24
+ <li><i class="fa fa-check"></i><?php _e( 'Cache settings - Here you can set the cache settings of the social share counter in hour format.','accesspress-social-share'); ?></li>
25
+ <li><i class="fa fa-check"></i><?php _e( 'Email settings - If you have enabled the email settings you can setup the email header and body part.','accesspress-social-share'); ?></li>
26
  </ul>
27
  </p></dd>
28
  <dt><strong>Shortcode</strong></dt>
39
  <li><i class = "fa fa-check"></i><?php _e( "custom_share_link : You can enter the custom share link in case if the link provided by shortcode is not as per your need. To enable the custom share link use custom_share_link = 'custom link as per your need.'", "accesspress-social-share" ); ?></li>
40
  <li><i class = 'fa fa-check'></i><?php _e( "http_count: You can set this option if you have moved your site from HTTP to HTTPS to show the share counts from your old http site as well. Please note that the share count will fetch if your site has been moved from HTTP to HTTPS eg if your old site was http://example.com and you have moved your site to https://example.com. But please not that if you have changed other url parameters then the count will not work for example if your old page slug was http://example.com/sample-page and you have changed it to https://example.com/sample-page-1 then the share counts will not work for old url.", "accesspress-social-share" ); ?></li>
41
  </ul>
42
+ <li><i class = "fa fa-check"></i>Example 1.1: <code>[apss_share networks = 'facebook, twitter, pinterest' share_text = 'Share it' counter = '1' total_counter = '1' http_count = '1' ]</code></li>
43
  </ul>
44
  </p></dd>
45
  <dd>
46
  <p><?php _e( "You can use the below shortcode to display the share counts number only in the content using shortcode. You can wrap that number in your reqired html tags and use it as per your need. The share count displayed will be the sum of entered network attributes.", "accesspress-social-share" ); ?>
47
  <ul class = "how-list">
48
+ <li><li><i class = "fa fa-check"></i>Example 2: <code>[apss_count]</code></li></li>
49
  <li><?php _e( 'Available Parameters', 'accesspress-social-share' ); ?>
50
  <ul>
51
  <li><i class = "fa fa-check"></i><?php _e( "network : You can define which social medias to show total share counts. You need to enter the networks name in string in comma separated values. You need to enter at least one network attribute.", "accesspress-social-share" ); ?></li>
52
  <li><?php _e( "Available network parameters are: facebook, twitter, pinterest, linkedin", "accesspress-social-share" ); ?></li>
53
+ <li><?php _e( "Example 2.1:", "accesspress-social-share" ); ?> <code>[apss_count network = 'facebook, pinterest' ]</code></li>
54
  <li><?php _e( "This will show the sum of share counts from facebook and pinterest.", "accesspress-social-shares" ); ?></li>
55
  </ul>
56
  <ul>
57
  <li><i class = "fa fa-check"></i><?php _e( 'custom_url_link', 'accesspress-social-share' ); ?></li>
58
  <li><?php _e( 'Now you can use attribute "custom_url_link" to fetch the share counts for custom url as well.', 'accesspress-social-share' ); ?></li>
59
+ <li><?php _e( "Example 2.2:", "accesspress-social-share" ); ?> <code>[apss_count network = 'facebook, pinterest' custom_url_link = '<?php echo esc_url(site_url( 'sample-page' )); ?>' ]</code></li>
60
  <li><?php _e( "This attribute is useful in case if the shortcode is not fetching the share counts for shortcode placed url and force the shortcode to use the url from the attribute defined in custom_url_link.", "accesspress-social-share" ); ?></li>
61
  </ul>
62
  </li>
64
  </p>
65
  </dd>
66
  <dd>
67
+ <p><b><?php _e( "For now you can use shortcode", "accesspress-social-share" ); ?> [apss-share] and [apss-count]<?php _e( "for the display of the social shares and counts only as well but in upcoming plugin updates this shortcode will be removed and use the new one. So we suggest to use only the new shortcodes.", "accesspress-social-share" ); ?></b></p>
68
  </dd>
69
  <dd>
70
  <p><?php _e( 'For the complete documentation please visit:', 'accesspress-social-share' ); ?><br /> <a href = 'https://accesspressthemes.com/documentation/documentation-plugin-instruction-accesspress-social-share/' target = "_blank">https://accesspressthemes.com/documentation/documentation-plugin-instruction-accesspress-social-share/</a> </p>
inc/backend/main-page.php CHANGED
@@ -3,7 +3,7 @@
3
  <div class="apss-wrapper-block">
4
  <div class="apss-setting-header clearfix">
5
  <div class="apss-headerlogo">
6
- <img src="<?php echo APSS_IMAGE_DIR; ?>/logo-old.png" alt="<?php esc_attr_e( 'AccessPress Social Share', 'accesspress-social-share' ); ?>" />
7
  </div>
8
  <div class="apss-header-icons">
9
  <p><?php _e( 'Follow us for new updates' ); ?></p>
@@ -208,7 +208,7 @@
208
  if ( $options[ 'social_icon_set' ] == $i ) {
209
  echo "checked='checked'";
210
  }
211
- ?> ><label for="apss_icon_set_<?php echo $i; ?>"><span class="apss_demo_icon apss_demo_icons_<?php echo $i; ?>"></span><?php _e( "Theme $i", 'accesspress-social-share' ); ?><div class="apss-theme-image"><img src='<?php echo APSS_IMAGE_DIR . "/theme/theme$i.jpg"; ?>'/></div></label></p>
212
  <?php } ?>
213
  </div>
214
  <?php include( APSS_PATH . '/inc/backend/save-button.php') ?>
@@ -240,7 +240,7 @@
240
  <label><?php _e( 'Share text:', 'accesspress-social-share' ); ?></label>
241
  <input type="text" name="apss_share_settings[share_text]" value="<?php
242
  if ( isset( $options[ 'share_text' ] ) ) {
243
- echo $options[ 'share_text' ];
244
  }
245
  ?>" />
246
  <div class="apss_notes_cache_settings">
@@ -249,7 +249,7 @@
249
  </div>
250
  <div class="apss_input_wrapper apss-twitter-settings clearfix">
251
  <label><?php _e( 'Twitter username:', 'accesspress-social-share' ); ?></label>
252
- <input type="text" name="apss_share_settings[twitter_username]" value="<?php echo $options[ 'twitter_username' ]; ?>" />
253
  </div>
254
 
255
  <div class="apss-counter-settings clearfix">
@@ -294,7 +294,7 @@
294
  }
295
  ?> />
296
  <label for="apss_twitter_counter_option_1"><?php _e( 'Use', 'accesspress-social-share' ); ?> <a href='http://newsharecounts.com' target='_blank'>NewShareCounts</a><?php _e( ' to show Twitter share counts', 'accesspress-social-share' ); ?></label>
297
- <div class="apss_notes_cache_settings"> To use newsharecount public API, you have to enter your website url <?php echo site_url(); ?> and sign in using Twitter at their <a href='http://newsharecounts.com/' target='_blank'>website</a>.</div>
298
  </div>
299
 
300
  <div class='apss-counter-api'>
@@ -305,7 +305,7 @@
305
  }
306
  }
307
  ?> /><label for="apss_twitter_counter_option_2"><?php _e( 'Use', 'accesspress-social-share' ); ?> <a href=' http://opensharecount.com/' target='_blank'>OpenShareCount</a><?php _e( ' to show Twitter share counts', 'accesspress-social-share' ); ?></label>
308
- <div class="apss_notes_cache_settings"> To use opensharecount public API, you have to sign up and register your website url <?php echo site_url(); ?> at their <a href='http://opensharecount.com/' target='_blank'>website</a>. </div>
309
  </div>
310
  <div class="apss_notes_cache_settings"> Note: If you switch the API please don't forget to clear cache for fetching new share counts.</div>
311
 
@@ -314,7 +314,7 @@
314
  <div class='apss_input_wrapper'>
315
  <label for=apss_facebook_app_id"">APP ID: </label><input type='text' id="apss_facebook_app_id" name='apss_share_settings[api_configuration][facebook][app_id]' value="<?php
316
  if ( isset( $options[ 'api_configuration' ][ 'facebook' ][ 'app_id' ] ) ) {
317
- echo $options[ 'api_configuration' ][ 'facebook' ][ 'app_id' ];
318
  }
319
  ?>" />
320
  <div class="apss_notes_cache_settings">Please go to <a href="https://developers.facebook.com/" target="_blank">https://developers.facebook.com/</a> and create an app and get the App ID.</div>
@@ -322,7 +322,7 @@
322
  <div class='apss_input_wrapper'>
323
  <label for=apss_facebook_app_secret"">APP Secret: </label><input type='text' id="apss_facebook_app_secret" name='apss_share_settings[api_configuration][facebook][app_secret]' value="<?php
324
  if ( isset( $options[ 'api_configuration' ][ 'facebook' ][ 'app_secret' ] ) ) {
325
- echo $options[ 'api_configuration' ][ 'facebook' ][ 'app_secret' ];
326
  }
327
  ?>" style="width:285px;" />
328
  <div class="apss_notes_cache_settings">Please go to <a href="https://developers.facebook.com/" target="_blank">https://developers.facebook.com/</a> and create an app and get the App Secret.</div>
@@ -418,7 +418,7 @@
418
  <label for="apss_cache_settings"><?php _e( 'Cache Period:', 'accesspress-social-share' ); ?></label>
419
  <input type='text' id="apss_cache_period" name='apss_share_settings[cache_settings]' value="<?php
420
  if ( isset( $options[ 'cache_period' ] ) ) {
421
- echo $options[ 'cache_period' ];
422
  }
423
  ?>" onkeyup="removeMe('invalid_cache_period');" style='width:50px;'/>
424
  <span class="error invalid_cache_period"></span>
@@ -430,11 +430,11 @@
430
  <h4><?php _e( 'Email Settings:', 'accesspress-social-share' ); ?></h4>
431
  <div class="app-email-sub email-setg">
432
  <label for='apss-email-subject'><?php _e( 'Email subject:', 'accesspress-social-share' ); ?></label>
433
- <input type='text' name="apss_share_settings[apss_email_subject]" value="<?php echo $options[ 'apss_email_subject' ] ?>" style='width:325px;'/>
434
  </div>
435
  <div class="app-email-body email-setg">
436
  <label for='apss-email-body'><?php _e( 'Email body:', 'accesspress-social-share' ); ?></label>
437
- <textarea rows='30' cols='30' name="apss_share_settings[apss_email_body]"><?php echo $options[ 'apss_email_body' ] ?></textarea>
438
  </div>
439
  <div class="apss_notes_cache_settings">
440
  Available parameters: <br />
@@ -454,22 +454,22 @@
454
  </form>
455
  </div>
456
  <div class="apss-upgrade-wrapper">
457
- <a href="<?php echo APSS_PRO_LINK ?>" target="_blank">
458
- <img src="<?php echo APSS_IMAGE_DIR . '/upgrade-to-pro/upgrade-to-pro.png' ?>" style="width:100%;">
459
  </a>
460
 
461
  <div class="apss-upgrade-button-wrap-backend">
462
 
463
- <a href="<?php echo APSS_PRO_DEMO; ?>" class="smls-demo-btn" target="_blank">Demo</a>
464
 
465
- <a href="<?php echo APSS_PRO_LINK; ?>" target="_blank" class="smls-upgrade-btn">Upgrade</a>
466
 
467
- <a href="<?php echo APSS_PRO_DETAIL; ?>" target="_blank" class="smls-upgrade-btn">Plugin Information</a>
468
 
469
  </div>
470
 
471
- <a href="<?php echo APSS_PRO_LINK ?>" target="_blank">
472
- <img src="<?php echo APSS_IMAGE_DIR; ?>/upgrade-to-pro/upgrade-to-pro-feature.png" alt="<?php _e( 'AccessPress Social Pro', 'accesspress-social-share' ); ?>" style="width:100%;">
473
  </a>
474
  </div>
475
  </div>
3
  <div class="apss-wrapper-block">
4
  <div class="apss-setting-header clearfix">
5
  <div class="apss-headerlogo">
6
+ <img src="<?php echo esc_attr(APSS_IMAGE_DIR); ?>/logo-old.png" alt="<?php esc_attr_e( 'AccessPress Social Share', 'accesspress-social-share' ); ?>" />
7
  </div>
8
  <div class="apss-header-icons">
9
  <p><?php _e( 'Follow us for new updates' ); ?></p>
208
  if ( $options[ 'social_icon_set' ] == $i ) {
209
  echo "checked='checked'";
210
  }
211
+ ?> ><label for="apss_icon_set_<?php echo $i; ?>"><span class="apss_demo_icon apss_demo_icons_<?php echo $i; ?>"></span><?php _e( "Theme $i", 'accesspress-social-share' ); ?><div class="apss-theme-image"><img src='<?php echo esc_attr(APSS_IMAGE_DIR) . "/theme/theme$i.jpg"; ?>'/></div></label></p>
212
  <?php } ?>
213
  </div>
214
  <?php include( APSS_PATH . '/inc/backend/save-button.php') ?>
240
  <label><?php _e( 'Share text:', 'accesspress-social-share' ); ?></label>
241
  <input type="text" name="apss_share_settings[share_text]" value="<?php
242
  if ( isset( $options[ 'share_text' ] ) ) {
243
+ echo esc_attr($options[ 'share_text' ]);
244
  }
245
  ?>" />
246
  <div class="apss_notes_cache_settings">
249
  </div>
250
  <div class="apss_input_wrapper apss-twitter-settings clearfix">
251
  <label><?php _e( 'Twitter username:', 'accesspress-social-share' ); ?></label>
252
+ <input type="text" name="apss_share_settings[twitter_username]" value="<?php echo esc_attr($options[ 'twitter_username' ]); ?>" />
253
  </div>
254
 
255
  <div class="apss-counter-settings clearfix">
294
  }
295
  ?> />
296
  <label for="apss_twitter_counter_option_1"><?php _e( 'Use', 'accesspress-social-share' ); ?> <a href='http://newsharecounts.com' target='_blank'>NewShareCounts</a><?php _e( ' to show Twitter share counts', 'accesspress-social-share' ); ?></label>
297
+ <div class="apss_notes_cache_settings"> To use newsharecount public API, you have to enter your website url <?php echo esc_url(site_url()); ?> and sign in using Twitter at their <a href='http://newsharecounts.com/' target='_blank'>website</a>.</div>
298
  </div>
299
 
300
  <div class='apss-counter-api'>
305
  }
306
  }
307
  ?> /><label for="apss_twitter_counter_option_2"><?php _e( 'Use', 'accesspress-social-share' ); ?> <a href=' http://opensharecount.com/' target='_blank'>OpenShareCount</a><?php _e( ' to show Twitter share counts', 'accesspress-social-share' ); ?></label>
308
+ <div class="apss_notes_cache_settings"> To use opensharecount public API, you have to sign up and register your website url <?php echo esc_url(site_url()); ?> at their <a href='http://opensharecount.com/' target='_blank'>website</a>. </div>
309
  </div>
310
  <div class="apss_notes_cache_settings"> Note: If you switch the API please don't forget to clear cache for fetching new share counts.</div>
311
 
314
  <div class='apss_input_wrapper'>
315
  <label for=apss_facebook_app_id"">APP ID: </label><input type='text' id="apss_facebook_app_id" name='apss_share_settings[api_configuration][facebook][app_id]' value="<?php
316
  if ( isset( $options[ 'api_configuration' ][ 'facebook' ][ 'app_id' ] ) ) {
317
+ echo esc_attr($options[ 'api_configuration' ][ 'facebook' ][ 'app_id' ]);
318
  }
319
  ?>" />
320
  <div class="apss_notes_cache_settings">Please go to <a href="https://developers.facebook.com/" target="_blank">https://developers.facebook.com/</a> and create an app and get the App ID.</div>
322
  <div class='apss_input_wrapper'>
323
  <label for=apss_facebook_app_secret"">APP Secret: </label><input type='text' id="apss_facebook_app_secret" name='apss_share_settings[api_configuration][facebook][app_secret]' value="<?php
324
  if ( isset( $options[ 'api_configuration' ][ 'facebook' ][ 'app_secret' ] ) ) {
325
+ echo esc_attr($options[ 'api_configuration' ][ 'facebook' ][ 'app_secret' ]);
326
  }
327
  ?>" style="width:285px;" />
328
  <div class="apss_notes_cache_settings">Please go to <a href="https://developers.facebook.com/" target="_blank">https://developers.facebook.com/</a> and create an app and get the App Secret.</div>
418
  <label for="apss_cache_settings"><?php _e( 'Cache Period:', 'accesspress-social-share' ); ?></label>
419
  <input type='text' id="apss_cache_period" name='apss_share_settings[cache_settings]' value="<?php
420
  if ( isset( $options[ 'cache_period' ] ) ) {
421
+ echo esc_attr($options[ 'cache_period' ]);
422
  }
423
  ?>" onkeyup="removeMe('invalid_cache_period');" style='width:50px;'/>
424
  <span class="error invalid_cache_period"></span>
430
  <h4><?php _e( 'Email Settings:', 'accesspress-social-share' ); ?></h4>
431
  <div class="app-email-sub email-setg">
432
  <label for='apss-email-subject'><?php _e( 'Email subject:', 'accesspress-social-share' ); ?></label>
433
+ <input type='text' name="apss_share_settings[apss_email_subject]" value="<?php echo esc_attr($options[ 'apss_email_subject' ]); ?>" style='width:325px;'/>
434
  </div>
435
  <div class="app-email-body email-setg">
436
  <label for='apss-email-body'><?php _e( 'Email body:', 'accesspress-social-share' ); ?></label>
437
+ <textarea rows='30' cols='30' name="apss_share_settings[apss_email_body]"><?php echo esc_attr($options[ 'apss_email_body' ]); ?></textarea>
438
  </div>
439
  <div class="apss_notes_cache_settings">
440
  Available parameters: <br />
454
  </form>
455
  </div>
456
  <div class="apss-upgrade-wrapper">
457
+ <a href="<?php echo esc_attr(APSS_PRO_LINK); ?>" target="_blank">
458
+ <img src="<?php echo esc_attr(APSS_IMAGE_DIR) . '/upgrade-to-pro/upgrade-to-pro.png' ?>" style="width:100%;">
459
  </a>
460
 
461
  <div class="apss-upgrade-button-wrap-backend">
462
 
463
+ <a href="<?php echo esc_attr(APSS_PRO_DEMO); ?>" class="smls-demo-btn" target="_blank">Demo</a>
464
 
465
+ <a href="<?php echo esc_attr(APSS_PRO_LINK); ?>" target="_blank" class="smls-upgrade-btn">Upgrade</a>
466
 
467
+ <a href="<?php echo esc_attr(APSS_PRO_DETAIL); ?>" target="_blank" class="smls-upgrade-btn">Plugin Information</a>
468
 
469
  </div>
470
 
471
+ <a href="<?php echo esc_attr(APSS_PRO_LINK); ?>" target="_blank">
472
+ <img src="<?php echo esc_attr(APSS_IMAGE_DIR); ?>/upgrade-to-pro/upgrade-to-pro-feature.png" alt="<?php _e( 'AccessPress Social Pro', 'accesspress-social-share' ); ?>" style="width:100%;">
473
  </a>
474
  </div>
475
  </div>
inc/frontend/content-filter.php CHANGED
@@ -32,7 +32,7 @@ if(isset($options['enable_http_count'])){
32
  }
33
  ?>
34
 
35
- <?php if ( isset( $options['share_text'] ) && $options['share_text'] != '' ) { ?> <div class='apss-share-text'><?php echo $options['share_text']; ?></div> <?php } ?>
36
  <?php
37
  $total_count = 0;
38
 
@@ -86,14 +86,14 @@ foreach ( $options['social_networks'] as $key => $value ) {
86
 
87
  ?>
88
  <div class='apss-facebook apss-single-icon'>
89
- <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 Facebook', 'accesspress-social-share' ); ?>" target='<?php echo $apss_link_open_option; ?>' href='<?php echo $link; ?>'>
90
  <div class='apss-icon-block clearfix'>
91
- <i class='<?php echo $facebook;?>'></i>
92
  <span class='apss-social-text'><?php _e( 'Share on Facebook', 'accesspress-social-share' ); ?></span>
93
  <span class='apss-share'><?php _e( 'Share', 'accesspress-social-share' ); ?></span>
94
  </div>
95
  <?php if ( isset( $counter_enable_options ) && $counter_enable_options == '1' ) { ?>
96
- <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>
97
  <?php } ?>
98
  </a>
99
  </div>
@@ -102,7 +102,7 @@ foreach ( $options['social_networks'] as $key => $value ) {
102
 
103
  case 'twitter':
104
  $url_twitter = $url;
105
- $url_twitter = urlencode( $url_twitter );
106
  if ( isset( $twitter_user ) && $twitter_user != '' ) {
107
  $twitter_user = 'via=' . $twitter_user;
108
  }
@@ -128,13 +128,13 @@ foreach ( $options['social_networks'] as $key => $value ) {
128
  }
129
  ?>
130
  <div class='apss-twitter apss-single-icon'>
131
- <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; ?>'>
132
  <div class='apss-icon-block clearfix'>
133
- <i class='<?php echo $twitter;?>'></i>
134
  <span class='apss-social-text'><?php _e( 'Share on Twitter', 'accesspress-social-share' ); ?></span><span class='apss-share'><?php _e( 'Tweet', 'accesspress-social-share' ); ?></span>
135
  </div>
136
  <?php if ( isset( $counter_enable_options ) && $counter_enable_options == '1' && $twitter_api_use !='1' ) { ?>
137
- <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>
138
  <?php } ?>
139
  </a>
140
  </div>
@@ -168,12 +168,12 @@ foreach ( $options['social_networks'] as $key => $value ) {
168
  <div class='apss-pinterest apss-single-icon'>
169
  <a rel='nofollow' title="<?php _e( 'Share on Pinterest', 'accesspress-social-share' ); ?>" href='javascript:pinIt();'>
170
  <div class='apss-icon-block clearfix'>
171
- <i class='<?php echo $pinterest;?>'></i>
172
  <span class='apss-social-text'><?php _e( 'Share on Pinterest', 'accesspress-social-share' ); ?></span>
173
  <span class='apss-share'><?php _e( 'Share', 'accesspress-social-share' ); ?></span>
174
  </div>
175
  <?php if ( isset( $counter_enable_options ) && $counter_enable_options == '1' ) { ?>
176
- <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>
177
  <?php } ?>
178
 
179
  </a>
@@ -206,8 +206,8 @@ foreach ( $options['social_networks'] as $key => $value ) {
206
  }
207
  ?>
208
  <div class='apss-linkedin apss-single-icon'>
209
- <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; ?>'>
210
- <div class='apss-icon-block clearfix'><i class='<?php echo $linkedin;?>'></i>
211
  <span class='apss-social-text'><?php _e( 'Share on LinkedIn', 'accesspress-social-share' ); ?></span>
212
  <span class='apss-share'><?php _e( 'Share', 'accesspress-social-share' ); ?></span>
213
  </div>
@@ -221,9 +221,9 @@ foreach ( $options['social_networks'] as $key => $value ) {
221
  $link = "http://digg.com/submit?phase=2%20&amp;url=" . $url . "&amp;title=" . $title;
222
  ?>
223
  <div class='apss-digg apss-single-icon'>
224
- <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; ?>'>
225
  <div class='apss-icon-block clearfix'>
226
- <i class='<?php echo $digg;?>'></i>
227
  <span class='apss-social-text'><?php _e( 'Share on Digg', 'accesspress-social-share' ); ?></span>
228
  <span class='apss-share'><?php _e( 'Share', 'accesspress-social-share' ); ?></span>
229
  </div>
@@ -242,9 +242,9 @@ foreach ( $options['social_networks'] as $key => $value ) {
242
  }
243
  ?>
244
  <div class='apss-email apss-single-icon'>
245
- <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; ?>'>
246
  <div class='apss-icon-block clearfix'>
247
- <i class='<?php echo $mail;?>'></i>
248
  <span class='apss-social-text'><?php _e( 'Send email', 'accesspress-social-share' ); ?></span>
249
  <span class='apss-share'><?php _e( 'Mail', 'accesspress-social-share' ); ?></span>
250
  </div>
@@ -258,7 +258,7 @@ foreach ( $options['social_networks'] as $key => $value ) {
258
  ?>
259
  <div class='apss-print apss-single-icon'>
260
  <a rel='nofollow' title="<?php _e( 'Print', 'accesspress-social-share' ); ?>" href='javascript:void(0);' onclick='window.print(); return false;'>
261
- <div class='apss-icon-block clearfix'><i class='<?php echo $print;?>'></i>
262
  <span class='apss-social-text'><?php _e( 'Print', 'accesspress-social-share' ); ?></span>
263
  <span class='apss-share'><?php _e( 'Print', 'accesspress-social-share' ); ?></span>
264
  </div>
@@ -275,7 +275,7 @@ do_action('apss_more_networks');
275
  if ( isset( $enable_counter ) && $enable_counter == '1' ) {
276
  ?>
277
  <div class='apss-total-share-count'>
278
- <span class='apss-count-number'><?php echo $total_count; ?></span>
279
  <div class="apss-total-shares"><span class='apss-total-text'><?php echo _e( ' Total', 'accesspress-social-share' ); ?></span>
280
  <span class='apss-shares-text'><?php echo _e( ' Shares', 'accesspress-social-share' ); ?></span></div>
281
  </div>
32
  }
33
  ?>
34
 
35
+ <?php if ( isset( $options['share_text'] ) && $options['share_text'] != '' ) { ?> <div class='apss-share-text'><?php echo esc_attr($options['share_text']); ?></div> <?php } ?>
36
  <?php
37
  $total_count = 0;
38
 
86
 
87
  ?>
88
  <div class='apss-facebook apss-single-icon'>
89
+ <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 Facebook', 'accesspress-social-share' ); ?>" target='<?php echo $apss_link_open_option; ?>' href='<?php echo esc_url($link); ?>'>
90
  <div class='apss-icon-block clearfix'>
91
+ <i class='<?php echo esc_attr($facebook);?>'></i>
92
  <span class='apss-social-text'><?php _e( 'Share on Facebook', 'accesspress-social-share' ); ?></span>
93
  <span class='apss-share'><?php _e( 'Share', 'accesspress-social-share' ); ?></span>
94
  </div>
95
  <?php if ( isset( $counter_enable_options ) && $counter_enable_options == '1' ) { ?>
96
+ <div class='count apss-count' data-url='<?php echo esc_url($url); ?>' data-social-network='<?php echo esc_attr($key); ?>' data-social-detail="<?php echo esc_url($url) . '_' . $key; ?>"><?php echo esc_attr($count); ?></div>
97
  <?php } ?>
98
  </a>
99
  </div>
102
 
103
  case 'twitter':
104
  $url_twitter = $url;
105
+ // $url_twitter = urlencode( $url_twitter );
106
  if ( isset( $twitter_user ) && $twitter_user != '' ) {
107
  $twitter_user = 'via=' . $twitter_user;
108
  }
128
  }
129
  ?>
130
  <div class='apss-twitter apss-single-icon'>
131
+ <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 esc_url($link); ?>" <?php } ?> title="<?php _e( 'Share on Twitter', 'accesspress-social-share' ); ?>" target='<?php echo $apss_link_open_option; ?>'>
132
  <div class='apss-icon-block clearfix'>
133
+ <i class='<?php echo esc_attr($twitter);?>'></i>
134
  <span class='apss-social-text'><?php _e( 'Share on Twitter', 'accesspress-social-share' ); ?></span><span class='apss-share'><?php _e( 'Tweet', 'accesspress-social-share' ); ?></span>
135
  </div>
136
  <?php if ( isset( $counter_enable_options ) && $counter_enable_options == '1' && $twitter_api_use !='1' ) { ?>
137
+ <div class='count apss-count' data-url='<?php echo esc_url($url); ?>' data-social-network='<?php echo esc_attr($key); ?>' data-social-detail="<?php echo esc_url($url) . '_' . $key; ?>"><?php echo esc_attr($count); ?></div>
138
  <?php } ?>
139
  </a>
140
  </div>
168
  <div class='apss-pinterest apss-single-icon'>
169
  <a rel='nofollow' title="<?php _e( 'Share on Pinterest', 'accesspress-social-share' ); ?>" href='javascript:pinIt();'>
170
  <div class='apss-icon-block clearfix'>
171
+ <i class='<?php echo esc_attr($pinterest);?>'></i>
172
  <span class='apss-social-text'><?php _e( 'Share on Pinterest', 'accesspress-social-share' ); ?></span>
173
  <span class='apss-share'><?php _e( 'Share', 'accesspress-social-share' ); ?></span>
174
  </div>
175
  <?php if ( isset( $counter_enable_options ) && $counter_enable_options == '1' ) { ?>
176
+ <div class='count apss-count' data-url='<?php echo esc_url($url); ?>' data-social-network='<?php echo esc_attr($key); ?>' data-social-detail="<?php echo esc_url($url) . '_' . $key; ?>"><?php echo esc_attr($count); ?></div>
177
  <?php } ?>
178
 
179
  </a>
206
  }
207
  ?>
208
  <div class='apss-linkedin apss-single-icon'>
209
+ <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 esc_url($link); ?>'>
210
+ <div class='apss-icon-block clearfix'><i class='<?php echo esc_attr($linkedin);?>'></i>
211
  <span class='apss-social-text'><?php _e( 'Share on LinkedIn', 'accesspress-social-share' ); ?></span>
212
  <span class='apss-share'><?php _e( 'Share', 'accesspress-social-share' ); ?></span>
213
  </div>
221
  $link = "http://digg.com/submit?phase=2%20&amp;url=" . $url . "&amp;title=" . $title;
222
  ?>
223
  <div class='apss-digg apss-single-icon'>
224
+ <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 esc_url($link); ?>'>
225
  <div class='apss-icon-block clearfix'>
226
+ <i class='<?php echo esc_attr($digg);?>'></i>
227
  <span class='apss-social-text'><?php _e( 'Share on Digg', 'accesspress-social-share' ); ?></span>
228
  <span class='apss-share'><?php _e( 'Share', 'accesspress-social-share' ); ?></span>
229
  </div>
242
  }
243
  ?>
244
  <div class='apss-email apss-single-icon'>
245
+ <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 esc_url($link); ?>'>
246
  <div class='apss-icon-block clearfix'>
247
+ <i class='<?php echo esc_attr($mail);?>'></i>
248
  <span class='apss-social-text'><?php _e( 'Send email', 'accesspress-social-share' ); ?></span>
249
  <span class='apss-share'><?php _e( 'Mail', 'accesspress-social-share' ); ?></span>
250
  </div>
258
  ?>
259
  <div class='apss-print apss-single-icon'>
260
  <a rel='nofollow' title="<?php _e( 'Print', 'accesspress-social-share' ); ?>" href='javascript:void(0);' onclick='window.print(); return false;'>
261
+ <div class='apss-icon-block clearfix'><i class='<?php echo esc_attr($print);?>'></i>
262
  <span class='apss-social-text'><?php _e( 'Print', 'accesspress-social-share' ); ?></span>
263
  <span class='apss-share'><?php _e( 'Print', 'accesspress-social-share' ); ?></span>
264
  </div>
275
  if ( isset( $enable_counter ) && $enable_counter == '1' ) {
276
  ?>
277
  <div class='apss-total-share-count'>
278
+ <span class='apss-count-number'><?php echo esc_attr($total_count); ?></span>
279
  <div class="apss-total-shares"><span class='apss-total-text'><?php echo _e( ' Total', 'accesspress-social-share' ); ?></span>
280
  <span class='apss-shares-text'><?php echo _e( ' Shares', 'accesspress-social-share' ); ?></span></div>
281
  </div>
inc/frontend/shortcode.php CHANGED
@@ -71,9 +71,9 @@ if(function_exists( 'is_amp_endpoint' ) && is_amp_endpoint()){
71
  }
72
  if($show_shortcode_content){
73
  ?>
74
- <div class='apss-social-share apss-theme-<?php echo $icon_set_value; ?> clearfix <?php
75
  if( isset( $options[ 'disable_frontend_assets' ] ) && $options[ 'disable_frontend_assets' ] == '0' ){
76
- if ( isset( $apss_share_settings['font_awesome'])) { echo $font_awesome_version;}}?>'>
77
  <?php
78
  $title = trim(str_replace( '+', '%20', urlencode( $post->post_title ) ));
79
  $content = trim(strip_shortcodes( strip_tags( $post->post_content ) ));
@@ -83,7 +83,7 @@ if($show_shortcode_content){
83
  $excerpt = urlencode($content);
84
  }
85
 
86
- if ( isset( $attr['share_text'] ) && $attr['share_text'] != '' ) { ?> <div class='apss-share-text'><?php echo $attr['share_text']; ?></div> <?php } ?>
87
  <?php
88
  $total_count = 0;
89
  foreach ( $options['social_networks'] as $key => $value ) {
@@ -137,15 +137,15 @@ if($show_shortcode_content){
137
 
138
  ?>
139
  <div class='apss-facebook apss-single-icon'>
140
- <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 Facebook', 'accesspress-social-share' ); ?>' target='<?php echo $apss_link_open_option; ?>' href='<?php echo $link; ?>'>
141
  <div class='apss-icon-block clearfix'>
142
- <i class='<?php echo $facebook;?>'></i>
143
  <span class='apss-social-text'><?php _e( 'Share on Facebook', 'accesspress-social-share' ); ?></span>
144
  <span class='apss-share'><?php _e( 'Share', 'accesspress-social-share' ); ?></span>
145
  </div>
146
  <?php
147
  if ( isset( $counter_enable_options ) && $counter_enable_options == '1' ) { ?>
148
- <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>
149
  <?php
150
  } ?>
151
  </a>
@@ -156,7 +156,7 @@ if($show_shortcode_content){
156
  //counter available for twitter
157
  case 'twitter':
158
  $url_twitter = $url;
159
- $url_twitter = urlencode( $url_twitter );
160
  if ( isset( $twitter_user ) && $twitter_user != '' ) {
161
  $twitter_user = 'via=' . $twitter_user;
162
  }
@@ -185,13 +185,13 @@ if($show_shortcode_content){
185
 
186
  ?>
187
  <div class='apss-twitter apss-single-icon'>
188
- <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; ?>'>
189
  <div class='apss-icon-block clearfix'>
190
- <i class='<?php echo $twitter;?>'></i>
191
  <span class='apss-social-text'><?php _e( 'Share on Twitter', 'accesspress-social-share' ); ?></span><span class='apss-share'><?php _e( 'Tweet', 'accesspress-social-share' ); ?></span>
192
  </div>
193
  <?php if ( isset( $counter_enable_options ) && $counter_enable_options == '1' && $twitter_api_use !='1' ) { ?>
194
- <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>
195
  <?php } ?>
196
  </a>
197
  </div>
@@ -225,13 +225,13 @@ if($show_shortcode_content){
225
  <div class='apss-pinterest apss-single-icon'>
226
  <a rel='nofollow' title='<?php _e( 'Share on Pinterest', 'accesspress-social-share' ); ?>' href='javascript:pinIt();'>
227
  <div class='apss-icon-block clearfix'>
228
- <i class='<?php echo $pinterest;?>'></i>
229
  <span class='apss-social-text'><?php _e( 'Share on Pinterest', 'accesspress-social-share' ); ?></span>
230
  <span class='apss-share'><?php _e( 'Share', 'accesspress-social-share' ); ?></span>
231
  </div>
232
  <?php
233
  if ( isset( $counter_enable_options ) && $counter_enable_options == '1' ) { ?>
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
  <?php
236
  } ?>
237
  </a>
@@ -245,8 +245,8 @@ if($show_shortcode_content){
245
 
246
  ?>
247
  <div class='apss-linkedin apss-single-icon'>
248
- <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; ?>'>
249
- <div class='apss-icon-block clearfix'><i class='<?php echo $linkedin;?>'></i>
250
  <span class='apss-social-text'><?php _e( 'Share on LinkedIn', 'accesspress-social-share' ); ?></span>
251
  <span class='apss-share'><?php _e( 'Share', 'accesspress-social-share' ); ?></span>
252
  </div>
@@ -260,9 +260,9 @@ if($show_shortcode_content){
260
  $link = "http://digg.com/submit?phase=2%20&amp;url=" . $url . "&amp;title=" . $title;
261
  ?>
262
  <div class='apss-digg apss-single-icon'>
263
- <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; ?>'>
264
  <div class='apss-icon-block clearfix'>
265
- <i class='<?php echo $digg;?>'></i>
266
  <span class='apss-social-text'><?php _e( 'Share on Digg', 'accesspress-social-share' ); ?></span>
267
  <span class='apss-share'><?php _e( 'Share', 'accesspress-social-share' ); ?></span>
268
  </div>
@@ -280,9 +280,9 @@ if($show_shortcode_content){
280
  }
281
  ?>
282
  <div class='apss-email apss-single-icon'>
283
- <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; ?>'>
284
  <div class='apss-icon-block clearfix'>
285
- <i class='<?php echo $mail;?>'></i>
286
  <span class='apss-social-text'><?php _e( 'Send email', 'accesspress-social-share' ); ?></span>
287
  <span class='apss-share'><?php _e( 'Mail', 'accesspress-social-share' ); ?></span>
288
  </div>
@@ -295,7 +295,7 @@ if($show_shortcode_content){
295
  ?>
296
  <div class='apss-print apss-single-icon'>
297
  <a rel='nofollow' title='<?php _e( 'Print', 'accesspress-social-share' ); ?>' href='javascript:void(0);' onclick='window.print(); return false;'>
298
- <div class='apss-icon-block clearfix'><i class='<?php echo $print;?>'></i>
299
  <span class='apss-social-text'><?php _e( 'Print', 'accesspress-social-share' ); ?></span>
300
  <span class='apss-share'><?php _e( 'Print', 'accesspress-social-share' ); ?></span>
301
  </div>
@@ -312,7 +312,7 @@ if($show_shortcode_content){
312
  if ( isset( $total_counter_enable_options ) && $total_counter_enable_options == '1' ) {
313
  ?>
314
  <div class='apss-total-share-count'>
315
- <span class='apss-count-number'><?php echo $total_count; ?></span>
316
  <div class="apss-total-shares"><span class='apss-total-text'><?php echo _e( ' Total', 'accesspress-social-share' ); ?></span>
317
  <span class='apss-shares-text'><?php echo _e( ' Shares', 'accesspress-social-share' ); ?></span></div>
318
  </div>
71
  }
72
  if($show_shortcode_content){
73
  ?>
74
+ <div class='apss-social-share apss-theme-<?php echo esc_attr($icon_set_value); ?> clearfix <?php
75
  if( isset( $options[ 'disable_frontend_assets' ] ) && $options[ 'disable_frontend_assets' ] == '0' ){
76
+ echo esc_attr($font_awesome_version);}?>'>
77
  <?php
78
  $title = trim(str_replace( '+', '%20', urlencode( $post->post_title ) ));
79
  $content = trim(strip_shortcodes( strip_tags( $post->post_content ) ));
83
  $excerpt = urlencode($content);
84
  }
85
 
86
+ if ( isset( $attr['share_text'] ) && $attr['share_text'] != '' ) { ?> <div class='apss-share-text'><?php echo esc_attr($attr['share_text']); ?></div> <?php } ?>
87
  <?php
88
  $total_count = 0;
89
  foreach ( $options['social_networks'] as $key => $value ) {
137
 
138
  ?>
139
  <div class='apss-facebook apss-single-icon'>
140
+ <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 Facebook', 'accesspress-social-share' ); ?>' target='<?php echo $apss_link_open_option; ?>' href='<?php echo esc_url($link); ?>'>
141
  <div class='apss-icon-block clearfix'>
142
+ <i class='<?php echo esc_attr($facebook);?>'></i>
143
  <span class='apss-social-text'><?php _e( 'Share on Facebook', 'accesspress-social-share' ); ?></span>
144
  <span class='apss-share'><?php _e( 'Share', 'accesspress-social-share' ); ?></span>
145
  </div>
146
  <?php
147
  if ( isset( $counter_enable_options ) && $counter_enable_options == '1' ) { ?>
148
+ <div class='count apss-count' data-url='<?php echo esc_url($url); ?>' data-social-network='<?php echo esc_attr($key); ?>' data-social-detail="<?php echo esc_url($url) . '_' . $key; ?>"><?php echo esc_attr($count); ?></div>
149
  <?php
150
  } ?>
151
  </a>
156
  //counter available for twitter
157
  case 'twitter':
158
  $url_twitter = $url;
159
+ // $url_twitter = urlencode( $url_twitter );
160
  if ( isset( $twitter_user ) && $twitter_user != '' ) {
161
  $twitter_user = 'via=' . $twitter_user;
162
  }
185
 
186
  ?>
187
  <div class='apss-twitter apss-single-icon'>
188
+ <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 esc_url($link); ?>" <?php } ?> title='<?php _e( 'Share on Twitter', 'accesspress-social-share' ); ?>' target='<?php echo $apss_link_open_option; ?>'>
189
  <div class='apss-icon-block clearfix'>
190
+ <i class='<?php echo esc_attr($twitter);?>'></i>
191
  <span class='apss-social-text'><?php _e( 'Share on Twitter', 'accesspress-social-share' ); ?></span><span class='apss-share'><?php _e( 'Tweet', 'accesspress-social-share' ); ?></span>
192
  </div>
193
  <?php if ( isset( $counter_enable_options ) && $counter_enable_options == '1' && $twitter_api_use !='1' ) { ?>
194
+ <div class='count apss-count' data-url='<?php echo esc_url($url); ?>' data-social-network='<?php echo esc_attr($key); ?>' data-social-detail="<?php echo esc_url($url) . '_' . $key; ?>"><?php echo esc_attr($count); ?></div>
195
  <?php } ?>
196
  </a>
197
  </div>
225
  <div class='apss-pinterest apss-single-icon'>
226
  <a rel='nofollow' title='<?php _e( 'Share on Pinterest', 'accesspress-social-share' ); ?>' href='javascript:pinIt();'>
227
  <div class='apss-icon-block clearfix'>
228
+ <i class='<?php echo esc_attr($pinterest);?>'></i>
229
  <span class='apss-social-text'><?php _e( 'Share on Pinterest', 'accesspress-social-share' ); ?></span>
230
  <span class='apss-share'><?php _e( 'Share', 'accesspress-social-share' ); ?></span>
231
  </div>
232
  <?php
233
  if ( isset( $counter_enable_options ) && $counter_enable_options == '1' ) { ?>
234
+ <div class='count apss-count' data-url='<?php echo esc_url($url); ?>' data-social-network='<?php echo esc_attr($key); ?>' data-social-detail="<?php echo esc_url($url) . '_' . $key; ?>"><?php echo esc_attr($count); ?></div>
235
  <?php
236
  } ?>
237
  </a>
245
 
246
  ?>
247
  <div class='apss-linkedin apss-single-icon'>
248
+ <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 esc_url($link); ?>'>
249
+ <div class='apss-icon-block clearfix'><i class='<?php echo esc_attr($linkedin);?>'></i>
250
  <span class='apss-social-text'><?php _e( 'Share on LinkedIn', 'accesspress-social-share' ); ?></span>
251
  <span class='apss-share'><?php _e( 'Share', 'accesspress-social-share' ); ?></span>
252
  </div>
260
  $link = "http://digg.com/submit?phase=2%20&amp;url=" . $url . "&amp;title=" . $title;
261
  ?>
262
  <div class='apss-digg apss-single-icon'>
263
+ <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 esc_url($link); ?>'>
264
  <div class='apss-icon-block clearfix'>
265
+ <i class='<?php echo esc_attr($digg);?>'></i>
266
  <span class='apss-social-text'><?php _e( 'Share on Digg', 'accesspress-social-share' ); ?></span>
267
  <span class='apss-share'><?php _e( 'Share', 'accesspress-social-share' ); ?></span>
268
  </div>
280
  }
281
  ?>
282
  <div class='apss-email apss-single-icon'>
283
+ <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 esc_url($link); ?>'>
284
  <div class='apss-icon-block clearfix'>
285
+ <i class='<?php echo esc_attr($mail);?>'></i>
286
  <span class='apss-social-text'><?php _e( 'Send email', 'accesspress-social-share' ); ?></span>
287
  <span class='apss-share'><?php _e( 'Mail', 'accesspress-social-share' ); ?></span>
288
  </div>
295
  ?>
296
  <div class='apss-print apss-single-icon'>
297
  <a rel='nofollow' title='<?php _e( 'Print', 'accesspress-social-share' ); ?>' href='javascript:void(0);' onclick='window.print(); return false;'>
298
+ <div class='apss-icon-block clearfix'><i class='<?php echo esc_attr($print);?>'></i>
299
  <span class='apss-social-text'><?php _e( 'Print', 'accesspress-social-share' ); ?></span>
300
  <span class='apss-share'><?php _e( 'Print', 'accesspress-social-share' ); ?></span>
301
  </div>
312
  if ( isset( $total_counter_enable_options ) && $total_counter_enable_options == '1' ) {
313
  ?>
314
  <div class='apss-total-share-count'>
315
+ <span class='apss-count-number'><?php echo esc_attr($total_count); ?></span>
316
  <div class="apss-total-shares"><span class='apss-total-text'><?php echo _e( ' Total', 'accesspress-social-share' ); ?></span>
317
  <span class='apss-shares-text'><?php echo _e( ' Shares', 'accesspress-social-share' ); ?></span></div>
318
  </div>
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Access Keys
3
  Tags: social share counter, social share, social media share, social network share, social media, social network, share counter, social share count, social url share, social icons
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
- Tested up to: 5.5
7
- Stable tag: 4.5.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -137,6 +137,9 @@ Yes. You can use the AccessPress social share by using shortcode anywhere you wa
137
  6. Backend Miscellaneous Settings Section
138
 
139
  == Changelog ==
 
 
 
140
  = 4.5.3 =
141
  * Checked compatibility with the latest wp version
142
  * Updated LinkedIn share link
3
  Tags: social share counter, social share, social media share, social network share, social media, social network, share counter, social share count, social url share, social icons
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
+ Tested up to: 5.5.1
7
+ Stable tag: 4.5.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
137
  6. Backend Miscellaneous Settings Section
138
 
139
  == Changelog ==
140
+ = 4.5.4 =
141
+ * Few code refinement
142
+
143
  = 4.5.3 =
144
  * Checked compatibility with the latest wp version
145
  * Updated LinkedIn share link