Social Share WordPress Plugin – AccessPress Social Share - Version 4.1.9

Version Description

  • Done the bug fixing for the theme 3 for the mobile displays.
  • Done the bug fixing for the content share for the linkedin.
  • Addition of link to create facebook app in the plugins miscelleneous settings.
  • Addition of the More WordPress Resources link.
Download this release

Release Info

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

Code changes from version 4.1.8 to 4.1.9

accesspress-social-share.php CHANGED
@@ -4,7 +4,7 @@ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
4
  Plugin name: Social Share WordPress Plugin - 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.8
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.1.8' );
34
  }
35
 
36
  if ( !defined( 'APSS_TEXT_DOMAIN' ) ) {
@@ -153,9 +153,9 @@ if ( !class_exists( 'APSS_Class' ) ) {
153
  $content = trim( strip_shortcodes( strip_tags( $post->post_content ) ) );
154
 
155
  if ( strlen( $content ) >= 100 ) {
156
- $excerpt = substr( $content, 0, 100 ) . '...';
157
  } else {
158
- $excerpt = $content;
159
  }
160
  $options = $this->apss_settings;
161
  ob_start();
4
  Plugin name: Social Share WordPress Plugin - 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.9
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.9' );
34
  }
35
 
36
  if ( !defined( 'APSS_TEXT_DOMAIN' ) ) {
153
  $content = trim( strip_shortcodes( strip_tags( $post->post_content ) ) );
154
 
155
  if ( strlen( $content ) >= 100 ) {
156
+ $excerpt = urlencode(substr( $content, 0, 100 ) . '...');
157
  } else {
158
+ $excerpt = urlencode($content);
159
  }
160
  $options = $this->apss_settings;
161
  ob_start();
css/backend.css CHANGED
@@ -71,7 +71,8 @@
71
 
72
  .apss-wrapper {
73
  background-color: #fff;
74
- float: none;
 
75
  margin: 0;
76
  padding: 20px;
77
  border-top: 1px solid #fff;
@@ -92,7 +93,7 @@
92
  }
93
 
94
  .apss-wrapper-block {
95
- width: 833px;
96
  padding: 20px 0;
97
  float:left;
98
  }
@@ -173,7 +174,7 @@
173
  display: block;
174
  float: left;
175
  padding: 0 20px;
176
- width: 72%;
177
  }
178
 
179
 
@@ -390,4 +391,9 @@
390
 
391
  .apss-counter-api-options.apss-counter-settings.clearfix {
392
  margin-top: 10px !important;
 
 
 
 
 
393
  }
71
 
72
  .apss-wrapper {
73
  background-color: #fff;
74
+ float: left;
75
+ width: 65%;
76
  margin: 0;
77
  padding: 20px;
78
  border-top: 1px solid #fff;
93
  }
94
 
95
  .apss-wrapper-block {
96
+ width: 98%;
97
  padding: 20px 0;
98
  float:left;
99
  }
174
  display: block;
175
  float: left;
176
  padding: 0 20px;
177
+ width: auto;
178
  }
179
 
180
 
391
 
392
  .apss-counter-api-options.apss-counter-settings.clearfix {
393
  margin-top: 10px !important;
394
+ }
395
+
396
+ .apps-opt-wrap .apss-option-wrapper label input[type="checkbox"] {
397
+ float: right;
398
+ margin-top: 5px;
399
  }
css/frontend.css CHANGED
@@ -1099,7 +1099,7 @@
1099
 
1100
  .apss-theme-3 .apss-single-icon {
1101
  display: inline-block;
1102
- width: 50%;
1103
  }
1104
  }
1105
 
@@ -1107,7 +1107,7 @@
1107
 
1108
  .apss-theme-3 .apss-single-icon {
1109
  display: inline-block;
1110
- width: 100%;
1111
  clear: both;
1112
  }
1113
 
1099
 
1100
  .apss-theme-3 .apss-single-icon {
1101
  display: inline-block;
1102
+ /*width: 50%;*/
1103
  }
1104
  }
1105
 
1107
 
1108
  .apss-theme-3 .apss-single-icon {
1109
  display: inline-block;
1110
+ /*width: 100%;*/
1111
  clear: both;
1112
  }
1113
 
inc/backend/how-to-use.php CHANGED
@@ -1,7 +1,8 @@
1
  <?php defined('ABSPATH') or die("No script kiddies please!"); ?>
2
  <p>Plugin configuration video </p>
3
  <iframe width="560" height="315" src="https://www.youtube.com/embed/tAfiyOnoEZs" frameborder="0" allowfullscreen></iframe>
4
-
 
5
  <br />
6
  <p>Basically there are four main settings tabs that will help you to setup the plugin to work properly.</p>
7
  <dl>
1
  <?php defined('ABSPATH') or die("No script kiddies please!"); ?>
2
  <p>Plugin configuration video </p>
3
  <iframe width="560" height="315" src="https://www.youtube.com/embed/tAfiyOnoEZs" frameborder="0" allowfullscreen></iframe>
4
+ <br />
5
+ You can get the details instruction for creating facebook app <a href='http://demo.accesspressthemes.com/wordpress-plugins/accesspress-social-share/?p=89' target="_blank">here</a>.
6
  <br />
7
  <p>Basically there are four main settings tabs that will help you to setup the plugin to work properly.</p>
8
  <dl>
inc/backend/main-page.php CHANGED
@@ -47,265 +47,269 @@
47
  <li><a href="javascript:void(0)" id="apss-miscellaneous" class="apss-tabs-trigger"><?php _e( 'Miscellaneous', 'accesspress-social-share' ); ?></a></li>
48
  <li><a href="javascript:void(0)" id="apss-how-to-use" class="apss-tabs-trigger"><?php _e( 'How To Use', 'accesspress-social-share' ); ?></a></li>
49
  <li><a href="javascript:void(0)" id="apss-about" class="apss-tabs-trigger"><?php _e( 'About', 'accesspress-social-share' ); ?></a></li>
 
50
  </ul>
