Social Share WordPress Plugin – AccessPress Social Share - Version 2.0.4

Version Description

  • Text changes done for the display settings tab.
  • Done the code optimization of plugin's shortcode.
Download this release

Release Info

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

Code changes from version 2.0.3 to 2.0.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: 2.0.3
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.3' );
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: 2.0.4
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.4' );
34
  }
35
 
36
  if(!defined('APSS_TEXT_DOMAIN')){
inc/backend/main-page.php CHANGED
@@ -5,7 +5,7 @@
5
  <img src="<?php echo APSS_IMAGE_DIR; ?>/logo-old.png" alt="<?php esc_attr_e( 'AccessPress Social Share', APSS_TEXT_DOMAIN ); ?>" />
6
  </div>
7
  <div class="apss-header-icons">
8
- <p>Follow us for new updates</p>
9
  <div class="apss-social-bttns">
10
  <iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2Fpages%2FAccessPress-Themes%2F1396595907277967&amp;width&amp;layout=button&amp;action=like&amp;show_faces=false&amp;share=false&amp;height=35&amp;appId=1411139805828592" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:20px; width:50px " allowtransparency="true"></iframe>
11
  &nbsp;&nbsp;
@@ -19,9 +19,7 @@
19
  fjs.parentNode.insertBefore(js, fjs);
20
  }
21
  }(document, "script", "twitter-wjs");</script>
22
-
23
  </div>
24
-
25
  </div>
26
  <div class="apss-header-title">
27
  <?php _e( 'AccessPress Social Share', APSS_TEXT_DOMAIN ); ?>
@@ -79,7 +77,7 @@ if(isset($_SESSION['apss_message'])){ ?>
79
 
80
  <div class="apss-tab-contents apss-share-options" id="tab-apss-share-options" style='display:none'>
81
  <h2><?php _e('Share options:', APSS_TEXT_DOMAIN); ?> </h2>
82
- <span class="social-text"><?php _e( 'Please choose the options where you want to display social share:', APSS_TEXT_DOMAIN ); ?></span>
83
  <p><input type="checkbox" id="apss_posts" value="post" name="apss_share_settings[share_options][]" <?php if (in_array("post", $options['share_options']) || in_array("posts", $options['share_options'])) { echo "checked='checked'"; } ?> ><label for="apss_posts"><?php _e( 'Posts', APSS_TEXT_DOMAIN ); ?> </label></p>
84
  <p><input type="checkbox" id="apss_pages" value="page" name="apss_share_settings[share_options][]" <?php if (in_array("page", $options['share_options']) || in_array("pages", $options['share_options'])) { echo "checked='checked'"; } ?> ><label for="apss_pages"><?php _e( 'Pages', APSS_TEXT_DOMAIN ); ?> </label></p>
85
 
@@ -95,7 +93,7 @@ if(isset($_SESSION['apss_message'])){ ?>
95
 
96
  <div class="apss-tab-contents apss-display-settings" id="tab-apss-display-settings" style='display:none'>
97
  <div class=' apss-display-positions'>
98
- <h2><?php _e('Display positions:', APSS_TEXT_DOMAIN); ?></h2>
99
  <span class='social-text'><?php _e( 'Please choose the option where you want to display the social share:', APSS_TEXT_DOMAIN ); ?></span>
100
  <p><input type="radio" id="apss_below_content" name="apss_share_settings[social_share_position_options]" value="below_content" <?php if($options['share_positions']=='below_content'){ echo "checked='checked'"; } ?> /><label for='apss_below_content'><?php _e( 'Below content', APSS_TEXT_DOMAIN ); ?></label></p>
101
  <p><input type="radio" id="apss_above_content" name="apss_share_settings[social_share_position_options]"/ value="above_content" <?php if($options['share_positions']=='above_content'){ echo "checked='checked'"; } ?> /><label for='apss_above_content'><?php _e( 'Above content', APSS_TEXT_DOMAIN ); ?></label></p>
5
  <img src="<?php echo APSS_IMAGE_DIR; ?>/logo-old.png" alt="<?php esc_attr_e( 'AccessPress Social Share', APSS_TEXT_DOMAIN ); ?>" />
6
  </div>
7
  <div class="apss-header-icons">
8
+ <p><?php _e('Follow us for new updates'); ?></p>
9
  <div class="apss-social-bttns">
10
  <iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2Fpages%2FAccessPress-Themes%2F1396595907277967&amp;width&amp;layout=button&amp;action=like&amp;show_faces=false&amp;share=false&amp;height=35&amp;appId=1411139805828592" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:20px; width:50px " allowtransparency="true"></iframe>
11
  &nbsp;&nbsp;
19
  fjs.parentNode.insertBefore(js, fjs);
20
  }
21
  }(document, "script", "twitter-wjs");</script>
 
22
  </div>
 
23
  </div>
24
  <div class="apss-header-title">
25
  <?php _e( 'AccessPress Social Share', APSS_TEXT_DOMAIN ); ?>
77
 
78
  <div class="apss-tab-contents apss-share-options" id="tab-apss-share-options" style='display:none'>
79
  <h2><?php _e('Share options:', APSS_TEXT_DOMAIN); ?> </h2>
80
+ <span class="social-text"><?php _e( 'Please choose the options where you want to display social share icons:', APSS_TEXT_DOMAIN ); ?></span>
81
  <p><input type="checkbox" id="apss_posts" value="post" name="apss_share_settings[share_options][]" <?php if (in_array("post", $options['share_options']) || in_array("posts", $options['share_options'])) { echo "checked='checked'"; } ?> ><label for="apss_posts"><?php _e( 'Posts', APSS_TEXT_DOMAIN ); ?> </label></p>
