Social Login WordPress Plugin – AccessPress Social Login Lite - Version 3.4.3

Version Description

  • Added promotional banners
Download this release

Release Info

Developer Access Keys
Plugin Icon 128x128 Social Login WordPress Plugin – AccessPress Social Login Lite
Version 3.4.3
Comparing to
See all releases

Code changes from version 3.4.2 to 3.4.3

accesspress-social-login-lite.php CHANGED
@@ -5,7 +5,7 @@ defined('ABSPATH') or die("No script kiddies please!");
5
  Plugin name: Social Login WordPress Plugin - AccessPress Social Login Lite
6
  Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-login-lite/
7
  Description: A plugin to add various social logins to a site.
8
- version: 3.4.2
9
  Author: AccessPress Themes
10
  Author URI: https://accesspressthemes.com/
11
  Text Domain: accesspress-social-login-lite
@@ -14,7 +14,7 @@ defined('ABSPATH') or die("No script kiddies please!");
14
  */
15
  //Declearation of the necessary constants for plugin
16
  if (!defined('APSL_VERSION')) {
17
- define('APSL_VERSION', '3.4.2');
18
  }
19
 
20
  if (!defined('APSL_IMAGE_DIR')) {
@@ -174,7 +174,7 @@ if (!class_exists('APSL_Lite_Class')) {
174
 
175
  if (in_array("comment_form", $options['apsl_display_options'])) {
176
  add_action('comment_form_top', array($this, 'add_social_login_form_to_comment')); //add the social logins to the comment form
177
- add_action('comment_form_must_log_in_after', array($this, 'add_social_login_form_to_comment')); // add the social login buttons if Users must be registered and logged in to comment�? checked in the discussions settings.
178
  }
179
  }
180
 
@@ -193,6 +193,35 @@ if (!class_exists('APSL_Lite_Class')) {
193
 
194
  //add delete action when user is deleted from wordpress backend.
195
  add_action('delete_user', array($this, 'apsl_delete_user'));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
196
  }
197
 
198
  function apsl_social_login_custom_avatar($avatar, $mixed, $size, $default, $alt = '') {
@@ -303,6 +332,10 @@ if (!class_exists('APSL_Lite_Class')) {
303
  //menu page
304
  function main_page() {
305
  include( 'inc/backend/main-page.php' );
 
 
 
 
306
  }
307
 
308
  //registration of the backend assets
@@ -330,7 +363,7 @@ if (!class_exists('APSL_Lite_Class')) {
330
 
331
  //save the settings of a plugin
332
  function save_settings() {
333
- if (isset($_POST['apsl_save_settings_nonce_field']) && wp_verify_nonce($_POST['apsl_save_settings_nonce_field'], 'apsl_save_settings_nonce')) {
334
  if(current_user_can( 'manage_options')){
335
  include( 'inc/backend/save-settings.php' );
336
  }else{
5
  Plugin name: Social Login WordPress Plugin - AccessPress Social Login Lite
6
  Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-login-lite/
7
  Description: A plugin to add various social logins to a site.
8
+ version: 3.4.3
9
  Author: AccessPress Themes
10
  Author URI: https://accesspressthemes.com/
11
  Text Domain: accesspress-social-login-lite
14
  */
15
  //Declearation of the necessary constants for plugin
16
  if (!defined('APSL_VERSION')) {
17
+ define('APSL_VERSION', '3.4.3');
18
  }
19
 
20
  if (!defined('APSL_IMAGE_DIR')) {
174
 
175
  if (in_array("comment_form", $options['apsl_display_options'])) {
176
  add_action('comment_form_top', array($this, 'add_social_login_form_to_comment')); //add the social logins to the comment form
177
+ add_action('comment_form_must_log_in_after', array($this, 'add_social_login_form_to_comment')); // add the social login buttons if “Users must be registered and logged in to comment� checked in the discussions settings.
178
  }
179
  }
180
 
193
 
194
  //add delete action when user is deleted from wordpress backend.
195
  add_action('delete_user', array($this, 'apsl_delete_user'));
196
+
197
+ add_filter( 'plugin_row_meta', array( $this, 'apsl_plugin_row_meta' ), 10, 2 );
198
+ add_filter( 'admin_footer_text', array( $this, 'apsl_admin_footer_text' ) );
199
+ }
200
+ function apsl_plugin_row_meta( $links, $file ){
201
+
202
+ if ( strpos( $file, 'accesspress-social-login-lite.php' ) !== false ) {
203
+ $new_links = array(
204
+ 'demo' => '<a href="http://demo.accesspressthemes.com/wordpress-plugins/accesspress-social-login-lite" target="_blank"><span class="dashicons dashicons-welcome-view-site"></span>Live Demo</a>',
205
+ 'doc' => '<a href="https://accesspressthemes.com/documentation/accesspress-social-login-lite/" target="_blank"><span class="dashicons dashicons-media-document"></span>Documentation</a>',
206
+ 'support' => '<a href="http://accesspressthemes.com/support" target="_blank"><span class="dashicons dashicons-admin-users"></span>Support</a>',
207
+ 'pro' => '<a href="https://1.envato.market/c/1302794/275988/4415?u=https%3A%2F%2Fcodecanyon.net%2Fitem%2Faccesspress-social-login%2F11815891" target="_blank"><span class="dashicons dashicons-cart"></span>Premium version</a>'
208
+ );
209
+
210
+ $links = array_merge( $links, $new_links );
211
+ }
212
+
213
+ return $links;
214
+ }
215
+ function apsl_admin_footer_text( $text ){
216
+ global $post;
217
+ if ( (isset( $_GET[ 'page' ] ) && $_GET[ 'page' ] == 'accesspress-social-login-lite' ) ) {
218
+ $link = 'https://wordpress.org/support/plugin/accesspress-social-login-lite/reviews/#new-post';
219
+ $pro_link = 'https://1.envato.market/c/1302794/275988/4415?u=https%3A%2F%2Fcodecanyon.net%2Fitem%2Faccesspress-social-login%2F11815891';
220
+ $text = 'Enjoyed Accesspress Social Login Lite? <a href="' . $link . '" target="_blank">Please leave us a ★★★★★ rating</a> We really appreciate your support! | Try premium version of <a href="' . $pro_link . '" target="_blank">Accesspress Social Login</a> - more features, more power!';
221
+ return $text;
222
+ } else {
223
+ return $text;
224
+ }
225
  }
226
 
227
  function apsl_social_login_custom_avatar($avatar, $mixed, $size, $default, $alt = '') {
332
  //menu page
333
  function main_page() {
334
  include( 'inc/backend/main-page.php' );
335
+ }
336
+
337
+ function docuementation_page() {
338
+
339
  }
340
 
341
  //registration of the backend assets
363
 
364
  //save the settings of a plugin
365
  function save_settings() {
366
+ if (isset($_POST['apsl_save_settings_nonce_field']) && wp_verify_nonce($_POST['apsl_save_settings_nonce_field'], 'apsl_save_settings_nonce')) {
367
  if(current_user_can( 'manage_options')){
368
  include( 'inc/backend/save-settings.php' );
369
  }else{
css/backend.css CHANGED
@@ -34,7 +34,7 @@
34
  font-size: 13px;
35
  height: 31px;
36
  list-style: outside none none;
37
- padding-left: 51px;
38
  padding-right: 51px;
39
  padding-top: 11px;
40
  background: #DADADA none repeat scroll 0 0;
@@ -454,7 +454,8 @@ div#tab-apsl-theme-settings {
454
  }
455
 
456
  .apsl-outer-wrapper {
457
- width: 1024px;
 
458
  }
459
 
460
  .apsl_network_settings_wrapper label {
34
  font-size: 13px;
35
  height: 31px;
36
  list-style: outside none none;
37
+ padding-left: 22px;
38
  padding-right: 51px;
39
  padding-top: 11px;
40
  background: #DADADA none repeat scroll 0 0;
454
  }
455
 
456
  .apsl-outer-wrapper {
457
+ width: 860px;
458
+ float:left;
459
  }
460
 
461
  .apsl_network_settings_wrapper label {
images/accesspress-social-login-gallery-upgrade to pro-feature.png ADDED
Binary file
images/accesspress-social-login-upgrade-to-pro.png ADDED
Binary file
inc/backend/main-page.php CHANGED
@@ -1,483 +1,488 @@
1
  <?php defined('ABSPATH') or die("No script kiddies please!"); ?>
2
  <div class="wrap">
3
- <div class='apsl-outer-wrapper'>
4
- <div class="apsl-setting-header clearfix">
5
- <div class="apsl-headerlogo">
6
- <div class="logo-wrap"> <img src="<?php echo APSL_IMAGE_DIR; ?>/logo.png" alt="<?php esc_attr_e('AccessPress Social Login Lite', 'accesspress-social-login-lite'); ?>" /></div>
7
- <div class="logo-content"><?php esc_attr_e('AccessPress Social Login Lite', 'accesspress-social-login-lite'); ?><br />
8
- <span class='plugin-version'><?php _e('version ' . APSL_VERSION, 'accesspress-social-login-lite'); ?></span>
9
- </div>
10
- </div>
11
- <div class="apsl-right-header-block">
12
- <div class="apsl-header-icons">
13
- <p>Follow us for new updates</p>
14
- <div class="apsl-social-bttns">
15
- <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>
16
- &nbsp;&nbsp;
17
- <iframe id="twitter-widget-0" scrolling="no" frameborder="0" allowtransparency="true" src="//platform.twitter.com/widgets/follow_button.5f46501ecfda1c3e1c05dd3e24875611.en.html#_=1421918256492&amp;dnt=true&amp;id=twitter-widget-0&amp;lang=en&amp;screen_name=apthemes&amp;show_count=false&amp;show_screen_name=true&amp;size=m" class="twitter-follow-button twitter-follow-button" title="Twitter Follow Button" data-twttr-rendered="true" style="width: 126px; height: 20px;"></iframe>
18
- <script>
19
- !function (d, s, id) {
20
- var js, fjs = d.getElementsByTagName(s)[0];
21
- if (!d.getElementById(id)) {
22
- js = d.createElement(s);
23
- js.id = id;
24
- js.src = "//platform.twitter.com/widgets.js";
25
- fjs.parentNode.insertBefore(js, fjs);
26
- }
27
- }(document, "script", "twitter-wjs");
28
- </script>
29
 
30
- </div>
31
- </div>
32
- </div>
33
- <div class="clear"></div>
34
- </div>
35
- <div class="clear"></div>
36
 
37
- <?php
38
- $options = get_option(APSL_SETTINGS);
39
- if (isset($_SESSION['apsl_message'])) {
40
- ?>
41
- <div class="apsl-message">
42
- <p> <?php
43
- echo $_SESSION['apsl_message'];
44
- unset($_SESSION['apsl_message']);
45
- ?> </p>
46
- </div>
47
- <?php }
48
- ?>
49
 
50
- <div class='apsl-networks'>
51
- <form method="post" action="<?php echo admin_url() . 'admin-post.php' ?>">
52
- <div class='apsl-network-options'>
53
 
54
- <input type="hidden" name="action" value="apsl_save_options"/>
55
- <div class='apsl-settings-tabs-wrapper clearfix'>
56
- <ul class='apsl-tab-wrapper-fix clearfix'>
57
- <li><a href='javascript: void(0);' id='apsl-networks-settings' class='apsl-settings-tab apsl-active-tab' ><?php _e('Network settings', 'accesspress-social-login-lite') ?></a></li>
58
- <li><a href='javascript: void(0);' id='apsl-theme-settings' class='apsl-settings-tab' ><?php _e('Other settings', 'accesspress-social-login-lite') ?></a></li>
59
- <li><a href='javascript: void(0);' id='apsl-how-to-use' class='apsl-settings-tab' ><?php _e('How to use', 'accesspress-social-login-lite') ?></a></li>
60
- <li><a href='javascript: void(0);' id='apsl-about' class='apsl-settings-tab' ><?php _e('About Us', 'accesspress-social-login-lite') ?></a></li>
61
- <li><a href='javascript: void(0);' id='apsl-more-wordpress-resources' class='apsl-settings-tab' ><?php _e('More WordPress Resources', 'accesspress-social-login-lite') ?></a></li>
62
- </ul>
63
- </div>
64
- <div class="clear"></div>
65
- <div class='apsl-setting-tabs-wrapper'>
66
- <div class='apsl-tab-contents' id='tab-apsl-networks-settings'>
67
- <div class='network-settings'>
68
- <?php foreach ($options['network_ordering'] as $key => $value): ?>
69
- <?php
70
- switch ($value) {
71
- case 'facebook':
72
- ?>
73
- <div class='apsl-settings apsl-facebook-settings'>
74
- <!-- Facebook Settings -->
75
- <div class='apsl-label'><?php _e("Facebook", 'accesspress-social-login-lite'); ?><span class='apsl_show_hide' id='apsl_show_hide_<?php echo $value; ?>'><i class="fa fa-caret-down"></i></span> </div>
76
- <div class='apsl_network_settings_wrapper' id='apsl_network_settings_<?php echo $value; ?>' style='display:none'>
77
- <div class='apsl-enable-disable'>
78
- <label><?php _e('Enable?', 'accesspress-social-login-lite'); ?></label>
79
- <input type='hidden' name='network_ordering[]' value='facebook' />
80
- <input type="checkbox" id='aspl-facbook-enable' value='enable' name='apsl_facebook_settings[apsl_facebook_enable]' <?php checked('enable', esc_attr($options['apsl_facebook_settings']['apsl_facebook_enable'])); ?> />
81
- </div>
82
- <div class='apsl-app-id-wrapper'>
83
- <label><?php _e('App ID:', 'accesspress-social-login-lite'); ?></label><input type='text' id='apsl-facebook-app-id' name='apsl_facebook_settings[apsl_facebook_app_id]' value='<?php
84
- if (isset($options['apsl_facebook_settings']['apsl_facebook_app_id'])) {
85
- echo esc_attr($options['apsl_facebook_settings']['apsl_facebook_app_id']);
86
- }
87
- ?>' />
88
- </div>
89
- <div class='apsl-app-secret-wrapper'>
90
- <label><?php _e('App Secret:', 'accesspress-social-login-lite'); ?></label><input type='text' id='apsl-facebook-app-secret' name='apsl_facebook_settings[apsl_facebook_app_secret]' value='<?php
91
- if (isset($options['apsl_facebook_settings']['apsl_facebook_app_secret'])) {
92
- echo esc_attr($options['apsl_facebook_settings']['apsl_facebook_app_secret']);
93
- }
94
- ?>' />
95
- </div>
 
 
96
 
97
- <div class='apsl-fb-profile-image-size'>
98
- <label><?php _e('Profile picture image size', 'accesspress-social-login-lite'); ?></label><br />
99
- <label for='apsl-fb-profile-image-width'><?php _e('Width:', 'accesspress-social-login-lite'); ?></label> <input type='number' name='apsl_facebook_settings[apsl_profile_image_width]' id='apsl-fb-profile-image-width' value='<?php
100
- if (isset($options['apsl_facebook_settings']['apsl_profile_image_width'])) {
101
- echo $options['apsl_facebook_settings']['apsl_profile_image_width'];
102
- }
103
- ?>' style="width: 60px;" /> px
104
- <br />
105
- <label for='apsl-fb-profile-image-height'><?php _e('Height:', 'accesspress-social-login-lite'); ?></label> <input type='number' name='apsl_facebook_settings[apsl_profile_image_height]' id='apsl-fb-profile-image-height' value='<?php
106
- if (isset($options['apsl_facebook_settings']['apsl_profile_image_height'])) {
107
- echo $options['apsl_facebook_settings']['apsl_profile_image_height'];
108
- }
109
- ?>' style="width: 60px;" /> px
110
- <div class='apsl-info'>Please note that the facebook might not provide the exact dimention of the image as settings above.</div>
111
- </div>
112
- <div class='apsl-info'>
113
- <span class='apsl-info-note'><?php _e('Note:', 'accesspress-social-login-lite'); ?></span> <br />
114
- <span class='apsl-info-content'>You need to create a new facebook API Applitation to setup facebook login. Please follow the instructions to create new app.</span>
115
- <br />
116
- <ul class='apsl-info-lists'>
117
- <li><b>Please note:</b> We have now updated our facbook sdk version to 5.0 so to make the facebook login work you need to have PHP version 5.4 at least.</li>
118
- <li>Go to <a href='https://developers.facebook.com/apps' target='_blank'>https://developers.facebook.com/apps</a>.</li>
119
- <li>click on 'Add a New App' button. A popup will open.</li>
120
- <li>Now please enter the name of the app as you wish and enter your contact Email.</li>
121
- <li>Now click on "Create App ID" button. Again a popup will appear with security check. Please enter the security and submit.</li>
122
- <li>You should now be able to see your App Dashboard. On the left side, you have a navigation panel.</li>
123
- <li>Go to Settings -> Basic and enter your contact email and privacy policy URL(Required).</li>
124
- <li>Again Go to Settings-> Basic and choose to Add Platform and choose website.</li>
125
- <li>Enter your site URL and Save Changes. Facebook app are site specific so an app can be used only for one website. If you want to use this app for a different site, just change site URL.</li>
126
- <li>In the application page in facebook, navigate to Apps >Add Product > Facebook Login >Quickstart >Web > Site URL. Set the site url as your site url(which is given below as a note at the end of this note).</li>
127
- <li>And then navigate to Apps > Facebook Login > Settings. There Please set the Use Strict Mode for Redirect URIs as Yes.</li>
128
- <li>Please configure the Valid OAuth redirect URIs(which is given below as a note at the end of this note).</li>
129
- <li>In the landing page you will find the API version, App ID, App Secret. To view your App secret please click on "Show" button. Those are the required App ID and App Secret to be entered in our plugin settings.</li>
130
- <li>The next thing is to make this app Public. To do this check your left panel for App Review. You will see Make [Your App Name] Public. Slider the button to enable it.</li>
131
- <li>And you are done! You can check for your App ID and App Secret from your Dashboard.</li>
132
- <li>Site url: <input type='text' value='<?php echo site_url(); ?>' readonly='readonly' /></li>
133
- <li>Valid Oauth redirect URIs: <input type='text' value='<?php echo site_url(); ?>/wp-login.php?apsl_login_id=facebook_check' readonly='readonly' /><br /><input type='text' value='<?php echo site_url(); ?>/admin.php?apsl_login_id=facebook_check' readonly='readonly' /></li></li>
134
- </ul>
135
- </div>
136
- </div>
137
- </div>
138
- <?php break; ?>
139
 
140
- <?php case 'twitter': ?>
141
- <div class='apsl-settings apsl-twitter-settings'>
142
- <!-- Twitter Settings -->
143
- <div class='apsl-label'><?php _e("Twitter", 'accesspress-social-login-lite'); ?> <span class='apsl_show_hide' id='apsl_show_hide_<?php echo $value; ?>'><i class="fa fa-caret-down"></i></span> </div>
144
- <div class='apsl_network_settings_wrapper' id='apsl_network_settings_<?php echo $value; ?>' style='display:none'>
145
- <div class='apsl-enable-disable'>
146
- <label><?php _e('Enable?', 'accesspress-social-login-lite'); ?></label>
147
- <input type="checkbox" id='aspl-twitter-enable' value='enable' name='apsl_twitter_settings[apsl_twitter_enable]' <?php checked('enable', $options['apsl_twitter_settings']['apsl_twitter_enable']); ?> />
148
- </div>
149
 
150
- <div class='apsl-app-id-wrapper'>
151
- <label><?php _e('Consumer Key (API Key):', 'accesspress-social-login-lite'); ?></label><input type='text' id='apsl-twitter-app-id' name='apsl_twitter_settings[apsl_twitter_api_key]' value='<?php
152
- if (isset($options['apsl_twitter_settings']['apsl_twitter_api_key'])) {
153
- echo $options['apsl_twitter_settings']['apsl_twitter_api_key'];
154
- }
155
- ?>' />
156
- </div>
157
 
158
- <div class='apsl-app-secret-wrapper'>
159
- <label><?php _e('Consumer Secret (API Secret):', 'accesspress-social-login-lite'); ?></label><input type='text' id='apsl-twitter-app-secret' name='apsl_twitter_settings[apsl_twitter_api_secret]' value='<?php
160
- if (isset($options['apsl_twitter_settings']['apsl_twitter_api_secret'])) {
161
- echo $options['apsl_twitter_settings']['apsl_twitter_api_secret'];
162
- }
163
- ?>' />
164
- </div>
165
 
166
- <input type='hidden' name='network_ordering[]' value='twitter' />
167
- <div class='apsl-info'>
168
- <span class='apsl-info-note'><?php _e('Note:', 'accesspress-social-login-lite'); ?> <br /> </span>
169
- <span class='apsl-info-content'>You need to create new twitter API application to setup the twitter login. Please follow the instructions to create new app.</span>
170
- <ul class='apsl-info-lists'>
171
- <li>Go to <a href='https://apps.twitter.com/' target='_blank'>https://apps.twitter.com/</a></li>
172
- <li>Click on Create New App button. A new application details form will appear. Please fill up the application details and click on "create your twitter application" button.</li>
173
- <li>Please note that before creating twiiter API application, You must add your mobile phone to your Twitter profile.</li>
174
- <li>After successful creation of the app. Please go to "Keys and Access Tokens" tabs and get Consumer key(API Key) and Consumer secret(API secret).</li>
175
- <li>Website: <input type='text' value='<?php echo site_url(); ?>' readonly='readonly'/></li>
176
- <li>Callback URL: <input type='text' value='<?php echo site_url(); ?>/wp-login.php' readonly='readonly'/></li>
177
- <li><strong>Note: </strong>To get the user's email address please go to app's permission tab and in additional Permissions there you will find a checkbox to request for user email address. Please enable it. To enable it you need to enter privacy policy url and terms of service url. <br /> If you have enabled the <strong>callback locking</strong> please use the Callback URL as given above.</li>
178
- <li><strong>Note: </strong> Since version: 3.4.0 of our plugin, please use mew <strong> Callback URL </strong> </li> for the twitter app. Because of some recent changes in twitter API.
179
- </ul>
180
 
181
- </div>
182
- </div>
183
- </div>
184
- <?php
185
- break;
186
- case 'google':
187
- ?>
188
- <div class='apsl-settings apsl-google-settings'>
189
- <!-- Google Settings -->
190
- <div class='apsl-label'><?php _e("Google", 'accesspress-social-login-lite'); ?> <span class='apsl_show_hide' id='apsl_show_hide_<?php echo $value; ?>'><i class="fa fa-caret-down"></i></span> </div>
191
- <div class='apsl_network_settings_wrapper' id='apsl_network_settings_<?php echo $value; ?>' style='display:none'>
192
- <div class='apsl-enable-disable'>
193
- <label><?php _e('Enable?', 'accesspress-social-login-lite'); ?></label>
194
- <input type="checkbox" id='aspl-google-enable' value='enable' name='apsl_google_settings[apsl_google_enable]' <?php checked('enable', $options['apsl_google_settings']['apsl_google_enable']); ?> />
195
- </div>
196
- <div class='apsl-app-id-wrapper'>
197
- <label><?php _e('Client ID:', 'accesspress-social-login-lite'); ?></label><input type='text' id='apsl-google-client-id' name='apsl_google_settings[apsl_google_client_id]' value='<?php
198
- if (isset($options['apsl_google_settings']['apsl_google_client_id'])) {
199
- echo $options['apsl_google_settings']['apsl_google_client_id'];
200
- }
201
- ?>' />
202
- </div>
203
- <div class='apsl-app-secret-wrapper'>
204
- <label><?php _e('Client Secret:', 'accesspress-social-login-lite'); ?></label><input type='text' id='apsl-google-client-secret' name='apsl_google_settings[apsl_google_client_secret]' value='<?php
205
- if (isset($options['apsl_google_settings']['apsl_google_client_secret'])) {
206
- echo $options['apsl_google_settings']['apsl_google_client_secret'];
207
- }
208
- ?>' />
209
- </div>
210
- <input type='hidden' name='network_ordering[]' value='google' />
211
- <div class='apsl-info'>
212
- <span class='apsl-info-note'><?php _e('Note:', 'accesspress-social-login-lite'); ?></span> <br />
213
- <br/>
214
- <span class='apsl-info-content' style="color:red"><strong>Important Notice: </strong> In prior to google+ being shutdown from March 7, 2019, the code for Google+ login to google oauth login has been updated. You might need to revalidate and create the client key & client secret again. </span>
215
- <br/><br/>
216
- <span class='apsl-info-content'>You need to create new google API application to setup the google login. Please follow the instructions to create new application.</span>
217
- <ul class='apsl-info-lists'>
218
- <li>Go to <a href='https://console.developers.google.com/project' target='_blank'>https://console.developers.google.com/project.</a> </li>
219
- <li>Click on "Create Project" button. A popup will appear.</li>
220
- <li>Please enter Project name and click on "Create" button.</li>
221
- <li>A App will be created and a dashobard will appear.</li>
222
- <li>In the blue box please click on Enable and manage APIs link. A new page will load.</li>
223
- <li>Now In the Social APIs section click on Google+ API and click "Enable API" button. Then the Google+ API will be activated.</li>
224
- <li>Now click on Credentials section and go to OAuth consent screen and enter the app details there.</li>
225
- <li>Click on Credentials tab and click on "New credentials" or "Add credentials" if you have already created one, a selection will appear and click on "OAuth client ID".</li>
226
- <li>A new page will load. Please select Application type to Web application and click "create" button. Further forms will loaded up and enter the details there.</li>
227
- <li>In the authorized redirect URIs please enter the details provided in the note section from plugin and click save button.</li>
228
- <li>In the popup you will get Client ID and client secret.</li>
229
- <li>And please enter those credentials in the google setting in our plugin.</li>
230
- <li><?php _e('Rediret uri setup', 'accesspress-social-login-lite'); ?> :<br />
231
- <?php _e('Please use', 'accesspress-social-login-lite'); ?> <input type='text' value='<?php echo site_url(); ?>/wp-login.php?apsl_login_id=google_check' readonly='readonly'/> - <?php _e('for wordpress login page', 'accesspress-social-login-lite'); ?>.<br />
232
- <?php _e('Please use', 'accesspress-social-login-lite'); ?> <input type='text' value='<?php echo site_url(); ?>/index.php?apsl_login_id=google_check' readonly='readonly'/> - <?php _e('if you have used the shortcode or widget in frontend. ', 'accesspress-social-login-lite'); ?>
233
- </li>
234
- <li>
235
- <?php _e('Please note: Make sure to check the protocol "http://" or "https://" as google checks protocol as well. Better to add both URL in the list if you site is https so that google social login work properly for both https and http browser.', 'accesspress-social-login-lite'); ?>
236
- </li>
237
- </ul>
238
- </div>
239
- </div>
240
- </div>
241
- <?php break; ?>
242
 
243
- <?php
244
- default:
245
- echo "should not reach here";
246
- break;
247
- }
248
- ?>
249
- <?php endforeach; ?>
250
- </div>
251
- </div>
252
 
253
- <div class='apsl-tab-contents' id='tab-apsl-theme-settings' style="display:none">
254
- <div class='apsl-settings'>
255
- <div class='apsl-enable-disable-opt'>
256
- <div class="apsl-label"><?php _e('Social login', 'accesspress-social-login-lite'); ?> <span class='apsl_show_hide'><i class="fa fa-caret-down"></i></span> </div>
257
- <div class='apsl_network_settings_wrapper' style='display:none'>
258
- <p class="social-login">
259
- <span><?php _e('Enable social login?', 'accesspress-social-login-lite'); ?></span>
260
- <input type='radio' id='apsl_enable_plugin' name='apsl_enable_disable_plugin' value='yes' <?php checked($options['apsl_enable_disable_plugin'], 'yes', 'true'); ?> /> <label for='apsl_enable_plugin'>Yes</label>
261
- <input type='radio' id='apsl_disable_plugin' name='apsl_enable_disable_plugin' value='no' <?php checked($options['apsl_enable_disable_plugin'], 'no', 'true'); ?> /> <label for='apsl_disable_plugin'>No</label>
262
- </p>
263
- </div>
264
- </div>
265
- </div>
266
 
267
- <div class='apsl-settings'>
268
- <div class='apsl-display-options'>
269
- <div class="apsl-label"><?php _e('Display options', 'accesspress-social-login-lite'); ?> <span class='apsl_show_hide'><i class="fa fa-caret-down"></i></span></div>
270
- <div class='apsl_network_settings_wrapper' style='display:none'>
271
- <p><?php _e('Please choose the options where you want to display the social login form.', 'accesspress-social-login-lite'); ?></p>
272
- <p><input type="checkbox" id="apsl_login_form" value="login_form" name="apsl_display_options[]" <?php
273
- if (in_array("login_form", $options['apsl_display_options'])) {
274
- echo "checked='checked'";
275
- }
276
- ?> ><label for="apsl_login_form"><?php _e('Login Form', 'accesspress-social-login-lite'); ?> </label></p>
277
- <p><input type="checkbox" id="apsl_register_form" value="register_form" name="apsl_display_options[]" <?php
278
- if (in_array("register_form", $options['apsl_display_options'])) {
279
- echo "checked='checked'";
280
- }
281
- ?> ><label for="apsl_register_form"><?php _e('Register Form', 'accesspress-social-login-lite'); ?> </label></p>
282
- <p><input type="checkbox" id="apsl_comment_form" value="comment_form" name="apsl_display_options[]" <?php
283
- if (in_array("comment_form", $options['apsl_display_options'])) {
284
- echo "checked='checked'";
285
- }
286
- ?> ><label for="apsl_comment_form"><?php _e('Comments', 'accesspress-social-login-lite'); ?> </label></p>
287
- </div>
288
- </div>
289
- </div>
290
 
291
- <div class='apsl-settings'>
292
- <div class='apsl-themes-wrapper'>
293
- <div class="apsl-label"><?php _e('Available icon themes', 'accesspress-social-login-lite'); ?> <span class='apsl_show_hide'><i class="fa fa-caret-down"></i></span>
294
- </div>
295
- <div class='apsl_network_settings_wrapper' style='display:none'>
296
- <?php for ($i = 1; $i <= 5; $i++) { ?>
297
- <div class='apsl-theme apsl-theme-<?php echo $i; ?>'>
298
- <label>
299
- <input type="radio" id="apsl-theme-<?php echo $i; ?>" value="<?php echo $i; ?>" class="apsl-theme apsl-png-theme" name="apsl_icon_theme" <?php checked($i, $options['apsl_icon_theme']); ?> >
300
- <span><?php _e('Theme ' . $i, 'accesspress-social-login-lite'); ?></span>
301
- </label>
302
- <div class="apsl-theme-previewbox">
303
- <img src="<?php echo APSL_IMAGE_DIR; ?>/preview-<?php echo $i; ?>.jpg" alt="theme preview">
304
- </div>
305
- </div>
306
- <?php } ?>
307
- </div>
308
- </div>
309
- </div>
310
 
311
- <div class='apsl-settings'>
312
- <div class='apsl-text-settings'>
313
- <div class="apsl-label"><?php _e('Text settings', 'accesspress-social-login-lite'); ?> <span class='apsl_show_hide'><i class="fa fa-caret-down"></i></span> </div>
314
- <div class='apsl_network_settings_wrapper' style='display:none'>
315
- <p class='apsl-title-text-field'>
316
- <span><?php _e('Login text:', 'accesspress-social-login-lite'); ?></span> <input type='text' name='apsl_title_text_field' id='apsl-title-text' value='<?php
317
- if (isset($options['apsl_title_text_field']) && $options['apsl_title_text_field'] != '') {
318
- echo $options['apsl_title_text_field'];
319
- }
320
- ?>' />
321
- </p>
322
- </div>
323
- </div>
324
- </div>
325
 
326
- <div class='apsl-settings'>
327
- <div class='apsl-logout-redirect-settings'>
328
- <div class="apsl-label">
329
- <?php _e('Logout redirect link', 'accesspress-social-login-lite'); ?> <span class='apsl_show_hide'><i class="fa fa-caret-down"></i>
330
- </span>
331
- </div>
332
- <div class='apsl_network_settings_wrapper' style='display:none'>
333
- <input type='radio' id='apsl_custom_logout_redirect_home' class='apsl_custom_logout_redirect_options' name='apsl_custom_logout_redirect_options' value='home' <?php
334
- if (isset($options['apsl_custom_logout_redirect_options'])) {
335
- checked($options['apsl_custom_logout_redirect_options'], 'home', 'true');
336
- }
337
- ?> /> <label for='apsl_custom_logout_redirect_home'><?php _e('Home page', 'accesspress-social-login-lite'); ?></label><br /><br />
338
- <input type='radio' id='apsl_custom_logout_redirect_current' class='apsl_custom_logout_redirect_options' name='apsl_custom_logout_redirect_options' value='current_page' <?php
339
- if (isset($options['apsl_custom_logout_redirect_options'])) {
340
- checked($options['apsl_custom_logout_redirect_options'], 'current_page', 'true');
341
- }
342
- ?> /> <label for='apsl_custom_logout_redirect_current'><?php _e('Current page', 'accesspress-social-login-lite'); ?></label><br /><br />
343
 
344
 
345
- <input type='radio' id='apsl_custom_logout_redirect_custom' class='apsl_custom_logout_redirect_options' name='apsl_custom_logout_redirect_options' value='custom_page' <?php
346
- if (isset($options['apsl_custom_logout_redirect_options'])) {
347
- checked($options['apsl_custom_logout_redirect_options'], 'custom_page', 'true');
348
- }
349
- ?> /> <label for='apsl_custom_logout_redirect_custom'><?php _e('Custom page', 'accesspress-social-login-lite'); ?></label><br />
350
 
351
- <div class='apsl-custom-logout-redirect-link' <?php echo (isset($options['apsl_custom_logout_redirect_options']) && $options['apsl_custom_logout_redirect_options'] == 'custom_page') ? "style='display:block;'" : "style='display:none'"; ?>>
352
- <p class='apsl-title-text-field'>
353
- <span><?php _e('Logout redirect page:', 'accesspress-social-login-lite'); ?></span> <input type='text' name='apsl_custom_logout_redirect_link' id='apsl-custom-logout-redirect-link' value='<?php
354
- if (isset($options['apsl_custom_logout_redirect_link']) && $options['apsl_custom_logout_redirect_link'] != '') {
355
- echo $options['apsl_custom_logout_redirect_link'];
356
- }
357
- ?>' />
358
- </p>
359
- <div class='apsl-info'>
360
- <span class='apsl-info-note'><?php _e('Note:', 'accesspress-social-login-lite'); ?></span> <br />
361
- <span class='apsl-info-content'><?php _e('Please set this value if you want to redirect the user to the custom page url(full url). If this field is not set they will be redirected back to current page', 'accesspress-social-login-lite'); ?>.</span>
362
- </div>
363
- </div>
364
- </div>
365
- </div>
366
- </div>
367
 
368
- <div class='apsl-settings'>
369
- <div class='apsl-login-redirect-settings'>
370
- <div class="apsl-label"><?php _e('Login redirect link', 'accesspress-social-login-lite'); ?> <span class='apsl_show_hide'><i class="fa fa-caret-down"></i></span> </div>
371
- <div class='apsl_network_settings_wrapper' style='display:none'>
372
- <input type='radio' id='apsl_custom_login_redirect_home' class='apsl_custom_login_redirect_options' name='apsl_custom_login_redirect_options' value='home' <?php
373
- if (isset($options['apsl_custom_login_redirect_options'])) {
374
- checked($options['apsl_custom_login_redirect_options'], 'home', 'true');
375
- }
376
- ?> /> <label for='apsl_custom_login_redirect_home'><?php _e('Home page', 'accesspress-social-login-lite'); ?></label><br /><br />
377
- <input type='radio' id='apsl_custom_login_redirect_current' class='apsl_custom_login_redirect_options' name='apsl_custom_login_redirect_options' value='current_page' <?php
378
- if (isset($options['apsl_custom_login_redirect_options'])) {
379
- checked($options['apsl_custom_login_redirect_options'], 'current_page', 'true');
380
- }
381
- ?> /> <label for='apsl_custom_login_redirect_current'><?php _e('Current page', 'accesspress-social-login-lite'); ?></label><br /><br />
382
- <div class='apsl-custom-login-redirect-link1' >
383
- <div class='apsl-info'>
384
- <span class='apsl-info-note'><?php _e('Note:', 'accesspress-social-login-lite'); ?></span> <br />
385
- <span class='apsl-info-content'> <?php _e('If plugin can\'t detect what is the redirect uri for the page it will be redirected to home page', 'accesspress-social-login-lite'); ?>.</span>
386
- </div>
387
- </div>
388
- <input type='radio' id='apsl_custom_login_redirect_custom' class='apsl_custom_login_redirect_options' name='apsl_custom_login_redirect_options' value='custom_page' <?php
389
- if (isset($options['apsl_custom_login_redirect_options'])) {
390
- checked($options['apsl_custom_login_redirect_options'], 'custom_page', 'true');
391
- }
392
- ?> /> <label for='apsl_custom_login_redirect_custom'><?php _e('Custom page', 'accesspress-social-login-lite'); ?></label><br />
393
 
394
- <div class='apsl-custom-login-redirect-link' <?php echo (isset($options['apsl_custom_login_redirect_options']) && $options['apsl_custom_login_redirect_options'] == 'custom_page') ? "style='display: block'" : "style='display:none'"; ?>>
395
- <p class='apsl-title-text-field'>
396
- <span><?php _e('Login redirect page:', 'accesspress-social-login-lite'); ?></span> <input type='text' name='apsl_custom_login_redirect_link' id='apsl-custom-login-redirect-link' value='<?php
397
- if (isset($options['apsl_custom_login_redirect_link']) && $options['apsl_custom_login_redirect_link'] != '') {
398
- echo $options['apsl_custom_login_redirect_link'];
399
- }
400
- ?>' />
401
- </p>
402
- <div class='apsl-info'>
403
- <span class='apsl-info-note'><?php _e('Note:', 'accesspress-social-login-lite'); ?></span> <br />
404
- <span class='apsl-info-content'><?php _e('Please set this value if you want to redirect the user to the custom page url(full url). If this field is not set they will be redirected back to home page', 'accesspress-social-login-lite'); ?>.</span>
405
- </div>
406
- </div>
407
- </div>
408
- </div>
409
- </div>
410
- <div class='apsl-settings'>
411
- <div class='apsl-user-avatar-settings'>
412
- <div class="apsl-label"><?php _e('User avatar', 'accesspress-social-login-lite'); ?> <span class='apsl_show_hide'><i class="fa fa-caret-down"></i></span> </div>
413
- <div class='apsl_network_settings_wrapper apsl_network_settings_outer' style='display:none'>
414
- <input type='radio' id='apsl_user_avatar_default' class='apsl_user_avatar_options' name='apsl_user_avatar_options' value='default' <?php
415
- if (isset($options['apsl_user_avatar_options'])) {
416
- checked($options['apsl_user_avatar_options'], 'default', 'true');
417
- }
418
- ?> /> <label for='apsl_user_avatar_default'><?php _e('Use wordpress provided default avatar.', 'accesspress-social-login-lite'); ?></label><br /><br />
419
- <input type='radio' id='apsl_user_avatar_social' class='apsl_user_avatar_options' name='apsl_user_avatar_options' value='social' <?php
420
- if (isset($options['apsl_user_avatar_options'])) {
421
- checked($options['apsl_user_avatar_options'], 'social', 'true');
422
- }
423
- ?> /> <label for='apsl_user_avatar_social'><?php _e('Use the profile picture from social media where available.', 'accesspress-social-login-lite'); ?></label><br /><br />
424
- <div class='apsl-info'>
425
- <span class='apsl-info-note'><?php _e('Note:', 'accesspress-social-login-lite'); ?></span> <br />
426
- <span class='apsl-info-content'><?php _e('Please choose the options from where you want your users avatar to be loaded from. If you choose default wordpress avatar it will use the gravatar profile image if user have gravatar profile assocated with their registered email address', 'accesspress-social-login-lite'); ?>.</span>
427
- </div>
428
- </div>
429
- </div>
430
- </div>
431
 
432
- <div class='apsl-settings'>
433
- <div class='apsl-user-email-settings'>
434
- <div class="apsl-label"><?php _e('Email notification settings', 'accesspress-social-login-lite'); ?> <span class='apsl_show_hide'><i class="fa fa-caret-down"></i></span> </div>
435
- <div class='apsl_network_settings_wrapper apsl_network_settings_outer' style='display:none'>
436
- <input type='radio' id='apsl_send_email_notification_yes' class='apsl_send_email_notification_yes' name='apsl_send_email_notification_options' value='yes' <?php
437
- if (isset($options['apsl_send_email_notification_options'])) {
438
- checked($options['apsl_send_email_notification_options'], 'yes', 'true');
439
- }
440
- ?> /> <label for='apsl_send_email_notification_yes'><?php _e('Send email notification to both user and site admin.', 'accesspress-social-login-lite'); ?></label><br /><br />
441
- <input type='radio' id='apsl_send_email_notification_no' class='apsl_send_email_notification_no' name='apsl_send_email_notification_options' value='no' <?php
442
- if (isset($options['apsl_send_email_notification_options'])) {
443
- checked($options['apsl_send_email_notification_options'], 'no', 'true');
444
- }
445
- ?> /> <label for='apsl_send_email_notification_no'><?php _e('Do not send email notification to both user and site admin.', 'accesspress-social-login-lite'); ?></label><br /><br />
446
- <div class='apsl-info'>
447
- <span class='apsl-info-note'><?php _e('Note:', 'accesspress-social-login-lite'); ?></span> <br />
448
- <span class='apsl-info-content'><?php _e('Here you can configure an options to send email notifications about user registration to site admin and user', 'accesspress-social-login-lite'); ?>.</span>
449
- </div>
450
- </div>
451
- </div>
452
- </div>
453
 
454
- </div>
455
 
456
 
457
- <!-- how to use section -->
458
- <div class='apsl-tab-contents' id='tab-apsl-how-to-use' style="display:none">
459
- <?php include( APSL_PLUGIN_DIR . 'inc/backend/how-to-use.php' ); ?>
460
- </div>
461
- <!-- about section -->
462
- <div class='apsl-tab-contents' id='tab-apsl-about' style="display:none">
463
- <?php include( APSL_PLUGIN_DIR . 'inc/backend/about.php' ); ?>
464
- </div>
465
- <div class='apsl-tab-contents' id='tab-apsl-more-wordpress-resources' style="display:none">
466
- <?php include( APSL_PLUGIN_DIR . 'inc/backend/more-wordpress-resources.php' ); ?>
467
- </div>
468
- <!-- Save settings Button -->
469
- <div class='apsl-save-settings'>
470
- <?php wp_nonce_field('apsl_save_settings_nonce', 'apsl_save_settings_nonce_field'); ?>
471
- <input type='submit' class='apsl-submit-settings primary-button' name='apsl_save_settings' value='<?php _e('Save settings', 'accesspress-social-login-lite'); ?>' />
472
- </div>
473
 
474
- <div class='apsl-restore-settings'>
475
- <?php $nonce = wp_create_nonce('apsl-restore-default-settings-nonce'); ?>
476
- <a href="<?php echo admin_url() . 'admin-post.php?action=apsl_restore_default_settings&_wpnonce=' . $nonce; ?>" onclick="return confirm('<?php _e('Are you sure you want to restore default settings?', 'accesspress-social-login-lite'); ?>')"><input type="button" value="Restore Default Settings" class="apsl-reset-button button primary-button"/></a>
477
- </div>
478
- </div>
479
- </form>
480
- </div>
481
- </div>
 
 
 
 
482
  </div>
483
- </div>
1
  <?php defined('ABSPATH') or die("No script kiddies please!"); ?>
2
  <div class="wrap">
3
+ <div class='apsl-outer-wrapper'>
4
+ <div class="apsl-setting-header clearfix">
5
+ <div class="apsl-headerlogo">
6
+ <div class="logo-wrap"> <img src="<?php echo APSL_IMAGE_DIR; ?>/logo.png" alt="<?php esc_attr_e('AccessPress Social Login Lite', 'accesspress-social-login-lite'); ?>" /></div>
7
+ <div class="logo-content"><?php esc_attr_e('AccessPress Social Login Lite', 'accesspress-social-login-lite'); ?><br />
8
+ <span class='plugin-version'><?php _e('version ' . APSL_VERSION, 'accesspress-social-login-lite'); ?></span>
9
+ </div>
10
+ </div>
11
+ <div class="apsl-right-header-block">
12
+ <div class="apsl-header-icons">
13
+ <p>Follow us for new updates</p>
14
+ <div class="apsl-social-bttns">
15
+ <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>
16
+ &nbsp;&nbsp;
17
+ <iframe id="twitter-widget-0" scrolling="no" frameborder="0" allowtransparency="true" src="//platform.twitter.com/widgets/follow_button.5f46501ecfda1c3e1c05dd3e24875611.en.html#_=1421918256492&amp;dnt=true&amp;id=twitter-widget-0&amp;lang=en&amp;screen_name=apthemes&amp;show_count=false&amp;show_screen_name=true&amp;size=m" class="twitter-follow-button twitter-follow-button" title="Twitter Follow Button" data-twttr-rendered="true" style="width: 126px; height: 20px;"></iframe>
18
+ <script>
19
+ !function (d, s, id) {
20
+ var js, fjs = d.getElementsByTagName(s)[0];
21
+ if (!d.getElementById(id)) {
22
+ js = d.createElement(s);
23
+ js.id = id;
24
+ js.src = "//platform.twitter.com/widgets.js";
25
+ fjs.parentNode.insertBefore(js, fjs);
26
+ }
27
+ }(document, "script", "twitter-wjs");
28
+ </script>
29
 
30
+ </div>
31
+ </div>
32
+ </div>
33
+ <div class="clear"></div>
34
+ </div>
35
+ <div class="clear"></div>
36
 
37
+ <?php
38
+ $options = get_option(APSL_SETTINGS);
39
+ if (isset($_SESSION['apsl_message'])) {
40
+ ?>
41
+ <div class="apsl-message">
42
+ <p> <?php
43
+ echo $_SESSION['apsl_message'];
44
+ unset($_SESSION['apsl_message']);
45
+ ?> </p>
46
+ </div>
47
+ <?php }
48
+ ?>
49
 
50
+ <div class='apsl-networks'>
51
+ <form method="post" action="<?php echo admin_url() . 'admin-post.php' ?>">
52
+ <div class='apsl-network-options'>
53
 
54
+ <input type="hidden" name="action" value="apsl_save_options"/>
55
+ <div class='apsl-settings-tabs-wrapper clearfix'>
56
+ <ul class='apsl-tab-wrapper-fix clearfix'>
57
+ <li><a href='javascript: void(0);' id='apsl-networks-settings' class='apsl-settings-tab apsl-active-tab' ><?php _e('Network settings', 'accesspress-social-login-lite') ?></a></li>
58
+ <li><a href='javascript: void(0);' id='apsl-theme-settings' class='apsl-settings-tab' ><?php _e('Other settings', 'accesspress-social-login-lite') ?></a></li>
59
+ <li><a href='javascript: void(0);' id='apsl-how-to-use' class='apsl-settings-tab' ><?php _e('How to use', 'accesspress-social-login-lite') ?></a></li>
60
+ <li><a href='javascript: void(0);' id='apsl-about' class='apsl-settings-tab' ><?php _e('About Us', 'accesspress-social-login-lite') ?></a></li>
61
+ <li><a href='javascript: void(0);' id='apsl-more-wordpress-resources' class='apsl-settings-tab' ><?php _e('More WordPress Resources', 'accesspress-social-login-lite') ?></a></li>
62
+ <li><a href='https://accesspressthemes.com/documentation/accesspress-social-login-lite/' id='apsl-more-wordpress-documentation' class='apsl-settings-tab' target="_blank"><?php _e('Plugin Documentation', 'accesspress-social-login-lite') ?></a></li>
63
+ <li><a href='https://1.envato.market/c/1302794/275988/4415?u=https%3A%2F%2Fcodecanyon.net%2Fitem%2Faccesspress-social-login%2F11815891' id='apsl-more-wordpress-premium' class='apsl-settings-tab' target="_blank"><?php _e('Premium Version', 'accesspress-social-login-lite') ?></a></li>
64
+ </ul>
65
+ </div>
66
+ <div class="clear"></div>
67
+ <div class='apsl-setting-tabs-wrapper'>
68
+ <div class='apsl-tab-contents' id='tab-apsl-networks-settings'>
69
+ <div class='network-settings'>
70
+ <?php foreach ($options['network_ordering'] as $key => $value): ?>
71
+ <?php
72
+ switch ($value) {
73
+ case 'facebook':
74
+ ?>
75
+ <div class='apsl-settings apsl-facebook-settings'>
76
+ <!-- Facebook Settings -->
77
+ <div class='apsl-label'><?php _e("Facebook", 'accesspress-social-login-lite'); ?><span class='apsl_show_hide' id='apsl_show_hide_<?php echo $value; ?>'><i class="fa fa-caret-down"></i></span> </div>
78
+ <div class='apsl_network_settings_wrapper' id='apsl_network_settings_<?php echo $value; ?>' style='display:none'>
79
+ <div class='apsl-enable-disable'>
80
+ <label><?php _e('Enable?', 'accesspress-social-login-lite'); ?></label>
81
+ <input type='hidden' name='network_ordering[]' value='facebook' />
82
+ <input type="checkbox" id='aspl-facbook-enable' value='enable' name='apsl_facebook_settings[apsl_facebook_enable]' <?php checked('enable', esc_attr($options['apsl_facebook_settings']['apsl_facebook_enable'])); ?> />
83
+ </div>
84
+ <div class='apsl-app-id-wrapper'>
85
+ <label><?php _e('App ID:', 'accesspress-social-login-lite'); ?></label><input type='text' id='apsl-facebook-app-id' name='apsl_facebook_settings[apsl_facebook_app_id]' value='<?php
86
+ if (isset($options['apsl_facebook_settings']['apsl_facebook_app_id'])) {
87
+ echo esc_attr($options['apsl_facebook_settings']['apsl_facebook_app_id']);
88
+ }
89
+ ?>' />
90
+ </div>
91
+ <div class='apsl-app-secret-wrapper'>
92
+ <label><?php _e('App Secret:', 'accesspress-social-login-lite'); ?></label><input type='text' id='apsl-facebook-app-secret' name='apsl_facebook_settings[apsl_facebook_app_secret]' value='<?php
93
+ if (isset($options['apsl_facebook_settings']['apsl_facebook_app_secret'])) {
94
+ echo esc_attr($options['apsl_facebook_settings']['apsl_facebook_app_secret']);
95
+ }
96
+ ?>' />
97
+ </div>
98
 
99
+ <div class='apsl-fb-profile-image-size'>
100
+ <label><?php _e('Profile picture image size', 'accesspress-social-login-lite'); ?></label><br />
101
+ <label for='apsl-fb-profile-image-width'><?php _e('Width:', 'accesspress-social-login-lite'); ?></label> <input type='number' name='apsl_facebook_settings[apsl_profile_image_width]' id='apsl-fb-profile-image-width' value='<?php
102
+ if (isset($options['apsl_facebook_settings']['apsl_profile_image_width'])) {
103
+ echo $options['apsl_facebook_settings']['apsl_profile_image_width'];
104
+ }
105
+ ?>' style="width: 60px;" /> px
106
+ <br />
107
+ <label for='apsl-fb-profile-image-height'><?php _e('Height:', 'accesspress-social-login-lite'); ?></label> <input type='number' name='apsl_facebook_settings[apsl_profile_image_height]' id='apsl-fb-profile-image-height' value='<?php
108
+ if (isset($options['apsl_facebook_settings']['apsl_profile_image_height'])) {
109
+ echo $options['apsl_facebook_settings']['apsl_profile_image_height'];
110
+ }
111
+ ?>' style="width: 60px;" /> px
112
+ <div class='apsl-info'>Please note that the facebook might not provide the exact dimention of the image as settings above.</div>
113
+ </div>
114
+ <div class='apsl-info'>
115
+ <span class='apsl-info-note'><?php _e('Note:', 'accesspress-social-login-lite'); ?></span> <br />
116
+ <span class='apsl-info-content'>You need to create a new facebook API Applitation to setup facebook login. Please follow the instructions to create new app.</span>
117
+ <br />
118
+ <ul class='apsl-info-lists'>
119
+ <li><b>Please note:</b> We have now updated our facbook sdk version to 5.0 so to make the facebook login work you need to have PHP version 5.4 at least.</li>
120
+ <li>Go to <a href='https://developers.facebook.com/apps' target='_blank'>https://developers.facebook.com/apps</a>.</li>
121
+ <li>click on 'Add a New App' button. A popup will open.</li>
122
+ <li>Now please enter the name of the app as you wish and enter your contact Email.</li>
123
+ <li>Now click on "Create App ID" button. Again a popup will appear with security check. Please enter the security and submit.</li>
124
+ <li>You should now be able to see your App Dashboard. On the left side, you have a navigation panel.</li>
125
+ <li>Go to Settings -> Basic and enter your contact email and privacy policy URL(Required).</li>
126
+ <li>Again Go to Settings-> Basic and choose to Add Platform and choose website.</li>
127
+ <li>Enter your site URL and Save Changes. Facebook app are site specific so an app can be used only for one website. If you want to use this app for a different site, just change site URL.</li>
128
+ <li>In the application page in facebook, navigate to Apps >Add Product > Facebook Login >Quickstart >Web > Site URL. Set the site url as your site url(which is given below as a note at the end of this note).</li>
129
+ <li>And then navigate to Apps > Facebook Login > Settings. There Please set the Use Strict Mode for Redirect URIs as Yes.</li>
130
+ <li>Please configure the Valid OAuth redirect URIs(which is given below as a note at the end of this note).</li>
131
+ <li>In the landing page you will find the API version, App ID, App Secret. To view your App secret please click on "Show" button. Those are the required App ID and App Secret to be entered in our plugin settings.</li>
132
+ <li>The next thing is to make this app Public. To do this check your left panel for App Review. You will see Make [Your App Name] Public. Slider the button to enable it.</li>
133
+ <li>And you are done! You can check for your App ID and App Secret from your Dashboard.</li>
134
+ <li>Site url: <input type='text' value='<?php echo site_url(); ?>' readonly='readonly' /></li>
135
+ <li>Valid Oauth redirect URIs: <input type='text' value='<?php echo site_url(); ?>/wp-login.php?apsl_login_id=facebook_check' readonly='readonly' /><br /><input type='text' value='<?php echo site_url(); ?>/admin.php?apsl_login_id=facebook_check' readonly='readonly' /></li></li>
136
+ </ul>
137
+ </div>
138
+ </div>
139
+ </div>
140
+ <?php break; ?>
141
 
142
+ <?php case 'twitter': ?>
143
+ <div class='apsl-settings apsl-twitter-settings'>
144
+ <!-- Twitter Settings -->
145
+ <div class='apsl-label'><?php _e("Twitter", 'accesspress-social-login-lite'); ?> <span class='apsl_show_hide' id='apsl_show_hide_<?php echo $value; ?>'><i class="fa fa-caret-down"></i></span> </div>
146
+ <div class='apsl_network_settings_wrapper' id='apsl_network_settings_<?php echo $value; ?>' style='display:none'>
147
+ <div class='apsl-enable-disable'>
148
+ <label><?php _e('Enable?', 'accesspress-social-login-lite'); ?></label>
149
+ <input type="checkbox" id='aspl-twitter-enable' value='enable' name='apsl_twitter_settings[apsl_twitter_enable]' <?php checked('enable', $options['apsl_twitter_settings']['apsl_twitter_enable']); ?> />
150
+ </div>
151
 
152
+ <div class='apsl-app-id-wrapper'>
153
+ <label><?php _e('Consumer Key (API Key):', 'accesspress-social-login-lite'); ?></label><input type='text' id='apsl-twitter-app-id' name='apsl_twitter_settings[apsl_twitter_api_key]' value='<?php
154
+ if (isset($options['apsl_twitter_settings']['apsl_twitter_api_key'])) {
155
+ echo $options['apsl_twitter_settings']['apsl_twitter_api_key'];
156
+ }
157
+ ?>' />
158
+ </div>
159
 
160
+ <div class='apsl-app-secret-wrapper'>
161
+ <label><?php _e('Consumer Secret (API Secret):', 'accesspress-social-login-lite'); ?></label><input type='text' id='apsl-twitter-app-secret' name='apsl_twitter_settings[apsl_twitter_api_secret]' value='<?php
162
+ if (isset($options['apsl_twitter_settings']['apsl_twitter_api_secret'])) {
163
+ echo $options['apsl_twitter_settings']['apsl_twitter_api_secret'];
164
+ }
165
+ ?>' />
166
+ </div>
167
 
168
+ <input type='hidden' name='network_ordering[]' value='twitter' />
169
+ <div class='apsl-info'>
170
+ <span class='apsl-info-note'><?php _e('Note:', 'accesspress-social-login-lite'); ?> <br /> </span>
171
+ <span class='apsl-info-content'>You need to create new twitter API application to setup the twitter login. Please follow the instructions to create new app.</span>
172
+ <ul class='apsl-info-lists'>
173
+ <li>Go to <a href='https://apps.twitter.com/' target='_blank'>https://apps.twitter.com/</a></li>
174
+ <li>Click on Create New App button. A new application details form will appear. Please fill up the application details and click on "create your twitter application" button.</li>
175
+ <li>Please note that before creating twiiter API application, You must add your mobile phone to your Twitter profile.</li>
176
+ <li>After successful creation of the app. Please go to "Keys and Access Tokens" tabs and get Consumer key(API Key) and Consumer secret(API secret).</li>
177
+ <li>Website: <input type='text' value='<?php echo site_url(); ?>' readonly='readonly'/></li>
178
+ <li>Callback URL: <input type='text' value='<?php echo site_url(); ?>/wp-login.php' readonly='readonly'/></li>
179
+ <li><strong>Note: </strong>To get the user's email address please go to app's permission tab and in additional Permissions there you will find a checkbox to request for user email address. Please enable it. To enable it you need to enter privacy policy url and terms of service url. <br /> If you have enabled the <strong>callback locking</strong> please use the Callback URL as given above.</li>
180
+ <li><strong>Note: </strong> Since version: 3.4.0 of our plugin, please use mew <strong> Callback URL </strong> </li> for the twitter app. Because of some recent changes in twitter API.
181
+ </ul>
182
 
183
+ </div>
184
+ </div>
185
+ </div>
186
+ <?php
187
+ break;
188
+ case 'google':
189
+ ?>
190
+ <div class='apsl-settings apsl-google-settings'>
191
+ <!-- Google Settings -->
192
+ <div class='apsl-label'><?php _e("Google", 'accesspress-social-login-lite'); ?> <span class='apsl_show_hide' id='apsl_show_hide_<?php echo $value; ?>'><i class="fa fa-caret-down"></i></span> </div>
193
+ <div class='apsl_network_settings_wrapper' id='apsl_network_settings_<?php echo $value; ?>' style='display:none'>
194
+ <div class='apsl-enable-disable'>
195
+ <label><?php _e('Enable?', 'accesspress-social-login-lite'); ?></label>
196
+ <input type="checkbox" id='aspl-google-enable' value='enable' name='apsl_google_settings[apsl_google_enable]' <?php checked('enable', $options['apsl_google_settings']['apsl_google_enable']); ?> />
197
+ </div>
198
+ <div class='apsl-app-id-wrapper'>
199
+ <label><?php _e('Client ID:', 'accesspress-social-login-lite'); ?></label><input type='text' id='apsl-google-client-id' name='apsl_google_settings[apsl_google_client_id]' value='<?php
200
+ if (isset($options['apsl_google_settings']['apsl_google_client_id'])) {
201
+ echo $options['apsl_google_settings']['apsl_google_client_id'];
202
+ }
203
+ ?>' />
204
+ </div>
205
+ <div class='apsl-app-secret-wrapper'>
206
+ <label><?php _e('Client Secret:', 'accesspress-social-login-lite'); ?></label><input type='text' id='apsl-google-client-secret' name='apsl_google_settings[apsl_google_client_secret]' value='<?php
207
+ if (isset($options['apsl_google_settings']['apsl_google_client_secret'])) {
208
+ echo $options['apsl_google_settings']['apsl_google_client_secret'];
209
+ }
210
+ ?>' />
211
+ </div>
212
+ <input type='hidden' name='network_ordering[]' value='google' />
213
+ <div class='apsl-info'>
214
+ <span class='apsl-info-note'><?php _e('Note:', 'accesspress-social-login-lite'); ?></span> <br />
215
+ <br/>
216
+ <span class='apsl-info-content' style="color:red"><strong>Important Notice: </strong> In prior to google+ being shutdown from March 7, 2019, the code for Google+ login to google oauth login has been updated. You might need to revalidate and create the client key & client secret again. </span>
217
+ <br/><br/>
218
+ <span class='apsl-info-content'>You need to create new google API application to setup the google login. Please follow the instructions to create new application.</span>
219
+ <ul class='apsl-info-lists'>
220
+ <li>Go to <a href='https://console.developers.google.com/project' target='_blank'>https://console.developers.google.com/project.</a> </li>
221
+ <li>Click on "Create Project" button. A popup will appear.</li>
222
+ <li>Please enter Project name and click on "Create" button.</li>
223
+ <li>A App will be created and a dashobard will appear.</li>
224
+ <li>In the blue box please click on Enable and manage APIs link. A new page will load.</li>
225
+ <li>Now In the Social APIs section click on Google+ API and click "Enable API" button. Then the Google+ API will be activated.</li>
226
+ <li>Now click on Credentials section and go to OAuth consent screen and enter the app details there.</li>
227
+ <li>Click on Credentials tab and click on "New credentials" or "Add credentials" if you have already created one, a selection will appear and click on "OAuth client ID".</li>
228
+ <li>A new page will load. Please select Application type to Web application and click "create" button. Further forms will loaded up and enter the details there.</li>
229
+ <li>In the authorized redirect URIs please enter the details provided in the note section from plugin and click save button.</li>
230
+ <li>In the popup you will get Client ID and client secret.</li>
231
+ <li>And please enter those credentials in the google setting in our plugin.</li>
232
+ <li><?php _e('Rediret uri setup', 'accesspress-social-login-lite'); ?> :<br />
233
+ <?php _e('Please use', 'accesspress-social-login-lite'); ?> <input type='text' value='<?php echo site_url(); ?>/wp-login.php?apsl_login_id=google_check' readonly='readonly'/> - <?php _e('for wordpress login page', 'accesspress-social-login-lite'); ?>.<br />
234
+ <?php _e('Please use', 'accesspress-social-login-lite'); ?> <input type='text' value='<?php echo site_url(); ?>/index.php?apsl_login_id=google_check' readonly='readonly'/> - <?php _e('if you have used the shortcode or widget in frontend. ', 'accesspress-social-login-lite'); ?>
235
+ </li>
236
+ <li>
237
+ <?php _e('Please note: Make sure to check the protocol "http://" or "https://" as google checks protocol as well. Better to add both URL in the list if you site is https so that google social login work properly for both https and http browser.', 'accesspress-social-login-lite'); ?>
238
+ </li>
239
+ </ul>
240
+ </div>
241
+ </div>
242
+ </div>
243
+ <?php break; ?>
244
 
245
+ <?php
246
+ default:
247
+ echo "should not reach here";
248
+ break;
249
+ }
250
+ ?>
251
+ <?php endforeach; ?>
252
+ </div>
253
+ </div>
254
 
255
+ <div class='apsl-tab-contents' id='tab-apsl-theme-settings' style="display:none">
256
+ <div class='apsl-settings'>
257
+ <div class='apsl-enable-disable-opt'>
258
+ <div class="apsl-label"><?php _e('Social login', 'accesspress-social-login-lite'); ?> <span class='apsl_show_hide'><i class="fa fa-caret-down"></i></span> </div>
259
+ <div class='apsl_network_settings_wrapper' style='display:none'>
260
+ <p class="social-login">
261
+ <span><?php _e('Enable social login?', 'accesspress-social-login-lite'); ?></span>
262
+ <input type='radio' id='apsl_enable_plugin' name='apsl_enable_disable_plugin' value='yes' <?php checked($options['apsl_enable_disable_plugin'], 'yes', 'true'); ?> /> <label for='apsl_enable_plugin'>Yes</label>
263
+ <input type='radio' id='apsl_disable_plugin' name='apsl_enable_disable_plugin' value='no' <?php checked($options['apsl_enable_disable_plugin'], 'no', 'true'); ?> /> <label for='apsl_disable_plugin'>No</label>
264
+ </p>
265
+ </div>
266
+ </div>
267
+ </div>
268
 
269
+ <div class='apsl-settings'>
270
+ <div class='apsl-display-options'>
271
+ <div class="apsl-label"><?php _e('Display options', 'accesspress-social-login-lite'); ?> <span class='apsl_show_hide'><i class="fa fa-caret-down"></i></span></div>
272
+ <div class='apsl_network_settings_wrapper' style='display:none'>
273
+ <p><?php _e('Please choose the options where you want to display the social login form.', 'accesspress-social-login-lite'); ?></p>
274
+ <p><input type="checkbox" id="apsl_login_form" value="login_form" name="apsl_display_options[]" <?php
275
+ if (in_array("login_form", $options['apsl_display_options'])) {
276
+ echo "checked='checked'";
277
+ }
278
+ ?> ><label for="apsl_login_form"><?php _e('Login Form', 'accesspress-social-login-lite'); ?> </label></p>
279
+ <p><input type="checkbox" id="apsl_register_form" value="register_form" name="apsl_display_options[]" <?php
280
+ if (in_array("register_form", $options['apsl_display_options'])) {
281
+ echo "checked='checked'";
282
+ }
283
+ ?> ><label for="apsl_register_form"><?php _e('Register Form', 'accesspress-social-login-lite'); ?> </label></p>
284
+ <p><input type="checkbox" id="apsl_comment_form" value="comment_form" name="apsl_display_options[]" <?php
285
+ if (in_array("comment_form", $options['apsl_display_options'])) {
286
+ echo "checked='checked'";
287
+ }
288
+ ?> ><label for="apsl_comment_form"><?php _e('Comments', 'accesspress-social-login-lite'); ?> </label></p>
289
+ </div>
290
+ </div>
291
+ </div>
292
 
293
+ <div class='apsl-settings'>
294
+ <div class='apsl-themes-wrapper'>
295
+ <div class="apsl-label"><?php _e('Available icon themes', 'accesspress-social-login-lite'); ?> <span class='apsl_show_hide'><i class="fa fa-caret-down"></i></span>
296
+ </div>
297
+ <div class='apsl_network_settings_wrapper' style='display:none'>
298
+ <?php for ($i = 1; $i <= 5; $i++) { ?>
299
+ <div class='apsl-theme apsl-theme-<?php echo $i; ?>'>
300
+ <label>
301
+ <input type="radio" id="apsl-theme-<?php echo $i; ?>" value="<?php echo $i; ?>" class="apsl-theme apsl-png-theme" name="apsl_icon_theme" <?php checked($i, $options['apsl_icon_theme']); ?> >
302
+ <span><?php _e('Theme ' . $i, 'accesspress-social-login-lite'); ?></span>
303
+ </label>
304
+ <div class="apsl-theme-previewbox">
305
+ <img src="<?php echo APSL_IMAGE_DIR; ?>/preview-<?php echo $i; ?>.jpg" alt="theme preview">
306
+ </div>
307
+ </div>
308
+ <?php } ?>
309
+ </div>
310
+ </div>
311
+ </div>
312
 
313
+ <div class='apsl-settings'>
314
+ <div class='apsl-text-settings'>
315
+ <div class="apsl-label"><?php _e('Text settings', 'accesspress-social-login-lite'); ?> <span class='apsl_show_hide'><i class="fa fa-caret-down"></i></span> </div>
316
+ <div class='apsl_network_settings_wrapper' style='display:none'>
317
+ <p class='apsl-title-text-field'>
318
+ <span><?php _e('Login text:', 'accesspress-social-login-lite'); ?></span> <input type='text' name='apsl_title_text_field' id='apsl-title-text' value='<?php
319
+ if (isset($options['apsl_title_text_field']) && $options['apsl_title_text_field'] != '') {
320
+ echo $options['apsl_title_text_field'];
321
+ }
322
+ ?>' />
323
+ </p>
324
+ </div>
325
+ </div>
326
+ </div>
327
 
328
+ <div class='apsl-settings'>
329
+ <div class='apsl-logout-redirect-settings'>
330
+ <div class="apsl-label">
331
+ <?php _e('Logout redirect link', 'accesspress-social-login-lite'); ?> <span class='apsl_show_hide'><i class="fa fa-caret-down"></i>
332
+ </span>
333
+ </div>
334
+ <div class='apsl_network_settings_wrapper' style='display:none'>
335
+ <input type='radio' id='apsl_custom_logout_redirect_home' class='apsl_custom_logout_redirect_options' name='apsl_custom_logout_redirect_options' value='home' <?php
336
+ if (isset($options['apsl_custom_logout_redirect_options'])) {
337
+ checked($options['apsl_custom_logout_redirect_options'], 'home', 'true');
338
+ }
339
+ ?> /> <label for='apsl_custom_logout_redirect_home'><?php _e('Home page', 'accesspress-social-login-lite'); ?></label><br /><br />
340
+ <input type='radio' id='apsl_custom_logout_redirect_current' class='apsl_custom_logout_redirect_options' name='apsl_custom_logout_redirect_options' value='current_page' <?php
341
+ if (isset($options['apsl_custom_logout_redirect_options'])) {
342
+ checked($options['apsl_custom_logout_redirect_options'], 'current_page', 'true');
343
+ }
344
+ ?> /> <label for='apsl_custom_logout_redirect_current'><?php _e('Current page', 'accesspress-social-login-lite'); ?></label><br /><br />
345
 
346
 
347
+ <input type='radio' id='apsl_custom_logout_redirect_custom' class='apsl_custom_logout_redirect_options' name='apsl_custom_logout_redirect_options' value='custom_page' <?php
348
+ if (isset($options['apsl_custom_logout_redirect_options'])) {
349
+ checked($options['apsl_custom_logout_redirect_options'], 'custom_page', 'true');
350
+ }
351
+ ?> /> <label for='apsl_custom_logout_redirect_custom'><?php _e('Custom page', 'accesspress-social-login-lite'); ?></label><br />
352
 
353
+ <div class='apsl-custom-logout-redirect-link' <?php echo (isset($options['apsl_custom_logout_redirect_options']) && $options['apsl_custom_logout_redirect_options'] == 'custom_page') ? "style='display:block;'" : "style='display:none'"; ?>>
354
+ <p class='apsl-title-text-field'>
355
+ <span><?php _e('Logout redirect page:', 'accesspress-social-login-lite'); ?></span> <input type='text' name='apsl_custom_logout_redirect_link' id='apsl-custom-logout-redirect-link' value='<?php
356
+ if (isset($options['apsl_custom_logout_redirect_link']) && $options['apsl_custom_logout_redirect_link'] != '') {
357
+ echo $options['apsl_custom_logout_redirect_link'];
358
+ }
359
+ ?>' />
360
+ </p>
361
+ <div class='apsl-info'>
362
+ <span class='apsl-info-note'><?php _e('Note:', 'accesspress-social-login-lite'); ?></span> <br />
363
+ <span class='apsl-info-content'><?php _e('Please set this value if you want to redirect the user to the custom page url(full url). If this field is not set they will be redirected back to current page', 'accesspress-social-login-lite'); ?>.</span>
364
+ </div>
365
+ </div>
366
+ </div>
367
+ </div>
368
+ </div>
369
 
370
+ <div class='apsl-settings'>
371
+ <div class='apsl-login-redirect-settings'>
372
+ <div class="apsl-label"><?php _e('Login redirect link', 'accesspress-social-login-lite'); ?> <span class='apsl_show_hide'><i class="fa fa-caret-down"></i></span> </div>
373
+ <div class='apsl_network_settings_wrapper' style='display:none'>
374
+ <input type='radio' id='apsl_custom_login_redirect_home' class='apsl_custom_login_redirect_options' name='apsl_custom_login_redirect_options' value='home' <?php
375
+ if (isset($options['apsl_custom_login_redirect_options'])) {
376
+ checked($options['apsl_custom_login_redirect_options'], 'home', 'true');
377
+ }
378
+ ?> /> <label for='apsl_custom_login_redirect_home'><?php _e('Home page', 'accesspress-social-login-lite'); ?></label><br /><br />
379
+ <input type='radio' id='apsl_custom_login_redirect_current' class='apsl_custom_login_redirect_options' name='apsl_custom_login_redirect_options' value='current_page' <?php
380
+ if (isset($options['apsl_custom_login_redirect_options'])) {
381
+ checked($options['apsl_custom_login_redirect_options'], 'current_page', 'true');
382
+ }
383
+ ?> /> <label for='apsl_custom_login_redirect_current'><?php _e('Current page', 'accesspress-social-login-lite'); ?></label><br /><br />
384
+ <div class='apsl-custom-login-redirect-link1' >
385
+ <div class='apsl-info'>
386
+ <span class='apsl-info-note'><?php _e('Note:', 'accesspress-social-login-lite'); ?></span> <br />
387
+ <span class='apsl-info-content'> <?php _e('If plugin can\'t detect what is the redirect uri for the page it will be redirected to home page', 'accesspress-social-login-lite'); ?>.</span>
388
+ </div>
389
+ </div>
390
+ <input type='radio' id='apsl_custom_login_redirect_custom' class='apsl_custom_login_redirect_options' name='apsl_custom_login_redirect_options' value='custom_page' <?php
391
+ if (isset($options['apsl_custom_login_redirect_options'])) {
392
+ checked($options['apsl_custom_login_redirect_options'], 'custom_page', 'true');
393
+ }
394
+ ?> /> <label for='apsl_custom_login_redirect_custom'><?php _e('Custom page', 'accesspress-social-login-lite'); ?></label><br />
395
 
396
+ <div class='apsl-custom-login-redirect-link' <?php echo (isset($options['apsl_custom_login_redirect_options']) && $options['apsl_custom_login_redirect_options'] == 'custom_page') ? "style='display: block'" : "style='display:none'"; ?>>
397
+ <p class='apsl-title-text-field'>
398
+ <span><?php _e('Login redirect page:', 'accesspress-social-login-lite'); ?></span> <input type='text' name='apsl_custom_login_redirect_link' id='apsl-custom-login-redirect-link' value='<?php
399
+ if (isset($options['apsl_custom_login_redirect_link']) && $options['apsl_custom_login_redirect_link'] != '') {
400
+ echo $options['apsl_custom_login_redirect_link'];
401
+ }
402
+ ?>' />
403
+ </p>
404
+ <div class='apsl-info'>
405
+ <span class='apsl-info-note'><?php _e('Note:', 'accesspress-social-login-lite'); ?></span> <br />
406
+ <span class='apsl-info-content'><?php _e('Please set this value if you want to redirect the user to the custom page url(full url). If this field is not set they will be redirected back to home page', 'accesspress-social-login-lite'); ?>.</span>
407
+ </div>
408
+ </div>
409
+ </div>
410
+ </div>
411
+ </div>
412
+ <div class='apsl-settings'>
413
+ <div class='apsl-user-avatar-settings'>
414
+ <div class="apsl-label"><?php _e('User avatar', 'accesspress-social-login-lite'); ?> <span class='apsl_show_hide'><i class="fa fa-caret-down"></i></span> </div>
415
+ <div class='apsl_network_settings_wrapper apsl_network_settings_outer' style='display:none'>
416
+ <input type='radio' id='apsl_user_avatar_default' class='apsl_user_avatar_options' name='apsl_user_avatar_options' value='default' <?php
417
+ if (isset($options['apsl_user_avatar_options'])) {
418
+ checked($options['apsl_user_avatar_options'], 'default', 'true');
419
+ }
420
+ ?> /> <label for='apsl_user_avatar_default'><?php _e('Use wordpress provided default avatar.', 'accesspress-social-login-lite'); ?></label><br /><br />
421
+ <input type='radio' id='apsl_user_avatar_social' class='apsl_user_avatar_options' name='apsl_user_avatar_options' value='social' <?php
422
+ if (isset($options['apsl_user_avatar_options'])) {
423
+ checked($options['apsl_user_avatar_options'], 'social', 'true');
424
+ }
425
+ ?> /> <label for='apsl_user_avatar_social'><?php _e('Use the profile picture from social media where available.', 'accesspress-social-login-lite'); ?></label><br /><br />
426
+ <div class='apsl-info'>
427
+ <span class='apsl-info-note'><?php _e('Note:', 'accesspress-social-login-lite'); ?></span> <br />
428
+ <span class='apsl-info-content'><?php _e('Please choose the options from where you want your users avatar to be loaded from. If you choose default wordpress avatar it will use the gravatar profile image if user have gravatar profile assocated with their registered email address', 'accesspress-social-login-lite'); ?>.</span>
429
+ </div>
430
+ </div>
431
+ </div>
432
+ </div>
433
 
434
+ <div class='apsl-settings'>
435
+ <div class='apsl-user-email-settings'>
436
+ <div class="apsl-label"><?php _e('Email notification settings', 'accesspress-social-login-lite'); ?> <span class='apsl_show_hide'><i class="fa fa-caret-down"></i></span> </div>
437
+ <div class='apsl_network_settings_wrapper apsl_network_settings_outer' style='display:none'>
438
+ <input type='radio' id='apsl_send_email_notification_yes' class='apsl_send_email_notification_yes' name='apsl_send_email_notification_options' value='yes' <?php
439
+ if (isset($options['apsl_send_email_notification_options'])) {
440
+ checked($options['apsl_send_email_notification_options'], 'yes', 'true');
441
+ }
442
+ ?> /> <label for='apsl_send_email_notification_yes'><?php _e('Send email notification to both user and site admin.', 'accesspress-social-login-lite'); ?></label><br /><br />
443
+ <input type='radio' id='apsl_send_email_notification_no' class='apsl_send_email_notification_no' name='apsl_send_email_notification_options' value='no' <?php
444
+ if (isset($options['apsl_send_email_notification_options'])) {
445
+ checked($options['apsl_send_email_notification_options'], 'no', 'true');
446
+ }
447
+ ?> /> <label for='apsl_send_email_notification_no'><?php _e('Do not send email notification to both user and site admin.', 'accesspress-social-login-lite'); ?></label><br /><br />
448
+ <div class='apsl-info'>
449
+ <span class='apsl-info-note'><?php _e('Note:', 'accesspress-social-login-lite'); ?></span> <br />
450
+ <span class='apsl-info-content'><?php _e('Here you can configure an options to send email notifications about user registration to site admin and user', 'accesspress-social-login-lite'); ?>.</span>
451
+ </div>
452
+ </div>
453
+ </div>
454
+ </div>
455
 
456
+ </div>
457
 
458
 
459
+ <!-- how to use section -->
460
+ <div class='apsl-tab-contents' id='tab-apsl-how-to-use' style="display:none">
461
+ <?php include( APSL_PLUGIN_DIR . 'inc/backend/how-to-use.php' ); ?>
462
+ </div>
463
+ <!-- about section -->
464
+ <div class='apsl-tab-contents' id='tab-apsl-about' style="display:none">
465
+ <?php include( APSL_PLUGIN_DIR . 'inc/backend/about.php' ); ?>
466
+ </div>
467
+ <div class='apsl-tab-contents' id='tab-apsl-more-wordpress-resources' style="display:none">
468
+ <?php include( APSL_PLUGIN_DIR . 'inc/backend/more-wordpress-resources.php' ); ?>
469
+ </div>
470
+ <!-- Save settings Button -->
471
+ <div class='apsl-save-settings'>
472
+ <?php wp_nonce_field('apsl_save_settings_nonce', 'apsl_save_settings_nonce_field'); ?>
473
+ <input type='submit' class='apsl-submit-settings primary-button' name='apsl_save_settings' value='<?php _e('Save settings', 'accesspress-social-login-lite'); ?>' />
474
+ </div>
475
 
476
+ <div class='apsl-restore-settings'>
477
+ <?php $nonce = wp_create_nonce('apsl-restore-default-settings-nonce'); ?>
478
+ <a href="<?php echo admin_url() . 'admin-post.php?action=apsl_restore_default_settings&_wpnonce=' . $nonce; ?>" onclick="return confirm('<?php _e('Are you sure you want to restore default settings?', 'accesspress-social-login-lite'); ?>')"><input type="button" value="Restore Default Settings" class="apsl-reset-button button primary-button"/></a>
479
+ </div>
480
+ </div>
481
+ </div>
482
+ </div>
483
+ </div>
484
+ </form>
485
+ </div>
486
+ <div id="apsl-postbox-container-1" class="apsl-postbox-container-1">
487
+ <?php include(APSL_PLUGIN_DIR . 'inc/backend/sidebar.php'); ?>
488
  </div>
 
inc/backend/sidebar.php ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div class="apsl-right-div-wrapper">
2
+
3
+ <div class="apsl-sidebar-pro-image-first">
4
+ <a href="https://1.envato.market/c/1302794/275988/4415?u=https%3A%2F%2Fcodecanyon.net%2Fitem%2Faccesspress-social-login%2F11815891" target="_blank">
5
+ <img src="<?php echo APSL_IMAGE_DIR.'/accesspress-social-login-upgrade-to-pro.png' ?>"/>
6
+ </a>
7
+ </div>
8
+ <div class="apsl-pro-version-update-button">
9
+ <div class="apsl-group">
10
+ <a href="http://demo.accesspressthemes.com/wordpress-plugins/accesspress-social-login"
11
+ target="_blank" class="apsl-demo-button apsl-btn-default apsl-btn-demo"><?php _e('DEMO','accesspress-social-login-lite'); ?></a>
12
+ <a href="https://1.envato.market/c/1302794/275988/4415?u=https%3A%2F%2Fcodecanyon.net%2Fitem%2Faccesspress-social-login%2F11815891"
13
+ target="_blank" class="apsl-demo-button apsl-btn-default apsl-btn-upgrade"><?php _e('UPGRADE','accesspress-social-login-lite'); ?></a>
14
+ </div>
15
+ </div>
16
+ <div class="apsl-sidebar-pro-image-second">
17
+ <a href="https://1.envato.market/c/1302794/275988/4415?u=https%3A%2F%2Fcodecanyon.net%2Fitem%2Faccesspress-social-login%2F11815891" target="_blank">
18
+ <img src="<?php echo APSL_IMAGE_DIR.'/accesspress-social-login-gallery-upgrade to pro-feature.png' ?>"/>
19
+ </a>
20
+ </div>
21
+
22
+
23
+ </div>
24
+
25
+ <style>
26
+ .apsl-pro-version-update-button{
27
+ background: #fff;
28
+ text-align: center;
29
+ padding: 15px;
30
+ margin: 5px 0;
31
+ }
32
+ .apsl-pro-version-update-button>.apsl-btn-demo {
33
+ position: relative;
34
+ float: left;
35
+ }
36
+ .apsl-demo-button {
37
+ display: inline-block;
38
+ margin-bottom: 0;
39
+ font-weight: 400;
40
+ text-align: center;
41
+ vertical-align: middle;
42
+ cursor: pointer;
43
+ border: 1px solid transparent;
44
+ white-space: nowrap;
45
+ padding: 6px 12px;
46
+ font-size: 14px;
47
+ line-height: 1.42857143;
48
+ border-radius: 4px;
49
+ text-decoration:none;
50
+ }
51
+ .apsl-btn-demo {
52
+ background: rgb(45, 163, 13);
53
+ color: #fff;
54
+ border-color: transparent;
55
+ }
56
+ .apsl-group a:hover {
57
+ text-decoration: none;
58
+ color: white;
59
+ }
60
+ .apsl-btn-upgrade {
61
+ background: rgb(39, 115, 202);
62
+ color: #fff;
63
+ border-color: transparent;
64
+ }
65
+ .apsl-enquiry-field{
66
+ text-align:center;
67
+ }
68
+ .apsl-right-div-wrapper{
69
+ float:right;
70
+ }
71
+ .apsl-postbox-container-1{
72
+ margin-top:20px;
73
+ }
74
+ </style>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: social, login, social login, facebook, twitter, google, social connect, s
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 5.0
7
- Stable tag: 3.4.2
8
  Requires PHP: 5.4
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -65,7 +65,7 @@ Select from 5 beautiful designs of social login buttons/icons.
65
  For more features upgrade to PRO version
66
 
67
  Upgrade to PRO version for:
68
- 9 social network support
69
  - Facebook
70
  - Twitter
71
  - Google
@@ -75,15 +75,19 @@ For more features upgrade to PRO version
75
  - Foursquare
76
  - WordPress
77
  - Buffer
 
 
 
78
 
79
- 15 Beautiful design templates.
80
 
81
  ★ Works with Woocommerce.
82
 
83
  ★ Works with BuddyPress.
 
 
84
 
85
- ★ High level of customization/configuration - admin can change the title
86
- attributes for social media icons, other texts, strings etc.
87
 
88
  = Premium upgrade =
89
 
@@ -135,6 +139,9 @@ Yes. You can use the AccessPress social login lite anywhere by using the shortco
135
 
136
  == Changelog ==
137
 
 
 
 
138
  = 3.4.2 =
139
  * Various unwanted and commented code removed with security check.
140
 
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 5.0
7
+ Stable tag: 3.4.3
8
  Requires PHP: 5.4
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
65
  For more features upgrade to PRO version
66
 
67
  Upgrade to PRO version for:
68
+ 12 social network support
69
  - Facebook
70
  - Twitter
71
  - Google
75
  - Foursquare
76
  - WordPress
77
  - Buffer
78
+ - Reddit
79
+ - Yahoo
80
+ - Tumblr
81
 
82
+ 30 Beautiful design templates.
83
 
84
  ★ Works with Woocommerce.
85
 
86
  ★ Works with BuddyPress.
87
+
88
+ ★ Work with EDD
89
 
90
+ ★ High level of customization/configuration - admin can change the title attributes for social media icons, other texts, strings etc.
 
91
 
92
  = Premium upgrade =
93
 
139
 
140
  == Changelog ==
141
 
142
+ = 3.4.3 =
143
+ * Added promotional banners
144
+
145
  = 3.4.2 =
146
  * Various unwanted and commented code removed with security check.
147