51
- <div class="apss-wrapper">
52
- <div class="apss-tab-contents apss-social-networks" id="tab-apss-social-networks" style='display:block'>
53
- <h2><?php _e( 'Social Media chooser:', 'accesspress-social-share' ); ?> </h2>
54
- <span class="social-text"><?php _e( 'Please choose the social media you want to display. Also you can order these social media\'s by drag and drop:', 'accesspress-social-share' ); ?></span>
55
- <div class="apps-opt-wrap clearfix">
56
- <?php
57
- $label_array = array(
58
- 'facebook' => ' <span class="media-icon"><i class="fa fa-facebook"></i></span> Facebook',
59
- 'twitter' => ' <span class="media-icon"><i class="fa fa-twitter"></i></span> Twitter',
60
- 'google-plus' => '<span class="media-icon"><i class="fa fa-google-plus"></i></span> Google Plus',
61
- 'pinterest' => '<span class="media-icon"> <i class="fa fa-pinterest"></i> </span>Pinterest',
62
- 'linkedin' => '<span class="media-icon"><i class="fa fa-linkedin"></i></span> Linkedin',
63
- 'digg' => '<span class="media-icon"><i class="fa fa-digg"></i></span> Digg',
64
- 'email' => '<span class="media-icon"><i class="fa fa-envelope"></i></span> Email',
65
- 'print' => '<span class="media-icon"><i class="fa fa-print"></i> </span>Print',
66
- );
67
- ?>
68
- <?php foreach ( $options['social_networks'] as $key => $val ) {
69
- ?>
70
- <div class="apss-option-wrapper">
71
- <div class="apss-option-field">
72
- <label class="clearfix"><span class="left-icon"><i class="fa fa-arrows"></i></span><span class="social-name"><?php echo $label_array[$key]; ?></span><input type="checkbox" data-key='<?php echo $key; ?>' name="social_networks[<?php echo $key; ?>]" value="1" <?php if ( $val == '1' ) {
73
- echo "checked='checked'";
74
- } ?> /></label>
75
- </div>
 
 
 
 
 
76
  </div>
77
- <?php } ?>
78
- </div>
79
- <input type="hidden" name="apss_social_newtwork_order" id='apss_social_newtwork_order' value="<?php echo implode( ',', array_keys( $options['social_networks'] ) ); ?>"/>
80
- </div>
81
 
82
- <div class="apss-tab-contents apss-share-options" id="tab-apss-share-options" style='display:none'>
83
- <h2><?php _e( 'Share options:', 'accesspress-social-share' ); ?> </h2>
84
- <span class="social-text"><?php _e( 'Please choose the options where you want to display social share icons:', 'accesspress-social-share' ); ?></span>
85
- <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'] ) ) {
86
- echo "checked='checked'";
87
- } ?> ><label for="apss_posts"><?php _e( 'Posts', 'accesspress-social-share' ); ?> </label></p>
88
- <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'] ) ) {
89
- echo "checked='checked'";
90
- } ?> ><label for="apss_pages"><?php _e( 'Pages', 'accesspress-social-share' ); ?> </label></p>
91
 
92
- <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'] ) ) {
93
- echo "checked='checked'";
94
- } ?> ><label for="apss_front_page"><?php _e( 'Front Page', 'accesspress-social-share' ); ?></label></p>
95
- <p><input type="checkbox" id="apss_archives" value="archives" name="apss_share_settings[share_options][]" <?php if ( in_array( "archives", $options['share_options'] ) ) {
96
- echo "checked='checked'";
97
- } ?> ><label for="apss_archives"><?php _e( 'Archives', 'accesspress-social-share' ); ?></label></p>
98
 
99
- <p><input type="checkbox" id="apss_attachement" value="attachment" name="apss_share_settings[share_options][]" <?php if ( in_array( "attachment", $options['share_options'] ) ) {
100
- echo "checked='checked'";
101
- } ?> ><label for="apss_attachment"><?php _e( 'Attachment pages', 'accesspress-social-share' ); ?></label></p>
102
 
103
- <p><input type="checkbox" id="apss_categories" value="categories" name="apss_share_settings[share_options][]" <?php if ( in_array( "categories", $options['share_options'] ) ) {
104
- echo "checked='checked'";
105
- } ?> ><label for="apss_categories"><?php _e( 'Categories', 'accesspress-social-share' ); ?></label></p>
106
- <p><input type="checkbox" id="apss_all" value="all" name="apss_share_settings[share_options][]" <?php if ( in_array( "all", $options['share_options'] ) ) {
107
- echo "checked='checked'";
108
- } ?> ><label for="apss_all"><?php _e( 'Other (search results, etc)', 'accesspress-social-share' ); ?></label></p>
109
 
110
- </div>
111
 
112
- <div class="apss-tab-contents apss-display-settings" id="tab-apss-display-settings" style='display:none'>
113
- <div class=' apss-display-positions'>
114
- <h2><?php _e( 'Display position:', 'accesspress-social-share' ); ?></h2>
115
- <span class='social-text'><?php _e( 'Please choose the option where you want to display the social share:', 'accesspress-social-share' ); ?></span>
116
- <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' ) {
117
- echo "checked='checked'";
118
- } ?> /><label for='apss_below_content'><?php _e( 'Below content', 'accesspress-social-share' ); ?></label></p>
119
- <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' ) {
120
- echo "checked='checked'";
121
- } ?> /><label for='apss_above_content'><?php _e( 'Above content', 'accesspress-social-share' ); ?></label></p>
122
- <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' ) {
123
- echo "checked='checked'";
124
- } ?> /><label for='apss_below_above_content'><?php _e( 'Both(Below content and Above content)', 'accesspress-social-share' ); ?></label></p>
125
- </div>
126
- <div class=" apss-icon-sets">
127
- <h2><?php _e( 'Social icons sets: ', 'accesspress-social-share' ); ?> </h2>
128
- <?php _e( 'Please choose any one out of available icon themes:', 'accesspress-social-share' ); ?>
129
- <?php for ( $i = 1; $i <= 6; $i++ ) { ?>
130
- <p><input id="apss_icon_set_<?php echo $i; ?>" value="<?php echo $i; ?>" name="apss_share_settings[social_icon_set]" type="radio" <?php if ( $options['social_icon_set'] == $i ) {
131
- echo "checked='checked'";
132
- } ?> ><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>
133
- <?php } ?>
134
- </div>
135
- </div>
136
 
137
- <div class="apss-tab-contents apss-miscellaneous" id="tab-apss-miscellaneous" style='display:none'>
138
- <h2><?php _e( 'Miscellaneous settings: ', 'accesspress-social-share' ); ?> </h2>
139
- <h4><?php _e( 'Please setup these additional settings:', 'accesspress-social-share' ); ?></h4>
140
 
