Social Share WordPress Plugin – AccessPress Social Share - Version 1.0.2

Version Description

  • Fixed the bug for pre-selected page share options.
  • Done the bug fixing for label attributes for display settings tab and miscellaneous tab.
  • Some changes done for how to use section and about sections.
Download this release

Release Info

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

Code changes from version 1.0.1 to 1.0.2

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: 1.0.1
8
  Author: AccessPress Themes
9
  Author URI: http://accesspressthemes.com
10
  Text Domain:apss-share
@@ -31,7 +31,7 @@ if( !defined( 'APSS_LANG_DIR' ) ) {
31
  }
32
 
33
  if( !defined( 'APSS_VERSION' ) ) {
34
- define( 'APSS_VERSION', '1.0.1' );
35
  }
36
 
37
  if(!defined('APSS_TEXT_DOMAIN')){
@@ -251,7 +251,7 @@ if( !class_exists( 'APSS_Class' ) ){
251
 
252
  $is_default_archive=in_array('archives', $options['share_options']);
253
  $default_archives=( (is_archive() && !is_tax() )&& !is_category() ) && $is_default_archive ? true : false;
254
-
255
 
256
 
257
  if($is_lists_authorized || $is_singular || $is_tax || $is_front_page || $default_category || $default_archives){
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: 1.0.2
8
  Author: AccessPress Themes
9
  Author URI: http://accesspressthemes.com
10
  Text Domain:apss-share
31
  }
32
 
33
  if( !defined( 'APSS_VERSION' ) ) {
34
+ define( 'APSS_VERSION', '1.0.2' );
35
  }
36
 
37
  if(!defined('APSS_TEXT_DOMAIN')){
251
 
252
  $is_default_archive=in_array('archives', $options['share_options']);
253
  $default_archives=( (is_archive() && !is_tax() )&& !is_category() ) && $is_default_archive ? true : false;
254
+
255
 
256
 
257
  if($is_lists_authorized || $is_singular || $is_tax || $is_front_page || $default_category || $default_archives){
images/Thumbs.db CHANGED
Binary file
inc/backend/about-apss.php CHANGED
@@ -4,13 +4,13 @@
4
 
5
  <p>AccessPress Themes is a venture of Access Keys - who has developed hundreds of Custom WordPress themes and plugins for its clients over the years. </p>
6
 
7
- <p><strong>AccessPress Social Share</strong> - is plugin to allow anyone easily share website content (page, posts) on major social media (Facebook, Twitter… ). A perfect plugin to make any content on your website social-share-friendly, and increase your social reach dramatically! </p>
8
  <div class="halfseperator"></div>
9
  <p><strong>Please visit our product page for more details here:</strong><br />
10
  <a href="http://accesspressthemes.com/wordpress-plugins/accesspress-social-share/" target="_blank">http://accesspressthemes.com/wordpress-plugins/accesspress-social-share/</a></p>
11
  <div class="halfseperator"></div>
12
  <p><strong>Plugin documentation can be found here:</strong><br />
13
- <a href="http://accesspressthemes.com/wordpress-plugin-instruction-social-share/" target="_blank">http://accesspressthemes.com/wordpress-plugin-instruction-social-share/</a></p>
14
  <div class="halfseperator"></div>
15
  <p><strong>If you’d like to buy premium version of this plugin please check here:</strong><br />
16
  <a href="http://accesspressthemes.com/wordpress-plugins/accesspress-social-share-premium/" target="_blank">http://accesspressthemes.com/wordpress-plugins/accesspress-social-share-premium/ </a></p>
4
 
5
  <p>AccessPress Themes is a venture of Access Keys - who has developed hundreds of Custom WordPress themes and plugins for its clients over the years. </p>
6
 
7
+ <p><strong>AccessPress Social Share</strong> - is plugin to allow anyone easily share website content (pages, posts) on major social media (Facebook, Twitter… ). A perfect plugin to make any content on your website social-share-friendly, and increase your social reach dramatically! </p>
8
  <div class="halfseperator"></div>
9
  <p><strong>Please visit our product page for more details here:</strong><br />
10
  <a href="http://accesspressthemes.com/wordpress-plugins/accesspress-social-share/" target="_blank">http://accesspressthemes.com/wordpress-plugins/accesspress-social-share/</a></p>
11
  <div class="halfseperator"></div>
12
  <p><strong>Plugin documentation can be found here:</strong><br />
13
+ <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>
14
  <div class="halfseperator"></div>
15
  <p><strong>If you’d like to buy premium version of this plugin please check here:</strong><br />
16
  <a href="http://accesspressthemes.com/wordpress-plugins/accesspress-social-share-premium/" target="_blank">http://accesspressthemes.com/wordpress-plugins/accesspress-social-share-premium/ </a></p>
inc/backend/how-to-use.php CHANGED
@@ -5,7 +5,7 @@
5
  <dd><p>In this tab you can choose which social media icons you want to appear in the frontend. Here you can order the apperance of the social icons simply by drag and drop of each social icons.</p></dd>
6
 
7
  <dt><strong>Share options</strong></dt>
8
- <dd><p>In this tab you can select the options where you want to display these social media shares.</p></dd>
9
 
10
  <dt><strong>Display settings</strong></dt>
11
  <dd><p>In this tab you can customize the apperance of the social media share icons. You can choose the options to display the share icons below the contennt, above the content or you can choose an options to display in both below and above content. Also you can choose the theme from the pre available 5 themes.</p></dd>
@@ -16,7 +16,7 @@
16
  <li><i class="fa fa-check"></i>You can setup the twitter username.</li>
17
  <li><i class="fa fa-check"></i>You can enable/disable the social counter.</li>
18
  <li><i class="fa fa-check"></i>Share link - You can enable the share options either in new tab/window or in same widow.</li>
19
- <li><i class="fa fa-check"></i>Cache settings- Here you can set the cache settings in hours.</li>
20
  <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.</li>
21
  </ul>
22
  </p></dd>
5
  <dd><p>In this tab you can choose which social media icons you want to appear in the frontend. Here you can order the apperance of the social icons simply by drag and drop of each social icons.</p></dd>
6
 
7
  <dt><strong>Share options</strong></dt>
8
+ <dd><p>In this tab you can select the options where you want to display social media share icons.</p></dd>
9
 
10
  <dt><strong>Display settings</strong></dt>
11
  <dd><p>In this tab you can customize the apperance of the social media share icons. You can choose the options to display the share icons below the contennt, above the content or you can choose an options to display in both below and above content. Also you can choose the theme from the pre available 5 themes.</p></dd>
16
  <li><i class="fa fa-check"></i>You can setup the twitter username.</li>
17
  <li><i class="fa fa-check"></i>You can enable/disable the social counter.</li>
18
  <li><i class="fa fa-check"></i>Share link - You can enable the share options either in new tab/window or in same widow.</li>
19
+ <li><i class="fa fa-check"></i>Cache settings- Here you can set the cache settings in hour format.</li>
20
  <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.</li>
21
  </ul>
22
  </p></dd>
inc/backend/main-page.php CHANGED
@@ -82,7 +82,7 @@ if(isset($_SESSION['apss_message'])){ ?>
82
  <h2><?php _e('Share options:', APSS_TEXT_DOMAIN); ?> </h2>
83
  <span class="social-text"><?php _e( 'Please choose the options where you want to display social share:', APSS_TEXT_DOMAIN ); ?></span>
84
  <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>
85
- <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>
86
 
87
  <p><input type="checkbox" id="apss_front_page" value="front_page" name="apss_share_settings[share_options][]" <?php if (in_array("front_page", $options['share_options'])) { echo "checked='checked'"; } ?> ><label for="apss_front_page"><?php _e('Front Page', APSS_TEXT_DOMAIN ); ?></label></p>
88
  <p><input type="checkbox" id="apss_archives" value="archives" name="apss_share_settings[share_options][]" <?php if (in_array("archives", $options['share_options'])) { echo "checked='checked'"; } ?> ><label for="apss_archives"><?php _e('Archives', APSS_TEXT_DOMAIN ); ?></label></p>
@@ -98,19 +98,19 @@ if(isset($_SESSION['apss_message'])){ ?>
98
  <div class=' apss-display-positions'>
99
  <h2><?php _e('Display positions:', APSS_TEXT_DOMAIN); ?></h2>
100
  <span class='social-text'><?php _e( 'Please choose the option where you want to display the social share:', APSS_TEXT_DOMAIN ); ?></span>
101
- <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='below_content'><?php _e( 'Below content', APSS_TEXT_DOMAIN ); ?></label></p>
102
- <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='above_content'><?php _e( 'Above content', APSS_TEXT_DOMAIN ); ?></label></p>
103
- <p><input type="radio" id="apss_below_above_content" id="below_above_content" name="apss_share_settings[social_share_position_options]" value="on_both" <?php if($options['share_positions']=='on_both'){ echo "checked='checked'"; } ?> /><label for='below_above_content'><?php _e( 'Both(Below content and Above content)', APSS_TEXT_DOMAIN ); ?></label></p>
104
  </div>
105
 
106
  <div class=" apss-icon-sets">
107
  <h2><?php _e( 'Social icons sets', APSS_TEXT_DOMAIN ); ?> </h2>
108
  <?php _e('Please choose any one out of available icon themes:', APSS_TEXT_DOMAIN ); ?>
109
- <p><input id="apss_icon_set_1" value="1" name="apss_share_settings[social_icon_set]" type="radio" <?php if($options['social_icon_set'] =='1'){ echo "checked='checked'"; } ?> ><label for="set1"><span class="apss_demo_icon apss_demo_icons_1"></span><?php _e('Theme 1', APSS_TEXT_DOMAIN ); ?><div class="apss-theme-image"><img src="<?php echo APSS_IMAGE_DIR.'/theme/theme1.jpg';?>"/></div></label></p>
110
- <p><input id="apss_icon_set_2" value="2" name="apss_share_settings[social_icon_set]" type="radio" <?php if($options['social_icon_set'] =='2'){ echo "checked='checked'"; } ?> ><label for="set2"><span class="apss_demo_icon apss_demo_icons_2"></span><?php _e('Theme 2', APSS_TEXT_DOMAIN ); ?><div class="apss-theme-image"><img src="<?php echo APSS_IMAGE_DIR.'/theme/theme2.jpg';?>"/></div></label></p>
111
- <p><input id="apss_icon_set_3" value="3" name="apss_share_settings[social_icon_set]" type="radio" <?php if($options['social_icon_set'] =='3'){ echo "checked='checked'"; } ?> ><label for="set3"><span class="apss_demo_icon apss_demo_icons_3"></span><?php _e('Theme 3', APSS_TEXT_DOMAIN ); ?><div class="apss-theme-image"><img src="<?php echo APSS_IMAGE_DIR.'/theme/theme3.jpg';?>"/></div></label></p>
112
- <p><input id="apss_icon_set_4" value="4" name="apss_share_settings[social_icon_set]" type="radio" <?php if($options['social_icon_set'] =='4'){ echo "checked='checked'"; } ?> ><label for="set4"><span class="apss_demo_icon apss_demo_icons_4"></span><?php _e('Theme 4', APSS_TEXT_DOMAIN ); ?><div class="apss-theme-image"><img src="<?php echo APSS_IMAGE_DIR.'/theme/theme4.jpg';?>"/></div></label></p>
113
- <p><input id="apss_icon_set_5" value="5" name="apss_share_settings[social_icon_set]" type="radio" <?php if($options['social_icon_set'] =='5'){ echo "checked='checked'"; } ?> ><label for="set5"><span class="apss_demo_icon apss_demo_icons_5"></span><?php _e('Theme 5', APSS_TEXT_DOMAIN ); ?><div class="apss-theme-image"><img src="<?php echo APSS_IMAGE_DIR.'/theme/theme5.jpg';?>"/></div></label></p>
114
  </div>
115
 
116
  </div>
@@ -124,14 +124,14 @@ if(isset($_SESSION['apss_message'])){ ?>
124
 
125
  <div class="apss-counter-settings clearfix">
126
  <h4><?php _e( 'Social share counter enable?', APSS_TEXT_DOMAIN ); ?> </h4>
127
- <div class="misc-opt"><input type="radio" name="apss_share_settings[counter_enable_options]" value="0" <?php if($options['counter_enable_options'] =='0'){ echo "checked='checked'"; } ?> /><label for="counter_enable_options"><?php _e( 'No', APSS_TEXT_DOMAIN ); ?></label></div>
128
- <div class="misc-opt"><input type="radio" name="apss_share_settings[counter_enable_options]" value="1" <?php if($options['counter_enable_options'] =='1'){ echo "checked='checked'"; } ?> /><label for="counter_enable_options"><?php _e( 'Yes', APSS_TEXT_DOMAIN ); ?></label></div>
129
  </div>
130
 
131
  <div class="apss-dialog-boxs clearfix">
132
  <h4><?php _e('Social share link options:', APSS_TEXT_DOMAIN ); ?> </h4>
133
- <div class="misc-opt"><input type="radio" name="apss_share_settings[dialog_box_options]" value="0" <?php if($options['dialog_box_options'] =='0'){ echo "checked='checked'"; } ?> /><label for="dialog_box_options"><?php _e( 'Open in same window', APSS_TEXT_DOMAIN ); ?></label></div>
134
- <div class="misc-opt"><input type="radio" name="apss_share_settings[dialog_box_options]" value="1" <?php if($options['dialog_box_options'] =='1'){ echo "checked='checked'"; } ?> /><label for="dialog_box_options"><?php _e( 'Open in new window/Tab', APSS_TEXT_DOMAIN ); ?></label></div>
135
  </div>
136
 
137
  <div class='cache-settings'>
82
  <h2><?php _e('Share options:', APSS_TEXT_DOMAIN); ?> </h2>
83
  <span class="social-text"><?php _e( 'Please choose the options where you want to display social share:', APSS_TEXT_DOMAIN ); ?></span>
84
  <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>
85
+ <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>
86
 
87
  <p><input type="checkbox" id="apss_front_page" value="front_page" name="apss_share_settings[share_options][]" <?php if (in_array("front_page", $options['share_options'])) { echo "checked='checked'"; } ?> ><label for="apss_front_page"><?php _e('Front Page', APSS_TEXT_DOMAIN ); ?></label></p>
88
  <p><input type="checkbox" id="apss_archives" value="archives" name="apss_share_settings[share_options][]" <?php if (in_array("archives", $options['share_options'])) { echo "checked='checked'"; } ?> ><label for="apss_archives"><?php _e('Archives', APSS_TEXT_DOMAIN ); ?></label></p>
98
  <div class=' apss-display-positions'>
99
  <h2><?php _e('Display positions:', APSS_TEXT_DOMAIN); ?></h2>
100
  <span class='social-text'><?php _e( 'Please choose the option where you want to display the social share:', APSS_TEXT_DOMAIN ); ?></span>
101
+ <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>
102
+ <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>
103
+ <p><input type="radio" id="apss_below_above_content" id="below_above_content" name="apss_share_settings[social_share_position_options]" value="on_both" <?php if($options['share_positions']=='on_both'){ echo "checked='checked'"; } ?> /><label for='apss_below_above_content'><?php _e( 'Both(Below content and Above content)', APSS_TEXT_DOMAIN ); ?></label></p>
104
  </div>
105
 
106
  <div class=" apss-icon-sets">
107
  <h2><?php _e( 'Social icons sets', APSS_TEXT_DOMAIN ); ?> </h2>
108
  <?php _e('Please choose any one out of available icon themes:', APSS_TEXT_DOMAIN ); ?>
109
+ <p><input id="apss_icon_set_1" value="1" name="apss_share_settings[social_icon_set]" type="radio" <?php if($options['social_icon_set'] =='1'){ echo "checked='checked'"; } ?> ><label for="apss_icon_set_1"><span class="apss_demo_icon apss_demo_icons_1"></span><?php _e('Theme 1', APSS_TEXT_DOMAIN ); ?><div class="apss-theme-image"><img src="<?php echo APSS_IMAGE_DIR.'/theme/theme1.jpg';?>"/></div></label></p>
110
+ <p><input id="apss_icon_set_2" value="2" name="apss_share_settings[social_icon_set]" type="radio" <?php if($options['social_icon_set'] =='2'){ echo "checked='checked'"; } ?> ><label for="apss_icon_set_2"><span class="apss_demo_icon apss_demo_icons_2"></span><?php _e('Theme 2', APSS_TEXT_DOMAIN ); ?><div class="apss-theme-image"><img src="<?php echo APSS_IMAGE_DIR.'/theme/theme2.jpg';?>"/></div></label></p>
111
+ <p><input id="apss_icon_set_3" value="3" name="apss_share_settings[social_icon_set]" type="radio" <?php if($options['social_icon_set'] =='3'){ echo "checked='checked'"; } ?> ><label for="apss_icon_set_3"><span class="apss_demo_icon apss_demo_icons_3"></span><?php _e('Theme 3', APSS_TEXT_DOMAIN ); ?><div class="apss-theme-image"><img src="<?php echo APSS_IMAGE_DIR.'/theme/theme3.jpg';?>"/></div></label></p>
112
+ <p><input id="apss_icon_set_4" value="4" name="apss_share_settings[social_icon_set]" type="radio" <?php if($options['social_icon_set'] =='4'){ echo "checked='checked'"; } ?> ><label for="apss_icon_set_4"><span class="apss_demo_icon apss_demo_icons_4"></span><?php _e('Theme 4', APSS_TEXT_DOMAIN ); ?><div class="apss-theme-image"><img src="<?php echo APSS_IMAGE_DIR.'/theme/theme4.jpg';?>"/></div></label></p>
113
+ <p><input id="apss_icon_set_5" value="5" name="apss_share_settings[social_icon_set]" type="radio" <?php if($options['social_icon_set'] =='5'){ echo "checked='checked'"; } ?> ><label for="apss_icon_set_5"><span class="apss_demo_icon apss_demo_icons_5"></span><?php _e('Theme 5', APSS_TEXT_DOMAIN ); ?><div class="apss-theme-image"><img src="<?php echo APSS_IMAGE_DIR.'/theme/theme5.jpg';?>"/></div></label></p>
114
  </div>
115
 
116
  </div>
124
 
125
  <div class="apss-counter-settings clearfix">
126
  <h4><?php _e( 'Social share counter enable?', APSS_TEXT_DOMAIN ); ?> </h4>
127
+ <div class="misc-opt"><input type="radio" id='counter_enable_options_n' name="apss_share_settings[counter_enable_options]" value="0" <?php if($options['counter_enable_options'] =='0'){ echo "checked='checked'"; } ?> /><label for="counter_enable_options_n"><?php _e( 'No', APSS_TEXT_DOMAIN ); ?></label></div>
128
+ <div class="misc-opt"><input type="radio" id='counter_enable_options_y' name="apss_share_settings[counter_enable_options]" value="1" <?php if($options['counter_enable_options'] =='1'){ echo "checked='checked'"; } ?> /><label for="counter_enable_options_y"><?php _e( 'Yes', APSS_TEXT_DOMAIN ); ?></label></div>
129
  </div>
130
 
131
  <div class="apss-dialog-boxs clearfix">
132
  <h4><?php _e('Social share link options:', APSS_TEXT_DOMAIN ); ?> </h4>
133
+ <div class="misc-opt"><input type="radio" id='dialog_box_options_1' name="apss_share_settings[dialog_box_options]" value="0" <?php if($options['dialog_box_options'] =='0'){ echo "checked='checked'"; } ?> /><label for="dialog_box_options_1"><?php _e( 'Open in same window', APSS_TEXT_DOMAIN ); ?></label></div>
134
+ <div class="misc-opt"><input type="radio" id='dialog_box_options_2' name="apss_share_settings[dialog_box_options]" value="1" <?php if($options['dialog_box_options'] =='1'){ echo "checked='checked'"; } ?> /><label for="dialog_box_options_2"><?php _e( 'Open in new window/Tab', APSS_TEXT_DOMAIN ); ?></label></div>
135
  </div>
136
 
137
  <div class='cache-settings'>
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.1
7
- Stable tag: 1.0.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -89,6 +89,12 @@ Once you install the plugin , you can check some general documentation about how
89
  6. Backend Miscellaneous Settings Section
90
 
91
  == Changelog ==
 
 
 
 
 
 
92
  = 1.0.1 =
93
  * Added the options for the display of the social share in home page.
94
  * Fixed wp error occuring for the http request made by site.
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 4.1
7
+ Stable tag: 1.0.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
89
  6. Backend Miscellaneous Settings Section
90
 
91
  == Changelog ==
92
+ = 1.0.2 =
93
+ * Fixed the bug for pre-selected page share options.
94
+ * Done the bug fixing for label attributes for display settings tab and miscellaneous tab.
95
+ * Some changes done for how to use section and about sections.
96
+
97
+
98
  = 1.0.1 =
99
  * Added the options for the display of the social share in home page.
100
  * Fixed wp error occuring for the http request made by site.