Social Share WordPress Plugin – AccessPress Social Share - Version 2.0.7

Version Description

  • Added the shortcode for share count number display in the content.
Download this release

Release Info

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

Code changes from version 2.0.6 to 2.0.7

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: 2.0.6
8
  Author: AccessPress Themes
9
  Author URI: http://accesspressthemes.com
10
  Text Domain:apss-share
@@ -30,7 +30,7 @@ if( !defined( 'APSS_LANG_DIR' ) ) {
30
  }
31
 
32
  if( !defined( 'APSS_VERSION' ) ) {
33
- define( 'APSS_VERSION', '2.0.6' );
34
  }
35
 
36
  if( !defined('APSS_TEXT_DOMAIN')){
@@ -58,12 +58,14 @@ if( !class_exists( 'APSS_Class' ) ){
58
  add_action('init',array( $this,'session_init')); //start the session if not started yet.
59
  add_action('admin_enqueue_scripts', array($this, 'register_admin_assets')); //registers all the assets required for wp-admin
60
  add_filter( 'the_content', array($this, 'apss_the_content_filter' )); // add the filter function for display of social share icons in frontend
61
- add_action( 'wp_enqueue_scripts', array( $this, 'register_frontend_assets' ) ); //registers all the assets required for the frontend
62
  add_action( 'admin_menu', array( $this, 'add_apss_menu' ) ); //register the plugin menu in backend
63
  add_action('admin_post_apss_save_options', array( $this, 'apss_save_options')); //save the options in the wordpress options table.
64
  add_action('admin_post_apss_restore_default_settings',array($this,'apss_restore_default_settings'));//restores default settings.
65
  add_action('admin_post_apss_clear_cache',array($this,'apss_clear_cache'));//clear the cache of the social share counter.
66
  add_shortcode('apss-share', array($this, 'apss_shortcode')); //adds a shortcode
 
 
67
  add_action('wp_ajax_nopriv_frontend_counter', array($this, 'frontend_counter')); //fetching of the social share count.
68
  add_action('wp_ajax_frontend_counter', array($this, 'frontend_counter')); // action for ajax counter.
69
  }
@@ -272,6 +274,15 @@ if( !class_exists( 'APSS_Class' ) ){
272
  }
273
  }
274
 
 
 
 
 
 
 
 
 
 
275
  //plugins backend admin page
276
  function main_page() {
277
  include('inc/backend/main-page.php');
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: 2.0.7
8
  Author: AccessPress Themes
9
  Author URI: http://accesspressthemes.com
10
  Text Domain:apss-share
30
  }
31
 
32
  if( !defined( 'APSS_VERSION' ) ) {
33
+ define( 'APSS_VERSION', '2.0.7' );
34
  }
35
 
36
  if( !defined('APSS_TEXT_DOMAIN')){
58
  add_action('init',array( $this,'session_init')); //start the session if not started yet.
59
  add_action('admin_enqueue_scripts', array($this, 'register_admin_assets')); //registers all the assets required for wp-admin
60
  add_filter( 'the_content', array($this, 'apss_the_content_filter' )); // add the filter function for display of social share icons in frontend
61
+ add_action( 'wp_enqueue_scripts', array( $this, 'register_frontend_assets' ) ); //registers all the assets required for the frontend
62
  add_action( 'admin_menu', array( $this, 'add_apss_menu' ) ); //register the plugin menu in backend
63
  add_action('admin_post_apss_save_options', array( $this, 'apss_save_options')); //save the options in the wordpress options table.
64
  add_action('admin_post_apss_restore_default_settings',array($this,'apss_restore_default_settings'));//restores default settings.
65
  add_action('admin_post_apss_clear_cache',array($this,'apss_clear_cache'));//clear the cache of the social share counter.
66
  add_shortcode('apss-share', array($this, 'apss_shortcode')); //adds a shortcode
67
+ add_shortcode('apss-count', array($this, 'apss_count_shortcode')); //adds a share count shortcode
68
+
69
  add_action('wp_ajax_nopriv_frontend_counter', array($this, 'frontend_counter')); //fetching of the social share count.
70
  add_action('wp_ajax_frontend_counter', array($this, 'frontend_counter')); // action for ajax counter.
71
  }
274
  }
275
  }
276
 
277
+ //frontend counter only Shortcode
278
+ function apss_count_shortcode($atts){
279
+ if(isset($atts['network'])){
280
+ $url= $this->curPageURL();
281
+ $count = $this->get_count($atts['network'], $url);
282
+ return $count;
283
+ }
284
+ }
285
+
286
  //plugins backend admin page
287
  function main_page() {
288
  include('inc/backend/main-page.php');
inc/backend/how-to-use.php CHANGED
@@ -29,6 +29,14 @@
29
  <li><i class="fa fa-check"></i>Available network parameters are: facebook, twitter, google-plus, pinterest, linkedin, digg, email, print</li>
30
  </ul>
31
  </p></dd>
 
 
 
 
 
 
 
 
32
  </dl>
33
 
34
 
29
  <li><i class="fa fa-check"></i>Available network parameters are: facebook, twitter, google-plus, pinterest, linkedin, digg, email, print</li>
30
  </ul>
31
  </p></dd>
32
+ <dd>
33
+ <p>You can use shortcode [apss-count] for the display of the social share count only in the contents. You need to enter network name you want to display.
34
+ <ul class="how-list">
35
+ <li><i class="fa fa-check"></i>Example 1: <code>[apss-count network='facebook']</code></li>
36
+ <li><i class="fa fa-check"></i>Available network parameters are: facebook, twitter, google-plus, pinterest, linkedin</li>
37
+ </ul>
38
+ </p>
39
+ </dd>
40
  </dl>
41
 
42
 
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.2
7
- Stable tag: 2.0.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -131,6 +131,9 @@ Yes. You can use the AccessPress social share by using shortcode anywhere you wa
131
  6. Backend Miscellaneous Settings Section
132
 
133
  == Changelog ==
 
 
 
134
  = 2.0.6 =
135
  * Added the link attribute rel='nofollow' to social share links.
136
 
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 4.2
7
+ Stable tag: 2.0.7
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
+ = 2.0.7 =
135
+ * Added the shortcode for share count number display in the content.
136
+
137
  = 2.0.6 =
138
  * Added the link attribute rel='nofollow' to social share links.
139