141
- <div class="apss-share-text-settings clearfix">
142
- <h4><?php _e( 'Disable the plugins frontend assets?', 'accesspress-social-share' ); ?> </h4>
143
- <div class="misc-opt"><input type="radio" id='disable_frontend_assets_n' name="apss_share_settings[disable_frontend_assets]" value="0" <?php if ( isset( $options['disable_frontend_assets'] ) && $options['disable_frontend_assets'] == '0' ) {
144
- echo "checked='checked'";
145
- } ?> /><label for="disable_frontend_assets_n"><?php _e( 'No', 'accesspress-social-share' ); ?></label></div>
146
- <div class="misc-opt"><input type="radio" id='disable_frontend_assets_y' name="apss_share_settings[disable_frontend_assets]" value="1" <?php if ( isset( $options['disable_frontend_assets'] ) && $options['disable_frontend_assets'] == '1' ) {
147
- echo "checked='checked'";
148
- } ?> /><label for="disable_frontend_assets_y"><?php _e( 'Yes', 'accesspress-social-share' ); ?></label></div>
149
- <br />
150
- <div class="apss_notes_cache_settings">
151
- <?php _e( 'Please set this value if you don\'t want to use plguins frontend assets(js and css files).', 'accesspress-social-share' ); ?>
152
- </div>
153
- </div>
154
- <br />
155
- <div class="apss-share-text-settings clearfix">
156
- <?php _e( 'Share text:', 'accesspress-social-share' ); ?> <input type="text" name="apss_share_settings[share_text]" value="<?php if ( isset( $options['share_text'] ) ) {
157
- echo $options['share_text'];
158
- } ?>" />
159
- <div class="apss_notes_cache_settings">
160
- <?php _e( 'Please enter the share text to make it appear above social share icons. Leave blank if you don\'t want to use share text.', 'accesspress-social-share' ); ?>
161
- </div>
162
- </div>
163
- <br />
164
- <div class="apss-twitter-settings clearfix">
165
- <?php _e( 'Twitter username:', 'accesspress-social-share' ); ?> <input type="text" name="apss_share_settings[twitter_username]" value="<?php echo $options['twitter_username']; ?>" />
166
- </div>
167
 
168
- <div class="apss-counter-settings clearfix">
169
- <h4><?php _e( 'Social share counter enable?', 'accesspress-social-share' ); ?> </h4>
170
- <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' ) {
171
- echo "checked='checked'";
172
- } ?> /><label for="counter_enable_options_n"><?php _e( 'No', 'accesspress-social-share' ); ?></label></div>
173
- <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' ) {
174
- echo "checked='checked'";
175
- } ?> /><label for="counter_enable_options_y"><?php _e( 'Yes', 'accesspress-social-share' ); ?></label></div>
176
- </div>
177
 
178
- <div class="apss-counter-api-options apss-counter-settings clearfix" style="<?php if(isset($options['counter_enable_options']) && $options['counter_enable_options'] == '1'){ echo 'display:block'; }else{ echo 'display:none'; } ?>">
179
- <div class='apss-counter-api'>
180
- <input type="radio" id='apss_twitter_counter_option' name="apss_share_settings[twitter_counter_api]" value="1" <?php if(isset($options['twitter_counter_api'])){ if($options['twitter_counter_api'] == '1') {
181
- echo "checked='checked'";
182
- } } ?> />
183
- <label for="apss_twitter_counter_option"><?php _e( "Don't show Twitter share counts", 'accesspress-social-share' ); ?></label>
184
- <div class="apss_notes_cache_settings"> Please select this option if you don't want to show twitter share counts.</div>
185
- </div>
186
 
187
- <div class='apss-counter-api'>
188
- <input type="radio" id='apss_twitter_counter_option_1' name="apss_share_settings[twitter_counter_api]" value="2" <?php if(isset($options['twitter_counter_api'])){ if($options['twitter_counter_api'] == '2') {
189
- echo "checked='checked'";
190
- } } ?> />
191
- <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>
192
- <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>
193
- </div>
194
 
195
- <div class='apss-counter-api'>
196
- <input type="radio" id='apss_twitter_counter_option_2' name="apss_share_settings[twitter_counter_api]" value="3" <?php if(isset($options['twitter_counter_api'])){ if($options['twitter_counter_api'] == '3') {
197
- echo "checked='checked'";
198
- }} ?> /><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>
199
- <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>
200
- </div>
201
- <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>
202
 
203
- <div class="apss_counter-api">
204
- <h4>If facebook counter is not working. Please setup the facebook APP and enter required details below.</h4>
205
- <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 if ( isset( $options['api_configuration']['facebook']['app_id'] ) ) { echo $options['api_configuration']['facebook']['app_id']; } ?>" />
206
- <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>
207
- <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 if ( isset( $options['api_configuration']['facebook']['app_secret'] ) ) { echo $options['api_configuration']['facebook']['app_secret']; } ?>" />
208
- <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>
209
- <div class="apss_notes_cache_settings">Please not that you should make your APP live.</div>
210
- </div>
211
- </div>
 
 
 
212
 
213
- <div class="apss-total-counter-settings clearfix">
214
- <h4><?php _e( 'Social share total counter enable?', 'accesspress-social-share' ); ?> </h4>
215
- <div class="misc-opt"><input type="radio" id='total_counter_enable_options_n' name="apss_share_settings[total_counter_enable_options]" value="0" <?php if ( isset( $options['total_counter_enable_options'] ) && $options['total_counter_enable_options'] == '0' ) {
216
- echo "checked='checked'";
217
- } ?> /><label for="total_counter_enable_options_n"><?php _e( 'No', 'accesspress-social-share' ); ?></label></div>
218
- <div class="misc-opt"><input type="radio" id='total_counter_enable_options_y' name="apss_share_settings[total_counter_enable_options]" value="1" <?php if ( isset( $options['total_counter_enable_options'] ) && $options['total_counter_enable_options'] == '1' ) {
219
- echo "checked='checked'";
220
- } ?> /><label for="total_counter_enable_options_y"><?php _e( 'Yes', 'accesspress-social-share' ); ?></label></div>
221
- </div>
222
 