82
  <p><input type="checkbox" id="apss_pages" value="page" name="apss_share_settings[share_options][]" <?php if (in_array("page", $options['share_options']) || in_array("pages", $options['share_options'])) { echo "checked='checked'"; } ?> ><label for="apss_pages"><?php _e( 'Pages', APSS_TEXT_DOMAIN ); ?> </label></p>
83
 
93
 
94
  <div class="apss-tab-contents apss-display-settings" id="tab-apss-display-settings" style='display:none'>
95
  <div class=' apss-display-positions'>
96
+ <h2><?php _e('Display position:', APSS_TEXT_DOMAIN); ?></h2>
97
  <span class='social-text'><?php _e( 'Please choose the option where you want to display the social share:', APSS_TEXT_DOMAIN ); ?></span>
98
  <p><input type="radio" id="apss_below_content" name="apss_share_settings[social_share_position_options]" value="below_content" <?php if($options['share_positions']=='below_content'){ echo "checked='checked'"; } ?> /><label for='apss_below_content'><?php _e( 'Below content', APSS_TEXT_DOMAIN ); ?></label></p>
99
  <p><input type="radio" id="apss_above_content" name="apss_share_settings[social_share_position_options]"/ value="above_content" <?php if($options['share_positions']=='above_content'){ echo "checked='checked'"; } ?> /><label for='apss_above_content'><?php _e( 'Above content', APSS_TEXT_DOMAIN ); ?></label></p>
inc/frontend/shortcode.php CHANGED
@@ -6,9 +6,8 @@ $apss_link_open_option=($options['dialog_box_options']=='1') ? "_blank": "";
6
  $twitter_user=$options['twitter_username'];
7
  $counter_enable_options=$options['counter_enable_options'];
8
  $icon_set_value=$options['social_icon_set'];
9
- $url= get_permalink(); //$this->curPageURL();
10
  $cache_period = ($options['cache_period'] != '') ? $options['cache_period']*60*60 : 24 * 60 * 60 ;
11
-
12
  if( isset($attr['networks']) ){
13
  $raw_array = explode( ',', $attr['networks'] );
14
  $network_array=array_map('trim', $raw_array );
@@ -20,10 +19,8 @@ if( isset($attr['networks']) ){
20
  $options['social_networks'] = $new_array;
21
  }
22
  ?>
23
-
24
  <div class='apss-social-share apss-theme-<?php echo $icon_set_value; ?> clearfix'>
25
  <?php
26
-
27
  $title=str_replace('+', '%20', urlencode($post->post_title));
28
  $content=strip_shortcodes(strip_tags(get_the_content()));
29
  if(strlen($content) >= 100){
@@ -31,7 +28,6 @@ $excerpt= substr($content, 0, 100).'...';
31
  }else{
32
  $excerpt = $content;
33
  }
34
-
35
  foreach( $options['social_networks'] as $key=>$value ){
36
  if( intval($value)=='1' ){
37
  switch($key){
@@ -51,7 +47,7 @@ foreach( $options['social_networks'] as $key=>$value ){
51
  <?php } ?>
52
  </a>
53
  </div>
54
- <?php
55
  break;
56
 
57
  //counter available for twitter
@@ -187,8 +183,7 @@ foreach( $options['social_networks'] as $key=>$value ){
187
  break;
188
  }
189
  }
190
-
191
- }
192
 
193
  ?>
194
  </div>
6
  $twitter_user=$options['twitter_username'];
7
  $counter_enable_options=$options['counter_enable_options'];
8
  $icon_set_value=$options['social_icon_set'];
9
+ $url= get_permalink();
10
  $cache_period = ($options['cache_period'] != '') ? $options['cache_period']*60*60 : 24 * 60 * 60 ;
 
11
  if( isset($attr['networks']) ){
12
  $raw_array = explode( ',', $attr['networks'] );
13
  $network_array=array_map('trim', $raw_array );
19
  $options['social_networks'] = $new_array;
20
  }
21
  ?>
 
22
  <div class='apss-social-share apss-theme-<?php echo $icon_set_value; ?> clearfix'>
23
  <?php
 
24
  $title=str_replace('+', '%20', urlencode($post->post_title));
25
  $content=strip_shortcodes(strip_tags(get_the_content()));
26
  if(strlen($content) >= 100){
28
  }else{
29
  $excerpt = $content;
30
  }
 
31
  foreach( $options['social_networks'] as $key=>$value ){
32
  if( intval($value)=='1' ){
33
  switch($key){
47
  <?php } ?>
48
  </a>
49
  </div>
50
+ <?php
51
  break;
52
 
53
  //counter available for twitter
183
  break;
184
  }
185
  }
186
+ }
 
187
 
188
  ?>
189
  </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.2
7
- Stable tag: 2.0.3
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
  = 2.0.3 =
135
  * Removal of the unnecesary commented codes from the plugin main file.
136
  * Help text change for the social share counter.
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 4.2
7
+ Stable tag: 2.0.4
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.4 =
135
+ * Text changes done for the display settings tab.
136
+ * Done the code optimization of plugin's shortcode.
137
+
138
  = 2.0.3 =
139
  * Removal of the unnecesary commented codes from the plugin main file.
140
  * Help text change for the social share counter.