Social Login - Version 6.3.3

Version Description

  • Updated subject of verification mail
  • Preview of features in standard and premium is available
Download this release

Release Info

Developer cyberlord92
Plugin Icon 128x128 Social Login
Version 6.3.3
Comparing to
See all releases

Code changes from version 6.3.2 to 6.3.3

miniorange_openid_sso_settings.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Social Login, Social Sharing by miniOrange
5
  * Plugin URI: https://www.miniorange.com
6
  * Description: Allow your users to login, comment and share with Facebook, Google, Twitter, LinkedIn etc using customizable buttons.
7
- * Version: 6.3.2
8
  * Author: miniOrange
9
  * Author URI: https://www.miniorange.com
10
  * License: GPL2
4
  * Plugin Name: Social Login, Social Sharing by miniOrange
5
  * Plugin URI: https://www.miniorange.com
6
  * Description: Allow your users to login, comment and share with Facebook, Google, Twitter, LinkedIn etc using customizable buttons.
7
+ * Version: 6.3.3
8
  * Author: miniOrange
9
  * Author URI: https://www.miniorange.com
10
  * License: GPL2
miniorange_openid_sso_settings_page.php CHANGED
@@ -19,7 +19,9 @@ function mo_register_openid() {
19
  <?php } ?>
20
  <a class="nav-tab <?php echo $active_tab == 'login' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'login'), $_SERVER['REQUEST_URI'] ); ?>">Social Login</a>
21
  <a class="nav-tab <?php echo $active_tab == 'custom_app' ? 'nav-tab-active' : ''; ?>" href="admin.php?page=mo_openid_settings&tab=custom_app">Custom App</a>
22
- <a class="nav-tab <?php echo $active_tab == 'share' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'share'), $_SERVER['REQUEST_URI'] ); ?>">Social Sharing</a>
 
 
23
  <a class="nav-tab <?php echo $active_tab == 'comment' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'comment'), $_SERVER['REQUEST_URI'] ); ?>">Social Comments</a>
24
  <a class="nav-tab <?php echo $active_tab == 'shortcode' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'shortcode'), $_SERVER['REQUEST_URI'] ); ?>">Shortcode</a>
25
  <a class="nav-tab <?php echo $active_tab == 'pricing' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'pricing'), $_SERVER['REQUEST_URI'] ); ?>">Licensing Plans</a>
@@ -50,7 +52,14 @@ function mo_register_openid() {
50
  }
51
  } else if($active_tab == 'login'){
52
  mo_openid_apps_config();
53
- } else if($active_tab == 'comment'){
 
 
 
 
 
 
 
54
  mo_openid_app_comment();
55
  } else if($active_tab == 'shortcode') {
56
  mo_openid_shortcode_info();
@@ -1238,6 +1247,230 @@ jQuery(function() {
1238
  <?php
1239
  }
1240
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1241
  function mo_openid_app_comment() {
1242
  ?>
1243
  <td style="vertical-align:top;width:65%;">
19
  <?php } ?>
20
  <a class="nav-tab <?php echo $active_tab == 'login' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'login'), $_SERVER['REQUEST_URI'] ); ?>">Social Login</a>
21
  <a class="nav-tab <?php echo $active_tab == 'custom_app' ? 'nav-tab-active' : ''; ?>" href="admin.php?page=mo_openid_settings&tab=custom_app">Custom App</a>
22
+ <a class="nav-tab <?php echo $active_tab == 'email_notif' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'email_notif'), $_SERVER['REQUEST_URI'] ); ?>">Email Notification</a>
23
+ <a class="nav-tab <?php echo $active_tab == 'integrations' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'integrations'), $_SERVER['REQUEST_URI'] ); ?>">Integrations</a>
24
+ <a class="nav-tab <?php echo $active_tab == 'share' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'share'), $_SERVER['REQUEST_URI'] ); ?>">Social Sharing</a>
25
  <a class="nav-tab <?php echo $active_tab == 'comment' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'comment'), $_SERVER['REQUEST_URI'] ); ?>">Social Comments</a>
26
  <a class="nav-tab <?php echo $active_tab == 'shortcode' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'shortcode'), $_SERVER['REQUEST_URI'] ); ?>">Shortcode</a>
27
  <a class="nav-tab <?php echo $active_tab == 'pricing' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'pricing'), $_SERVER['REQUEST_URI'] ); ?>">Licensing Plans</a>
52
  }
53
  } else if($active_tab == 'login'){
54
  mo_openid_apps_config();
55
+ }
56
+ else if($active_tab == 'email_notif'){
57
+ mo_openid_email_notification();
58
+ }
59
+ else if($active_tab == 'integrations'){
60
+ mo_openid_integrations();
61
+ }
62
+ else if($active_tab == 'comment'){
63
  mo_openid_app_comment();
64
  } else if($active_tab == 'shortcode') {
65
  mo_openid_shortcode_info();
1247
  <?php
1248
  }
