Social Share WordPress Plugin – AccessPress Social Share - Version 4.1.0

Version Description

  • Done the addition of additional parameter custom_share_link in the shortcode for apss_share.
  • Added the note section for the available parameters in email settings.
Download this release

Release Info

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

Code changes from version 4.0.9 to 4.1.0

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.0.9
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.0.9' );
34
  }
35
 
36
  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.1.0
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.1.0' );
34
  }
35
 
36
  if ( !defined( 'APSS_TEXT_DOMAIN' ) ) {
inc/backend/how-to-use.php CHANGED
@@ -31,6 +31,7 @@
31
  <li><i class="fa fa-check"></i>share_text: You can add the share text. To use share text use share_text='text to be shared'. If you don't use this parameter the share text will not appear in shortcode.</li>
32
  <li><i class="fa fa-check"></i>counter : You can enable or disable the share counter. To enable the share count use counter='1' and to disable it simply don't use counter parameter or use parameter counter='0'.</li>
33
  <li><i class="fa fa-check"></i>total_counter : You can enable or disable the total share counter. To enable the total share count use total_counter='1' and to disable it simply don't use total_counter parameter or use parameter total_counter='0'.</li>
 
34
  </ul>
35
  <li><i class="fa fa-check"></i>Example 2: <code>[apss_share networks='facebook, twitter, pinterest' share_text='Share it' counter='1' total_counter='1']</code></li>
36
  </ul>
31
  <li><i class="fa fa-check"></i>share_text: You can add the share text. To use share text use share_text='text to be shared'. If you don't use this parameter the share text will not appear in shortcode.</li>
32
  <li><i class="fa fa-check"></i>counter : You can enable or disable the share counter. To enable the share count use counter='1' and to disable it simply don't use counter parameter or use parameter counter='0'.</li>
33
  <li><i class="fa fa-check"></i>total_counter : You can enable or disable the total share counter. To enable the total share count use total_counter='1' and to disable it simply don't use total_counter parameter or use parameter total_counter='0'.</li>
34
+ <li><i class="fa fa-check"></i>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.'</li>
35
  </ul>
36
  <li><i class="fa fa-check"></i>Example 2: <code>[apss_share networks='facebook, twitter, pinterest' share_text='Share it' counter='1' total_counter='1']</code></li>
37
  </ul>
inc/backend/main-page.php CHANGED
@@ -243,6 +243,13 @@
243
  <label for='apss-email-body'><?php _e( 'Email body:', 'accesspress-social-share' ); ?></label>
244
  <textarea rows='30' cols='30' name="apss_share_settings[apss_email_body]"><?php echo $options['apss_email_body'] ?></textarea>
245
  </div>
 
 
 
 
 
 
 
246
  </div>
247
  </div>
248
  <div class="apss-tab-contents apss-how-to-use" id="tab-apss-how-to-use" style='display:none' >
243
  <label for='apss-email-body'><?php _e( 'Email body:', 'accesspress-social-share' ); ?></label>
244
  <textarea rows='30' cols='30' name="apss_share_settings[apss_email_body]"><?php echo $options['apss_email_body'] ?></textarea>
245
  </div>
246
+ <div class="apss_notes_cache_settings">
247
+ Available parameters: <br />
248
+ %%url%% = current page/post url(custom url if you have used "custom_share_link" attribute in the shortcode ) <br />
249
+ %%title%% = current page/post's title <br />
250
+ %%permalink%% = current page/post url <br />
251
+ %%siteurl%% = Site url <br />
252
+ </div>
253
  </div>
254
  </div>
255
  <div class="apss-tab-contents apss-how-to-use" id="tab-apss-how-to-use" style='display:none' >
inc/frontend/shortcode.php CHANGED
@@ -10,7 +10,12 @@ if(isset($options['twitter_counter_api'])){
10
  }else{
11
  $twitter_api_use = '1';
12
  }
13
- $url = get_permalink();
 
 
 
 
 
14
  $cache_period = ($options['cache_period'] != '') ? $options['cache_period'] * 60 * 60 : 24 * 60 * 60;
15
  if ( isset( $attr['networks'] ) ) {
16
  $raw_array = explode( ',', $attr['networks'] );
10
  }else{
11
  $twitter_api_use = '1';
12
  }
13
+
14
+ if(isset($attr['custom_share_link']) && $attr['custom_share_link'] !=''){
15
+ $url = esc_url($attr['custom_share_link']);
16
+ }else{
17
+ $url = get_permalink();
18
+ }
19
  $cache_period = ($options['cache_period'] != '') ? $options['cache_period'] * 60 * 60 : 24 * 60 * 60;
20
  if ( isset( $attr['networks'] ) ) {
21
  $raw_array = explode( ',', $attr['networks'] );
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.5
7
- Stable tag: 4.0.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -131,6 +131,10 @@ Yes. You can use the AccessPress social share by using shortcode anywhere you wa
131
  6. Backend Miscellaneous Settings Section
132
 
133
  == Changelog ==
 
 
 
 
134
  = 4.0.9 =
135
  * Done the bug fixing for the backend options.
136
 
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 4.5
7
+ Stable tag: 4.1.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
131
  6. Backend Miscellaneous Settings Section
132
 
133
  == Changelog ==
134
+ = 4.1.0 =
135
+ * Done the addition of additional parameter custom_share_link in the shortcode for apss_share.
136
+ * Added the note section for the available parameters in email settings.
137
+
138
  = 4.0.9 =
139
  * Done the bug fixing for the backend options.
140