223
- <div class="apss-dialog-boxs clearfix">
224
- <h4><?php _e( 'Social share link options:', 'accesspress-social-share' ); ?> </h4>
225
- <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' ) {
226
- echo "checked='checked'";
227
- } ?> /><label for="dialog_box_options_1"><?php _e( 'Open in same window', 'accesspress-social-share' ); ?></label></div>
228
- <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' ) {
229
- echo "checked='checked'";
230
- } ?> /><label for="dialog_box_options_2"><?php _e( 'Open in new window/Tab', 'accesspress-social-share' ); ?></label></div>
231
-
232
- <div class="misc-opt"><input type="radio" id='dialog_box_options_3' name="apss_share_settings[dialog_box_options]" value="2" <?php if ( $options['dialog_box_options'] == '2' ) {
233
- echo "checked='checked'";
234
- } ?> /><label for="dialog_box_options_3"><?php _e( 'Open in popup window', 'accesspress-social-share' ); ?></label></div>
235
- </div>
236
 
237
 
238
- <div class='apss_cache_enable_opt'>
239
- <h4><?php _e( 'Enable cache? ', 'accesspress-social-share' ); ?> </h4>
240
- <div class='misc-opt'>
241
- <input type="radio" id='enable_cache_yes' name="apss_share_settings[enable_cache]" value="1" <?php if ( isset($options['enable_cache']) && $options['enable_cache'] == '1' ) { echo "checked='checked'"; } ?> />
242
- <label for='enable_cache_yes'><?php _e('Yes', 'accesspress-social-share'); ?></label>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
243
  </div>
244
- <div class='misc-opt'>
245
- <input type="radio" id='enable_cache_no' name="apss_share_settings[enable_cache]" value="0" <?php if ( isset($options['enable_cache']) && $options['enable_cache'] == '0' ) { echo "checked='checked'"; } ?> />
246
- <label for='enable_cache_no'><?php _e('No', 'accesspress-social-share'); ?></label>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
247
  </div>
248
- </div>
249
- <br />
250
- <div class='cache-settings'>
251
- <h4><?php _e( 'Cache Settings: ', 'accesspress-social-share' ); ?> </h4>
252
- <label for="apss_cache_settings"><?php _e( 'Cache Period:', 'accesspress-social-share' ); ?></label>
253
- <input type='text' id="apss_cache_period" name='apss_share_settings[cache_settings]' value="<?php if ( isset( $options['cache_period'] ) ) {
254
- echo $options['cache_period'];
255
- } ?>" onkeyup="removeMe('invalid_cache_period');"/>
256
- <span class="error invalid_cache_period"></span>
257
- <div class="apss_notes_cache_settings">
258
- <?php _e( 'Please enter the time in hours in which the social share counter should be updated from social networks. Default is 24 hours.', 'accesspress-social-share' ); ?>
259
  </div>
260
- </div>
261
 
262
- <div class="apss-email-settings">
263
- <h4><?php _e( 'Email Settings:', 'accesspress-social-share' ); ?></h4>
264
- <div class="app-email-sub email-setg">
265
- <label for='apss-email-subject'><?php _e( 'Email subject:', 'accesspress-social-share' ); ?></label>
266
- <input type='text' name="apss_share_settings[apss_email_subject]" value="<?php echo $options['apss_email_subject'] ?>" />
267
- </div>
268
- <div class="app-email-body email-setg">
269
- <label for='apss-email-body'><?php _e( 'Email body:', 'accesspress-social-share' ); ?></label>
270
- <textarea rows='30' cols='30' name="apss_share_settings[apss_email_body]"><?php echo $options['apss_email_body'] ?></textarea>
271
- </div>
272
- <div class="apss_notes_cache_settings">
273
- Available parameters: <br />
274
- %%url%% = current page/post url(custom url if you have used "custom_share_link" attribute in the shortcode ) <br />
275
- %%title%% = current page/post's title <br />
276
- %%permalink%% = current page/post url <br />
277
- %%siteurl%% = Site url <br />
278
- </div>
 
 
 
279
  </div>
280
  </div>
281
- <div class="apss-tab-contents apss-how-to-use" id="tab-apss-how-to-use" style='display:none' >
282
- <?php include_once('how-to-use.php'); ?>
283
- </div>
284
-
285
- <div class="apss-tab-contents apss-about" id="tab-apss-about" style='display:none' >
286
- <?php include('about-apss.php'); ?>
287
-
288
- </div>
289
- <?php wp_nonce_field( 'apss_nonce_save_settings', 'apss_add_nonce_save_settings' ); ?>
290
- <input type="submit" class="submit_settings button primary-button" value="<?php _e( 'Save settings', 'accesspress-social-share' ); ?>" name="apss_submit_settings" id="apss_submit_settings"/>
291
- <?php
292
- /**
293
- * Nonce field
294
- * */
295
- wp_nonce_field( 'apss_settings_action', 'apss_settings_action' );
296
- ?>
297
- <?php $nonce = wp_create_nonce( 'apss-restore-default-settings-nonce' ); ?>
298
- <?php $nonce_clear = wp_create_nonce( 'apss-clear-cache-nonce' ); ?>
299
- <a href="<?php echo admin_url() . 'admin-post.php?action=apss_restore_default_settings&_wpnonce=' . $nonce; ?>" onclick="return confirm('<?php _e( 'Are you sure you want to restore default settings?', 'accesspress-social-share' ); ?>')"><input type="button" value="Restore Default Settings" class="apss-reset-button button primary-button"/></a>
300
- <a href="<?php echo admin_url() . 'admin-post.php?action=apss_clear_cache&_wpnonce=' . $nonce_clear; ?>" onclick="return confirm('<?php _e( 'Are you sure you want to clear cache share counter?', 'accesspress-social-share' ); ?>')"><input type="button" value="Clear Cache" class="apss-reset-button button primary-button"/></a>
301
- </div>
302
  </form>
303
  </div>
304
  </div>