1249
 
1250
+ function mo_openid_integrations(){
1251
+
1252
+ ?>
1253
+ <td style="vertical-align:top; ">
1254
+ <div class="mo_openid_table_layout">
1255
+ <style>
1256
+ .tableborder {
1257
+ border-collapse: collapse;
1258
+ width: 100%;
1259
+ border-color:#eee;
1260
+ }
1261
+
1262
+ .tableborder th, .tableborder td {
1263
+ text-align: left;
1264
+ padding: 8px;
1265
+ border-color:#eee;
1266
+ }
1267
+
1268
+ .tableborder tr:nth-child(even){background-color: #f2f2f2}
1269
+ </style>
1270
+ <?php if(!mo_openid_is_customer_registered()) { ?>
1271
+ <div style="display:block;margin-top:10px;color:red;background-color:rgba(251, 232, 0, 0.15);padding:5px;border:solid 1px rgba(255, 0, 9, 0.36);">
1272
+ Please <a href="<?php echo add_query_arg( array('tab' => 'register'), $_SERVER['REQUEST_URI'] ); ?>">Register or Login with miniOrange</a> to enable Social Login and Social Sharing.
1273
+ </div>
1274
+ <?php }?>
1275
+
1276
+ <div style="display:block;">
1277
+ <b><span style="display:block;margin-top:10px;background-color:aliceblue;padding:5px;border:solid 1px deepskyblue;">*NOTE: These features are available in the <a target="_blank" href="<?php echo add_query_arg( array('tab' => 'pricing'), $_SERVER['REQUEST_URI'] ); ?>">premium </a> version of the plugin.</span>
1278
+ </b>
1279
+ </div>
1280
+
1281
+ <h3><span style='color:red;'>*</span>BuddyPress Extended Attributes Mapping</h3>
1282
+ <?php
1283
+ echo "<div style='text-align: center'><p>You have not setup attribute mapping for any apps yet. Please click on <b>Add Application</b> to configure mapping for each app.</p>";
1284
+ echo "</div>";
1285
+ echo "<br><input disabled style='margin-left:300px;text-align:center;' type=\"button\" name=\"add_app\" id=\"add_app\" class=\"button button-primary button-large\" value=\"Add Application\" onclick=\"window.location.href='admin.php?page=mo_openid_settings&tab=integrations&action=add'\" />";
1286
+
1287
+ ?>
1288
+
1289
+ <!--MailChimp form-->
1290
+ <form name="mo_openid_mailchimp_form" method="post" id="mo_openid_mailchimp_form">
1291
+ <input type="hidden" name="option" value="mo_openid_save_mailchimp_field"/><br>
1292
+ <hr>
1293
+ <h3><span style="color:red;">*</span>MailChimp Integration</h3>
1294
+ <p><b>A user is added as a subscriber to a mailing list in MailChimp when that user registers using social login. First name, last name and email are also captured for that user in the Mailing List.</b></p>
1295
+ (List ID in MailChimp : Lists -> Select your List -> Settings -> List Name and Defaults -> List ID) <br>
1296
+ (API Key in MailChimp : Profile -> Extras -> API Keys -> Your API Key )<br><br>
1297
+ <b>List Id:</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input style="background: #DCDAD1;" disabled size="50" class="mo_table_textbox" type="text" id="mo_openid_mailchimp_listid" display:"inline-block" name="mo_openid_mailchimp_listid" <?php if(!mo_openid_is_customer_registered()) echo 'disabled'?> value="<?php echo get_option('mo_openid_mailchimp_listid');?>"> <br><br>
1298
+ <b>API Key: </b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input style="background: #DCDAD1;" disabled size="50" class="mo_table_textbox" type="text" id="mo_openid_mailchimp_api_key" display:"inline-block" name="mo_openid_mailchimp_api_key" <?php if(!mo_openid_is_customer_registered()) echo 'disabled'?> value="<?php echo get_option('mo_openid_mailchimp_api_key');?>"><br><br>
1299
+ <input disabled type="checkbox" name="mo_openid_show_mailchimp_form" value="1" <?php if(!mo_openid_is_customer_registered()) echo 'disabled'?> <?php checked( get_option('mo_openid_show_mailchimp_form') == 1 );?> />
1300
+ <strong>Ask user for permission to be added in MailChimp Subscriber list </strong>
1301
+ <br>(If unchecked, user will get subscribed during registration.)
1302
+ <br><br>
1303
+ <b>Click on Download button to get a list of emails of WordPress users registered on your site. You can import this file in MailChimp. </b><br><br>
1304
+ <input disabled type="submit" value="Save " <?php if(!mo_openid_is_customer_registered()) echo 'disabled'?> class="button button-primary button-large" />
1305
+ <a disabled style="width:190px;" <?php if(!mo_openid_is_customer_registered()) echo 'disabled'?> class="button button-primary button-large" href="<?php echo plugin_dir_url(__FILE__) . 'miniorange_openid_sso_download_emails.php' ?>">
1306
+ Download emails of users
1307
+ </a><br>
1308
+ </form>
1309
+
1310
+ <!-- Woocommerce form-->
1311
+ <form name="mo_openid_woocommerce_form" method="post" id="mo_openid_woocommerce_form">
1312
+ <input type="hidden" name="option" value="mo_openid_save_woocommerce_field"/>
1313
+ <br>
1314
+ <hr>
1315
+ <h3><span style="color:red;">*</span>Woocommerce Integration</h3>
1316
+ <p><b>If enabled, first name, last name and email are pre-filled in billing details of a user and on the Woocommerce checkout page.</b></p>
1317
+ <input disabled type="checkbox" name="mo_openid_save_woocommerce_field" value="1" <?php if(!mo_openid_is_customer_registered()) echo 'disabled'?> <?php checked( get_option('mo_openid_enable_woocommerce_sync') == 1 );?> /><strong>Sync Woocommerce checkout fields</strong>
1318
+ <br><br>
1319
+ <input disabled type="submit" value="Save " <?php if(!mo_openid_is_customer_registered()) echo 'disabled'?> class="button button-primary button-large" />
1320
+ <br>
1321
+ </form><br><br>
1322
+
1323
+ </div>
1324
+
1325
+ </td>
1326
+
1327
+ <td style="vertical-align:top;padding-left:1%; width: 35%">
1328
+ <?php echo miniorange_openid_support(); ?>
1329
+ </td>
1330
+
1331
+ <?php
1332
+ }
1333
+
1334
+ function mo_openid_email_notification(){
1335
+ ?>
1336
+ <td style="vertical-align:top;width:65%;">
1337
+ <form name="f" method="post" id="mail_notification" action="">
1338
+ <input type="hidden" name="option" value="mo_openid_mail_configuration" />
1339
+ <div class="mo_openid_table_layout">
1340
+
1341
+ <?php if(!mo_openid_is_customer_registered()) { ?>
1342
+ <div style="display:block;margin-top:10px;color:red;background-color:rgba(251, 232, 0, 0.15);padding:5px;border:solid 1px rgba(255, 0, 9, 0.36);">
1343
+ Please <a href="<?php echo add_query_arg( array('tab' => 'register'), $_SERVER['REQUEST_URI'] ); ?>">Login with miniOrange</a> to enable Social Login and Social Sharing.
1344
+ </div>
1345
+ <?php } ?>
1346
+
1347
+ <div style="display:block;">
1348
+ <b><span style="display:block;margin-top:10px;background-color:aliceblue;padding:5px;border:solid 1px deepskyblue;">*NOTE: These features are available in the <a target="_blank" href="<?php echo add_query_arg( array('tab' => 'pricing'), $_SERVER['REQUEST_URI'] ); ?>">standard and premium </a> version of the plugin.</span>
1349
+ </b>
1350
+ </div>
1351
+
1352
+ <table style="width:99%;">
1353
+
1354
+ <tr>
1355
+ <td>
1356
+ <h3> Send Mail To Admin</h3>
1357
+ </td>
1358
+
1359
+ </tr>
1360
+ </table>
1361
+ <table style="width:99%;" >
1362
+
1363
+ <tr>
1364
+ <td>
1365
+ <span style="color:red;">*</span><b>If you want to send Email Notification to multiple admins, enter emails of all admins here:</b><br>(If left empty only administrator gets email)<br><br>
1366
+ <textarea disabled rows="2" id="mo_openid_multiple_email_id" placeholder="Emails should be separated by comma" style="width:100%;background: #DCDAD1;" name="mo_openid_multiple_admin_emails" <?php if(!mo_openid_is_customer_registered()) echo 'disabled'?>><?php echo get_option('mo_openid_multiple_admin_emails')?></textarea>
1367
+
1368
+ </td>
1369
+ </tr>
1370
+
1371
+ <tr>
1372
+ <td>
1373
+ <br>
1374
+ <input style ="background: #DCDAD1;" disabled type="checkbox" id="mo_admin_email_template" name="mo_admin_email_template" value="1"
1375
+ <?php if(!mo_openid_is_customer_registered()) echo 'disabled'?> <?php checked( get_option('mo_admin_email_template') == 1 );?> /><b><span style="color:red;">*</span>Edit Email Notification Template to Admin</b>
1376
+ <br/>
1377
+ </td>
1378
+ </tr>
1379
+
1380
+ <tr class="mo_openid_email_subject">
1381
+ <td><br />
1382
+ <span style="color:red;">*</span>
1383
+ <b>Email Subject:</b>
1384
+ <textarea disabled rows="2" id="mo_openid_email_subject" placeholder="Enter your subject line here" style="width:100%;background: #DCDAD1;" name="mo_openid_email_subject" <?php if(!mo_openid_is_customer_registered()) echo 'disabled'?>><?php echo get_option('mo_openid_email_subject')?></textarea>
1385
+ <br/>
1386
+ </td>
1387
+ </tr>
1388
+
1389
+ <tr class="mo_admin_email_template">
1390
+ <td>
1391
+ <br />
1392
+ <span style="color:red;">*</span>
1393
+ <b>Edit Content of Email:</b>
1394
+ <?php
1395
+ $editor_id = 'emailtemplate';
1396
+ $content = get_option('mo_openid_registration_email_content');
1397
+
1398
+ ?>
1399
+ <textarea disabled rows="6" id="mo_openid_email_message_id" style="width:100%;background: #DCDAD1;" name="mo_openid_registration_email_content" <?php if(!mo_openid_is_customer_registered()) echo 'disabled'?>><?php echo get_option('mo_openid_registration_email_content')?></textarea>
1400
+
1401
+ </td>
1402
+ </tr>
1403
+
1404
+ <tr>
1405
+ <td>
1406
+ <br>
1407
+ <hr>
1408
+
1409
+ <h3>Send Mail to User</h3>
1410
+ </td>
1411
+ </tr>
1412
+
1413
+ <tr>
1414
+ <td>
1415
+
1416
+ <input style="background: #DCDAD1;" disabled type="checkbox" id="auto_welcome_email_enable" name="mo_openid_welcome_email_enable" value="1"
1417
+ <?php if(!mo_openid_is_customer_registered()) echo 'disabled'?> <?php checked( get_option('mo_openid_welcome_email_enable') == 1 );?> /><b><span style="color:red;">*</span>Enable Email Notification to User on User Registration*</b>
1418
+ <br/>
1419
+ </td>
1420
+ </tr>
1421
+
1422
+
1423
+ <tr class="mo_openid_welcome_email_subject">
1424
+ <td><br />
1425
+ <span style="color:red;">*</span>
1426
+ <b>Email Subject:</b>
1427
+ <textarea disabled rows="2" id="mo_openid_welcome_email_subject" placeholder="Enter your subject line here" style="width:100%;background: #DCDAD1;" name="mo_openid_welcome_email_subject" <?php if(!mo_openid_is_customer_registered()) echo 'disabled'?>><?php echo get_option('mo_openid_welcome_email_subject')?></textarea>
1428
+ <br/>
1429
+ </td>
1430
+ </tr>
1431
+
1432
+
1433
+ <tr>
1434
+ <td>
1435
+ <br/ >
1436
+ <span style="color:red;">*</span>
1437
+ <b>Edit Content of Email:</b>
1438
+ <?php
1439
+ $editor_id = 'emailtemplate';
1440
+ $content = get_option('mo_openid_user_register_message');
1441
+ ?>
1442
+ <textarea disabled rows="6" id="mo_openid_email_message_id" style="width:100%;background: #DCDAD1;" name="mo_openid_user_register_message" <?php if(!mo_openid_is_customer_registered()) echo 'disabled'?>><?php echo get_option('mo_openid_user_register_message')?></textarea>
1443
+
1444
+ </td>
1445
+ </tr>
1446
+ </table>
1447
+ <table class="mo_openid_display_table">
1448
+ <tr>
1449
+ <td><br /><input disabled type="submit" name="submit" value="Save" style="width:100px;" <?php if(!mo_openid_is_customer_registered()) echo 'disabled'?> class="button button-primary button-large" />
1450
+ </td>
1451
+ </tr>
1452
+
1453
+
1454
+
1455
+ </table>
1456
+
1457
+ <b>*NOTE: These features require SMTP to be setup.</b>
1458
+
1459
+ </div>
1460
+ </form>
1461
+
1462
+
1463
+
1464
+ </td>
1465
+
1466
+ <td style="vertical-align:top;padding-left:1%;">
1467
+ <?php echo miniorange_openid_support(); ?>
1468
+ </td>
1469
+
1470
+
1471
+ <?php exit;
1472
+ }
1473
+
1474
  function mo_openid_app_comment() {
1475
  ?>
1476
  <td style="vertical-align:top;width:65%;">
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.miniorange.com
4
  Tags: social login, social, facebook, twitter, login
5
  Requires at least: 2.0.2
6
  Tested up to: 4.9.4
7
- Stable tag: 6.3.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -165,6 +165,10 @@ Please email us at info@miniorange.com. You can also submit your query from the
165
 
166
 
167
  == Changelog ==
 
 
 
 
168
  = 6.3.2 =
169
  * Added upgrade link to Premium Plugin
170
 
@@ -486,6 +490,10 @@ Please email us at info@miniorange.com. You can also submit your query from the
486
  * First version of Social Login, Social Sharing plugin.
487
 
488
  == Upgrade Notice ==
 
 
 
 
489
  = 6.3.2 =
490
  * Added upgrade link to Premium Plugin
491
 
4
  Tags: social login, social, facebook, twitter, login
5
  Requires at least: 2.0.2
6
  Tested up to: 4.9.4
7
+ Stable tag: 6.3.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
165
 
166
 
167
  == Changelog ==
168
+ = 6.3.3 =
169
+ * Updated subject of verification mail
170
+ * Preview of features in standard and premium is available
171
+
172
  = 6.3.2 =
173
  * Added upgrade link to Premium Plugin
174
 
490
  * First version of Social Login, Social Sharing plugin.
491
 
492
  == Upgrade Notice ==
493
+ = 6.3.3 =
494
+ * Updated subject of verification mail
495
+ * Preview of features in standard and premium is available
496
+
497
  = 6.3.2 =
498
  * Added upgrade link to Premium Plugin
499