305
- <div class="apss-promoFloat">
306
- <a href='https://accesspressthemes.com/wordpress-plugins/accesspress-social-pro/' target='_blank'><img src="<?php echo APSS_IMAGE_DIR . '/promo-top.png' ?>" alt="promo-top" /></a>
307
- <div class="apss-promo-buttons"><a target='_blank' href="http://demo.accesspressthemes.com/wordpress-plugins/accesspress-social-pro/" /><img src="<?php echo APSS_IMAGE_DIR . '/demo-btn.png' ?>" alt="demo link" /></a><a target='_blank' href="http://codecanyon.net/item/accesspress-social-pro/10429645?ref=AccessKeys" ><img src="<?php echo APSS_IMAGE_DIR . '/upgrade-btn.png' ?>" alt="upgrade link" /></a></div>
308
- <a href='https://accesspressthemes.com/wordpress-plugins/accesspress-social-pro/' target='_blank'><img src="<?php echo APSS_IMAGE_DIR . '/promo-bottom.png' ?>" alt="promo-bottom" /></a>
309
- <div class="apss-promo-buttons"><a target='_blank' href="http://demo.accesspressthemes.com/wordpress-plugins/accesspress-social-pro/" /><img src="<?php echo APSS_IMAGE_DIR . '/demo-btn.png' ?>" alt="demo link" /></a><a target='_blank' href="http://codecanyon.net/item/accesspress-social-pro/10429645?ref=AccessKeys" ><img src="<?php echo APSS_IMAGE_DIR . '/upgrade-btn.png' ?>" alt="upgrade link" /></a></div>
310
- </div>
311
- <div class="clear"></div>
47
  <li><a href="javascript:void(0)" id="apss-miscellaneous" class="apss-tabs-trigger"><?php _e( 'Miscellaneous', 'accesspress-social-share' ); ?></a></li>
48
  <li><a href="javascript:void(0)" id="apss-how-to-use" class="apss-tabs-trigger"><?php _e( 'How To Use', 'accesspress-social-share' ); ?></a></li>
49
  <li><a href="javascript:void(0)" id="apss-about" class="apss-tabs-trigger"><?php _e( 'About', 'accesspress-social-share' ); ?></a></li>
50
+ <li><a href="http://wpall.club/" id="apss-resources" class="apss-tabs-trigger" target="_blank"><?php _e( 'More WordPress Resources', 'accesspress-social-share' ); ?></a></li>
51
  </ul>
52
+
53
+ <div class='apss-tab-contents-wrapper'>
54
+ <div class="apss-wrapper">
55
+
56
+ <div class="apss-tab-contents apss-social-networks" id="tab-apss-social-networks" style='display:block'>
57
+ <h2><?php _e( 'Social Media chooser:', 'accesspress-social-share' ); ?> </h2>
58
+ <span class="social-text"><?php _e( 'Please choose the social media you want to display. Also you can order these social media\'s by drag and drop:', 'accesspress-social-share' ); ?></span>
59
+ <div class="apps-opt-wrap clearfix">
60
+ <?php
61
+ $label_array = array(
62
+ 'facebook' => ' <span class="media-icon"><i class="fa fa-facebook"></i></span> Facebook',
63
+ 'twitter' => ' <span class="media-icon"><i class="fa fa-twitter"></i></span> Twitter',
64
+ 'google-plus' => '<span class="media-icon"><i class="fa fa-google-plus"></i></span> Google Plus',
65
+ 'pinterest' => '<span class="media-icon"> <i class="fa fa-pinterest"></i> </span>Pinterest',
66
+ 'linkedin' => '<span class="media-icon"><i class="fa fa-linkedin"></i></span> Linkedin',
67
+ 'digg' => '<span class="media-icon"><i class="fa fa-digg"></i></span> Digg',
68
+ 'email' => '<span class="media-icon"><i class="fa fa-envelope"></i></span> Email',
69
+ 'print' => '<span class="media-icon"><i class="fa fa-print"></i> </span>Print',
70
+ );
71
+ ?>
72
+ <?php foreach ( $options['social_networks'] as $key => $val ) {
73
+ ?>
74
+ <div class="apss-option-wrapper">
75
+ <div class="apss-option-field">
76
+ <label class="clearfix"><span class="left-icon"><i class="fa fa-arrows"></i></span><span class="social-name"><?php echo $label_array[$key]; ?></span><input type="checkbox" data-key='<?php echo $key; ?>' name="social_networks[<?php echo $key; ?>]" value="1" <?php if ( $val == '1' ) {
77
+ echo "checked='checked'";
78
+ } ?> /></label>
79
+ </div>
80
+ </div>
81
+ <?php } ?>
82
  </div>
83
+ <input type="hidden" name="apss_social_newtwork_order" id='apss_social_newtwork_order' value="<?php echo implode( ',', array_keys( $options['social_networks'] ) ); ?>"/>
84
+ </div>
 
 
85
 
86
+ <div class="apss-tab-contents apss-share-options" id="tab-apss-share-options" style='display:none'>
87
+ <h2><?php _e( 'Share options:', 'accesspress-social-share' ); ?> </h2>
88
+ <span class="social-text"><?php _e( 'Please choose the options where you want to display social share icons:', 'accesspress-social-share' ); ?></span>
89
+ <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'] ) ) {
90
+ echo "checked='checked'";
91
+ } ?> ><label for="apss_posts"><?php _e( 'Posts', 'accesspress-social-share' ); ?> </label></p>
92
+ <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'] ) ) {
93
+ echo "checked='checked'";
94
+ } ?> ><label for="apss_pages"><?php _e( 'Pages', 'accesspress-social-share' ); ?> </label></p>
95
 
96
+ <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'] ) ) {
97
+ echo "checked='checked'";
98
+ } ?> ><label for="apss_front_page"><?php _e( 'Front Page', 'accesspress-social-share' ); ?></label></p>
99
+ <p><input type="checkbox" id="apss_archives" value="archives" name="apss_share_settings[share_options][]" <?php if ( in_array( "archives", $options['share_options'] ) ) {
100
+ echo "checked='checked'";
101
+ } ?> ><label for="apss_archives"><?php _e( 'Archives', 'accesspress-social-share' ); ?></label></p>
102
 
103
+ <p><input type="checkbox" id="apss_attachement" value="attachment" name="apss_share_settings[share_options][]" <?php if ( in_array( "attachment", $options['share_options'] ) ) {
104
+ echo "checked='checked'";
105
+ } ?> ><label for="apss_attachment"><?php _e( 'Attachment pages', 'accesspress-social-share' ); ?></label></p>
106
 
107
+ <p><input type="checkbox" id="apss_categories" value="categories" name="apss_share_settings[share_options][]" <?php if ( in_array( "categories", $options['share_options'] ) ) {
108
+ echo "checked='checked'";
109
+ } ?> ><label for="apss_categories"><?php _e( 'Categories', 'accesspress-social-share' ); ?></label></p>
110
+ <p><input type="checkbox" id="apss_all" value="all" name="apss_share_settings[share_options][]" <?php if ( in_array( "all", $options['share_options'] ) ) {
111
+ echo "checked='checked'";
112
+ } ?> ><label for="apss_all"><?php _e( 'Other (search results, etc)', 'accesspress-social-share' ); ?></label></p>
113
 
114
+ </div>
115
 
116
+ <div class="apss-tab-contents apss-display-settings" id="tab-apss-display-settings" style='display:none'>
117
+ <div class=' apss-display-positions'>
118
+ <h2><?php _e( 'Display position:', 'accesspress-social-share' ); ?></h2>
119
+ <span class='social-text'><?php _e( 'Please choose the option where you want to display the social share:', 'accesspress-social-share' ); ?></span>
120
+ <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' ) {
121
+ echo "checked='checked'";
122
+ } ?> /><label for='apss_below_content'><?php _e( 'Below content', 'accesspress-social-share' ); ?></label></p>
123
+ <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' ) {
124
+ echo "checked='checked'";
125
+ } ?> /><label for='apss_above_content'><?php _e( 'Above content', 'accesspress-social-share' ); ?></label></p>
126
+ <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' ) {
127
+ echo "checked='checked'";
128
+ } ?> /><label for='apss_below_above_content'><?php _e( 'Both(Below content and Above content)', 'accesspress-social-share' ); ?></label></p>
129
+ </div>
130
+ <div class=" apss-icon-sets">
131
+ <h2><?php _e( 'Social icons sets: ', 'accesspress-social-share' ); ?> </h2>
132
+ <?php _e( 'Please choose any one out of available icon themes:', 'accesspress-social-share' ); ?>
133
+ <?php for ( $i = 1; $i <= 6; $i++ ) { ?>
134
+ <p><input id="apss_icon_set_<?php echo $i; ?>" value="<?php echo $i; ?>" name="apss_share_settings[social_icon_set]" type="radio" <?php if ( $options['social_icon_set'] == $i ) {
135
+ echo "checked='checked'";
136
+ } ?> ><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>
137
+ <?php } ?>
138
+ </div>
139
+ </div>
140
 
141
+ <div class="apss-tab-contents apss-miscellaneous" id="tab-apss-miscellaneous" style='display:none'>
142
+ <h2><?php _e( 'Miscellaneous settings: ', 'accesspress-social-share' ); ?> </h2>
143
+ <h4><?php _e( 'Please setup these additional settings:', 'accesspress-social-share' ); ?></h4>
144
 
145
+ <div class="apss-share-text-settings clearfix">
146
+ <h4><?php _e( 'Disable the plugins frontend assets?', 'accesspress-social-share' ); ?> </h4>
147
+ <div class="misc-opt"><input type="radio" id='disable_frontend_assets_n' name="apss_share_settings[disable_frontend_assets]" value="0" <?php if ( isset( $options['disable_frontend_assets'] ) && $options['disable_frontend_assets'] == '0' ) {
148
+ echo "checked='checked'";
149
+ } ?> /><label for="disable_frontend_assets_n"><?php _e( 'No', 'accesspress-social-share' ); ?></label></div>
150
+ <div class="misc-opt"><input type="radio" id='disable_frontend_assets_y' name="apss_share_settings[disable_frontend_assets]" value="1" <?php if ( isset( $options['disable_frontend_assets'] ) && $options['disable_frontend_assets'] == '1' ) {
151
+ echo "checked='checked'";
152
+ } ?> /><label for="disable_frontend_assets_y"><?php _e( 'Yes', 'accesspress-social-share' ); ?></label></div>
153
+ <br />
154
+ <div class="apss_notes_cache_settings">
155
+ <?php _e( 'Please set this value if you don\'t want to use plguins frontend assets(js and css files).', 'accesspress-social-share' ); ?>
156
+ </div>
157
+ </div>
158
+ <br />
159
+ <div class="apss-share-text-settings clearfix">
160
+ <?php _e( 'Share text:', 'accesspress-social-share' ); ?> <input type="text" name="apss_share_settings[share_text]" value="<?php if ( isset( $options['share_text'] ) ) {
161
+ echo $options['share_text'];
162
+ } ?>" />
163
+ <div class="apss_notes_cache_settings">
164
+ <?php _e( 'Please enter the share text to make it appear above social share icons. Leave blank if you don\'t want to use share text.', 'accesspress-social-share' ); ?>
165
+ </div>
166
+ </div>
167
+ <br />
168
+ <div class="apss-twitter-settings clearfix">
169
+ <?php _e( 'Twitter username:', 'accesspress-social-share' ); ?> <input type="text" name="apss_share_settings[twitter_username]" value="<?php echo $options['twitter_username']; ?>" />
170
+ </div>
171
 
172
+ <div class="apss-counter-settings clearfix">
173
+ <h4><?php _e( 'Social share counter enable?', 'accesspress-social-share' ); ?> </h4>
174
+ <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' ) {
175
+ echo "checked='checked'";
176
+ } ?> /><label for="counter_enable_options_n"><?php _e( 'No', 'accesspress-social-share' ); ?></label></div>
177
+ <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' ) {
178
+ echo "checked='checked'";
179
+ } ?> /><label for="counter_enable_options_y"><?php _e( 'Yes', 'accesspress-social-share' ); ?></label></div>
180
+ </div>
181
 
182
+ <div class="apss-counter-api-options apss-counter-settings clearfix" style="<?php if(isset($options['counter_enable_options']) && $options['counter_enable_options'] == '1'){ echo 'display:block'; }else{ echo 'display:none'; } ?>">
183
+ <div class='apss-counter-api'>
184
+ <input type="radio" id='apss_twitter_counter_option' name="apss_share_settings[twitter_counter_api]" value="1" <?php if(isset($options['twitter_counter_api'])){ if($options['twitter_counter_api'] == '1') {
185
+ echo "checked='checked'";
186
+ } } ?> />
187
+ <label for="apss_twitter_counter_option"><?php _e( "Don't show Twitter share counts", 'accesspress-social-share' ); ?></label>
188
+ <div class="apss_notes_cache_settings"> Please select this option if you don't want to show twitter share counts.</div>
189
+ </div>
190
 
191
+ <div class='apss-counter-api'>
192
+ <input type="radio" id='apss_twitter_counter_option_1' name="apss_share_settings[twitter_counter_api]" value="2" <?php if(isset($options['twitter_counter_api'])){ if($options['twitter_counter_api'] == '2') {
193
+ echo "checked='checked'";
194
+ } } ?> />
195
+ <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>
196
+ <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>
197
+ </div>
198
 
199
+ <div class='apss-counter-api'>
200
+ <input type="radio" id='apss_twitter_counter_option_2' name="apss_share_settings[twitter_counter_api]" value="3" <?php if(isset($options['twitter_counter_api'])){ if($options['twitter_counter_api'] == '3') {
201
+ echo "checked='checked'";
202
+ }} ?> /><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>
203
+ <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>
204
+ </div>
205
+ <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>
206
 
207
+ <div class="apss_counter-api">
208
+ <h4>If facebook counter is not working. Please setup the facebook APP and enter required details below.</h4>
209
+ <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 if ( isset( $options['api_configuration']['facebook']['app_id'] ) ) { echo $options['api_configuration']['facebook']['app_id']; } ?>" />
210
+ <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>
211
+ <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 if ( isset( $options['api_configuration']['facebook']['app_secret'] ) ) { echo $options['api_configuration']['facebook']['app_secret']; } ?>" />
212
+ <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>
213
+ <div class="apss_notes_cache_settings">
214
+ <b>Please note that you should make your APP live.</b>
215
+ You can get the details instruction for creating facebook app <a href='http://demo.accesspressthemes.com/wordpress-plugins/accesspress-social-share/?p=89' target="_blank">here</a>.
216
+ </div>
217
+ </div>
218
+ </div>
219
 
220
+ <div class="apss-total-counter-settings clearfix">
221
+ <h4><?php _e( 'Social share total counter enable?', 'accesspress-social-share' ); ?> </h4>
222
+ <div class="misc-opt"><input type="radio" id='total_counter_enable_options_n' name="apss_share_settings[total_counter_enable_options]" value="0" <?php if ( isset( $options['total_counter_enable_options'] ) && $options['total_counter_enable_options'] == '0' ) {
223
+ echo "checked='checked'";
224
+ } ?> /><label for="total_counter_enable_options_n"><?php _e( 'No', 'accesspress-social-share' ); ?></label></div>
225
+ <div class="misc-opt"><input type="radio" id='total_counter_enable_options_y' name="apss_share_settings[total_counter_enable_options]" value="1" <?php if ( isset( $options['total_counter_enable_options'] ) && $options['total_counter_enable_options'] == '1' ) {
226
+ echo "checked='checked'";
227
+ } ?> /><label for="total_counter_enable_options_y"><?php _e( 'Yes', 'accesspress-social-share' ); ?></label></div>
228
+ </div>
229
 
230
+ <div class="apss-dialog-boxs clearfix">
231
+ <h4><?php _e( 'Social share link options:', 'accesspress-social-share' ); ?> </h4>
232
+ <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' ) {
233
+ echo "checked='checked'";
234
+ } ?> /><label for="dialog_box_options_1"><?php _e( 'Open in same window', 'accesspress-social-share' ); ?></label></div>
235
+ <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' ) {
236
+ echo "checked='checked'";
237
+ } ?> /><label for="dialog_box_options_2"><?php _e( 'Open in new window/Tab', 'accesspress-social-share' ); ?></label></div>
238
+
239
+ <div class="misc-opt"><input type="radio" id='dialog_box_options_3' name="apss_share_settings[dialog_box_options]" value="2" <?php if ( $options['dialog_box_options'] == '2' ) {
240
+ echo "checked='checked'";
241
+ } ?> /><label for="dialog_box_options_3"><?php _e( 'Open in popup window', 'accesspress-social-share' ); ?></label></div>
242
+ </div>
243
 
244
 
245
+ <div class='apss_cache_enable_opt'>
246
+ <h4><?php _e( 'Enable cache? ', 'accesspress-social-share' ); ?> </h4>
247
+ <div class='misc-opt'>
248
+ <input type="radio" id='enable_cache_yes' name="apss_share_settings[enable_cache]" value="1" <?php if ( isset($options['enable_cache']) && $options['enable_cache'] == '1' ) { echo "checked='checked'"; } ?> />
249
+ <label for='enable_cache_yes'><?php _e('Yes', 'accesspress-social-share'); ?></label>
250
+ </div>
251
+ <div class='misc-opt'>
252
+ <input type="radio" id='enable_cache_no' name="apss_share_settings[enable_cache]" value="0" <?php if ( isset($options['enable_cache']) && $options['enable_cache'] == '0' ) { echo "checked='checked'"; } ?> />
253
+ <label for='enable_cache_no'><?php _e('No', 'accesspress-social-share'); ?></label>
254
+ </div>
255
+ </div>
256
+ <br />
257
+ <div class='cache-settings'>
258
+ <h4><?php _e( 'Cache Settings: ', 'accesspress-social-share' ); ?> </h4>
259
+ <label for="apss_cache_settings"><?php _e( 'Cache Period:', 'accesspress-social-share' ); ?></label>
260
+ <input type='text' id="apss_cache_period" name='apss_share_settings[cache_settings]' value="<?php if ( isset( $options['cache_period'] ) ) {
261
+ echo $options['cache_period'];
262
+ } ?>" onkeyup="removeMe('invalid_cache_period');"/>
263
+ <span class="error invalid_cache_period"></span>
264
+ <div class="apss_notes_cache_settings">
265
+ <?php _e( 'Please enter the time in hours in which the social share counter should be updated from social networks. Default is 24 hours.', 'accesspress-social-share' ); ?>
266
+ </div>
267
  </div>
268
+
269
+ <div class="apss-email-settings">
270
+ <h4><?php _e( 'Email Settings:', 'accesspress-social-share' ); ?></h4>
271
+ <div class="app-email-sub email-setg">
272
+ <label for='apss-email-subject'><?php _e( 'Email subject:', 'accesspress-social-share' ); ?></label>
273
+ <input type='text' name="apss_share_settings[apss_email_subject]" value="<?php echo $options['apss_email_subject'] ?>" />
274
+ </div>
275
+ <div class="app-email-body email-setg">
276
+ <label for='apss-email-body'><?php _e( 'Email body:', 'accesspress-social-share' ); ?></label>
277
+ <textarea rows='30' cols='30' name="apss_share_settings[apss_email_body]"><?php echo $options['apss_email_body'] ?></textarea>
278
+ </div>
279
+ <div class="apss_notes_cache_settings">
280
+ Available parameters: <br />
281
+ %%url%% = current page/post url(custom url if you have used "custom_share_link" attribute in the shortcode ) <br />
282
+ %%title%% = current page/post's title <br />
283
+ %%permalink%% = current page/post url <br />
284
+ %%siteurl%% = Site url <br />
285
+ </div>
286
  </div>
 
 
 
 
 
 
 
 
 
 
 
287
  </div>
288
+ <div class="apss-tab-contents apss-how-to-use" id="tab-apss-how-to-use" style='display:none' ><?php include_once('how-to-use.php'); ?></div>
289
 
290
+ <div class="apss-tab-contents apss-about" id="tab-apss-about" style='display:none' ><?php include('about-apss.php'); ?></div>
291
+ <?php wp_nonce_field( 'apss_nonce_save_settings', 'apss_add_nonce_save_settings' ); ?>
292
+ <input type="submit" class="submit_settings button primary-button" value="<?php _e( 'Save settings', 'accesspress-social-share' ); ?>" name="apss_submit_settings" id="apss_submit_settings"/>
293
+ <?php
294
+ /**
295
+ * Nonce field
296
+ * */
297
+ wp_nonce_field( 'apss_settings_action', 'apss_settings_action' );
298
+ ?>
299
+ <?php $nonce = wp_create_nonce( 'apss-restore-default-settings-nonce' ); ?>
300
+ <?php $nonce_clear = wp_create_nonce( 'apss-clear-cache-nonce' ); ?>
301
+ <a href="<?php echo admin_url() . 'admin-post.php?action=apss_restore_default_settings&_wpnonce=' . $nonce; ?>" onclick="return confirm('<?php _e( 'Are you sure you want to restore default settings?', 'accesspress-social-share' ); ?>')"><input type="button" value="Restore Default Settings" class="apss-reset-button button primary-button"/></a>
302
+ <a href="<?php echo admin_url() . 'admin-post.php?action=apss_clear_cache&_wpnonce=' . $nonce_clear; ?>" onclick="return confirm('<?php _e( 'Are you sure you want to clear cache share counter?', 'accesspress-social-share' ); ?>')"><input type="button" value="Clear Cache" class="apss-reset-button button primary-button"/></a>
303
+ </div>
304
+
305
+ <div class="apss-promoFloat">
306
+ <a href='https://accesspressthemes.com/wordpress-plugins/accesspress-social-pro/' target='_blank'><img src="<?php echo APSS_IMAGE_DIR . '/promo-top.png' ?>" alt="promo-top" /></a>
307
+ <div class="apss-promo-buttons"><a target='_blank' href="http://demo.accesspressthemes.com/wordpress-plugins/accesspress-social-pro/" /><img src="<?php echo APSS_IMAGE_DIR . '/demo-btn.png' ?>" alt="demo link" /></a><a target='_blank' href="http://codecanyon.net/item/accesspress-social-pro/10429645?ref=AccessKeys" ><img src="<?php echo APSS_IMAGE_DIR . '/upgrade-btn.png' ?>" alt="upgrade link" /></a></div>
308
+ <a href='https://accesspressthemes.com/wordpress-plugins/accesspress-social-pro/' target='_blank'><img src="<?php echo APSS_IMAGE_DIR . '/promo-bottom.png' ?>" alt="promo-bottom" /></a>
309
+ <div class="apss-promo-buttons"><a target='_blank' href="http://demo.accesspressthemes.com/wordpress-plugins/accesspress-social-pro/" /><img src="<?php echo APSS_IMAGE_DIR . '/demo-btn.png' ?>" alt="demo link" /></a><a target='_blank' href="http://codecanyon.net/item/accesspress-social-pro/10429645?ref=AccessKeys" ><img src="<?php echo APSS_IMAGE_DIR . '/upgrade-btn.png' ?>" alt="upgrade link" /></a></div>
310
  </div>
311
  </div>
312
+ <div class="clear"></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
313
  </form>
314
  </div>
315
  </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.6
7
- Stable tag: 4.1.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -98,6 +98,8 @@ For complete information and documentation regarding plugin, please visit below
98
 
99
  [Demo](http://demo.accesspressthemes.com/wordpress-plugins/accesspress-social-share/)
100
 
 
 
101
  == Installation ==
102
  1. Unzip accesspress-social-share.zip
103
  2. Upload all the files to the /wp-content/plugins/accesspress-social-share
@@ -133,6 +135,12 @@ Yes. You can use the AccessPress social share by using shortcode anywhere you wa
133
  6. Backend Miscellaneous Settings Section
134
 
135
  == Changelog ==
 
 
 
 
 
 
136
  = 4.1.8 =
137
  * Improved the facebook share counter using the facebook app. Now the user need to create facebook app to fetch share counts if old method is not working.
138
 
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 4.6
7
+ Stable tag: 4.1.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
98
 
99
  [Demo](http://demo.accesspressthemes.com/wordpress-plugins/accesspress-social-share/)
100
 
101
+ [More WordPress Resources](http://wpall.club/)
102
+
103
  == Installation ==
104
  1. Unzip accesspress-social-share.zip
105
  2. Upload all the files to the /wp-content/plugins/accesspress-social-share
135
  6. Backend Miscellaneous Settings Section
136
 
137
  == Changelog ==
138
+ = 4.1.9 =
139
+ * Done the bug fixing for the theme 3 for the mobile displays.
140
+ * Done the bug fixing for the content share for the linkedin.
141
+ * Addition of link to create facebook app in the plugins miscelleneous settings.
142
+ * Addition of the More WordPress Resources link.
143
+
144
  = 4.1.8 =
145
  * Improved the facebook share counter using the facebook app. Now the user need to create facebook app to fetch share counts if old method is not working.
146