Version Description
- Updated Yahoo API.
- Updated feedback on deactivation.
- Minor UI changes.
- Added a new social login plugin for woocommerce integration.
- Added auto as a paramater for width in shortcode of social login icons.
- Added Reddit, Foursquare, Snapchat, Teamsnap, Live Journal, Odnoklassniki, Naver.
Download this release
Release Info
Developer | cyberlord92 |
Plugin | Social Login |
Version | 7.3.2 |
Comparing to | |
See all releases |
Code changes from version 7.3.1 to 7.3.2
- CustomerOpenID.php +1 -7
- class-mo-openid-login-widget.php +48 -90
- includes/css/mo_openid_style.css +45 -1
- includes/images/icons/foursquare.png +0 -0
- includes/images/icons/livejournal.png +0 -0
- includes/images/icons/naver.png +0 -0
- includes/images/icons/reddit.png +0 -0
- includes/images/icons/reddit2.png +0 -0
- includes/images/icons/snapchat.png +0 -0
- includes/images/icons/teamsnap.png +0 -0
- includes/images/icons/wordpress2.png +0 -0
- includes/images/move.png +0 -0
- includes/images/settings_icon.JPG +0 -0
- miniorange_openid_sso_settings.php +8 -7
- miniorange_openid_sso_settings_page.php +23 -2
- mo-openid-social-login-functions.php +30 -24
- mo_openid_feedback_form.php +1 -0
- readme.txt +22 -6
- social_apps/amazon.php +0 -8
- social_apps/facebook.php +0 -7
- social_apps/foursquare.php +7 -0
- social_apps/google.php +0 -7
- social_apps/instagram.php +0 -6
- social_apps/linkedin.php +0 -3
- social_apps/livejournal.php +7 -0
- social_apps/mo_openid_configured_apps_funct.php +4 -17
- social_apps/naver.php +7 -0
- social_apps/odnoklassniki.php +7 -0
- social_apps/reddit.php +7 -0
- social_apps/snapchat.php +7 -0
- social_apps/teamsnap.php +7 -0
- social_apps/twitter.php +0 -5
- social_apps/vkontakte.php +1 -7
- social_apps/windowslive.php +0 -5
- social_apps/yahoo.php +17 -35
- uninstall.php +1 -1
- view/config_apps/mo_openid_config_apps.php +1 -3
- view/licensing_plans/mo_openid_lic_plans.php +141 -102
- view/profile_completion/mo_openid_prof_comp_funct.php +7 -8
- view/shrtco/mo_openid_shrtco.php +6 -1
CustomerOpenID.php
CHANGED
@@ -361,13 +361,7 @@ class CustomerOpenID {
|
|
361 |
$currentTimeInMillis = self::get_timestamp();
|
362 |
$stringToHash = $customerKey . $currentTimeInMillis . $apiKey;
|
363 |
$hashValue = hash("sha512", $stringToHash);
|
364 |
-
if($licience_type=="
|
365 |
-
$fields = array(
|
366 |
-
'customerId' => $customerKey,
|
367 |
-
'applicationName' => 'wp_social_login_premium'
|
368 |
-
);
|
369 |
-
}
|
370 |
-
else if($licience_type=="extra_attributes_addon") {
|
371 |
$fields = array(
|
372 |
'customerId' => $customerKey,
|
373 |
'applicationName' => 'wp_social_login_extra_attributes_addon'
|
361 |
$currentTimeInMillis = self::get_timestamp();
|
362 |
$stringToHash = $customerKey . $currentTimeInMillis . $apiKey;
|
363 |
$hashValue = hash("sha512", $stringToHash);
|
364 |
+
if($licience_type=="extra_attributes_addon") {
|
|
|
|
|
|
|
|
|
|
|
|
|
365 |
$fields = array(
|
366 |
'customerId' => $customerKey,
|
367 |
'applicationName' => 'wp_social_login_extra_attributes_addon'
|
class-mo-openid-login-widget.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
include "mo-openid-social-login-functions.php";
|
3 |
-
add_action( 'wp_login', 'mo_openid_link_account', 5,
|
4 |
add_action( 'mo_user_register', 'mo_openid_update_role', 1, 2);
|
5 |
add_action( 'mo_user_register','mo_openid_send_email',1, 2 );
|
6 |
if(get_option('mo_openid_popup_window')=='0') {
|
@@ -9,11 +9,10 @@ if(get_option('mo_openid_popup_window')=='0') {
|
|
9 |
else {
|
10 |
add_action('wp_login', 'mo_openid_login_redirect_pop_up', 11, 2);
|
11 |
}
|
12 |
-
add_action('wp_login', 'mo_openid_update_user_meta', 8, 2);
|
13 |
add_action( 'delete_user', 'mo_openid_delete_account_linking_rows' );
|
14 |
|
15 |
add_action('manage_users_custom_column', 'mo_openid_delete_profile_column', 9, 3);
|
16 |
-
//add_filter('manage_users_columns', 'mo_openid_add_custom_column2');
|
17 |
add_filter('manage_users_columns', 'mo_openid_add_custom_column1');
|
18 |
add_action('admin_head', 'mo_openid_delete_social_profile_script');
|
19 |
add_filter( 'login_message', 'mo_openid_account_linking');
|
@@ -73,7 +72,7 @@ class mo_openid_login_wid extends WP_Widget {
|
|
73 |
}
|
74 |
|
75 |
$selected_theme = esc_attr(get_option('mo_openid_login_theme'));
|
76 |
-
$appsConfigured = get_option('mo_openid_google_enable') | get_option('mo_openid_salesforce_enable') | get_option('mo_openid_facebook_enable') | get_option('mo_openid_linkedin_enable') | get_option('mo_openid_instagram_enable') | get_option('mo_openid_amazon_enable') | get_option('mo_openid_windowslive_enable') | get_option('mo_openid_twitter_enable') | get_option('mo_openid_vkontakte_enable')| get_option('mo_openid_yahoo_enable')
|
77 |
$spacebetweenicons = esc_attr(get_option('mo_login_icon_space'));
|
78 |
$customWidth = esc_attr(get_option('mo_login_icon_custom_width'));
|
79 |
$customHeight = esc_attr(get_option('mo_login_icon_custom_height'));
|
@@ -108,8 +107,10 @@ class mo_openid_login_wid extends WP_Widget {
|
|
108 |
$protocol = ((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://";
|
109 |
$sign_up_url = $protocol . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
|
110 |
$mo_URL=strstr($sign_up_url, "?", true);
|
111 |
-
if($mo_URL) {
|
112 |
-
|
|
|
|
|
113 |
|
114 |
if( ! is_user_logged_in() ) {
|
115 |
if( $appsConfigured ) {
|
@@ -256,9 +257,7 @@ class mo_openid_login_wid extends WP_Widget {
|
|
256 |
echo get_option('mo_openid_login_button_customize_text'); ?> Microsoft</a>
|
257 |
<?php }
|
258 |
else{ ?>
|
259 |
-
|
260 |
-
|
261 |
-
<a class="<?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" rel='nofollow' <?php echo $gdpr_setting; ?>title="<?php echo $customTextofTitle ?> Microsoft" onClick="moOpenIdLogin('windowslive','<?php echo $custom_app?>');"><img alt='Windowslive' style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important" src="<?php echo plugins_url( 'includes/images/icons/windowslive.png', __FILE__ )?>" class="<?php echo $selected_theme; ?><?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button"></a>
|
262 |
<?php }
|
263 |
break;
|
264 |
case 'yahoo':
|
@@ -877,15 +876,18 @@ class mo_openid_login_wid extends WP_Widget {
|
|
877 |
if($customer_register=='no' && $custom_app =='false')
|
878 |
return 'disable';
|
879 |
}
|
|
|
880 |
//for shortcode
|
881 |
public function add_apps($app_name,$theme,$gdpr_setting,$spacebetweenicons,$customWidth,$customHeight,$customBoundary,$buttonText,$dis,$customTextofTitle,$customSize,$selected_theme,$custom_app,$html,$view,$customBackground,$app_dis)
|
882 |
{
|
|
|
|
|
883 |
if($theme=="default")
|
884 |
{
|
885 |
if($app_name=="fb")
|
886 |
{
|
887 |
if ($selected_theme == 'longbutton') {
|
888 |
-
$html .= "<a rel='nofollow' " . $gdpr_setting . " style='margin-left: " . $spacebetweenicons . "px !important;width: " . $customWidth . "
|
889 |
if ($view == "horizontal") {
|
890 |
$html .= "class='btn btn-mo btn-block-inline btn-social btn-facebook btn-custom-dec login-button'";
|
891 |
} else {
|
@@ -902,14 +904,14 @@ class mo_openid_login_wid extends WP_Widget {
|
|
902 |
else if($app_name=="google")
|
903 |
{
|
904 |
if ($selected_theme == 'longbutton') {
|
905 |
-
$html .= "<a rel='nofollow' " . $gdpr_setting . " style='margin-left: " . $spacebetweenicons . "px !important;background: rgb(255,255,255)!important; background:linear-gradient(90deg, rgba(255,255,255,1) 38px, rgb(79, 113, 232) 5%) !important;width: " . $customWidth . "
|
906 |
if ($view == "horizontal") {
|
907 |
$html .= "class='btn btn-mo btn-block-inline btn-social btn-google btn-custom-dec login-button'";
|
908 |
} else {
|
909 |
$html .= "class='btn btn-mo btn-block btn-social btn-google btn-custom-dec login-button'";
|
910 |
}
|
911 |
if($app_dis!="disable")
|
912 |
-
|
913 |
$html.="> <i style='padding-top:" . ($customHeight - 29) . "px !important;border-right:none;' class='mofa'><svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 70 70\" style=\"padding-left: 8%;\" ><defs><path id=\"a\" d=\"M44.5 20H24v8.5h11.8C34.7 33.9 30.1 37 24 37c-7.2 0-13-5.8-13-13s5.8-13 13-13c3.1 0 5.9 1.1 8.1 2.9l6.4-6.4C34.6 4.1 29.6 2 24 2 11.8 2 2 11.8 2 24s9.8 22 22 22c11 0 21-8 21-22 0-1.3-.2-2.7-.5-4z\"/></defs><clipPath id=\"b\"><use xlink:href=\"#a\" overflow=\"visible\"/></clipPath><path clip-path=\"url(#b)\" fill=\"#FBBC05\" d=\"M0 37V11l17 13z\"/><path clip-path=\"url(#b)\" fill=\"#EA4335\" d=\"M0 11l17 13 7-6.1L48 14V0H0z\"/><path clip-path=\"url(#b)\" fill=\"#34A853\" d=\"M0 37l30-23 7.9 1L48 0v48H0z\"/><path clip-path=\"url(#b)\" fill=\"#4285F4\" d=\"M48 48L17 24l-4-3 35-10z\"/></svg></i><span style=\"color:#ffffff;\">" . $buttonText . " Google</span></a>";
|
914 |
} else {
|
915 |
$html .= "<a class='" . $dis . " login-button' rel='nofollow'";if($app_dis!="disable")$html.=" onClick=\"moOpenIdLogin('google','" . $custom_app . "');\""; $html.=" title= ' " . $customTextofTitle . " Google'><img alt='Google' style='width:" . $customSize . "px !important;height: " . $customSize . "px !important;margin-left: " . ($spacebetweenicons) . "px !important' src='" . plugins_url('includes/images/icons/google.png', __FILE__) . "' class='" . $dis . " login-button " . $selected_theme . "' ></a>";
|
@@ -919,14 +921,14 @@ class mo_openid_login_wid extends WP_Widget {
|
|
919 |
else if($app_name=="vk")
|
920 |
{
|
921 |
if ($selected_theme == 'longbutton') {
|
922 |
-
$html .= "<a rel='nofollow' " . $gdpr_setting . " style='margin-left: " . $spacebetweenicons . "px !important;width: " . $customWidth . "
|
923 |
if ($view == "horizontal") {
|
924 |
$html .= "class='btn btn-mo btn-block-inline btn-social btn-vk btn-custom-dec login-button'";
|
925 |
} else {
|
926 |
$html .= "class='btn btn-mo btn-block btn-social btn-vk btn-custom-dec login-button'";
|
927 |
}
|
928 |
if($app_dis!="disable")
|
929 |
-
|
930 |
$html.="> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='mofa mofa-vk'></i>" . $buttonText . " Vkontakte</a>";
|
931 |
} else {
|
932 |
$html .= "<a class='" . $dis . " login-button' rel='nofollow'"; if($app_dis!="disable") $html.="onClick=\"moOpenIdLogin('vkontakte','" . $custom_app . "');\""; $html.="title= ' " . $customTextofTitle . " Vkontakte'><img alt='Vkontakte' style='width:" . $customSize . "px !important;height: " . $customSize . "px !important;margin-left: " . ($spacebetweenicons) . "px !important' src='" . plugins_url('includes/images/icons/vk.png', __FILE__) . "' class='" . $dis . " login-button " . $selected_theme . "' ></a>";
|
@@ -936,14 +938,14 @@ class mo_openid_login_wid extends WP_Widget {
|
|
936 |
else if($app_name=="twitter")
|
937 |
{
|
938 |
if ($selected_theme == 'longbutton') {
|
939 |
-
$html .= "<a rel='nofollow' " . $gdpr_setting . " style='margin-left: " . $spacebetweenicons . "px !important;width: " . $customWidth . "
|
940 |
if ($view == "horizontal") {
|
941 |
$html .= "class='btn btn-mo btn-block-inline btn-social btn-twitter btn-custom-dec login-button'";
|
942 |
} else {
|
943 |
$html .= "class='btn btn-mo btn-block btn-social btn-twitter btn-custom-dec login-button'";
|
944 |
}
|
945 |
if($app_dis!="disable")
|
946 |
-
|
947 |
$html.="> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='mofa mofa-twitter'></i>" . $buttonText . " Twitter</a>";
|
948 |
} else {
|
949 |
$html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " Twitter'"; if($app_dis!="disable") $html.=" onClick=\"moOpenIdLogin('twitter','" . $custom_app . "');\""; $html.=" ><img alt='Twitter' style=' width:" . $customSize . "px !important;height: " . $customSize . "px !important;margin-left: " . ($spacebetweenicons) . "px !important' src='" . plugins_url('includes/images/icons/twitter.png', __FILE__) . "' class='" . $dis . " login-button " . $selected_theme . "' ></a>";
|
@@ -953,14 +955,14 @@ class mo_openid_login_wid extends WP_Widget {
|
|
953 |
else if($app_name=="linkin")
|
954 |
{
|
955 |
if ($selected_theme == 'longbutton') {
|
956 |
-
$html .= "<a rel='nofollow' " . $gdpr_setting . "style='margin-left: " . $spacebetweenicons . "px !important;width: " . $customWidth . "
|
957 |
if ($view == "horizontal") {
|
958 |
$html .= "class='btn btn-mo btn-block-inline btn-social btn-linkedin btn-custom-dec login-button'";
|
959 |
} else {
|
960 |
$html .= "class='btn btn-mo btn-block btn-social btn-linkedin btn-custom-dec login-button'";
|
961 |
}
|
962 |
if($app_dis!="disable")
|
963 |
-
|
964 |
$html.="> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='mofa mofa-linkedin'></i>" . $buttonText . " LinkedIn</a>";
|
965 |
} else {
|
966 |
$html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " LinkedIn'"; if($app_dis!="disable") $html.=" onClick=\"moOpenIdLogin('linkedin','" . $custom_app . "');\""; $html.=" ><img alt='LinkedIn' style='width:" . $customSize . "px !important;height: " . $customSize . "px !important;margin-left: " . ($spacebetweenicons) . "px !important' src='" . plugins_url('includes/images/icons/linkedin.png', __FILE__) . "' class='" . $dis . " login-button " . $selected_theme . "' ></a>";
|
@@ -970,14 +972,14 @@ class mo_openid_login_wid extends WP_Widget {
|
|
970 |
else if($app_name=="insta")
|
971 |
{
|
972 |
if ($selected_theme == 'longbutton') {
|
973 |
-
$html .= "<a rel='nofollow' " . $gdpr_setting . " style='margin-left: " . $spacebetweenicons . "px !important;width: " . $customWidth . "
|
974 |
if ($view == "horizontal") {
|
975 |
$html .= "class='btn btn-mo btn-block-inline btn-social btn-instagram btn-custom-dec login-button'";
|
976 |
} else {
|
977 |
$html .= "class='btn btn-mo btn-block btn-social btn-instagram btn-custom-dec login-button'";
|
978 |
}
|
979 |
if($app_dis!="disable")
|
980 |
-
|
981 |
$html.="> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='mofa mofa-instagram'></i>" . $buttonText . " Instagram</a>";
|
982 |
} else {
|
983 |
$html .= "<a class='" . $dis . " login-button' rel='nofollow' " . $customTextofTitle . " Instagram'";if($app_dis!="disable") $html.=" onClick=\"moOpenIdLogin('instagram','" . $custom_app . "');\""; $html.=" ><img alt='Instagram' style='width:" . $customSize . "px !important;height: " . $customSize . "px !important;margin-left: " . ($spacebetweenicons) . "px !important' src='" . plugins_url('includes/images/icons/instagram.png', __FILE__) . "' class='" . $dis . " login-button " . $selected_theme . "' ></a>";
|
@@ -987,14 +989,14 @@ class mo_openid_login_wid extends WP_Widget {
|
|
987 |
else if($app_name=="amazon")
|
988 |
{
|
989 |
if ($selected_theme == 'longbutton') {
|
990 |
-
$html .= "<a rel='nofollow' " . $gdpr_setting . "style='margin-left: " . $spacebetweenicons . "px !important;width: " . $customWidth . "
|
991 |
if ($view == "horizontal") {
|
992 |
$html .= "class='btn btn-mo btn-block-inline btn-social btn-soundcloud btn-custom-dec login-button'";
|
993 |
} else {
|
994 |
$html .= "class='btn btn-mo btn-block btn-social btn-soundcloud btn-custom-dec login-button'";
|
995 |
}
|
996 |
if($app_dis!="disable")
|
997 |
-
|
998 |
$html.="> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='mofa mofa-amazon'></i>" . $buttonText . " Amazon</a>";
|
999 |
} else {
|
1000 |
$html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " Amazon' ";if($app_dis!="disable") $html.="onClick=\"moOpenIdLogin('amazon','" . $custom_app . "');\""; $html.=" ><img alt='Amazon' style='width:" . $customSize . "px !important;height: " . $customSize . "px !important;margin-left: " . ($spacebetweenicons) . "px !important' src='" . plugins_url('includes/images/icons/amazon.png', __FILE__) . "' class='" . $dis . " login-button " . $selected_theme . "' ></a>";
|
@@ -1008,14 +1010,14 @@ class mo_openid_login_wid extends WP_Widget {
|
|
1008 |
else
|
1009 |
$app_dis='';
|
1010 |
if ($selected_theme == 'longbutton') {
|
1011 |
-
$html .= "<a rel='nofollow' " . $gdpr_setting . "style='margin-left: " . $spacebetweenicons . "px !important;width: " . $customWidth . "
|
1012 |
if ($view == "horizontal") {
|
1013 |
$html .= "class='btn btn-mo btn-block-inline btn-social btn-vimeo btn-custom-dec login-button' ";
|
1014 |
} else {
|
1015 |
$html .= "class='btn btn-mo btn-block btn-social btn-vimeo btn-custom-dec login-button' ";
|
1016 |
}
|
1017 |
if($app_dis!="disable")
|
1018 |
-
|
1019 |
$html.="> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='mofa mofa-cloud'></i>" . $buttonText . " Salesforce</a>";
|
1020 |
} else {
|
1021 |
$html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " Salesforce'"; if($app_dis!="disable") $html.=" onClick=\"moOpenIdLogin('salesforce','" . $custom_app . "');\""; $html.=" ><img alt='Salesforce' style='width:" . $customSize . "px !important;height: " . $customSize . "px !important;margin-left: " . ($spacebetweenicons) . "px !important' src='" . plugins_url('includes/images/icons/salesforce.png', __FILE__) . "' class='" . $dis . " login-button " . $selected_theme . "' ></a>";
|
@@ -1025,14 +1027,14 @@ class mo_openid_login_wid extends WP_Widget {
|
|
1025 |
else if($app_name=="wlive")
|
1026 |
{
|
1027 |
if ($selected_theme == 'longbutton') {
|
1028 |
-
$html .= "<a rel='nofollow' " . $gdpr_setting . "style='margin-left: " . $spacebetweenicons . "px !important;width: " . $customWidth . "
|
1029 |
if ($view == "horizontal") {
|
1030 |
$html .= "class='btn btn-mo btn-block-inline btn-social btn-microsoft btn-custom-dec login-button'";
|
1031 |
} else {
|
1032 |
$html .= "class='btn btn-mo btn-block btn-social btn-microsoft btn-custom-dec login-button'";
|
1033 |
}
|
1034 |
if($app_dis!="disable")
|
1035 |
-
|
1036 |
$html.="> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='mofa mofa-windows'></i>" . $buttonText . " Microsoft</a>";
|
1037 |
} else {
|
1038 |
$html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " Microsoft'"; if($app_dis!="disable") $html.=" onClick=\"moOpenIdLogin('windowslive','" . $custom_app . "');\""; $html.=" ><img alt='Windowslive' style='width:" . $customSize . "px !important;height: " . $customSize . "px !important;margin-left: " . ($spacebetweenicons) . "px !important' src='" . plugins_url('includes/images/icons/windowslive.png', __FILE__) . "' class='" . $dis . " login-button " . $selected_theme . "' ></a>";
|
@@ -1042,14 +1044,14 @@ class mo_openid_login_wid extends WP_Widget {
|
|
1042 |
else if($app_name=="yahoo")
|
1043 |
{
|
1044 |
if ($selected_theme == 'longbutton') {
|
1045 |
-
$html .= "<a rel='nofollow' " . $gdpr_setting . " style='margin-left: " . $spacebetweenicons . "px !important;width: " . $customWidth . "
|
1046 |
if ($view == "horizontal") {
|
1047 |
$html .= "class='btn btn-mo btn-block-inline btn-social btn-yahoo btn-custom-dec login-button'";
|
1048 |
} else {
|
1049 |
$html .= "class='btn btn-mo btn-block btn-social btn-yahoo btn-custom-dec login-button'";
|
1050 |
}
|
1051 |
if($app_dis!="disable")
|
1052 |
-
|
1053 |
$html.="> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='mofa mofa-yahoo'></i>" . $buttonText . " Yahoo</a>";
|
1054 |
} else {
|
1055 |
$html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " .
|
@@ -1057,32 +1059,13 @@ class mo_openid_login_wid extends WP_Widget {
|
|
1057 |
}
|
1058 |
return $html;
|
1059 |
}
|
1060 |
-
else if($app_name=="wpress")
|
1061 |
-
{
|
1062 |
-
if ($selected_theme == 'longbutton') {
|
1063 |
-
$html .= "<a rel='nofollow' " . $gdpr_setting . " style='margin-left: " . $spacebetweenicons . "px !important;width: " . $customWidth . "px !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom: " . ($spacebetweenicons - 5) . "px !important;border-radius: " . $customBoundary . "px !important;'";
|
1064 |
-
if ($view == "horizontal") {
|
1065 |
-
$html .= "class='btn btn-mo btn-block-inline btn-social btn-wordpress btn-custom-dec login-button'";
|
1066 |
-
} else {
|
1067 |
-
$html .= "class='btn btn-mo btn-block btn-social btn-wordpress btn-custom-dec login-button'";
|
1068 |
-
}
|
1069 |
-
if($app_dis!="disable")
|
1070 |
-
$html .= "onClick=\"moOpenIdLogin('wordpress','" . $custom_app . "');\"";
|
1071 |
-
$html.="> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='mofa mofa-wordpress'></i>" . $buttonText . " WordPress</a>";
|
1072 |
-
} else {
|
1073 |
-
$html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " .
|
1074 |
-
$customTextofTitle . " WordPress'"; if($app_dis!="disable") $html.=" onClick=\"moOpenIdLogin('wordpress','" . $custom_app . "');\"";
|
1075 |
-
$html.="><img alt='WordPress' style='width:" . $customSize . "px !important;height: " . $customSize . "px !important;margin-left: " . ($spacebetweenicons) . "px !important' src='" . plugins_url('includes/images/icons/wordpress.png', __FILE__) . "' class='login-button " . $selected_theme . "' ></a>";
|
1076 |
-
}
|
1077 |
-
return $html;
|
1078 |
-
}
|
1079 |
}
|
1080 |
|
1081 |
else if($theme=="custom"){
|
1082 |
if($app_name=="fb")
|
1083 |
{
|
1084 |
if ($selected_theme == 'longbutton') {
|
1085 |
-
$html .= "<a rel='nofollow' " . $gdpr_setting . ""; if($app_dis!="disable") $html.=" onClick=\"moOpenIdLogin('facebook','" . $custom_app . "');\"";$html.=" style='margin-left: " . $spacebetweenicons . "px !important;width:" . ($customWidth) . "
|
1086 |
if ($view == "horizontal") {
|
1087 |
$html .= "class='btn btn-mo btn-block-inline btn-social btn-customtheme btn-custom-dec login-button'";
|
1088 |
} else {
|
@@ -1096,7 +1079,7 @@ class mo_openid_login_wid extends WP_Widget {
|
|
1096 |
}
|
1097 |
else if($app_name=="google") {
|
1098 |
if ($selected_theme == 'longbutton') {
|
1099 |
-
$html .= "<a rel='nofollow' " . $gdpr_setting . "";if($app_dis!="disable") $html.=" onClick=\"moOpenIdLogin('google','" . $custom_app . "');\""; $html.=" style='margin-left: " . $spacebetweenicons . "px !important;width:" . ($customWidth) . "
|
1100 |
if ($view == "horizontal") {
|
1101 |
$html .= "class='btn btn-mo btn-block-inline btn-social btn-customtheme btn-custom-dec login-button'";
|
1102 |
} else {
|
@@ -1110,7 +1093,7 @@ class mo_openid_login_wid extends WP_Widget {
|
|
1110 |
}
|
1111 |
else if($app_name=="vk") {
|
1112 |
if ($selected_theme == 'longbutton') {
|
1113 |
-
$html .= "<a rel='nofollow' " . $gdpr_setting . ""; if($app_dis!="disable") $html.=" onClick=\"moOpenIdLogin('vkontakte','" . $custom_app . "');\""; $html.=" style='margin-left: " . $spacebetweenicons . "px !important;width:" . ($customWidth) . "
|
1114 |
if ($view == "horizontal") {
|
1115 |
$html .= "class='btn btn-mo btn-block-inline btn-social btn-customtheme btn-custom-dec login-button'";
|
1116 |
} else {
|
@@ -1124,7 +1107,7 @@ class mo_openid_login_wid extends WP_Widget {
|
|
1124 |
}
|
1125 |
else if($app_name=="twitter") {
|
1126 |
if ($selected_theme == 'longbutton') {
|
1127 |
-
$html .= "<a rel='nofollow' " . $gdpr_setting . ""; if($app_dis!="disable") $html.="onClick=\"moOpenIdLogin('twitter','" . $custom_app . "');\""; $html.=" style='margin-left: " . $spacebetweenicons . "px !important;width:" . ($customWidth) . "
|
1128 |
if ($view == "horizontal") {
|
1129 |
$html .= "class='btn btn-mo btn-block-inline btn-social btn-customtheme btn-custom-dec login-button'";
|
1130 |
} else {
|
@@ -1138,7 +1121,7 @@ class mo_openid_login_wid extends WP_Widget {
|
|
1138 |
}
|
1139 |
else if($app_name=="linkin") {
|
1140 |
if ($selected_theme == 'longbutton') {
|
1141 |
-
$html .= "<a rel='nofollow' " . $gdpr_setting . ""; if($app_dis!="disable") $html.="onClick=\"moOpenIdLogin('linkedin','" . $custom_app . "');\""; $html.=" style='margin-left: " . $spacebetweenicons . "px !important;width:" . ($customWidth) . "
|
1142 |
if ($view == "horizontal") {
|
1143 |
$html .= "class='btn btn-mo btn-block-inline btn-social btn-customtheme btn-custom-dec login-button'";
|
1144 |
} else {
|
@@ -1153,7 +1136,7 @@ class mo_openid_login_wid extends WP_Widget {
|
|
1153 |
}
|
1154 |
else if($app_name=="insta") {
|
1155 |
if ($selected_theme == 'longbutton') {
|
1156 |
-
$html .= "<a rel='nofollow' " . $gdpr_setting . ""; if($app_dis!="disable") $html.="onClick=\"moOpenIdLogin('instagram','" . $custom_app . "');\""; $html.=" style='margin-left: " . $spacebetweenicons . "px !important;width:" . ($customWidth) . "
|
1157 |
if ($view == "horizontal") {
|
1158 |
$html .= "class='btn btn-mo btn-block-inline btn-social btn-customtheme btn-custom-dec login-button'";
|
1159 |
} else {
|
@@ -1167,7 +1150,7 @@ class mo_openid_login_wid extends WP_Widget {
|
|
1167 |
}
|
1168 |
else if($app_name=="amazon") {
|
1169 |
if ($selected_theme == 'longbutton') {
|
1170 |
-
$html .= "<a rel='nofollow' " . $gdpr_setting . ""; if($app_dis!="disable") $html.=" onClick=\"moOpenIdLogin('amazon','" . $custom_app . "');\""; $html.=" style='margin-left: " . $spacebetweenicons . "px !important;width:" . ($customWidth) . "
|
1171 |
if ($view == "horizontal") {
|
1172 |
$html .= "class='btn btn-mo btn-block-inline btn-social btn-customtheme btn-custom-dec login-button'";
|
1173 |
} else {
|
@@ -1187,7 +1170,7 @@ class mo_openid_login_wid extends WP_Widget {
|
|
1187 |
else
|
1188 |
$app_dis='';
|
1189 |
if ($selected_theme == 'longbutton') {
|
1190 |
-
$html .= "<a rel='nofollow' " . $gdpr_setting . ""; if($app_dis!="disable") $html.=" onClick=\"moOpenIdLogin('salesforce','" . $custom_app . "');\""; $html.=" style='margin-left: " . $spacebetweenicons . "px !important;width:" . ($customWidth) . "
|
1191 |
if ($view == "horizontal") {
|
1192 |
$html .= "class='btn btn-mo btn-block-inline btn-social btn-customtheme btn-custom-dec login-button'";
|
1193 |
} else {
|
@@ -1202,7 +1185,7 @@ class mo_openid_login_wid extends WP_Widget {
|
|
1202 |
else if($app_name=="wlive")
|
1203 |
{
|
1204 |
if ($selected_theme == 'longbutton') {
|
1205 |
-
$html .= "<a rel='nofollow' " . $gdpr_setting . ""; if($app_dis!="disable") $html.=" onClick=\"moOpenIdLogin('windowslive','" . $custom_app . "');\""; $html.=" style='margin-left: " . $spacebetweenicons . "px !important;width:" . ($customWidth) . "
|
1206 |
if ($view == "horizontal") {
|
1207 |
$html .= "class='btn btn-mo btn-block-inline btn-social btn-customtheme btn-custom-dec login-button'";
|
1208 |
} else {
|
@@ -1217,7 +1200,7 @@ class mo_openid_login_wid extends WP_Widget {
|
|
1217 |
else if($app_name=="yahoo")
|
1218 |
{
|
1219 |
if ($selected_theme == 'longbutton') {
|
1220 |
-
$html .= "<a rel='nofollow' " . $gdpr_setting . ""; if($app_dis!="disable") $html.=" onClick=\"moOpenIdLogin('yaahoo','" . $custom_app . "');\""; $html.=" style='margin-left: " . $spacebetweenicons . "px !important;width:" . ($customWidth) . "
|
1221 |
if ($view == "horizontal") {
|
1222 |
$html .= "class='btn btn-mo btn-block-inline btn-social btn-customtheme btn-custom-dec login-button'";
|
1223 |
} else {
|
@@ -1229,25 +1212,11 @@ class mo_openid_login_wid extends WP_Widget {
|
|
1229 |
}
|
1230 |
return $html;
|
1231 |
}
|
1232 |
-
else if($app_name=="wpress")
|
1233 |
-
{
|
1234 |
-
if ($selected_theme == 'longbutton') {
|
1235 |
-
$html .= "<a rel='nofollow' " . $gdpr_setting . ""; if($app_dis!="disable") $html.=" onClick=\"moOpenIdLogin('wordpress','" . $custom_app . "');\""; $html.=" style='margin-left: " . $spacebetweenicons . "px !important;width:" . ($customWidth) . "px !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom:" . ($spacebetweenicons - 5) . "px !important; background:#" . $customBackground . "!important;border-radius: " . $customBoundary . "px !important;'";
|
1236 |
-
if ($view == "horizontal") {
|
1237 |
-
$html .= "class='btn btn-mo btn-block-inline btn-social btn-customtheme btn-custom-dec login-button'";
|
1238 |
-
} else {
|
1239 |
-
$html .= "class='btn btn-mo btn-block btn-social btn-customtheme btn-custom-dec login-button'";
|
1240 |
-
}
|
1241 |
-
$html .= "> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='mofa mofa-wordpress'></i> " . $buttonText . " WordPress</a>";
|
1242 |
-
} else {
|
1243 |
-
$html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " WordPress'"; if($app_dis!="disable") $html.=" onClick=\"moOpenIdLogin('wordpress','" . $custom_app . "');\""; $html.=" ><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize - 16) . "px !important;' class='mofa btn-mo mofa-wordpress custom-login-button " . $selected_theme . "' ></i></a>";
|
1244 |
-
}
|
1245 |
-
return $html;
|
1246 |
-
}
|
1247 |
}
|
1248 |
|
1249 |
}
|
1250 |
|
|
|
1251 |
private function mo_openid_load_login_script() {
|
1252 |
if(!get_option('mo_openid_gdpr_consent_enable')){?>
|
1253 |
<script>
|
@@ -1263,12 +1232,12 @@ class mo_openid_login_wid extends WP_Widget {
|
|
1263 |
|
1264 |
jQuery('#mo_openid_consent_checkbox').val(1);
|
1265 |
jQuery(".btn-mo").attr("disabled", true);
|
1266 |
-
jQuery(".login-button").addClass("
|
1267 |
} else {
|
1268 |
|
1269 |
jQuery('#mo_openid_consent_checkbox').val(0);
|
1270 |
jQuery(".btn-mo").attr("disabled", false);
|
1271 |
-
jQuery(".login-button").removeClass("
|
1272 |
}
|
1273 |
}
|
1274 |
|
@@ -1594,7 +1563,6 @@ function mo_openid_redirect_after_logout($logout_url)
|
|
1594 |
|
1595 |
function mo_openid_login_validate(){
|
1596 |
|
1597 |
-
|
1598 |
$present_time_rateus_pop = date('Y-m-d');
|
1599 |
if(get_option('check_ten_rate_us') < 5 ){
|
1600 |
if(get_option('mo_openid_user_activation_date') < $present_time_rateus_pop){
|
@@ -1712,7 +1680,6 @@ function mo_openid_login_validate(){
|
|
1712 |
'social_user_id' => $social_user_id,
|
1713 |
);
|
1714 |
|
1715 |
-
mo_openid_start_session_login($session_values);
|
1716 |
$user = get_user_by('id', $user_id );
|
1717 |
update_custom_data($user_id);
|
1718 |
//registration hook
|
@@ -1808,7 +1775,6 @@ function mo_openid_login_validate(){
|
|
1808 |
if ( ! wp_verify_nonce( $nonce, 'mo-openid-account-linking-nonce' ) ) {
|
1809 |
wp_die('<strong>ERROR</strong>: Invalid Request.');
|
1810 |
} else {
|
1811 |
-
mo_openid_start_session();
|
1812 |
//link account
|
1813 |
if (!isset($_POST['mo_openid_create_new_account'])) {
|
1814 |
$nonce = wp_create_nonce('mo-openid-disable-social-login-nonce');
|
@@ -2007,9 +1973,7 @@ function mo_openid_update_role($user_id='', $user_url=''){
|
|
2007 |
|
2008 |
|
2009 |
function mo_openid_login_redirect($username = '', $user = NULL){
|
2010 |
-
|
2011 |
-
if(is_string($username) && $username && is_object($user) && !empty($user->ID) && ($user_id = $user->ID) && isset($_SESSION['mo_login']) && $_SESSION['mo_login']){
|
2012 |
-
$_SESSION['mo_login'] = false;
|
2013 |
wp_set_auth_cookie( $user_id, true );
|
2014 |
$redirect_url = mo_openid_get_redirect_url();
|
2015 |
wp_redirect($redirect_url);
|
@@ -2019,7 +1983,6 @@ function mo_openid_login_redirect($username = '', $user = NULL){
|
|
2019 |
|
2020 |
function mo_openid_login_redirect_pop_up($username = '', $user = NULL){
|
2021 |
|
2022 |
-
mo_openid_start_session();
|
2023 |
if(is_string($username) && $username && is_object($user) && !empty($user->ID) && ($user_id = $user->ID) && isset($_SESSION['mo_login']) && $_SESSION['mo_login']){
|
2024 |
$_SESSION['mo_login'] = false;
|
2025 |
wp_set_auth_cookie( $user_id, true );
|
@@ -2041,8 +2004,6 @@ function mo_openid_login_redirect_pop_up($username = '', $user = NULL){
|
|
2041 |
}
|
2042 |
|
2043 |
function mo_openid_update_user_meta($username, $user ){
|
2044 |
-
mo_openid_start_session();
|
2045 |
-
|
2046 |
if(isset($_SESSION['location_city'])? $_SESSION['location_city']: '') {
|
2047 |
update_user_meta($user->ID, 'location_city', $_SESSION['location_city']);
|
2048 |
}
|
@@ -2097,15 +2058,14 @@ function mo_openid_update_user_meta($username, $user ){
|
|
2097 |
update_user_meta( $user->ID, 'NA', isset($_SESSION['NA'])? $_SESSION['NA']:'' );
|
2098 |
}
|
2099 |
|
2100 |
-
function mo_openid_link_account( $username, $user
|
2101 |
if($user){
|
2102 |
$userid = $user->ID;
|
2103 |
}
|
2104 |
-
|
|
|
|
|
2105 |
|
2106 |
-
$user_email = isset($_SESSION['user_email']) ? sanitize_text_field($_SESSION['user_email']):'';
|
2107 |
-
$social_app_identifier = isset($_SESSION['social_user_id']) ? sanitize_text_field($_SESSION['social_user_id']):'';
|
2108 |
-
$social_app_name = isset($_SESSION['social_app_name']) ? sanitize_text_field($_SESSION['social_app_name']):'';
|
2109 |
if(empty($user_email)){
|
2110 |
$user_email=$user->user_email;
|
2111 |
}
|
@@ -2116,11 +2076,9 @@ function mo_openid_link_account( $username, $user ){
|
|
2116 |
elseif(!isset($userid)){
|
2117 |
return;
|
2118 |
}
|
2119 |
-
|
2120 |
global $wpdb;
|
2121 |
$db_prefix = $wpdb->prefix;
|
2122 |
$linked_email_id = $wpdb->get_var($wpdb->prepare("SELECT user_id FROM ".$db_prefix."mo_openid_linked_user where linked_email = \"%s\" AND linked_social_app = \"%s\"",$user_email,$social_app_name));
|
2123 |
-
|
2124 |
// if a user with given email and social app name doesn't already exist in the mo_openid_linked_user table
|
2125 |
if(!isset($linked_email_id)){
|
2126 |
mo_openid_insert_query($social_app_name,$user_email,$userid,$social_app_identifier);
|
1 |
<?php
|
2 |
include "mo-openid-social-login-functions.php";
|
3 |
+
add_action( 'wp_login', 'mo_openid_link_account', 5, 3);
|
4 |
add_action( 'mo_user_register', 'mo_openid_update_role', 1, 2);
|
5 |
add_action( 'mo_user_register','mo_openid_send_email',1, 2 );
|
6 |
if(get_option('mo_openid_popup_window')=='0') {
|
9 |
else {
|
10 |
add_action('wp_login', 'mo_openid_login_redirect_pop_up', 11, 2);
|
11 |
}
|
12 |
+
//add_action('wp_login', 'mo_openid_update_user_meta', 8, 2);
|
13 |
add_action( 'delete_user', 'mo_openid_delete_account_linking_rows' );
|
14 |
|
15 |
add_action('manage_users_custom_column', 'mo_openid_delete_profile_column', 9, 3);
|
|
|
16 |
add_filter('manage_users_columns', 'mo_openid_add_custom_column1');
|
17 |
add_action('admin_head', 'mo_openid_delete_social_profile_script');
|
18 |
add_filter( 'login_message', 'mo_openid_account_linking');
|
72 |
}
|
73 |
|
74 |
$selected_theme = esc_attr(get_option('mo_openid_login_theme'));
|
75 |
+
$appsConfigured = get_option('mo_openid_google_enable') | get_option('mo_openid_salesforce_enable') | get_option('mo_openid_facebook_enable') | get_option('mo_openid_linkedin_enable') | get_option('mo_openid_instagram_enable') | get_option('mo_openid_amazon_enable') | get_option('mo_openid_windowslive_enable') | get_option('mo_openid_twitter_enable') | get_option('mo_openid_vkontakte_enable')| get_option('mo_openid_yahoo_enable');
|
76 |
$spacebetweenicons = esc_attr(get_option('mo_login_icon_space'));
|
77 |
$customWidth = esc_attr(get_option('mo_login_icon_custom_width'));
|
78 |
$customHeight = esc_attr(get_option('mo_login_icon_custom_height'));
|
107 |
$protocol = ((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://";
|
108 |
$sign_up_url = $protocol . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
|
109 |
$mo_URL=strstr($sign_up_url, "?", true);
|
110 |
+
if($mo_URL) {
|
111 |
+
setcookie("mo_openid_signup_url", $mo_URL, time() + (86400 * 30), "/");}
|
112 |
+
else{
|
113 |
+
setcookie("mo_openid_signup_url", $sign_up_url, time() + (86400 * 30), "/");}
|
114 |
|
115 |
if( ! is_user_logged_in() ) {
|
116 |
if( $appsConfigured ) {
|
257 |
echo get_option('mo_openid_login_button_customize_text'); ?> Microsoft</a>
|
258 |
<?php }
|
259 |
else{ ?>
|
260 |
+
<a class="<?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button" rel='nofollow' <?php echo $gdpr_setting; ?> title="<?php echo $customTextofTitle ?> Microsoft" onClick="moOpenIdLogin('windowslive','<?php echo $custom_app?>');"><img alt='Windowslive' style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important" src="<?php echo plugins_url( 'includes/images/icons/windowslive.png', __FILE__ )?>" class="<?php echo $selected_theme; ?> <?php if(get_option('mo_openid_gdpr_consent_enable')){echo "dis";} ?> login-button"></a>
|
|
|
|
|
261 |
<?php }
|
262 |
break;
|
263 |
case 'yahoo':
|
876 |
if($customer_register=='no' && $custom_app =='false')
|
877 |
return 'disable';
|
878 |
}
|
879 |
+
|
880 |
//for shortcode
|
881 |
public function add_apps($app_name,$theme,$gdpr_setting,$spacebetweenicons,$customWidth,$customHeight,$customBoundary,$buttonText,$dis,$customTextofTitle,$customSize,$selected_theme,$custom_app,$html,$view,$customBackground,$app_dis)
|
882 |
{
|
883 |
+
if($customWidth!=='auto'||$customWidth=='Auto'||$customWidth=='AUTO')
|
884 |
+
$customWidth.='px';
|
885 |
if($theme=="default")
|
886 |
{
|
887 |
if($app_name=="fb")
|
888 |
{
|
889 |
if ($selected_theme == 'longbutton') {
|
890 |
+
$html .= "<a rel='nofollow' " . $gdpr_setting . " style='margin-left: " . $spacebetweenicons . "px !important;width: " . $customWidth . " !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom: " . ($spacebetweenicons - 5) . "px !important;border-radius: " . $customBoundary . "px !important;'";
|
891 |
if ($view == "horizontal") {
|
892 |
$html .= "class='btn btn-mo btn-block-inline btn-social btn-facebook btn-custom-dec login-button'";
|
893 |
} else {
|
904 |
else if($app_name=="google")
|
905 |
{
|
906 |
if ($selected_theme == 'longbutton') {
|
907 |
+
$html .= "<a rel='nofollow' " . $gdpr_setting . " style='margin-left: " . $spacebetweenicons . "px !important;background: rgb(255,255,255)!important; background:linear-gradient(90deg, rgba(255,255,255,1) 38px, rgb(79, 113, 232) 5%) !important;width: " . $customWidth . " !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom: " . ($spacebetweenicons - 5) . "px !important;border-radius: " . $customBoundary . "px !important;border-color: rgba(79, 113, 232, 1);border-bottom-width: thin;'";
|
908 |
if ($view == "horizontal") {
|
909 |
$html .= "class='btn btn-mo btn-block-inline btn-social btn-google btn-custom-dec login-button'";
|
910 |
} else {
|
911 |
$html .= "class='btn btn-mo btn-block btn-social btn-google btn-custom-dec login-button'";
|
912 |
}
|
913 |
if($app_dis!="disable")
|
914 |
+
$html .= "onClick=\"moOpenIdLogin('google','" . $custom_app . "');\"";
|
915 |
$html.="> <i style='padding-top:" . ($customHeight - 29) . "px !important;border-right:none;' class='mofa'><svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 70 70\" style=\"padding-left: 8%;\" ><defs><path id=\"a\" d=\"M44.5 20H24v8.5h11.8C34.7 33.9 30.1 37 24 37c-7.2 0-13-5.8-13-13s5.8-13 13-13c3.1 0 5.9 1.1 8.1 2.9l6.4-6.4C34.6 4.1 29.6 2 24 2 11.8 2 2 11.8 2 24s9.8 22 22 22c11 0 21-8 21-22 0-1.3-.2-2.7-.5-4z\"/></defs><clipPath id=\"b\"><use xlink:href=\"#a\" overflow=\"visible\"/></clipPath><path clip-path=\"url(#b)\" fill=\"#FBBC05\" d=\"M0 37V11l17 13z\"/><path clip-path=\"url(#b)\" fill=\"#EA4335\" d=\"M0 11l17 13 7-6.1L48 14V0H0z\"/><path clip-path=\"url(#b)\" fill=\"#34A853\" d=\"M0 37l30-23 7.9 1L48 0v48H0z\"/><path clip-path=\"url(#b)\" fill=\"#4285F4\" d=\"M48 48L17 24l-4-3 35-10z\"/></svg></i><span style=\"color:#ffffff;\">" . $buttonText . " Google</span></a>";
|
916 |
} else {
|
917 |
$html .= "<a class='" . $dis . " login-button' rel='nofollow'";if($app_dis!="disable")$html.=" onClick=\"moOpenIdLogin('google','" . $custom_app . "');\""; $html.=" title= ' " . $customTextofTitle . " Google'><img alt='Google' style='width:" . $customSize . "px !important;height: " . $customSize . "px !important;margin-left: " . ($spacebetweenicons) . "px !important' src='" . plugins_url('includes/images/icons/google.png', __FILE__) . "' class='" . $dis . " login-button " . $selected_theme . "' ></a>";
|
921 |
else if($app_name=="vk")
|
922 |
{
|
923 |
if ($selected_theme == 'longbutton') {
|
924 |
+
$html .= "<a rel='nofollow' " . $gdpr_setting . " style='margin-left: " . $spacebetweenicons . "px !important;width: " . $customWidth . " !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom: " . ($spacebetweenicons - 5) . "px !important;border-radius: " . $customBoundary . "px !important;'";
|
925 |
if ($view == "horizontal") {
|
926 |
$html .= "class='btn btn-mo btn-block-inline btn-social btn-vk btn-custom-dec login-button'";
|
927 |
} else {
|
928 |
$html .= "class='btn btn-mo btn-block btn-social btn-vk btn-custom-dec login-button'";
|
929 |
}
|
930 |
if($app_dis!="disable")
|
931 |
+
$html .= "onClick=\"moOpenIdLogin('vkontakte','" . $custom_app . "');\"";
|
932 |
$html.="> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='mofa mofa-vk'></i>" . $buttonText . " Vkontakte</a>";
|
933 |
} else {
|
934 |
$html .= "<a class='" . $dis . " login-button' rel='nofollow'"; if($app_dis!="disable") $html.="onClick=\"moOpenIdLogin('vkontakte','" . $custom_app . "');\""; $html.="title= ' " . $customTextofTitle . " Vkontakte'><img alt='Vkontakte' style='width:" . $customSize . "px !important;height: " . $customSize . "px !important;margin-left: " . ($spacebetweenicons) . "px !important' src='" . plugins_url('includes/images/icons/vk.png', __FILE__) . "' class='" . $dis . " login-button " . $selected_theme . "' ></a>";
|
938 |
else if($app_name=="twitter")
|
939 |
{
|
940 |
if ($selected_theme == 'longbutton') {
|
941 |
+
$html .= "<a rel='nofollow' " . $gdpr_setting . " style='margin-left: " . $spacebetweenicons . "px !important;width: " . $customWidth . " !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom: " . ($spacebetweenicons - 5) . "px !important;border-radius: " . $customBoundary . "px !important;'";
|
942 |
if ($view == "horizontal") {
|
943 |
$html .= "class='btn btn-mo btn-block-inline btn-social btn-twitter btn-custom-dec login-button'";
|
944 |
} else {
|
945 |
$html .= "class='btn btn-mo btn-block btn-social btn-twitter btn-custom-dec login-button'";
|
946 |
}
|
947 |
if($app_dis!="disable")
|
948 |
+
$html .= "onClick=\"moOpenIdLogin('twitter','" . $custom_app . "');\"";
|
949 |
$html.="> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='mofa mofa-twitter'></i>" . $buttonText . " Twitter</a>";
|
950 |
} else {
|
951 |
$html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " Twitter'"; if($app_dis!="disable") $html.=" onClick=\"moOpenIdLogin('twitter','" . $custom_app . "');\""; $html.=" ><img alt='Twitter' style=' width:" . $customSize . "px !important;height: " . $customSize . "px !important;margin-left: " . ($spacebetweenicons) . "px !important' src='" . plugins_url('includes/images/icons/twitter.png', __FILE__) . "' class='" . $dis . " login-button " . $selected_theme . "' ></a>";
|
955 |
else if($app_name=="linkin")
|
956 |
{
|
957 |
if ($selected_theme == 'longbutton') {
|
958 |
+
$html .= "<a rel='nofollow' " . $gdpr_setting . "style='margin-left: " . $spacebetweenicons . "px !important;width: " . $customWidth . " !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom: " . ($spacebetweenicons - 5) . "px !important;border-radius: " . $customBoundary . "px !important;'";
|
959 |
if ($view == "horizontal") {
|
960 |
$html .= "class='btn btn-mo btn-block-inline btn-social btn-linkedin btn-custom-dec login-button'";
|
961 |
} else {
|
962 |
$html .= "class='btn btn-mo btn-block btn-social btn-linkedin btn-custom-dec login-button'";
|
963 |
}
|
964 |
if($app_dis!="disable")
|
965 |
+
$html .= "onClick=\"moOpenIdLogin('linkedin','" . $custom_app . "');\"";
|
966 |
$html.="> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='mofa mofa-linkedin'></i>" . $buttonText . " LinkedIn</a>";
|
967 |
} else {
|
968 |
$html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " LinkedIn'"; if($app_dis!="disable") $html.=" onClick=\"moOpenIdLogin('linkedin','" . $custom_app . "');\""; $html.=" ><img alt='LinkedIn' style='width:" . $customSize . "px !important;height: " . $customSize . "px !important;margin-left: " . ($spacebetweenicons) . "px !important' src='" . plugins_url('includes/images/icons/linkedin.png', __FILE__) . "' class='" . $dis . " login-button " . $selected_theme . "' ></a>";
|
972 |
else if($app_name=="insta")
|
973 |
{
|
974 |
if ($selected_theme == 'longbutton') {
|
975 |
+
$html .= "<a rel='nofollow' " . $gdpr_setting . " style='margin-left: " . $spacebetweenicons . "px !important;width: " . $customWidth . " !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom: " . ($spacebetweenicons - 5) . "px !important;border-radius: " . $customBoundary . "px !important;'";
|
976 |
if ($view == "horizontal") {
|
977 |
$html .= "class='btn btn-mo btn-block-inline btn-social btn-instagram btn-custom-dec login-button'";
|
978 |
} else {
|
979 |
$html .= "class='btn btn-mo btn-block btn-social btn-instagram btn-custom-dec login-button'";
|
980 |
}
|
981 |
if($app_dis!="disable")
|
982 |
+
$html .= "onClick=\"moOpenIdLogin('instagram','" . $custom_app . "');\"";
|
983 |
$html.="> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='mofa mofa-instagram'></i>" . $buttonText . " Instagram</a>";
|
984 |
} else {
|
985 |
$html .= "<a class='" . $dis . " login-button' rel='nofollow' " . $customTextofTitle . " Instagram'";if($app_dis!="disable") $html.=" onClick=\"moOpenIdLogin('instagram','" . $custom_app . "');\""; $html.=" ><img alt='Instagram' style='width:" . $customSize . "px !important;height: " . $customSize . "px !important;margin-left: " . ($spacebetweenicons) . "px !important' src='" . plugins_url('includes/images/icons/instagram.png', __FILE__) . "' class='" . $dis . " login-button " . $selected_theme . "' ></a>";
|
989 |
else if($app_name=="amazon")
|
990 |
{
|
991 |
if ($selected_theme == 'longbutton') {
|
992 |
+
$html .= "<a rel='nofollow' " . $gdpr_setting . "style='margin-left: " . $spacebetweenicons . "px !important;width: " . $customWidth . " !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom: " . ($spacebetweenicons - 5) . "px !important;border-radius: " . $customBoundary . "px !important;'";
|
993 |
if ($view == "horizontal") {
|
994 |
$html .= "class='btn btn-mo btn-block-inline btn-social btn-soundcloud btn-custom-dec login-button'";
|
995 |
} else {
|
996 |
$html .= "class='btn btn-mo btn-block btn-social btn-soundcloud btn-custom-dec login-button'";
|
997 |
}
|
998 |
if($app_dis!="disable")
|
999 |
+
$html .= "onClick=\"moOpenIdLogin('amazon','" . $custom_app . "');\"";
|
1000 |
$html.="> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='mofa mofa-amazon'></i>" . $buttonText . " Amazon</a>";
|
1001 |
} else {
|
1002 |
$html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " Amazon' ";if($app_dis!="disable") $html.="onClick=\"moOpenIdLogin('amazon','" . $custom_app . "');\""; $html.=" ><img alt='Amazon' style='width:" . $customSize . "px !important;height: " . $customSize . "px !important;margin-left: " . ($spacebetweenicons) . "px !important' src='" . plugins_url('includes/images/icons/amazon.png', __FILE__) . "' class='" . $dis . " login-button " . $selected_theme . "' ></a>";
|
1010 |
else
|
1011 |
$app_dis='';
|
1012 |
if ($selected_theme == 'longbutton') {
|
1013 |
+
$html .= "<a rel='nofollow' " . $gdpr_setting . "style='margin-left: " . $spacebetweenicons . "px !important;width: " . $customWidth . " !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom: " . ($spacebetweenicons - 5) . "px !important;border-radius: " . $customBoundary . "px !important;'";
|
1014 |
if ($view == "horizontal") {
|
1015 |
$html .= "class='btn btn-mo btn-block-inline btn-social btn-vimeo btn-custom-dec login-button' ";
|
1016 |
} else {
|
1017 |
$html .= "class='btn btn-mo btn-block btn-social btn-vimeo btn-custom-dec login-button' ";
|
1018 |
}
|
1019 |
if($app_dis!="disable")
|
1020 |
+
$html .= "onClick=\"moOpenIdLogin('salesforce','" . $custom_app . "');\"";
|
1021 |
$html.="> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='mofa mofa-cloud'></i>" . $buttonText . " Salesforce</a>";
|
1022 |
} else {
|
1023 |
$html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " Salesforce'"; if($app_dis!="disable") $html.=" onClick=\"moOpenIdLogin('salesforce','" . $custom_app . "');\""; $html.=" ><img alt='Salesforce' style='width:" . $customSize . "px !important;height: " . $customSize . "px !important;margin-left: " . ($spacebetweenicons) . "px !important' src='" . plugins_url('includes/images/icons/salesforce.png', __FILE__) . "' class='" . $dis . " login-button " . $selected_theme . "' ></a>";
|
1027 |
else if($app_name=="wlive")
|
1028 |
{
|
1029 |
if ($selected_theme == 'longbutton') {
|
1030 |
+
$html .= "<a rel='nofollow' " . $gdpr_setting . "style='margin-left: " . $spacebetweenicons . "px !important;width: " . $customWidth . " !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom: " . ($spacebetweenicons - 5) . "px !important;border-radius: " . $customBoundary . "px !important;'";
|
1031 |
if ($view == "horizontal") {
|
1032 |
$html .= "class='btn btn-mo btn-block-inline btn-social btn-microsoft btn-custom-dec login-button'";
|
1033 |
} else {
|
1034 |
$html .= "class='btn btn-mo btn-block btn-social btn-microsoft btn-custom-dec login-button'";
|
1035 |
}
|
1036 |
if($app_dis!="disable")
|
1037 |
+
$html .= " onClick=\"moOpenIdLogin('windowslive','" . $custom_app . "');\"";
|
1038 |
$html.="> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='mofa mofa-windows'></i>" . $buttonText . " Microsoft</a>";
|
1039 |
} else {
|
1040 |
$html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " Microsoft'"; if($app_dis!="disable") $html.=" onClick=\"moOpenIdLogin('windowslive','" . $custom_app . "');\""; $html.=" ><img alt='Windowslive' style='width:" . $customSize . "px !important;height: " . $customSize . "px !important;margin-left: " . ($spacebetweenicons) . "px !important' src='" . plugins_url('includes/images/icons/windowslive.png', __FILE__) . "' class='" . $dis . " login-button " . $selected_theme . "' ></a>";
|
1044 |
else if($app_name=="yahoo")
|
1045 |
{
|
1046 |
if ($selected_theme == 'longbutton') {
|
1047 |
+
$html .= "<a rel='nofollow' " . $gdpr_setting . " style='margin-left: " . $spacebetweenicons . "px !important;width: " . $customWidth . " !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom: " . ($spacebetweenicons - 5) . "px !important;border-radius: " . $customBoundary . "px !important;'";
|
1048 |
if ($view == "horizontal") {
|
1049 |
$html .= "class='btn btn-mo btn-block-inline btn-social btn-yahoo btn-custom-dec login-button'";
|
1050 |
} else {
|
1051 |
$html .= "class='btn btn-mo btn-block btn-social btn-yahoo btn-custom-dec login-button'";
|
1052 |
}
|
1053 |
if($app_dis!="disable")
|
1054 |
+
$html .= "onClick=\"moOpenIdLogin('yaahoo','" . $custom_app . "');\"";
|
1055 |
$html.="> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='mofa mofa-yahoo'></i>" . $buttonText . " Yahoo</a>";
|
1056 |
} else {
|
1057 |
$html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " .
|
1059 |
}
|
1060 |
return $html;
|
1061 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1062 |
}
|
1063 |
|
1064 |
else if($theme=="custom"){
|
1065 |
if($app_name=="fb")
|
1066 |
{
|
1067 |
if ($selected_theme == 'longbutton') {
|
1068 |
+
$html .= "<a rel='nofollow' " . $gdpr_setting . ""; if($app_dis!="disable") $html.=" onClick=\"moOpenIdLogin('facebook','" . $custom_app . "');\"";$html.=" style='margin-left: " . $spacebetweenicons . "px !important;width:" . ($customWidth) . " !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom:" . ($spacebetweenicons - 5) . "px !important; background:#" . $customBackground . "!important;border-radius: " . $customBoundary . "px !important;'";
|
1069 |
if ($view == "horizontal") {
|
1070 |
$html .= "class='btn btn-mo btn-block-inline btn-social btn-customtheme btn-custom-dec login-button'";
|
1071 |
} else {
|
1079 |
}
|
1080 |
else if($app_name=="google") {
|
1081 |
if ($selected_theme == 'longbutton') {
|
1082 |
+
$html .= "<a rel='nofollow' " . $gdpr_setting . "";if($app_dis!="disable") $html.=" onClick=\"moOpenIdLogin('google','" . $custom_app . "');\""; $html.=" style='margin-left: " . $spacebetweenicons . "px !important;width:" . ($customWidth) . " !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom:" . ($spacebetweenicons - 5) . "px !important; background:#" . $customBackground . "!important;border-radius: " . $customBoundary . "px !important;'";
|
1083 |
if ($view == "horizontal") {
|
1084 |
$html .= "class='btn btn-mo btn-block-inline btn-social btn-customtheme btn-custom-dec login-button'";
|
1085 |
} else {
|
1093 |
}
|
1094 |
else if($app_name=="vk") {
|
1095 |
if ($selected_theme == 'longbutton') {
|
1096 |
+
$html .= "<a rel='nofollow' " . $gdpr_setting . ""; if($app_dis!="disable") $html.=" onClick=\"moOpenIdLogin('vkontakte','" . $custom_app . "');\""; $html.=" style='margin-left: " . $spacebetweenicons . "px !important;width:" . ($customWidth) . " !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom:" . ($spacebetweenicons - 5) . "px !important; background:#" . $customBackground . "!important;border-radius: " . $customBoundary . "px !important;'";
|
1097 |
if ($view == "horizontal") {
|
1098 |
$html .= "class='btn btn-mo btn-block-inline btn-social btn-customtheme btn-custom-dec login-button'";
|
1099 |
} else {
|
1107 |
}
|
1108 |
else if($app_name=="twitter") {
|
1109 |
if ($selected_theme == 'longbutton') {
|
1110 |
+
$html .= "<a rel='nofollow' " . $gdpr_setting . ""; if($app_dis!="disable") $html.="onClick=\"moOpenIdLogin('twitter','" . $custom_app . "');\""; $html.=" style='margin-left: " . $spacebetweenicons . "px !important;width:" . ($customWidth) . " !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom:" . ($spacebetweenicons - 5) . "px !important; background:#" . $customBackground . "!important;border-radius: " . $customBoundary . "px !important;'";
|
1111 |
if ($view == "horizontal") {
|
1112 |
$html .= "class='btn btn-mo btn-block-inline btn-social btn-customtheme btn-custom-dec login-button'";
|
1113 |
} else {
|
1121 |
}
|
1122 |
else if($app_name=="linkin") {
|
1123 |
if ($selected_theme == 'longbutton') {
|
1124 |
+
$html .= "<a rel='nofollow' " . $gdpr_setting . ""; if($app_dis!="disable") $html.="onClick=\"moOpenIdLogin('linkedin','" . $custom_app . "');\""; $html.=" style='margin-left: " . $spacebetweenicons . "px !important;width:" . ($customWidth) . " !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom:" . ($spacebetweenicons - 5) . "px !important; background:#" . $customBackground . "!important;border-radius: " . $customBoundary . "px !important;'";
|
1125 |
if ($view == "horizontal") {
|
1126 |
$html .= "class='btn btn-mo btn-block-inline btn-social btn-customtheme btn-custom-dec login-button'";
|
1127 |
} else {
|
1136 |
}
|
1137 |
else if($app_name=="insta") {
|
1138 |
if ($selected_theme == 'longbutton') {
|
1139 |
+
$html .= "<a rel='nofollow' " . $gdpr_setting . ""; if($app_dis!="disable") $html.="onClick=\"moOpenIdLogin('instagram','" . $custom_app . "');\""; $html.=" style='margin-left: " . $spacebetweenicons . "px !important;width:" . ($customWidth) . " !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom:" . ($spacebetweenicons - 5) . "px !important; background:#" . $customBackground . "!important;border-radius: " . $customBoundary . "px !important;'";
|
1140 |
if ($view == "horizontal") {
|
1141 |
$html .= "class='btn btn-mo btn-block-inline btn-social btn-customtheme btn-custom-dec login-button'";
|
1142 |
} else {
|
1150 |
}
|
1151 |
else if($app_name=="amazon") {
|
1152 |
if ($selected_theme == 'longbutton') {
|
1153 |
+
$html .= "<a rel='nofollow' " . $gdpr_setting . ""; if($app_dis!="disable") $html.=" onClick=\"moOpenIdLogin('amazon','" . $custom_app . "');\""; $html.=" style='margin-left: " . $spacebetweenicons . "px !important;width:" . ($customWidth) . " !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom:" . ($spacebetweenicons - 5) . "px !important; background:#" . $customBackground . "!important;border-radius: " . $customBoundary . "px !important;'";
|
1154 |
if ($view == "horizontal") {
|
1155 |
$html .= "class='btn btn-mo btn-block-inline btn-social btn-customtheme btn-custom-dec login-button'";
|
1156 |
} else {
|
1170 |
else
|
1171 |
$app_dis='';
|
1172 |
if ($selected_theme == 'longbutton') {
|
1173 |
+
$html .= "<a rel='nofollow' " . $gdpr_setting . ""; if($app_dis!="disable") $html.=" onClick=\"moOpenIdLogin('salesforce','" . $custom_app . "');\""; $html.=" style='margin-left: " . $spacebetweenicons . "px !important;width:" . ($customWidth) . " !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom:" . ($spacebetweenicons - 5) . "px !important; background:#" . $customBackground . "!important;border-radius: " . $customBoundary . "px !important;'";
|
1174 |
if ($view == "horizontal") {
|
1175 |
$html .= "class='btn btn-mo btn-block-inline btn-social btn-customtheme btn-custom-dec login-button'";
|
1176 |
} else {
|
1185 |
else if($app_name=="wlive")
|
1186 |
{
|
1187 |
if ($selected_theme == 'longbutton') {
|
1188 |
+
$html .= "<a rel='nofollow' " . $gdpr_setting . ""; if($app_dis!="disable") $html.=" onClick=\"moOpenIdLogin('windowslive','" . $custom_app . "');\""; $html.=" style='margin-left: " . $spacebetweenicons . "px !important;width:" . ($customWidth) . " !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom:" . ($spacebetweenicons - 5) . "px !important; background:#" . $customBackground . "!important;border-radius: " . $customBoundary . "px !important;'";
|
1189 |
if ($view == "horizontal") {
|
1190 |
$html .= "class='btn btn-mo btn-block-inline btn-social btn-customtheme btn-custom-dec login-button'";
|
1191 |
} else {
|
1200 |
else if($app_name=="yahoo")
|
1201 |
{
|
1202 |
if ($selected_theme == 'longbutton') {
|
1203 |
+
$html .= "<a rel='nofollow' " . $gdpr_setting . ""; if($app_dis!="disable") $html.=" onClick=\"moOpenIdLogin('yaahoo','" . $custom_app . "');\""; $html.=" style='margin-left: " . $spacebetweenicons . "px !important;width:" . ($customWidth) . " !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom:" . ($spacebetweenicons - 5) . "px !important; background:#" . $customBackground . "!important;border-radius: " . $customBoundary . "px !important;'";
|
1204 |
if ($view == "horizontal") {
|
1205 |
$html .= "class='btn btn-mo btn-block-inline btn-social btn-customtheme btn-custom-dec login-button'";
|
1206 |
} else {
|
1212 |
}
|
1213 |
return $html;
|
1214 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1215 |
}
|
1216 |
|
1217 |
}
|
1218 |
|
1219 |
+
|
1220 |
private function mo_openid_load_login_script() {
|
1221 |
if(!get_option('mo_openid_gdpr_consent_enable')){?>
|
1222 |
<script>
|
1232 |
|
1233 |
jQuery('#mo_openid_consent_checkbox').val(1);
|
1234 |
jQuery(".btn-mo").attr("disabled", true);
|
1235 |
+
jQuery(".login-button").addClass("dis");
|
1236 |
} else {
|
1237 |
|
1238 |
jQuery('#mo_openid_consent_checkbox').val(0);
|
1239 |
jQuery(".btn-mo").attr("disabled", false);
|
1240 |
+
jQuery(".login-button").removeClass("dis");
|
1241 |
}
|
1242 |
}
|
1243 |
|
1563 |
|
1564 |
function mo_openid_login_validate(){
|
1565 |
|
|
|
1566 |
$present_time_rateus_pop = date('Y-m-d');
|
1567 |
if(get_option('check_ten_rate_us') < 5 ){
|
1568 |
if(get_option('mo_openid_user_activation_date') < $present_time_rateus_pop){
|
1680 |
'social_user_id' => $social_user_id,
|
1681 |
);
|
1682 |
|
|
|
1683 |
$user = get_user_by('id', $user_id );
|
1684 |
update_custom_data($user_id);
|
1685 |
//registration hook
|
1775 |
if ( ! wp_verify_nonce( $nonce, 'mo-openid-account-linking-nonce' ) ) {
|
1776 |
wp_die('<strong>ERROR</strong>: Invalid Request.');
|
1777 |
} else {
|
|
|
1778 |
//link account
|
1779 |
if (!isset($_POST['mo_openid_create_new_account'])) {
|
1780 |
$nonce = wp_create_nonce('mo-openid-disable-social-login-nonce');
|
1973 |
|
1974 |
|
1975 |
function mo_openid_login_redirect($username = '', $user = NULL){
|
1976 |
+
if(is_string($username) && $username && is_object($user) && !empty($user->ID) && ($user_id = $user->ID) ){
|
|
|
|
|
1977 |
wp_set_auth_cookie( $user_id, true );
|
1978 |
$redirect_url = mo_openid_get_redirect_url();
|
1979 |
wp_redirect($redirect_url);
|
1983 |
|
1984 |
function mo_openid_login_redirect_pop_up($username = '', $user = NULL){
|
1985 |
|
|
|
1986 |
if(is_string($username) && $username && is_object($user) && !empty($user->ID) && ($user_id = $user->ID) && isset($_SESSION['mo_login']) && $_SESSION['mo_login']){
|
1987 |
$_SESSION['mo_login'] = false;
|
1988 |
wp_set_auth_cookie( $user_id, true );
|
2004 |
}
|
2005 |
|
2006 |
function mo_openid_update_user_meta($username, $user ){
|
|
|
|
|
2007 |
if(isset($_SESSION['location_city'])? $_SESSION['location_city']: '') {
|
2008 |
update_user_meta($user->ID, 'location_city', $_SESSION['location_city']);
|
2009 |
}
|
2058 |
update_user_meta( $user->ID, 'NA', isset($_SESSION['NA'])? $_SESSION['NA']:'' );
|
2059 |
}
|
2060 |
|
2061 |
+
function mo_openid_link_account( $username, $user){
|
2062 |
if($user){
|
2063 |
$userid = $user->ID;
|
2064 |
}
|
2065 |
+
$user_email = $_COOKIE["user_email"];
|
2066 |
+
$social_app_identifier = $_COOKIE['social_id'];
|
2067 |
+
$social_app_name = $_COOKIE['social_app_name'];
|
2068 |
|
|
|
|
|
|
|
2069 |
if(empty($user_email)){
|
2070 |
$user_email=$user->user_email;
|
2071 |
}
|
2076 |
elseif(!isset($userid)){
|
2077 |
return;
|
2078 |
}
|
|
|
2079 |
global $wpdb;
|
2080 |
$db_prefix = $wpdb->prefix;
|
2081 |
$linked_email_id = $wpdb->get_var($wpdb->prepare("SELECT user_id FROM ".$db_prefix."mo_openid_linked_user where linked_email = \"%s\" AND linked_social_app = \"%s\"",$user_email,$social_app_name));
|
|
|
2082 |
// if a user with given email and social app name doesn't already exist in the mo_openid_linked_user table
|
2083 |
if(!isset($linked_email_id)){
|
2084 |
mo_openid_insert_query($social_app_name,$user_email,$userid,$social_app_identifier);
|
includes/css/mo_openid_style.css
CHANGED
@@ -760,7 +760,7 @@ a.mo-pugin-add-comp-link-sl {
|
|
760 |
background-image:url(../../includes/images/sample.png);
|
761 |
padding-bottom: 20px;
|
762 |
}
|
763 |
-
.
|
764 |
pointer-events: none;
|
765 |
}
|
766 |
.mo_openid_tooltip .mo_tooltiptext1 {
|
@@ -1534,3 +1534,47 @@ input:checked + .mo-slider .off
|
|
1534 |
background-color: #e5e7eb;
|
1535 |
border-radius: 50%;
|
1536 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
760 |
background-image:url(../../includes/images/sample.png);
|
761 |
padding-bottom: 20px;
|
762 |
}
|
763 |
+
.dis{
|
764 |
pointer-events: none;
|
765 |
}
|
766 |
.mo_openid_tooltip .mo_tooltiptext1 {
|
1534 |
background-color: #e5e7eb;
|
1535 |
border-radius: 50%;
|
1536 |
}
|
1537 |
+
|
1538 |
+
body {font-family: Arial, Helvetica, sans-serif;}
|
1539 |
+
|
1540 |
+
/* The Modal (background) */
|
1541 |
+
.modal {
|
1542 |
+
display: none; /* Hidden by default */
|
1543 |
+
position: fixed; /* Stay in place */
|
1544 |
+
z-index: 1; /* Sit on top */
|
1545 |
+
padding-top: 100px; /* Location of the box */
|
1546 |
+
padding-left: 25%;
|
1547 |
+
padding-right: 20%;
|
1548 |
+
|
1549 |
+
left: 0;
|
1550 |
+
top: 0;
|
1551 |
+
width: 100%; /* Full width */
|
1552 |
+
height: 100%; /* Full height */
|
1553 |
+
overflow: auto; /* Enable scroll if needed */
|
1554 |
+
background-color: rgb(0,0,0); /* Fallback color */
|
1555 |
+
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
|
1556 |
+
}
|
1557 |
+
|
1558 |
+
/* Modal Content */
|
1559 |
+
.modal-content {
|
1560 |
+
background-color: #ffffff;
|
1561 |
+
/*margin: auto;*/
|
1562 |
+
padding: 20px;
|
1563 |
+
border: 1px solid #888;
|
1564 |
+
width: 60%;
|
1565 |
+
}
|
1566 |
+
|
1567 |
+
/* The Close Button */
|
1568 |
+
.close {
|
1569 |
+
color: #aaaaaa;
|
1570 |
+
float: right;
|
1571 |
+
font-size: 28px;
|
1572 |
+
font-weight: bold;
|
1573 |
+
}
|
1574 |
+
|
1575 |
+
.close:hover,
|
1576 |
+
.close:focus {
|
1577 |
+
color: #000;
|
1578 |
+
text-decoration: none;
|
1579 |
+
cursor: pointer;
|
1580 |
+
}
|
includes/images/icons/foursquare.png
ADDED
Binary file
|
includes/images/icons/livejournal.png
ADDED
Binary file
|
includes/images/icons/naver.png
ADDED
Binary file
|
includes/images/icons/reddit.png
CHANGED
Binary file
|
includes/images/icons/reddit2.png
ADDED
Binary file
|
includes/images/icons/snapchat.png
ADDED
Binary file
|
includes/images/icons/teamsnap.png
ADDED
Binary file
|
includes/images/icons/wordpress2.png
DELETED
Binary file
|
includes/images/move.png
DELETED
Binary file
|
includes/images/settings_icon.JPG
DELETED
Binary file
|
miniorange_openid_sso_settings.php
CHANGED
@@ -4,12 +4,12 @@
|
|
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, Apple, Twitter, LinkedIn etc using customizable buttons.
|
7 |
-
* Version: 7.3.
|
8 |
* Author: miniOrange
|
9 |
* License URI: http://miniorange.com/usecases/miniOrange_User_Agreement.pdf
|
10 |
*/
|
11 |
|
12 |
-
define('MO_OPENID_SOCIAL_LOGIN_VERSION', '7.3.
|
13 |
define('plugin_url', plugin_dir_url(__FILE__) . "includes/images/icons/");
|
14 |
define('MOSL_PLUGIN_DIR',str_replace('/','\\',plugin_dir_path(__FILE__)));
|
15 |
require('miniorange_openid_sso_settings_page.php');
|
@@ -40,8 +40,8 @@ class miniorange_openid_sso_settings
|
|
40 |
add_action( 'admin_init', array( $this, 'miniorange_openid_save_settings' ) );
|
41 |
add_action('init', 'mo_openid_login_validate' );
|
42 |
add_action( 'plugins_loaded', 'mo_openid_plugin_update' ,1 );
|
43 |
-
|
44 |
-
|
45 |
add_action('wp_ajax_mo-openid-sso-sort-action', 'mo_openid_sso_sort_action');
|
46 |
add_action('wp_ajax_mo_openid_share', 'mo_openid_share_action');
|
47 |
add_action('wp_ajax_mo_openid_app_enable', 'mo_openid_sso_enable_app');
|
@@ -83,7 +83,7 @@ class miniorange_openid_sso_settings
|
|
83 |
add_option('mo_openid_admin_api_key','BjIZyuSDTE90MVWp4pRLr3dzrFs8h74T');
|
84 |
add_option('mo_openid_customer_token','6osoapPWEgGlBRgT');
|
85 |
add_option('app_pos','facebook#google#vkontakte#twitter#instagram#linkedin#amazon#salesforce#windowslive#yahoo');
|
86 |
-
|
87 |
add_option('mo_openid_default_login_enable',1);
|
88 |
add_option( 'mo_openid_login_theme', 'longbutton' );
|
89 |
add_option( 'mo_openid_register_email_message', 'Hello,<br><br>##User Name## has registered to your site successfully.<br><br>Thanks,<br>miniOrange' );
|
@@ -115,7 +115,7 @@ class miniorange_openid_sso_settings
|
|
115 |
add_option('moopenid_logo_check_account','1');
|
116 |
add_option( 'mo_openid_email_enable', '1');
|
117 |
add_option( 'mo_openid_tour_new','0');
|
118 |
-
|
119 |
|
120 |
add_option('mo_openid_user_activation_date','0');
|
121 |
//GDPR options
|
@@ -792,7 +792,8 @@ Thank you.';
|
|
792 |
|
793 |
|
794 |
function mo_openid_feedback_request(){
|
795 |
-
|
|
|
796 |
}
|
797 |
function mo_openid_add_social_share_links($content) {
|
798 |
global $post;
|
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, Apple, Twitter, LinkedIn etc using customizable buttons.
|
7 |
+
* Version: 7.3.2
|
8 |
* Author: miniOrange
|
9 |
* License URI: http://miniorange.com/usecases/miniOrange_User_Agreement.pdf
|
10 |
*/
|
11 |
|
12 |
+
define('MO_OPENID_SOCIAL_LOGIN_VERSION', '7.3.2');
|
13 |
define('plugin_url', plugin_dir_url(__FILE__) . "includes/images/icons/");
|
14 |
define('MOSL_PLUGIN_DIR',str_replace('/','\\',plugin_dir_path(__FILE__)));
|
15 |
require('miniorange_openid_sso_settings_page.php');
|
40 |
add_action( 'admin_init', array( $this, 'miniorange_openid_save_settings' ) );
|
41 |
add_action('init', 'mo_openid_login_validate' );
|
42 |
add_action( 'plugins_loaded', 'mo_openid_plugin_update' ,1 );
|
43 |
+
add_action( 'admin_enqueue_scripts', array( $this, 'mo_openid_plugin_settings_script' ) );
|
44 |
+
add_action( 'admin_enqueue_scripts', array( $this, 'mo_openid_plugin_settings_style' ) );
|
45 |
add_action('wp_ajax_mo-openid-sso-sort-action', 'mo_openid_sso_sort_action');
|
46 |
add_action('wp_ajax_mo_openid_share', 'mo_openid_share_action');
|
47 |
add_action('wp_ajax_mo_openid_app_enable', 'mo_openid_sso_enable_app');
|
83 |
add_option('mo_openid_admin_api_key','BjIZyuSDTE90MVWp4pRLr3dzrFs8h74T');
|
84 |
add_option('mo_openid_customer_token','6osoapPWEgGlBRgT');
|
85 |
add_option('app_pos','facebook#google#vkontakte#twitter#instagram#linkedin#amazon#salesforce#windowslive#yahoo');
|
86 |
+
update_option('app_pos_premium','apple#wordpress#disqus#pinterest#spotify#reddit#tumblr#twitch#vimeo#kakao#discord#dribbble#flickr#line#meetup#stackexchange#livejournal#snapchat#foursquare#teamsnap#naver#odnoklassniki#wiebo#wechat#baidu#renren#qq');
|
87 |
add_option('mo_openid_default_login_enable',1);
|
88 |
add_option( 'mo_openid_login_theme', 'longbutton' );
|
89 |
add_option( 'mo_openid_register_email_message', 'Hello,<br><br>##User Name## has registered to your site successfully.<br><br>Thanks,<br>miniOrange' );
|
115 |
add_option('moopenid_logo_check_account','1');
|
116 |
add_option( 'mo_openid_email_enable', '1');
|
117 |
add_option( 'mo_openid_tour_new','0');
|
118 |
+
add_option( 'mo_openid_deactivate_reason',0);
|
119 |
|
120 |
add_option('mo_openid_user_activation_date','0');
|
121 |
//GDPR options
|
792 |
|
793 |
|
794 |
function mo_openid_feedback_request(){
|
795 |
+
if(get_option('mo_openid_deactivate_reason')=='0')
|
796 |
+
mo_openid_display_feedback_form();
|
797 |
}
|
798 |
function mo_openid_add_social_share_links($content) {
|
799 |
global $post;
|
miniorange_openid_sso_settings_page.php
CHANGED
@@ -36,6 +36,29 @@ require('view/soc_com/com_shrtco/comm_shrtco.php');
|
|
36 |
include('view/add_on/custom_registration_form.php');
|
37 |
|
38 |
function mo_register_openid() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
if( isset( $_GET[ 'tab' ]) && $_GET[ 'tab' ] !== 'register' ) {
|
40 |
$active_tab = $_GET[ 'tab' ];
|
41 |
} else {
|
@@ -185,7 +208,6 @@ function mo_register_openid() {
|
|
185 |
</div>
|
186 |
<?php include('view/support_form/miniorange_openid_support_form.php');?>
|
187 |
<script>
|
188 |
-
|
189 |
jQuery("#contact_us_phone").intlTelInput();
|
190 |
function mo_openid_support_form(abc) {
|
191 |
|
@@ -750,7 +772,6 @@ function mo_comment_openid() {
|
|
750 |
<script>
|
751 |
jQuery(document).ready(function ()
|
752 |
{
|
753 |
-
|
754 |
jQuery("#bkgOverlay").delay(4800).fadeIn(400);
|
755 |
jQuery("#mo_openid_rateus_myModal").delay(5000).fadeIn(400);
|
756 |
|
36 |
include('view/add_on/custom_registration_form.php');
|
37 |
|
38 |
function mo_register_openid() {
|
39 |
+
?>
|
40 |
+
<div id="upgrade_notice" class="update-nag" style="width: 92.5%;margin-left: 0%;"><strong>Special March Offer for WOOCOMMERCE INTEGRATION. Click here to <a id="pricing" style="background: #FFA335;border-color: #FFA335;color: white;" class="button" href="<?php echo add_query_arg( array('tab' => 'licensing_plans'), $_SERVER['REQUEST_URI'] ); ?>"><?php echo mo_sl('Upgrade Now');?></a>
|
41 |
+
</strong></div>
|
42 |
+
<div id="myModalwoo_not" class="modal">
|
43 |
+
<!-- Modal content -->
|
44 |
+
<div class="modal-content">
|
45 |
+
<span class="close">×</span>
|
46 |
+
<strong><h1 style="padding-left: 5%;color: darkblue"> WOOCOMMERCE INTEGRATION PLAN $19</h1><hr><p style="padding-left: 40%;font-size:18px;color:red">Special March Offer</p></strong>
|
47 |
+
<h4><strong>Features Included</strong></h4> <input type="submit" name="submit" value="<?php echo mo_sl('UPGRADE NOW');?>" style="float:right;width:150px;background-color:#0867b2;color:white;box-shadow:none;text-shadow: none;" class="button button-primary button-large" /></b>
|
48 |
+
<h4>Woocommerce Display Options(STANDARD PLAN) <strike style="color: maroon;font-size:20px;font-weight: bold">$29</strike></h4>
|
49 |
+
<h4>Woocommerce integration + Display Options(PREMIUM PLAN) <strike style="color: maroon;font-size:20px;font-weight: bold">$49</strike></h4>
|
50 |
+
<label class="mo_openid_note_style">
|
51 |
+
We provide Woocommerece integration in our premium plan which includes Woocommerece integration and various Woocommerce display options along with other integration for $49.
|
52 |
+
We provide only Woocommerece display options in our standard plan along with other standard features for $29.
|
53 |
+
But now we have a special March offer for you this month, you can avail the Woocommerce integration and various Woocommerce display options with the free plugin features only at $19.
|
54 |
+
</label>
|
55 |
+
<p><strong style="color: #0000A0">Feature Description</strong>
|
56 |
+
Using Woocommerce integration you will get all the text fields at the checkout form pre-filled.</p>
|
57 |
+
</div>
|
58 |
+
|
59 |
+
</div>
|
60 |
+
<?php
|
61 |
+
|
62 |
if( isset( $_GET[ 'tab' ]) && $_GET[ 'tab' ] !== 'register' ) {
|
63 |
$active_tab = $_GET[ 'tab' ];
|
64 |
} else {
|
208 |
</div>
|
209 |
<?php include('view/support_form/miniorange_openid_support_form.php');?>
|
210 |
<script>
|
|
|
211 |
jQuery("#contact_us_phone").intlTelInput();
|
212 |
function mo_openid_support_form(abc) {
|
213 |
|
772 |
<script>
|
773 |
jQuery(document).ready(function ()
|
774 |
{
|
|
|
775 |
jQuery("#bkgOverlay").delay(4800).fadeIn(400);
|
776 |
jQuery("#mo_openid_rateus_myModal").delay(5000).fadeIn(400);
|
777 |
|
mo-openid-social-login-functions.php
CHANGED
@@ -3,13 +3,13 @@ require 'social_apps/mo_openid_configured_apps_funct.php';
|
|
3 |
|
4 |
function mo_openid_start_session() {
|
5 |
if( !session_id() ) {
|
6 |
-
|
7 |
}
|
8 |
}
|
9 |
|
10 |
function mo_openid_end_session() {
|
11 |
-
session_start();
|
12 |
-
|
13 |
}
|
14 |
|
15 |
function mo_openid_initialize_social_login(){
|
@@ -50,19 +50,20 @@ function mo_openid_custom_app_oauth_redirect($appname){
|
|
50 |
|
51 |
function mo_openid_process_custom_app_callback()
|
52 |
{
|
|
|
|
|
53 |
if (is_user_logged_in() && get_option('mo_openid_test_configuration') != 1) {
|
54 |
return;
|
55 |
}
|
56 |
$code = $profile_url = $client_id = $current_url = $client_secret = $access_token_uri = $postData = $oauth_token = $user_url = $user_name = $email = '';
|
57 |
$oauth_access_token = $redirect_url = $option = $oauth_token_secret = $screen_name = $profile_json_output = $oauth_verifier = $twitter_oauth_token = $access_token_json_output = [];
|
58 |
-
|
59 |
-
mo_openid_start_session();
|
60 |
if (strpos($_SERVER['REQUEST_URI'], "oauth_verifier") !== false) {
|
61 |
-
$
|
62 |
}
|
63 |
|
64 |
-
|
65 |
-
|
|
|
66 |
} else if (strpos($_SERVER['REQUEST_URI'], "openidcallback") !== false) {
|
67 |
if ((strpos($_SERVER['REQUEST_URI'], "openidcallback/google") !== false) || (strpos($_SERVER['REQUEST_URI'], "openidcallback=google") !== false)) {
|
68 |
$appname = "google";
|
@@ -78,20 +79,10 @@ function mo_openid_process_custom_app_callback()
|
|
78 |
$appname = "instagram";
|
79 |
} else if ((strpos($_SERVER['REQUEST_URI'], "openidcallback/amazon") !== false) || (strpos($_SERVER['REQUEST_URI'], "openidcallback=amazon") !== false)) {
|
80 |
$appname = "amazon";
|
81 |
-
} else if ((strpos($_SERVER['REQUEST_URI'], "openidcallback/
|
82 |
-
$appname = "
|
83 |
} else if ((strpos($_SERVER['REQUEST_URI'], "openidcallback/wordpress") !== false) || (strpos($_SERVER['REQUEST_URI'], "openidcallback=wordpress") !== false)) {
|
84 |
$appname = "wordpress";
|
85 |
-
} else if ((strpos($_SERVER['REQUEST_URI'], "openidcallback/disqus") !== false) || (strpos($_SERVER['REQUEST_URI'], "openidcallback=disqus") !== false)) {
|
86 |
-
$appname = "disqus";
|
87 |
-
} else if ((strpos($_SERVER['REQUEST_URI'], "openidcallback/pinterest") !== false) || (strpos($_SERVER['REQUEST_URI'], "openidcallback=pinterest") !== false)) {
|
88 |
-
$appname = "pinterest";
|
89 |
-
} else if ((strpos($_SERVER['REQUEST_URI'], "openidcallback/twitch") !== false) || (strpos($_SERVER['REQUEST_URI'], "openidcallback=twitch") !== false)) {
|
90 |
-
$appname = "twitch";
|
91 |
-
} else if ((strpos($_SERVER['REQUEST_URI'], "openidcallback/vimeo") !== false) || (strpos($_SERVER['REQUEST_URI'], "openidcallback=vimeo") !== false)) {
|
92 |
-
$appname = "vimeo";
|
93 |
-
} else if ((strpos($_SERVER['REQUEST_URI'], "openidcallback/kakao") !== false) || (strpos($_SERVER['REQUEST_URI'], "openidcallback=kakao") !== false)) {
|
94 |
-
$appname = "kakao";
|
95 |
}
|
96 |
} else {
|
97 |
return;
|
@@ -250,8 +241,15 @@ function mo_openid_process_user_details($appuserdetails,$appname)
|
|
250 |
'social_app_name' => $appname,
|
251 |
'social_user_id' => $social_user_id,
|
252 |
);
|
253 |
-
mo_openid_start_session_login($session_values);
|
254 |
// user is a member
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
255 |
if ((isset($linked_email_id)) || (isset($email_user_id)) || (isset($existing_email_user_id))) {
|
256 |
if ((!isset($linked_email_id)) && (isset($email_user_id))) {
|
257 |
$linked_email_id = $email_user_id;
|
@@ -385,12 +383,21 @@ function mo_create_new_user($user_val){
|
|
385 |
'social_app_name' => $appname,
|
386 |
'social_user_id' => $social_user_id,
|
387 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
388 |
|
389 |
-
mo_openid_start_session_login($session_values);
|
390 |
$user = get_user_by('id', $user_id );
|
|
|
391 |
//registration hook
|
392 |
do_action( 'mo_user_register', $user_id,$user_profile_url);
|
393 |
-
mo_openid_link_account($user->user_login, $user);
|
394 |
$linked_email_id = $wpdb->get_var($wpdb->prepare("SELECT user_id FROM " . $db_prefix . "mo_openid_linked_user where linked_social_app = \"%s\" AND identifier = %s", $appname, $social_user_id));
|
395 |
mo_openid_login_user($linked_email_id,$user_id,$user,$user_picture,0);
|
396 |
}
|
@@ -406,7 +413,6 @@ function mo_openid_customize_logo(){
|
|
406 |
}
|
407 |
|
408 |
function mo_openid_save_extended_attributes_in_session($extended_attr){
|
409 |
-
mo_openid_start_session();
|
410 |
$_SESSION['location_city'] = isset($extended_attr['location_city'])?$extended_attr['location_city']:'';
|
411 |
$_SESSION['location_country'] = isset($extended_attr['$location_country'])?$extended_attr['location_country']:'';
|
412 |
$_SESSION['about_me'] = isset($extended_attr['about_me'])?$extended_attr['about_me']:'';
|
3 |
|
4 |
function mo_openid_start_session() {
|
5 |
if( !session_id() ) {
|
6 |
+
// session_start();
|
7 |
}
|
8 |
}
|
9 |
|
10 |
function mo_openid_end_session() {
|
11 |
+
//session_start();
|
12 |
+
// session_unset(); //unsets all session variables
|
13 |
}
|
14 |
|
15 |
function mo_openid_initialize_social_login(){
|
50 |
|
51 |
function mo_openid_process_custom_app_callback()
|
52 |
{
|
53 |
+
$appname = "";
|
54 |
+
|
55 |
if (is_user_logged_in() && get_option('mo_openid_test_configuration') != 1) {
|
56 |
return;
|
57 |
}
|
58 |
$code = $profile_url = $client_id = $current_url = $client_secret = $access_token_uri = $postData = $oauth_token = $user_url = $user_name = $email = '';
|
59 |
$oauth_access_token = $redirect_url = $option = $oauth_token_secret = $screen_name = $profile_json_output = $oauth_verifier = $twitter_oauth_token = $access_token_json_output = [];
|
|
|
|
|
60 |
if (strpos($_SERVER['REQUEST_URI'], "oauth_verifier") !== false) {
|
61 |
+
$appname = "twitter";
|
62 |
}
|
63 |
|
64 |
+
|
65 |
+
if ($appname == "twitter") {
|
66 |
+
$appname = "twitter";
|
67 |
} else if (strpos($_SERVER['REQUEST_URI'], "openidcallback") !== false) {
|
68 |
if ((strpos($_SERVER['REQUEST_URI'], "openidcallback/google") !== false) || (strpos($_SERVER['REQUEST_URI'], "openidcallback=google") !== false)) {
|
69 |
$appname = "google";
|
79 |
$appname = "instagram";
|
80 |
} else if ((strpos($_SERVER['REQUEST_URI'], "openidcallback/amazon") !== false) || (strpos($_SERVER['REQUEST_URI'], "openidcallback=amazon") !== false)) {
|
81 |
$appname = "amazon";
|
82 |
+
} else if ((strpos($_SERVER['REQUEST_URI'], "openidcallback/yahoo") !== false) || (strpos($_SERVER['REQUEST_URI'], "openidcallback=yaahoo") !== false)) {
|
83 |
+
$appname = "yahoo";
|
84 |
} else if ((strpos($_SERVER['REQUEST_URI'], "openidcallback/wordpress") !== false) || (strpos($_SERVER['REQUEST_URI'], "openidcallback=wordpress") !== false)) {
|
85 |
$appname = "wordpress";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
}
|
87 |
} else {
|
88 |
return;
|
241 |
'social_app_name' => $appname,
|
242 |
'social_user_id' => $social_user_id,
|
243 |
);
|
|
|
244 |
// user is a member
|
245 |
+
setcookie('social_id', $session_values['social_user_id'], 0 ,"/");
|
246 |
+
$_COOKIE['social_id']=$session_values['social_user_id'];
|
247 |
+
setcookie('user_email', $session_values['user_email'],0,"/" );
|
248 |
+
$_COOKIE['user_email']=$session_values['user_email'];
|
249 |
+
setcookie('social_app_name', $session_values['social_app_name'],0,"/");
|
250 |
+
$_COOKIE['social_app_name']=$session_values['social_app_name'];
|
251 |
+
|
252 |
+
|
253 |
if ((isset($linked_email_id)) || (isset($email_user_id)) || (isset($existing_email_user_id))) {
|
254 |
if ((!isset($linked_email_id)) && (isset($email_user_id))) {
|
255 |
$linked_email_id = $email_user_id;
|
383 |
'social_app_name' => $appname,
|
384 |
'social_user_id' => $social_user_id,
|
385 |
);
|
386 |
+
if(isset($session_values['social_user_id'])? $session_values['social_user_id']: '') {
|
387 |
+
update_user_meta($user_id, 'social_user_id', $session_values['social_user_id']);
|
388 |
+
}
|
389 |
+
if(isset($session_values['social_app_name'])? $session_values['social_app_name']: '') {
|
390 |
+
update_user_meta($user_id, 'social_app_name', $session_values['social_app_name']);
|
391 |
+
}
|
392 |
+
if(isset($session_values['user_email'])? $session_values['user_email']: '') {
|
393 |
+
update_user_meta($user_id, 'user_email', $session_values['user_email']);
|
394 |
+
}
|
395 |
|
|
|
396 |
$user = get_user_by('id', $user_id );
|
397 |
+
|
398 |
//registration hook
|
399 |
do_action( 'mo_user_register', $user_id,$user_profile_url);
|
400 |
+
mo_openid_link_account($user->user_login, $user,$session_values);
|
401 |
$linked_email_id = $wpdb->get_var($wpdb->prepare("SELECT user_id FROM " . $db_prefix . "mo_openid_linked_user where linked_social_app = \"%s\" AND identifier = %s", $appname, $social_user_id));
|
402 |
mo_openid_login_user($linked_email_id,$user_id,$user,$user_picture,0);
|
403 |
}
|
413 |
}
|
414 |
|
415 |
function mo_openid_save_extended_attributes_in_session($extended_attr){
|
|
|
416 |
$_SESSION['location_city'] = isset($extended_attr['location_city'])?$extended_attr['location_city']:'';
|
417 |
$_SESSION['location_country'] = isset($extended_attr['$location_country'])?$extended_attr['location_country']:'';
|
418 |
$_SESSION['about_me'] = isset($extended_attr['about_me'])?$extended_attr['about_me']:'';
|
mo_openid_feedback_form.php
CHANGED
@@ -27,6 +27,7 @@
|
|
27 |
<p style="margin-left:2%">
|
28 |
|
29 |
<?php
|
|
|
30 |
$deactivate_reasons = array(
|
31 |
"Not Working",
|
32 |
"Facebook Login Error",
|
27 |
<p style="margin-left:2%">
|
28 |
|
29 |
<?php
|
30 |
+
update_option('mo_openid_deactivate_reason',1);
|
31 |
$deactivate_reasons = array(
|
32 |
"Not Working",
|
33 |
"Facebook Login Error",
|
readme.txt
CHANGED
@@ -4,20 +4,20 @@ Donate link: https://www.miniorange.com
|
|
4 |
Tags: social login, facebook login, google login, twitter login, Vkontakte login, social, facebook, twitter, google, login, google, social connect, social network login, social plugin, Vkontakte, LinkedIn
|
5 |
Requires at least: 2.0.2
|
6 |
Tested up to: 5.3
|
7 |
-
Stable tag: 7.3.
|
8 |
License URI: http://miniorange.com/usecases/miniOrange_User_Agreement.pdf
|
9 |
|
10 |
-
Social Login with Google, Facebook, Apple, Twitter, Vkontakte, LinkedIn and more. GDPR compliant. Social sharing and social comments. 24x7 Support.
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
-
Social Login enables social login, social sharing, social comments using social login apps like Google, Facebook, Twitter, Vkontakte, LinkedIn, Windows Live, Instagram, Amazon, Salesforce, Yahoo, WordPress.
|
15 |
|
16 |
= Free Social Login Features =
|
17 |
|
18 |
-
* Social Login with Facebook, Google, Twitter, Vkontakte, LinkedIn, Instagram, Amazon, Windows Live &
|
19 |
* **NO SETUP required for default social login apps.**
|
20 |
-
* Setup your own social login application with APP ID and APP Secret for Facebook, Twitter
|
21 |
* **Preview is available for Social Login icons**
|
22 |
* **Icon Customizations** - customize shape, theme, space & size of social login icons.
|
23 |
* **Profile completion** (username, email) - Prompt user for email & username if social login app doesn't return it. Email is verified with verification code.
|
@@ -36,7 +36,6 @@ Social Login enables social login, social sharing, social comments using social
|
|
36 |
* Share with social applications - Facebook, Twitter, Google+, Pinterest, Reddit, Vkontakte, Tumblr, StumbleUpon, LinkedIn, Pocket, Digg, Delicious, Odnoklassniki, Email, Print, Whatsapp
|
37 |
* **Icon Customizations** - customize shape, theme, space & size of social sharing icons.
|
38 |
* **Preview is available for Social Sharing icons**
|
39 |
-
* **bbPress display options** - Enable Social Sharing on bbPress Forum, Topic and Reply Pages.
|
40 |
* Add Social Comments using Facebook.
|
41 |
* Add social sharing icons on homepage, posts, feeds, content pages, WooCommerce product page etc.
|
42 |
* Add a horizontal social sharing widget.
|
@@ -45,6 +44,7 @@ Social Login enables social login, social sharing, social comments using social
|
|
45 |
|
46 |
= Premium Social Login Features =
|
47 |
|
|
|
48 |
* GDPR compliant Social Login.
|
49 |
* **Account Linking** - Link social account to WordPress account
|
50 |
* **Woocommerce display options** - Enable social login icons on the Woocommerce Checkout, Login, Registration pages.
|
@@ -177,6 +177,14 @@ Please email us at info@miniorange.com. You can also submit your query from the
|
|
177 |
|
178 |
|
179 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
180 |
= 7.3.1 =
|
181 |
* Instagram instructions updated with new API'S.
|
182 |
* Updated save and test configuration button.
|
@@ -681,6 +689,14 @@ SECURITY FIXES
|
|
681 |
* First version of Social Login, Social Sharing plugin.
|
682 |
|
683 |
== Upgrade Notice ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
684 |
= 7.3.1 =
|
685 |
* Instagram instructions updated with new API'S.
|
686 |
* Updated save and test configuration button.
|
4 |
Tags: social login, facebook login, google login, twitter login, Vkontakte login, social, facebook, twitter, google, login, google, social connect, social network login, social plugin, Vkontakte, LinkedIn
|
5 |
Requires at least: 2.0.2
|
6 |
Tested up to: 5.3
|
7 |
+
Stable tag: 7.3.2
|
8 |
License URI: http://miniorange.com/usecases/miniOrange_User_Agreement.pdf
|
9 |
|
10 |
+
Social Login with Google, Facebook, Apple, Twitter, Reddit, Vkontakte, LinkedIn and more. GDPR compliant. Social sharing and social comments. 24x7 Support.
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
+
Social Login enables social login, social sharing, social comments using social login apps like Google, Facebook, Twitter, Vkontakte, LinkedIn, Windows Live, Instagram, Amazon, Salesforce, Yahoo, WordPress, apple, disqus, pinterest, spotify, reddit, tumblr, twitch, vimeo, kakao, discord, dribbble, flickr, line, meetup, stackexchange, livejournal, snapchat, foursquare, teamsnap, naver, odnoklassniki.
|
15 |
|
16 |
= Free Social Login Features =
|
17 |
|
18 |
+
* Social Login with Facebook, Google, Twitter, Vkontakte, LinkedIn, Instagram, Amazon, Windows Live, Salesforce & Yahoo
|
19 |
* **NO SETUP required for default social login apps.**
|
20 |
+
* Setup your own social login application with APP ID and APP Secret for Facebook, Google, Twitter, Vkontakte, LinkedIn, Instagram, Amazon, Windows Live & Yahoo
|
21 |
* **Preview is available for Social Login icons**
|
22 |
* **Icon Customizations** - customize shape, theme, space & size of social login icons.
|
23 |
* **Profile completion** (username, email) - Prompt user for email & username if social login app doesn't return it. Email is verified with verification code.
|
36 |
* Share with social applications - Facebook, Twitter, Google+, Pinterest, Reddit, Vkontakte, Tumblr, StumbleUpon, LinkedIn, Pocket, Digg, Delicious, Odnoklassniki, Email, Print, Whatsapp
|
37 |
* **Icon Customizations** - customize shape, theme, space & size of social sharing icons.
|
38 |
* **Preview is available for Social Sharing icons**
|
|
|
39 |
* Add Social Comments using Facebook.
|
40 |
* Add social sharing icons on homepage, posts, feeds, content pages, WooCommerce product page etc.
|
41 |
* Add a horizontal social sharing widget.
|
44 |
|
45 |
= Premium Social Login Features =
|
46 |
|
47 |
+
* Social Login with Google, Facebook, Twitter, Vkontakte, LinkedIn, Windows Live, Instagram, Amazon, Salesforce, Yahoo, WordPress, apple, disqus, pinterest, spotify, reddit, tumblr, twitch, vimeo, kakao, discord, dribbble, flickr, line, meetup, stackexchange, livejournal, snapchat, foursquare, teamsnap, naver, odnoklassniki.
|
48 |
* GDPR compliant Social Login.
|
49 |
* **Account Linking** - Link social account to WordPress account
|
50 |
* **Woocommerce display options** - Enable social login icons on the Woocommerce Checkout, Login, Registration pages.
|
177 |
|
178 |
|
179 |
== Changelog ==
|
180 |
+
= 7.3.2 =
|
181 |
+
* Updated Yahoo API.
|
182 |
+
* Updated feedback on deactivation.
|
183 |
+
* Minor UI changes.
|
184 |
+
* Added a new social login plugin for woocommerce integration.
|
185 |
+
* Added auto as a paramater for width in shortcode of social login icons.
|
186 |
+
* Added Reddit, Foursquare, Snapchat, Teamsnap, Live Journal, Odnoklassniki, Naver.
|
187 |
+
|
188 |
= 7.3.1 =
|
189 |
* Instagram instructions updated with new API'S.
|
190 |
* Updated save and test configuration button.
|
689 |
* First version of Social Login, Social Sharing plugin.
|
690 |
|
691 |
== Upgrade Notice ==
|
692 |
+
= 7.3.2 =
|
693 |
+
* Updated Yahoo API.
|
694 |
+
* Updated feedback on deactivation.
|
695 |
+
* Minor UI changes.
|
696 |
+
* Added a new social login plugin for woocommerce integration.
|
697 |
+
* Added auto as a paramater for width in shortcode of social login icons.
|
698 |
+
* Added Reddit, Foursquare, Snapchat, Teamsnap, Live Journal, Odnoklassniki, Naver.
|
699 |
+
|
700 |
= 7.3.1 =
|
701 |
* Instagram instructions updated with new API'S.
|
702 |
* Updated save and test configuration button.
|
social_apps/amazon.php
CHANGED
@@ -17,8 +17,6 @@ class amazon
|
|
17 |
{
|
18 |
$appslist = maybe_unserialize(get_option('mo_openid_apps_list'));
|
19 |
$social_app_redirect_uri= get_social_app_redirect_uri('amazon');
|
20 |
-
mo_openid_start_session();
|
21 |
-
$_SESSION["appname"] = 'amazon';
|
22 |
$client_id = $appslist['amazon']['clientid'];
|
23 |
$scope = $appslist['amazon']['scope'];
|
24 |
$login_dialog_url = 'https://www.amazon.com/ap/oa?client_id=' . $client_id . '&scope=' . $scope . '&redirect_uri=' . $social_app_redirect_uri . '&response_type=code';
|
@@ -30,20 +28,14 @@ class amazon
|
|
30 |
{
|
31 |
$code = mo_openid_validate_code();
|
32 |
$social_app_redirect_uri = get_social_app_redirect_uri('amazon');
|
33 |
-
|
34 |
$appslist = maybe_unserialize(get_option('mo_openid_apps_list'));
|
35 |
$client_id = $appslist['amazon']['clientid'];
|
36 |
$client_secret = $appslist['amazon']['clientsecret'];
|
37 |
$access_token_uri = 'https://api.amazon.com/auth/o2/token';
|
38 |
$postData = 'grant_type=authorization_code&client_id='. $client_id .'&client_secret=' . $client_secret . '&code=' . $code . '&redirect_uri=' . $social_app_redirect_uri;
|
39 |
-
|
40 |
$access_token_json_output = mo_openid_get_access_token($postData, $access_token_uri,'amazon');
|
41 |
-
|
42 |
$access_token = isset($access_token_json_output['access_token']) ? $access_token_json_output['access_token'] : '';
|
43 |
-
mo_openid_start_session();
|
44 |
-
|
45 |
$profile_url = 'https://api.amazon.com/user/profile?access_token=' . $access_token;
|
46 |
-
|
47 |
$profile_json_output = mo_openid_get_social_app_data($access_token, $profile_url,'amazon');
|
48 |
|
49 |
//Test Configuration
|
17 |
{
|
18 |
$appslist = maybe_unserialize(get_option('mo_openid_apps_list'));
|
19 |
$social_app_redirect_uri= get_social_app_redirect_uri('amazon');
|
|
|
|
|
20 |
$client_id = $appslist['amazon']['clientid'];
|
21 |
$scope = $appslist['amazon']['scope'];
|
22 |
$login_dialog_url = 'https://www.amazon.com/ap/oa?client_id=' . $client_id . '&scope=' . $scope . '&redirect_uri=' . $social_app_redirect_uri . '&response_type=code';
|
28 |
{
|
29 |
$code = mo_openid_validate_code();
|
30 |
$social_app_redirect_uri = get_social_app_redirect_uri('amazon');
|
|
|
31 |
$appslist = maybe_unserialize(get_option('mo_openid_apps_list'));
|
32 |
$client_id = $appslist['amazon']['clientid'];
|
33 |
$client_secret = $appslist['amazon']['clientsecret'];
|
34 |
$access_token_uri = 'https://api.amazon.com/auth/o2/token';
|
35 |
$postData = 'grant_type=authorization_code&client_id='. $client_id .'&client_secret=' . $client_secret . '&code=' . $code . '&redirect_uri=' . $social_app_redirect_uri;
|
|
|
36 |
$access_token_json_output = mo_openid_get_access_token($postData, $access_token_uri,'amazon');
|
|
|
37 |
$access_token = isset($access_token_json_output['access_token']) ? $access_token_json_output['access_token'] : '';
|
|
|
|
|
38 |
$profile_url = 'https://api.amazon.com/user/profile?access_token=' . $access_token;
|
|
|
39 |
$profile_json_output = mo_openid_get_social_app_data($access_token, $profile_url,'amazon');
|
40 |
|
41 |
//Test Configuration
|
social_apps/facebook.php
CHANGED
@@ -15,8 +15,6 @@ class facebook
|
|
15 |
{
|
16 |
$appslist = maybe_unserialize(get_option('mo_openid_apps_list'));
|
17 |
$social_app_redirect_uri= get_social_app_redirect_uri('facebook');
|
18 |
-
mo_openid_start_session();
|
19 |
-
$_SESSION["appname"] = 'facebook';
|
20 |
$client_id = $appslist['facebook']['clientid'];
|
21 |
$scope = $appslist['facebook']['scope'];
|
22 |
$login_dialog_url = "https://www.facebook.com/v2.11/dialog/oauth?client_id=".$client_id. '&redirect_uri='. $social_app_redirect_uri .'&response_type=code&scope='.$scope;
|
@@ -34,15 +32,10 @@ class facebook
|
|
34 |
$client_secret = $appslist['facebook']['clientsecret'];
|
35 |
$access_token_uri = 'https://graph.facebook.com/v2.11/oauth/access_token';
|
36 |
$postData = 'client_id=' . $client_id . '&redirect_uri=' . $social_app_redirect_uri . '&client_secret=' . $client_secret . '&code=' . $code;
|
37 |
-
|
38 |
$access_token_json_output=mo_openid_get_access_token($postData,$access_token_uri,'facebook');
|
39 |
-
|
40 |
$access_token = isset( $access_token_json_output['access_token']) ? $access_token_json_output['access_token'] : '';
|
41 |
-
mo_openid_start_session();
|
42 |
-
|
43 |
$px = get_option('facebook_profile_pic_resolution')?get_option('facebook_profile_pic_resolution'):'180';
|
44 |
$profile_url ='https://graph.facebook.com/me/?fields=age_range,birthday,about,cover,currency,devices,education,email,favorite_athletes,favorite_teams,first_name,gender,hometown,inspirational_people,interested_in,is_verified,languages,last_name,link,locale,location,meeting_for,middle_name,name,name_format,political,public_key,quotes,relationship_status,religion,sports,timezone,updated_time,verified,website,work,friends,picture.height('.$px.')&access_token=' .$access_token;
|
45 |
-
|
46 |
$profile_json_output = mo_openid_get_social_app_data($access_token,$profile_url,'facebook');
|
47 |
|
48 |
//Test Configuration
|
15 |
{
|
16 |
$appslist = maybe_unserialize(get_option('mo_openid_apps_list'));
|
17 |
$social_app_redirect_uri= get_social_app_redirect_uri('facebook');
|
|
|
|
|
18 |
$client_id = $appslist['facebook']['clientid'];
|
19 |
$scope = $appslist['facebook']['scope'];
|
20 |
$login_dialog_url = "https://www.facebook.com/v2.11/dialog/oauth?client_id=".$client_id. '&redirect_uri='. $social_app_redirect_uri .'&response_type=code&scope='.$scope;
|
32 |
$client_secret = $appslist['facebook']['clientsecret'];
|
33 |
$access_token_uri = 'https://graph.facebook.com/v2.11/oauth/access_token';
|
34 |
$postData = 'client_id=' . $client_id . '&redirect_uri=' . $social_app_redirect_uri . '&client_secret=' . $client_secret . '&code=' . $code;
|
|
|
35 |
$access_token_json_output=mo_openid_get_access_token($postData,$access_token_uri,'facebook');
|
|
|
36 |
$access_token = isset( $access_token_json_output['access_token']) ? $access_token_json_output['access_token'] : '';
|
|
|
|
|
37 |
$px = get_option('facebook_profile_pic_resolution')?get_option('facebook_profile_pic_resolution'):'180';
|
38 |
$profile_url ='https://graph.facebook.com/me/?fields=age_range,birthday,about,cover,currency,devices,education,email,favorite_athletes,favorite_teams,first_name,gender,hometown,inspirational_people,interested_in,is_verified,languages,last_name,link,locale,location,meeting_for,middle_name,name,name_format,political,public_key,quotes,relationship_status,religion,sports,timezone,updated_time,verified,website,work,friends,picture.height('.$px.')&access_token=' .$access_token;
|
|
|
39 |
$profile_json_output = mo_openid_get_social_app_data($access_token,$profile_url,'facebook');
|
40 |
|
41 |
//Test Configuration
|
social_apps/foursquare.php
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
|
4 |
+
class foursquare
|
5 |
+
{
|
6 |
+
public $color="#FE5478";
|
7 |
+
}
|
social_apps/google.php
CHANGED
@@ -16,8 +16,6 @@ class google
|
|
16 |
{
|
17 |
$appslist = maybe_unserialize(get_option('mo_openid_apps_list'));
|
18 |
$social_app_redirect_uri= get_social_app_redirect_uri('google');
|
19 |
-
mo_openid_start_session();
|
20 |
-
$_SESSION["appname"] = 'google';
|
21 |
$client_id = $appslist['google']['clientid'];
|
22 |
$scope = $appslist['google']['scope'];
|
23 |
$login_dialog_url = 'https://accounts.google.com/o/oauth2/auth?redirect_uri=' .$social_app_redirect_uri .'&response_type=code&client_id=' .$client_id .'&scope='.$scope.'&access_type=offline';
|
@@ -35,14 +33,9 @@ class google
|
|
35 |
$client_secret = $appslist['google']['clientsecret'];
|
36 |
$access_token_uri = 'https://accounts.google.com/o/oauth2/token';
|
37 |
$postData = 'code=' .$code .'&client_id=' .$client_id .'&client_secret=' . $client_secret . '&redirect_uri=' . $social_app_redirect_uri . '&grant_type=authorization_code';
|
38 |
-
|
39 |
$access_token_json_output = mo_openid_get_access_token($postData, $access_token_uri,'google');
|
40 |
-
|
41 |
$access_token = isset($access_token_json_output['access_token']) ? $access_token_json_output['access_token'] : '';
|
42 |
-
mo_openid_start_session();
|
43 |
-
|
44 |
$profile_url = 'https://www.googleapis.com/oauth2/v1/userinfo?access_token=' .$access_token;
|
45 |
-
|
46 |
$profile_json_output = mo_openid_get_social_app_data($access_token, $profile_url, 'google');
|
47 |
|
48 |
//Test Configuration
|
16 |
{
|
17 |
$appslist = maybe_unserialize(get_option('mo_openid_apps_list'));
|
18 |
$social_app_redirect_uri= get_social_app_redirect_uri('google');
|
|
|
|
|
19 |
$client_id = $appslist['google']['clientid'];
|
20 |
$scope = $appslist['google']['scope'];
|
21 |
$login_dialog_url = 'https://accounts.google.com/o/oauth2/auth?redirect_uri=' .$social_app_redirect_uri .'&response_type=code&client_id=' .$client_id .'&scope='.$scope.'&access_type=offline';
|
33 |
$client_secret = $appslist['google']['clientsecret'];
|
34 |
$access_token_uri = 'https://accounts.google.com/o/oauth2/token';
|
35 |
$postData = 'code=' .$code .'&client_id=' .$client_id .'&client_secret=' . $client_secret . '&redirect_uri=' . $social_app_redirect_uri . '&grant_type=authorization_code';
|
|
|
36 |
$access_token_json_output = mo_openid_get_access_token($postData, $access_token_uri,'google');
|
|
|
37 |
$access_token = isset($access_token_json_output['access_token']) ? $access_token_json_output['access_token'] : '';
|
|
|
|
|
38 |
$profile_url = 'https://www.googleapis.com/oauth2/v1/userinfo?access_token=' .$access_token;
|
|
|
39 |
$profile_json_output = mo_openid_get_social_app_data($access_token, $profile_url, 'google');
|
40 |
|
41 |
//Test Configuration
|
social_apps/instagram.php
CHANGED
@@ -24,8 +24,6 @@ class instagram
|
|
24 |
{
|
25 |
$appslist = maybe_unserialize(get_option('mo_openid_apps_list'));
|
26 |
$social_app_redirect_uri= get_social_app_redirect_uri('instagram');
|
27 |
-
mo_openid_start_session();
|
28 |
-
$_SESSION["appname"] = 'instagram';
|
29 |
$client_id = $appslist['instagram']['clientid'];
|
30 |
$scope = $appslist['instagram']['scope'];
|
31 |
$login_dialog_url = 'https://api.instagram.com/oauth/authorize/?client_id=' . $client_id . '&redirect_uri=' . $social_app_redirect_uri . '&scope='.$scope.'&response_type=code';
|
@@ -45,12 +43,8 @@ class instagram
|
|
45 |
$postData = 'client_id='. $client_id .'&client_secret=' . $client_secret . '&grant_type=authorization_code&redirect_uri=' . $social_app_redirect_uri.'&code=' . $code;
|
46 |
$access_token_json_output = mo_openid_get_access_token($postData, $access_token_uri,'instagram');
|
47 |
$access_token = isset($access_token_json_output['access_token']) ? $access_token_json_output['access_token'] : '';
|
48 |
-
mo_openid_start_session();
|
49 |
-
|
50 |
$profile_url = 'https://graph.instagram.com/me?fields=id,username&access_token='.$access_token;
|
51 |
-
|
52 |
$profile_json_output = mo_openid_get_social_app_data($access_token, $profile_url,'amazon');
|
53 |
-
mo_openid_start_session();
|
54 |
|
55 |
//Test Configuration
|
56 |
if (is_user_logged_in() && get_option('mo_openid_test_configuration') == 1) {
|
24 |
{
|
25 |
$appslist = maybe_unserialize(get_option('mo_openid_apps_list'));
|
26 |
$social_app_redirect_uri= get_social_app_redirect_uri('instagram');
|
|
|
|
|
27 |
$client_id = $appslist['instagram']['clientid'];
|
28 |
$scope = $appslist['instagram']['scope'];
|
29 |
$login_dialog_url = 'https://api.instagram.com/oauth/authorize/?client_id=' . $client_id . '&redirect_uri=' . $social_app_redirect_uri . '&scope='.$scope.'&response_type=code';
|
43 |
$postData = 'client_id='. $client_id .'&client_secret=' . $client_secret . '&grant_type=authorization_code&redirect_uri=' . $social_app_redirect_uri.'&code=' . $code;
|
44 |
$access_token_json_output = mo_openid_get_access_token($postData, $access_token_uri,'instagram');
|
45 |
$access_token = isset($access_token_json_output['access_token']) ? $access_token_json_output['access_token'] : '';
|
|
|
|
|
46 |
$profile_url = 'https://graph.instagram.com/me?fields=id,username&access_token='.$access_token;
|
|
|
47 |
$profile_json_output = mo_openid_get_social_app_data($access_token, $profile_url,'amazon');
|
|
|
48 |
|
49 |
//Test Configuration
|
50 |
if (is_user_logged_in() && get_option('mo_openid_test_configuration') == 1) {
|
social_apps/linkedin.php
CHANGED
@@ -16,8 +16,6 @@ class linkedin
|
|
16 |
{
|
17 |
$appslist = maybe_unserialize(get_option('mo_openid_apps_list'));
|
18 |
$social_app_redirect_uri= get_social_app_redirect_uri('linkedin');
|
19 |
-
mo_openid_start_session();
|
20 |
-
$_SESSION["appname"] = 'linkedin';
|
21 |
$client_id = $appslist['linkedin']['clientid'];
|
22 |
$scope = $appslist['linkedin']['scope'];
|
23 |
$login_dialog_url ='https://www.linkedin.com/oauth/v2/authorization?response_type=code&client_id='.$client_id.'&redirect_uri=' . $social_app_redirect_uri .'&state=fooobar&scope=' . $scope;
|
@@ -39,7 +37,6 @@ class linkedin
|
|
39 |
$access_token_json_output = mo_openid_get_access_token($postData, $access_token_uri,'linkedin');
|
40 |
|
41 |
$access_token = isset($access_token_json_output['access_token']) ? $access_token_json_output['access_token'] : '';
|
42 |
-
mo_openid_start_session();
|
43 |
|
44 |
$profile_url_email = 'https://api.linkedin.com/v2/emailAddress?q=members&projection=(elements*(handle~))';
|
45 |
$profile_url = 'https://api.linkedin.com/v2/me?projection=(id,firstName,lastName,emailAddress,profilePicture(displayImage~:playableStreams))';
|
16 |
{
|
17 |
$appslist = maybe_unserialize(get_option('mo_openid_apps_list'));
|
18 |
$social_app_redirect_uri= get_social_app_redirect_uri('linkedin');
|
|
|
|
|
19 |
$client_id = $appslist['linkedin']['clientid'];
|
20 |
$scope = $appslist['linkedin']['scope'];
|
21 |
$login_dialog_url ='https://www.linkedin.com/oauth/v2/authorization?response_type=code&client_id='.$client_id.'&redirect_uri=' . $social_app_redirect_uri .'&state=fooobar&scope=' . $scope;
|
37 |
$access_token_json_output = mo_openid_get_access_token($postData, $access_token_uri,'linkedin');
|
38 |
|
39 |
$access_token = isset($access_token_json_output['access_token']) ? $access_token_json_output['access_token'] : '';
|
|
|
40 |
|
41 |
$profile_url_email = 'https://api.linkedin.com/v2/emailAddress?q=members&projection=(elements*(handle~))';
|
42 |
$profile_url = 'https://api.linkedin.com/v2/me?projection=(id,firstName,lastName,emailAddress,profilePicture(displayImage~:playableStreams))';
|
social_apps/livejournal.php
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
|
4 |
+
class livejournal
|
5 |
+
{
|
6 |
+
public $color="#306599";
|
7 |
+
}
|
social_apps/mo_openid_configured_apps_funct.php
CHANGED
@@ -200,9 +200,7 @@ function mo_openid_get_wp_style(){
|
|
200 |
|
201 |
function mo_openid_insert_query($social_app_name,$user_email,$userid,$social_app_identifier){
|
202 |
// check if none of the column values are empty
|
203 |
-
|
204 |
if(!empty($social_app_name) && !empty($user_email) && !empty($userid) && !empty($social_app_identifier)){
|
205 |
-
|
206 |
date_default_timezone_set('Asia/Kolkata');
|
207 |
$date = date('Y-m-d H:i:s');
|
208 |
|
@@ -236,20 +234,6 @@ function mo_openid_insert_query($social_app_name,$user_email,$userid,$social_app
|
|
236 |
}
|
237 |
}
|
238 |
|
239 |
-
function mo_openid_start_session_login($session_values){
|
240 |
-
mo_openid_start_session();
|
241 |
-
$_SESSION['mo_login'] = true;
|
242 |
-
$_SESSION['registered_user']='1';
|
243 |
-
$_SESSION['username'] = isset($session_values['username']) ? $session_values['username'] : '';
|
244 |
-
$_SESSION['user_email'] = isset($session_values['user_email']) ? $session_values['user_email'] : '';
|
245 |
-
$_SESSION['user_full_name'] = isset($session_values['user_full_name']) ? $session_values['user_full_name'] : '';
|
246 |
-
$_SESSION['first_name'] = isset($session_values['first_name']) ? $session_values['first_name'] : '';
|
247 |
-
$_SESSION['last_name'] = isset($session_values['last_name']) ? $session_values['last_name'] : '';
|
248 |
-
$_SESSION['user_url'] = isset($session_values['user_url']) ? $session_values['user_url'] : '';
|
249 |
-
$_SESSION['user_picture'] = isset($session_values['user_picture']) ? $session_values['user_picture'] : '';
|
250 |
-
$_SESSION['social_app_name'] = isset($session_values['social_app_name']) ? $session_values['social_app_name'] : '';
|
251 |
-
$_SESSION['social_user_id'] = isset($session_values['social_user_id']) ? $session_values['social_user_id'] : '';
|
252 |
-
}
|
253 |
function mo_openid_login_user($linked_email_id,$user_id,$user,$user_picture,$user_mod_msg){
|
254 |
if (get_option('moopenid_social_login_avatar') && isset($user_picture))
|
255 |
update_user_meta($user_id, 'moopenid_user_avatar', $user_picture);
|
@@ -279,8 +263,11 @@ function mo_openid_login_user($linked_email_id,$user_id,$user,$user_picture,$use
|
|
279 |
exit();
|
280 |
}
|
281 |
}
|
282 |
-
else
|
|
|
|
|
283 |
do_action('wp_login', $user->user_login, $user);
|
|
|
284 |
exit;
|
285 |
}
|
286 |
|
200 |
|
201 |
function mo_openid_insert_query($social_app_name,$user_email,$userid,$social_app_identifier){
|
202 |
// check if none of the column values are empty
|
|
|
203 |
if(!empty($social_app_name) && !empty($user_email) && !empty($userid) && !empty($social_app_identifier)){
|
|
|
204 |
date_default_timezone_set('Asia/Kolkata');
|
205 |
$date = date('Y-m-d H:i:s');
|
206 |
|
234 |
}
|
235 |
}
|
236 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
237 |
function mo_openid_login_user($linked_email_id,$user_id,$user,$user_picture,$user_mod_msg){
|
238 |
if (get_option('moopenid_social_login_avatar') && isset($user_picture))
|
239 |
update_user_meta($user_id, 'moopenid_user_avatar', $user_picture);
|
263 |
exit();
|
264 |
}
|
265 |
}
|
266 |
+
else {
|
267 |
+
wp_set_current_user($user_id);
|
268 |
+
wp_set_auth_cookie($user_id);
|
269 |
do_action('wp_login', $user->user_login, $user);
|
270 |
+
}
|
271 |
exit;
|
272 |
}
|
273 |
|
social_apps/naver.php
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
|
4 |
+
class naver
|
5 |
+
{
|
6 |
+
public $color="#1DC800";
|
7 |
+
}
|
social_apps/odnoklassniki.php
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
|
4 |
+
class odnoklassniki
|
5 |
+
{
|
6 |
+
public $color="#F58220";
|
7 |
+
}
|
social_apps/reddit.php
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
|
4 |
+
class reddit
|
5 |
+
{
|
6 |
+
public $color="#FF4401";
|
7 |
+
}
|
social_apps/snapchat.php
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
|
4 |
+
class snapchat
|
5 |
+
{
|
6 |
+
public $color="#FFFB00";
|
7 |
+
}
|
social_apps/teamsnap.php
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
|
4 |
+
class teamsnap
|
5 |
+
{
|
6 |
+
public $color="#FF6C0B";
|
7 |
+
}
|
social_apps/twitter.php
CHANGED
@@ -16,8 +16,6 @@ class twitter
|
|
16 |
{
|
17 |
$appslist = maybe_unserialize(get_option('mo_openid_apps_list'));
|
18 |
$social_app_redirect_uri= get_social_app_redirect_uri('twitter');
|
19 |
-
mo_openid_start_session();
|
20 |
-
$_SESSION["appname"] = 'twitter';
|
21 |
$client_id = $appslist['twitter']['clientid'];
|
22 |
$client_secret = $appslist['twitter']['clientsecret'];
|
23 |
$twiter_getrequest_object = new Mo_Openid_Twitter_OAuth($client_id,$client_secret); //creating the object of Mo_Openid_Twitter_OAuth class
|
@@ -55,8 +53,6 @@ class twitter
|
|
55 |
$screen_name1 = isset($screen_name[1]) ? $screen_name[1] : '';
|
56 |
$profile_json_output = $twitter_get_profile_signature_object->mo_twitter_get_profile_signature($oauth_access_token1,$oauth_token_secret1,$screen_name1);
|
57 |
|
58 |
-
mo_openid_start_session();
|
59 |
-
|
60 |
//Test Configuration
|
61 |
if (is_user_logged_in() && get_option('mo_openid_test_configuration') == 1) {
|
62 |
mo_openid_app_test_config($profile_json_output);
|
@@ -262,7 +258,6 @@ class Mo_Openid_Twitter_OAuth
|
|
262 |
|
263 |
$get_response = wp_remote_get($url,$args);
|
264 |
$response = $get_response['body'];
|
265 |
-
mo_openid_start_session();
|
266 |
|
267 |
$dirs = explode('&', $response);
|
268 |
$dirs1 = explode('=', $dirs[0]);
|
16 |
{
|
17 |
$appslist = maybe_unserialize(get_option('mo_openid_apps_list'));
|
18 |
$social_app_redirect_uri= get_social_app_redirect_uri('twitter');
|
|
|
|
|
19 |
$client_id = $appslist['twitter']['clientid'];
|
20 |
$client_secret = $appslist['twitter']['clientsecret'];
|
21 |
$twiter_getrequest_object = new Mo_Openid_Twitter_OAuth($client_id,$client_secret); //creating the object of Mo_Openid_Twitter_OAuth class
|
53 |
$screen_name1 = isset($screen_name[1]) ? $screen_name[1] : '';
|
54 |
$profile_json_output = $twitter_get_profile_signature_object->mo_twitter_get_profile_signature($oauth_access_token1,$oauth_token_secret1,$screen_name1);
|
55 |
|
|
|
|
|
56 |
//Test Configuration
|
57 |
if (is_user_logged_in() && get_option('mo_openid_test_configuration') == 1) {
|
58 |
mo_openid_app_test_config($profile_json_output);
|
258 |
|
259 |
$get_response = wp_remote_get($url,$args);
|
260 |
$response = $get_response['body'];
|
|
|
261 |
|
262 |
$dirs = explode('&', $response);
|
263 |
$dirs1 = explode('=', $dirs[0]);
|
social_apps/vkontakte.php
CHANGED
@@ -16,7 +16,7 @@ class vkontakte
|
|
16 |
$this->instructions = "Go to <a href=\"https://new.vk.com/dev\" target=\"_blank\">https://new.vk.com/dev</a> and sign in with your vkontakte account.##Go to <strong>My Apps</strong> and click on <strong>Create an Application</strong>.##Provide a name for your app.##Select <strong>Website</strong> as the <strong>Category</strong>. Select <b><code id='4'>" . get_option('siteurl') . "</code><i style= \"width: 11px;height: 9px;padding-left:2px;padding-top:3px\" class=\"mofa mofa-fw mofa-lg mofa-copy mo_copy mo_copytooltip\" onclick=\"copyToClipboard(this, '#4', '#shortcode_url_copy')\"><span id=\"shortcode_url_copy\" class=\"mo_copytooltiptext\">Copy to Clipboard</span></i></b> as <strong>Site address</strong>##Enter the <b><code id='5'>" . str_replace('https://', '', get_option("siteurl")) . "</code><i style= \"width: 11px;height: 9px;padding-left:2px;padding-top:3px\" class=\"mofa mofa-fw mofa-lg mofa-copy mo_copy mo_copytooltip\" onclick=\"copyToClipboard(this, '#5', '#shortcode_url1_copy')\"><span id=\"shortcode_url1_copy\" class=\"mo_copytooltiptext\">Copy to Clipboard</span></i></b> as Base domain.##Click on <strong>Connect Site</strong> to create the app.##You will be required to confirm your request with a code send via SMS.##Once the application is created, select <strong>Settings</strong> in the left nav.##Enter the <b><code id='6'>" . get_social_app_redirect_uri('vkontakte') . "</code><i style= \"width: 11px;height: 9px;padding-left:2px;padding-top:3px\" class=\"mofa mofa-fw mofa-lg mofa-copy mo_copy mo_copytooltip\" onclick=\"copyToClipboard(this, '#6', '#shortcode_url2_copy')\"><span id=\"shortcode_url2_copy\" class=\"mo_copytooltiptext\">Copy to Clipboard</span></i></b> as <b>Authorized redirect URI.</b>##Click on Save.##From the top of the same page, copy the <b>Application ID</b> (This is your <b>Client ID </b>) and <b>Secure Key</b> (This is your <b>Client Secret</b>). Paste them into the fields above.##Click on the Save settings button.##Go to Social Login tab to configure the display as well as other login settings.";
|
17 |
}
|
18 |
else{
|
19 |
-
$this->instructions= "<strong style='color: red;font-weight: bold'><br>You have selected plain permalink and vkontakte
|
20 |
}
|
21 |
}
|
22 |
|
@@ -24,8 +24,6 @@ class vkontakte
|
|
24 |
{
|
25 |
$appslist = maybe_unserialize(get_option('mo_openid_apps_list'));
|
26 |
$social_app_redirect_uri= get_social_app_redirect_uri('vkontakte');
|
27 |
-
mo_openid_start_session();
|
28 |
-
$_SESSION["appname"] = 'vkontakte';
|
29 |
$client_id = $appslist['vkontakte']['clientid'];
|
30 |
$scope = $appslist['vkontakte']['scope'];
|
31 |
$login_dialog_url ='https://oauth.vk.com/authorize?client_id='.$client_id.'&scope='.$scope.'&response_type=code&redirect_uri=' . $social_app_redirect_uri .'&v=5.69';
|
@@ -43,14 +41,10 @@ class vkontakte
|
|
43 |
$client_secret = $appslist['vkontakte']['clientsecret'];
|
44 |
$access_token_uri = 'https://oauth.vk.com/access_token';
|
45 |
$postData = 'client_id='. $client_id .'&client_secret=' . $client_secret . '&code=' . $code . '&redirect_uri=' . $social_app_redirect_uri.'&v=5.69';
|
46 |
-
|
47 |
$access_token_json_output = mo_openid_get_access_token($postData, $access_token_uri,'vkontakte');
|
48 |
$access_token = isset($access_token_json_output['access_token']) ? $access_token_json_output['access_token'] : '';
|
49 |
$userid = isset($access_token_json_output['user_id']) ? $access_token_json_output['user_id'] : '';
|
50 |
-
mo_openid_start_session();
|
51 |
-
|
52 |
$profile_url = 'https://api.vk.com/method/users.get?uids='. $userid . '&fields=uid,hash,occupation,photos,first_name,last_name,nickname,domain,site,education,relation,timezone,screen_name,sex,bdate,city,country,timezone,photo,lists,contacts,universities,schools,status,about&access_token=' . $access_token.'&v=5.69';
|
53 |
-
|
54 |
$profile_json_output = mo_openid_get_social_app_data($access_token, $profile_url,'vkontakte');
|
55 |
|
56 |
//Test Configuration
|
16 |
$this->instructions = "Go to <a href=\"https://new.vk.com/dev\" target=\"_blank\">https://new.vk.com/dev</a> and sign in with your vkontakte account.##Go to <strong>My Apps</strong> and click on <strong>Create an Application</strong>.##Provide a name for your app.##Select <strong>Website</strong> as the <strong>Category</strong>. Select <b><code id='4'>" . get_option('siteurl') . "</code><i style= \"width: 11px;height: 9px;padding-left:2px;padding-top:3px\" class=\"mofa mofa-fw mofa-lg mofa-copy mo_copy mo_copytooltip\" onclick=\"copyToClipboard(this, '#4', '#shortcode_url_copy')\"><span id=\"shortcode_url_copy\" class=\"mo_copytooltiptext\">Copy to Clipboard</span></i></b> as <strong>Site address</strong>##Enter the <b><code id='5'>" . str_replace('https://', '', get_option("siteurl")) . "</code><i style= \"width: 11px;height: 9px;padding-left:2px;padding-top:3px\" class=\"mofa mofa-fw mofa-lg mofa-copy mo_copy mo_copytooltip\" onclick=\"copyToClipboard(this, '#5', '#shortcode_url1_copy')\"><span id=\"shortcode_url1_copy\" class=\"mo_copytooltiptext\">Copy to Clipboard</span></i></b> as Base domain.##Click on <strong>Connect Site</strong> to create the app.##You will be required to confirm your request with a code send via SMS.##Once the application is created, select <strong>Settings</strong> in the left nav.##Enter the <b><code id='6'>" . get_social_app_redirect_uri('vkontakte') . "</code><i style= \"width: 11px;height: 9px;padding-left:2px;padding-top:3px\" class=\"mofa mofa-fw mofa-lg mofa-copy mo_copy mo_copytooltip\" onclick=\"copyToClipboard(this, '#6', '#shortcode_url2_copy')\"><span id=\"shortcode_url2_copy\" class=\"mo_copytooltiptext\">Copy to Clipboard</span></i></b> as <b>Authorized redirect URI.</b>##Click on Save.##From the top of the same page, copy the <b>Application ID</b> (This is your <b>Client ID </b>) and <b>Secure Key</b> (This is your <b>Client Secret</b>). Paste them into the fields above.##Click on the Save settings button.##Go to Social Login tab to configure the display as well as other login settings.";
|
17 |
}
|
18 |
else{
|
19 |
+
$this->instructions= "<strong style='color: red;font-weight: bold'><br>You have selected plain permalink and vkontakte does not support it.</strong><br><br> Please change the permalink to continue further.Follow the steps given below:<br>1. Go to settings from the left panel and select the permalinks option.<br>2. Plain permalink is selected ,so please select any other permalink and click on save button.<br> <strong class='mo_openid_note_style' style='color: red;font-weight: bold'> When you will change the permalink ,then you have to re-configure all the custom apps because that will change the redirect URL.</strong>";
|
20 |
}
|
21 |
}
|
22 |
|
24 |
{
|
25 |
$appslist = maybe_unserialize(get_option('mo_openid_apps_list'));
|
26 |
$social_app_redirect_uri= get_social_app_redirect_uri('vkontakte');
|
|
|
|
|
27 |
$client_id = $appslist['vkontakte']['clientid'];
|
28 |
$scope = $appslist['vkontakte']['scope'];
|
29 |
$login_dialog_url ='https://oauth.vk.com/authorize?client_id='.$client_id.'&scope='.$scope.'&response_type=code&redirect_uri=' . $social_app_redirect_uri .'&v=5.69';
|
41 |
$client_secret = $appslist['vkontakte']['clientsecret'];
|
42 |
$access_token_uri = 'https://oauth.vk.com/access_token';
|
43 |
$postData = 'client_id='. $client_id .'&client_secret=' . $client_secret . '&code=' . $code . '&redirect_uri=' . $social_app_redirect_uri.'&v=5.69';
|
|
|
44 |
$access_token_json_output = mo_openid_get_access_token($postData, $access_token_uri,'vkontakte');
|
45 |
$access_token = isset($access_token_json_output['access_token']) ? $access_token_json_output['access_token'] : '';
|
46 |
$userid = isset($access_token_json_output['user_id']) ? $access_token_json_output['user_id'] : '';
|
|
|
|
|
47 |
$profile_url = 'https://api.vk.com/method/users.get?uids='. $userid . '&fields=uid,hash,occupation,photos,first_name,last_name,nickname,domain,site,education,relation,timezone,screen_name,sex,bdate,city,country,timezone,photo,lists,contacts,universities,schools,status,about&access_token=' . $access_token.'&v=5.69';
|
|
|
48 |
$profile_json_output = mo_openid_get_social_app_data($access_token, $profile_url,'vkontakte');
|
49 |
|
50 |
//Test Configuration
|
social_apps/windowslive.php
CHANGED
@@ -23,8 +23,6 @@ class windowslive
|
|
23 |
{
|
24 |
$appslist = maybe_unserialize(get_option('mo_openid_apps_list'));
|
25 |
$social_app_redirect_uri = get_social_app_redirect_uri('windowslive');
|
26 |
-
mo_openid_start_session();
|
27 |
-
$_SESSION["appname"] = 'windowslive';
|
28 |
$client_id = $appslist['windowslive']['clientid'];
|
29 |
$scope = $appslist['windowslive']['scope'];
|
30 |
$login_dialog_url = 'https://login.live.com/oauth20_authorize.srf?client_id=' . $client_id . '&scope=' . $scope . '&response_type=code&redirect_uri=' . $social_app_redirect_uri;
|
@@ -46,10 +44,7 @@ class windowslive
|
|
46 |
$postData = 'grant_type=authorization_code&client_id=' .$client_id .'&redirect_uri='. $social_app_redirect_uri .'&code='.$code .'&client_secret='. $client_secret;
|
47 |
$access_token_json_output = mo_openid_get_access_token($postData, $access_token_uri,'windowslive');
|
48 |
$access_token = isset($access_token_json_output['access_token']) ? $access_token_json_output['access_token'] : '';
|
49 |
-
mo_openid_start_session();
|
50 |
-
|
51 |
$profile_url = 'https://apis.live.net/v5.0/me?access_token=' .$access_token;
|
52 |
-
|
53 |
$profile_json_output = mo_openid_get_social_app_data($access_token, $profile_url,'windowslive');
|
54 |
|
55 |
//Test Configuration
|
23 |
{
|
24 |
$appslist = maybe_unserialize(get_option('mo_openid_apps_list'));
|
25 |
$social_app_redirect_uri = get_social_app_redirect_uri('windowslive');
|
|
|
|
|
26 |
$client_id = $appslist['windowslive']['clientid'];
|
27 |
$scope = $appslist['windowslive']['scope'];
|
28 |
$login_dialog_url = 'https://login.live.com/oauth20_authorize.srf?client_id=' . $client_id . '&scope=' . $scope . '&response_type=code&redirect_uri=' . $social_app_redirect_uri;
|
44 |
$postData = 'grant_type=authorization_code&client_id=' .$client_id .'&redirect_uri='. $social_app_redirect_uri .'&code='.$code .'&client_secret='. $client_secret;
|
45 |
$access_token_json_output = mo_openid_get_access_token($postData, $access_token_uri,'windowslive');
|
46 |
$access_token = isset($access_token_json_output['access_token']) ? $access_token_json_output['access_token'] : '';
|
|
|
|
|
47 |
$profile_url = 'https://apis.live.net/v5.0/me?access_token=' .$access_token;
|
|
|
48 |
$profile_json_output = mo_openid_get_social_app_data($access_token, $profile_url,'windowslive');
|
49 |
|
50 |
//Test Configuration
|
social_apps/yahoo.php
CHANGED
@@ -4,23 +4,25 @@
|
|
4 |
class yahoo
|
5 |
{
|
6 |
public $color="#400092";
|
7 |
-
public $scope="";
|
8 |
public $video_url="https://www.youtube.com/embed/LVPqnIicAZQ";
|
9 |
public $instructions;
|
10 |
public function __construct()
|
11 |
{
|
12 |
-
|
13 |
-
|
|
|
|
|
|
|
|
|
14 |
}
|
15 |
|
16 |
function mo_openid_get_app_code()
|
17 |
{
|
18 |
$appslist = maybe_unserialize(get_option('mo_openid_apps_list'));
|
19 |
$social_app_redirect_uri= get_social_app_redirect_uri('yahoo');
|
20 |
-
mo_openid_start_session();
|
21 |
-
$_SESSION["appname"] = 'yahoo';
|
22 |
$client_id = $appslist['yahoo']['clientid'];
|
23 |
-
$login_dialog_url= 'https://api.login.yahoo.com/oauth2/request_auth?client_id='
|
24 |
header('Location:'. $login_dialog_url);
|
25 |
exit;
|
26 |
}
|
@@ -29,21 +31,14 @@ class yahoo
|
|
29 |
{
|
30 |
$code = mo_openid_validate_code();
|
31 |
$social_app_redirect_uri = get_social_app_redirect_uri('yahoo');
|
32 |
-
|
33 |
$appslist = maybe_unserialize(get_option('mo_openid_apps_list'));
|
34 |
$client_id = $appslist['yahoo']['clientid'];
|
35 |
$client_secret = $appslist['yahoo']['clientsecret'];
|
36 |
$access_token_uri = 'https://api.login.yahoo.com/oauth2/get_token';
|
37 |
-
$postData = '
|
38 |
-
|
39 |
$access_token_json_output = mo_openid_get_access_token($postData, $access_token_uri,'yahoo');
|
40 |
-
|
41 |
$access_token = isset($access_token_json_output['access_token']) ? $access_token_json_output['access_token'] : '';
|
42 |
-
|
43 |
-
|
44 |
-
$guid = $access_token_json_output['xoauth_yahoo_guid'];
|
45 |
-
$profile_url = 'https://social.yahooapis.com/v1/user/'.$guid.'/profile?format=json';
|
46 |
-
|
47 |
$profile_json_output = mo_openid_get_social_app_data($access_token, $profile_url,'yahoo');
|
48 |
|
49 |
//Test Configuration
|
@@ -55,27 +50,14 @@ class yahoo
|
|
55 |
$first_name = $last_name = $email = $user_name = $user_url = $user_picture = $social_user_id = '';
|
56 |
$location_city = $location_country = $about_me = $company_name = $age = $gender = $friend_nos = '';
|
57 |
|
58 |
-
if(isset($profile_json_output['
|
59 |
-
$user_name = isset( $profile_json_output['
|
60 |
-
|
61 |
-
|
62 |
-
$
|
63 |
-
}
|
64 |
-
if(isset($profile_json_output['profile']['profileUrl'])){
|
65 |
-
$user_url = isset( $profile_json_output['profile']['profileUrl']) ? $profile_json_output['profile']['profileUrl'] : '';
|
66 |
-
}
|
67 |
-
if(isset($profile_json_output['profile']['givenName'])){
|
68 |
-
$first_name = isset( $profile_json_output['profile']['givenName']) ? $profile_json_output['profile']['givenName'] : '';
|
69 |
-
}
|
70 |
-
if(isset($profile_json_output['profile']['familyName'])){
|
71 |
-
$last_name = isset( $profile_json_output['profile']['familyName']) ? $profile_json_output['profile']['familyName'] : '';
|
72 |
-
}
|
73 |
-
if(isset($profile_json_output['profile']['emails'][0]['handle'])){
|
74 |
-
$email = isset( $profile_json_output['profile']['emails'][0]['handle']) ? $profile_json_output['profile']['emails'][0]['handle'] : '';
|
75 |
-
}
|
76 |
-
if(isset($profile_json_output['profile']['guid'])){
|
77 |
-
$social_user_id=isset( $profile_json_output['profile']['guid']) ? $profile_json_output['profile']['guid'] : '';
|
78 |
}
|
|
|
|
|
79 |
|
80 |
$appuserdetails = array(
|
81 |
'first_name' => $first_name,
|
4 |
class yahoo
|
5 |
{
|
6 |
public $color="#400092";
|
7 |
+
public $scope="read";
|
8 |
public $video_url="https://www.youtube.com/embed/LVPqnIicAZQ";
|
9 |
public $instructions;
|
10 |
public function __construct()
|
11 |
{
|
12 |
+
if (get_option('permalink_structure') !== "") {
|
13 |
+
$this->site_url = get_option('siteurl');
|
14 |
+
$this->instructions = "Go to <a href=\"https://developer.yahoo.com\" target=\"_blank\">https://developer.yahoo.com</a> Sign in with your yahoo account and select Apps from the menubar.##On the page, Click on the <strong>Create an App</strong> button.##Enter <strong>Application Name</strong> and select <strong>Application Type</strong> as <strong>Web Application</strong>.##Enter <b><code id='13'>" . get_option('siteurl') . "</code><i style= \"width: 11px;height: 9px;padding-left:2px;padding-top:3px\" class=\"mofa mofa-fw mofa-lg mofa-copy mo_copy mo_copytooltip\" onclick=\"copyToClipboard(this, '#13', '#shortcode_url_copy')\"><span id=\"shortcode_url_copy\" class=\"mo_copytooltiptext\">Copy to Clipboard</span></i></b> in the <strong>Home Page URL</strong>.##Enter <b><code id='14'>" . mo_get_permalink('yahoo') . "</code><i style= \"width: 11px;height: 9px;padding-left:2px;padding-top:3px\" class=\"mofa mofa-fw mofa-lg mofa-copy mo_copy mo_copytooltip\" onclick=\"copyToClipboard(this, '#14', '#shortcode_url1_copy')\"><span id=\"shortcode_url1_copy\" class=\"mo_copytooltiptext\">Copy to Clipboard</span></i></b></b> in <b>Callback Domain</b>##Select all <b>API Permissions</b>.##Click on <strong>Create App</strong>.##Copy the <b>Client ID</b> and <b>Client Secret</b> from this page and Paste them into the fields above.##Keep <b>Scope</b> blank. ##Click on the <b>Save settings</b> button.</li><li>Go to Social Login tab to configure the display as well as other login settings";
|
15 |
+
}
|
16 |
+
else
|
17 |
+
$this->instructions= "<strong style='color: red;font-weight: bold'><br>You have selected plain permalink and Yahoo does not support it.</strong><br><br> Please change the permalink to continue further.Follow the steps given below:<br>1. Go to settings from the left panel and select the permalinks option.<br>2. Plain permalink is selected ,so please select any other permalink and click on save button.<br> <strong class='mo_openid_note_style' style='color: red;font-weight: bold'> When you will change the permalink ,then you have to re-configure all the custom apps because that will change the redirect URL.</strong>";
|
18 |
}
|
19 |
|
20 |
function mo_openid_get_app_code()
|
21 |
{
|
22 |
$appslist = maybe_unserialize(get_option('mo_openid_apps_list'));
|
23 |
$social_app_redirect_uri= get_social_app_redirect_uri('yahoo');
|
|
|
|
|
24 |
$client_id = $appslist['yahoo']['clientid'];
|
25 |
+
$login_dialog_url= 'https://api.login.yahoo.com/oauth2/request_auth?client_id='.$client_id.'&redirect_uri='.$social_app_redirect_uri.'&response_type=code&language=en-us';
|
26 |
header('Location:'. $login_dialog_url);
|
27 |
exit;
|
28 |
}
|
31 |
{
|
32 |
$code = mo_openid_validate_code();
|
33 |
$social_app_redirect_uri = get_social_app_redirect_uri('yahoo');
|
|
|
34 |
$appslist = maybe_unserialize(get_option('mo_openid_apps_list'));
|
35 |
$client_id = $appslist['yahoo']['clientid'];
|
36 |
$client_secret = $appslist['yahoo']['clientsecret'];
|
37 |
$access_token_uri = 'https://api.login.yahoo.com/oauth2/get_token';
|
38 |
+
$postData = 'client_id='. $client_id .'&client_secret=' . $client_secret . '&redirect_uri=' . $social_app_redirect_uri.'&code=' . $code . '&grant_type=authorization_code';
|
|
|
39 |
$access_token_json_output = mo_openid_get_access_token($postData, $access_token_uri,'yahoo');
|
|
|
40 |
$access_token = isset($access_token_json_output['access_token']) ? $access_token_json_output['access_token'] : '';
|
41 |
+
$profile_url = 'https://api.login.yahoo.com/openid/v1/userinfo';
|
|
|
|
|
|
|
|
|
42 |
$profile_json_output = mo_openid_get_social_app_data($access_token, $profile_url,'yahoo');
|
43 |
|
44 |
//Test Configuration
|
50 |
$first_name = $last_name = $email = $user_name = $user_url = $user_picture = $social_user_id = '';
|
51 |
$location_city = $location_country = $about_me = $company_name = $age = $gender = $friend_nos = '';
|
52 |
|
53 |
+
if(isset($profile_json_output['name'])){
|
54 |
+
$user_name = isset( $profile_json_output['name']) ? $profile_json_output['name'] : '';
|
55 |
+
$full_name = explode(" ", $user_name);
|
56 |
+
$first_name = isset( $full_name[0]) ? $full_name[0] : '';
|
57 |
+
$last_name = isset( $full_name[1]) ? $full_name[1] : '';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
}
|
59 |
+
$email = isset( $profile_json_output['email']) ? $profile_json_output['email'] : '';
|
60 |
+
$social_user_id = isset( $profile_json_output['sub']) ? $profile_json_output['sub'] : '';
|
61 |
|
62 |
$appuserdetails = array(
|
63 |
'first_name' => $first_name,
|
uninstall.php
CHANGED
@@ -61,7 +61,7 @@ delete_option('mo_openid_social_comment_google_label' );
|
|
61 |
delete_option('mo_openid_social_comment_heading_label' );
|
62 |
delete_option('app_pos' );
|
63 |
delete_option('app_pos_premium');
|
64 |
-
|
65 |
|
66 |
delete_option('mo_share_options_enable_post');
|
67 |
delete_option('mo_share_options_enable_home_page');
|
61 |
delete_option('mo_openid_social_comment_heading_label' );
|
62 |
delete_option('app_pos' );
|
63 |
delete_option('app_pos_premium');
|
64 |
+
delete_option('mo_openid_deactivate_reason');
|
65 |
|
66 |
delete_option('mo_share_options_enable_post');
|
67 |
delete_option('mo_share_options_enable_home_page');
|
view/config_apps/mo_openid_config_apps.php
CHANGED
@@ -87,7 +87,6 @@ function mo_openid_show_apps()
|
|
87 |
</td>
|
88 |
</tr>
|
89 |
</table>
|
90 |
-
|
91 |
<div id="mo_openid_notice_snackbar"><label id="mo_openid_notice_message"></label></div>
|
92 |
|
93 |
|
@@ -96,7 +95,6 @@ function mo_openid_show_apps()
|
|
96 |
<script>
|
97 |
//to set heading name
|
98 |
jQuery('#mo_openid_page_heading').text('<?php echo mo_sl('Configure Applications'); ?>');
|
99 |
-
|
100 |
//to enable apps from outside toggle
|
101 |
function enable_default_app(app_name) {
|
102 |
var a = document.getElementById('mo_apps_'.concat(app_name));
|
@@ -542,7 +540,7 @@ function mo_openid_show_apps()
|
|
542 |
document.getElementById('mo_openid_ajax_wait_img').style.display = 'none';
|
543 |
document.getElementById('mo_openid_ajax_wait_fade').style.display = 'none';
|
544 |
}
|
545 |
-
|
546 |
//register_old_user
|
547 |
jQuery('#mo_register_old_user').click(function () {
|
548 |
jQuery('#mo_msg_box').hide();
|
87 |
</td>
|
88 |
</tr>
|
89 |
</table>
|
|
|
90 |
<div id="mo_openid_notice_snackbar"><label id="mo_openid_notice_message"></label></div>
|
91 |
|
92 |
|
95 |
<script>
|
96 |
//to set heading name
|
97 |
jQuery('#mo_openid_page_heading').text('<?php echo mo_sl('Configure Applications'); ?>');
|
|
|
98 |
//to enable apps from outside toggle
|
99 |
function enable_default_app(app_name) {
|
100 |
var a = document.getElementById('mo_apps_'.concat(app_name));
|
540 |
document.getElementById('mo_openid_ajax_wait_img').style.display = 'none';
|
541 |
document.getElementById('mo_openid_ajax_wait_fade').style.display = 'none';
|
542 |
}
|
543 |
+
|
544 |
//register_old_user
|
545 |
jQuery('#mo_register_old_user').click(function () {
|
546 |
jQuery('#mo_msg_box').hide();
|
view/licensing_plans/mo_openid_lic_plans.php
CHANGED
@@ -4,6 +4,53 @@ function mo_openid_licensing_plans(){
|
|
4 |
|
5 |
echo '<style>.update-nag, .updated, .error, .is-dismissible, .notice, .notice-error { display: none; }</style>';
|
6 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
<style>
|
8 |
*, *::after, *::before {
|
9 |
-webkit-box-sizing: border-box;
|
@@ -335,23 +382,7 @@ function mo_openid_licensing_plans(){
|
|
335 |
}
|
336 |
}
|
337 |
|
338 |
-
.cd-currency, .cd-value {
|
339 |
-
font-size: 4rem;
|
340 |
-
font-weight: 300;
|
341 |
-
}
|
342 |
|
343 |
-
.cd-duration {
|
344 |
-
font-weight: 800;
|
345 |
-
font-size: 1.3rem;
|
346 |
-
color: #8dc8e4;
|
347 |
-
text-transform: uppercase;
|
348 |
-
}
|
349 |
-
.user-label {
|
350 |
-
font-weight: 700;
|
351 |
-
font-size: 1.3rem;
|
352 |
-
color: #8dc8e4;
|
353 |
-
text-transform: uppercase;
|
354 |
-
}
|
355 |
.cd-popular .cd-duration {
|
356 |
color: #f3b6ab;
|
357 |
}
|
@@ -384,17 +415,7 @@ function mo_openid_licensing_plans(){
|
|
384 |
color: #ba6453;
|
385 |
}
|
386 |
|
387 |
-
.cd-currency {
|
388 |
-
display: inline-block;
|
389 |
-
margin-top: 10px;
|
390 |
-
vertical-align: top;
|
391 |
-
font-size: 4rem;
|
392 |
-
font-weight: 700;
|
393 |
-
}
|
394 |
|
395 |
-
.cd-duration {
|
396 |
-
font-size: 1.4rem;
|
397 |
-
}
|
398 |
}
|
399 |
.cd-pricing-body {
|
400 |
overflow-x: auto;
|
@@ -473,44 +494,7 @@ function mo_openid_licensing_plans(){
|
|
473 |
}
|
474 |
}
|
475 |
|
476 |
-
|
477 |
-
position: absolute;
|
478 |
-
z-index: 1;
|
479 |
-
top: 0;
|
480 |
-
left: 0;
|
481 |
-
/* on mobile it covers the .cd-pricing-header */
|
482 |
-
height: 80px;
|
483 |
-
width: 100%;
|
484 |
-
}
|
485 |
-
.cd-pricing-footer::after {
|
486 |
-
/* right arrow visible on mobile */
|
487 |
-
content: '';
|
488 |
-
position: absolute;
|
489 |
-
right: 1em;
|
490 |
-
top: 50%;
|
491 |
-
bottom: auto;
|
492 |
-
-webkit-transform: translateY(-50%);
|
493 |
-
-moz-transform: translateY(-50%);
|
494 |
-
-ms-transform: translateY(-50%);
|
495 |
-
-o-transform: translateY(-50%);
|
496 |
-
transform: translateY(-50%);
|
497 |
-
height: 20px;
|
498 |
-
width: 20px;
|
499 |
-
}
|
500 |
-
@media only screen and (min-width: 768px) {
|
501 |
-
.cd-pricing-footer {
|
502 |
-
position: relative;
|
503 |
-
height: auto;
|
504 |
-
text-align: center;
|
505 |
-
}
|
506 |
-
.cd-pricing-footer::after {
|
507 |
-
/* hide arrow */
|
508 |
-
display: none;
|
509 |
-
}
|
510 |
-
.cd-has-margins .cd-pricing-footer {
|
511 |
-
padding-bottom: 0;
|
512 |
-
}
|
513 |
-
}
|
514 |
|
515 |
.cd-select {
|
516 |
position: relative;
|
@@ -868,7 +852,7 @@ function mo_openid_licensing_plans(){
|
|
868 |
.ui-slider-horizontal .ui-slider-handle {
|
869 |
top: -.6em !important;
|
870 |
}
|
871 |
-
|
872 |
|
873 |
|
874 |
.pricing-tooltip .pricing-tooltiptext {
|
@@ -961,12 +945,64 @@ function mo_openid_licensing_plans(){
|
|
961 |
}
|
962 |
</style>
|
963 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
964 |
|
965 |
<div class="tab-content">
|
966 |
<div class="tab-pane active text-center" id="cloud">
|
967 |
<div class="cd-pricing-container cd-has-margins"><br>
|
968 |
<div class="cd-pricing-switcher">
|
969 |
-
<p class="fieldset" style="background-color: #e97d68;">
|
970 |
<input type="radio" name="sitetype" value="regular_plans" id="regular_plans" onclick="mo_openid_load();" checked>
|
971 |
<label for="regular_plans">Regular Plans</label>
|
972 |
<input type="radio" name="sitetype" value="Recharge" id="Recharge">
|
@@ -995,8 +1031,8 @@ function mo_openid_licensing_plans(){
|
|
995 |
</header> <!-- .cd-pricing-header -->
|
996 |
</a>
|
997 |
|
998 |
-
<footer
|
999 |
-
<a href="#" class="cd-select" onclick="mo_openid_support_form('')" >Contact us for more features</a>
|
1000 |
</footer>
|
1001 |
|
1002 |
<div class="cd-pricing-body">
|
@@ -1025,13 +1061,13 @@ function mo_openid_licensing_plans(){
|
|
1025 |
|
1026 |
<li data-type="Recharge" class="momslp is-hidden" >
|
1027 |
<h2> </h2>
|
1028 |
-
<center><h2 style="margin-bottom: 10px;margin-top: 1px;">Plan-1</h2>
|
1029 |
<h3 style="color:black;">(Social Login Premium Applications)<br /><br /></h3></center>
|
1030 |
<div class="cd-price" style="align-content: center">
|
1031 |
<center><h1><img src="<?php echo plugin_dir_url(dirname(dirname(__FILE__)));?>includes/images/dollar.png" style="width:20px;height:20px;">10</h1></center>
|
1032 |
</div>
|
1033 |
-
<footer
|
1034 |
-
<a href="#" class="cd-select" onclick="mo_openid_support_form('[Plan-1.App integrations]')" >Interested</a>
|
1035 |
</footer>
|
1036 |
<div class="cd-pricing-body">
|
1037 |
<ul class="cd-pricing-features">
|
@@ -1042,13 +1078,13 @@ function mo_openid_licensing_plans(){
|
|
1042 |
<br>
|
1043 |
<li data-type="Recharge" class="momslp is-hidden">
|
1044 |
<h2> </h2>
|
1045 |
-
<center><h2 style="margin-bottom: 10px;margin-top: 1px;">Plan-4</h2>
|
1046 |
<h3 style="color:black;">(Email notification + GDPR + Account linking)<br /><br /></h3></center>
|
1047 |
<div class="cd-price" style="align-content: center">
|
1048 |
<center><h1><img src="<?php echo plugin_dir_url(dirname(dirname(__FILE__)));?>includes/images/dollar.png" style="width:20px;height:20px;">19</h1></center>
|
1049 |
</div>
|
1050 |
-
<footer
|
1051 |
-
<a href="#" class="cd-select" onclick="mo_openid_support_form('[Plan-4.Email notification+GDPR+Account linking],It seems that you have shown interest. Please elaborate more on your requirements ')" >Interested</a>
|
1052 |
</footer>
|
1053 |
<div class="cd-pricing-body">
|
1054 |
<ul class="cd-pricing-features">
|
@@ -1059,13 +1095,13 @@ function mo_openid_licensing_plans(){
|
|
1059 |
<br>
|
1060 |
<li data-type="Recharge" class="momslp is-hidden" >
|
1061 |
<h2> </h2>
|
1062 |
-
<center><h2 style="margin-bottom: 10px;margin-top: 1px;">Plan-7</h2>
|
1063 |
<h3 style="color:black;">(Mailchimp Integration)<br /><br /><br></h3></center>
|
1064 |
<div class="cd-price" style="align-content: center">
|
1065 |
<center><h1><img src="<?php echo plugin_dir_url(dirname(dirname(__FILE__)));?>includes/images/dollar.png" style="width:20px;height:20px;">29</h1></center>
|
1066 |
</div>
|
1067 |
-
<footer
|
1068 |
-
<a href="#" class="cd-select" onclick="mo_openid_support_form('[Plan-7.Mailchimp integration]')" >Interested</a>
|
1069 |
</footer>
|
1070 |
<div class="cd-pricing-body">
|
1071 |
<ul class="cd-pricing-features">
|
@@ -1075,13 +1111,13 @@ function mo_openid_licensing_plans(){
|
|
1075 |
</li><br>
|
1076 |
<li data-type="Recharge" class="momslp is-hidden" >
|
1077 |
<h2> </h2>
|
1078 |
-
<center><h2 style="margin-bottom: 10px;margin-top: 1px;">Plan-10</h2>
|
1079 |
<h3 style="color:black;">(Premium Features)<br /><br /><br></h3></center>
|
1080 |
<div class="cd-price" style="align-content: center">
|
1081 |
<center><h1><img src="<?php echo plugin_dir_url(dirname(dirname(__FILE__)));?>includes/images/dollar.png" style="width:20px;height:20px;">19</h1></center>
|
1082 |
</div>
|
1083 |
-
<footer
|
1084 |
-
<a href="#" class="cd-select" onclick="mo_openid_support_form('[Plan-10.Premium Features]')" >Interested</a>
|
1085 |
</footer>
|
1086 |
<div class="cd-pricing-body">
|
1087 |
<ul class="cd-pricing-features">
|
@@ -1109,16 +1145,16 @@ function mo_openid_licensing_plans(){
|
|
1109 |
</header> <!-- .cd-pricing-header -->
|
1110 |
|
1111 |
</a>
|
1112 |
-
<footer
|
1113 |
-
<a href="#" class="cd-select" id="mosocial_purchase_cust_addon" onclick="mosocial_addonform('wp_social_login_standard_plan')" >Upgrade Now</a>
|
1114 |
|
1115 |
</footer>
|
1116 |
|
1117 |
<div class="cd-pricing-body">
|
1118 |
<ul class="cd-pricing-features">
|
1119 |
<li><b>All Free features +</b></li>
|
1120 |
-
<li><div class="mo_openid_tooltip" style="padding-left: 40px;">
|
1121 |
-
twitch,vimeo,kakao,discord,<br>dirbble,flickr,line,meetup
|
1122 |
</div></li>
|
1123 |
<li>Advance Account Linking</li>
|
1124 |
<li style="padding-right: 0px; padding-left: 0px">General Data Protection Regulation (GDPR)</li>
|
@@ -1146,8 +1182,8 @@ function mo_openid_licensing_plans(){
|
|
1146 |
<div class="cd-price" style="align-content: center">
|
1147 |
<center><h1><img src="<?php echo plugin_dir_url(dirname(dirname(__FILE__)));?>includes/images/dollar.png" style="width:20px;height:20px;">19</h1></center>
|
1148 |
</div>
|
1149 |
-
<footer
|
1150 |
-
<a href="#" class="cd-select" onclick="mo_openid_support_form('[Plan-2.Woocommerce integration]')" >Interested</a>
|
1151 |
</footer>
|
1152 |
<div class="cd-pricing-body">
|
1153 |
<ul class="cd-pricing-features">
|
@@ -1164,8 +1200,8 @@ function mo_openid_licensing_plans(){
|
|
1164 |
<div class="cd-price" style="align-content: center">
|
1165 |
<center><h1><img src="<?php echo plugin_dir_url(dirname(dirname(__FILE__)));?>includes/images/dollar.png" style="width:20px;height:20px;">19</h1></center>
|
1166 |
</div>
|
1167 |
-
<footer
|
1168 |
-
<a href="#" class="cd-select" onclick="mo_openid_support_form('[Plan-5.Domain Restriction+Recaptcha+Password reset]')" >Interested</a>
|
1169 |
</footer>
|
1170 |
<div class="cd-pricing-body">
|
1171 |
<ul class="cd-pricing-features">
|
@@ -1182,8 +1218,8 @@ function mo_openid_licensing_plans(){
|
|
1182 |
<div class="cd-price" style="align-content: center">
|
1183 |
<center><h1><img src="<?php echo plugin_dir_url(dirname(dirname(__FILE__)));?>includes/images/dollar.png" style="width:20px;height:20px;">19</h1></center>
|
1184 |
</div>
|
1185 |
-
<footer
|
1186 |
-
<a href="#" class="cd-select" onclick="mo_openid_support_form('[Plan-8.Paid Membership Pro+GDPR+Email notification]')" >Interested</a>
|
1187 |
</footer>
|
1188 |
<div class="cd-pricing-body">
|
1189 |
<ul class="cd-pricing-features">
|
@@ -1200,8 +1236,8 @@ function mo_openid_licensing_plans(){
|
|
1200 |
<div class="cd-price" style="align-content: center">
|
1201 |
<center><h1><img src="<?php echo plugin_dir_url(dirname(dirname(__FILE__)));?>includes/images/dollar.png" style="width:20px;height:20px;">19</h1></center>
|
1202 |
</div>
|
1203 |
-
<footer
|
1204 |
-
<a href="#" class="cd-select" onclick="mo_openid_support_form('[Plan-11.Redirect to new window+Domain restriction]')" >Interested</a>
|
1205 |
</footer>
|
1206 |
<div class="cd-pricing-body">
|
1207 |
<ul class="cd-pricing-features">
|
@@ -1222,8 +1258,8 @@ function mo_openid_licensing_plans(){
|
|
1222 |
<h3>(Features and plans)</h3>
|
1223 |
</header> <!-- .cd-pricing-header -->
|
1224 |
</a>
|
1225 |
-
<footer
|
1226 |
-
<a href="#" class="cd-select" id="mosocial_purchase_cust_addon" onclick="mosocial_addonform('wp_social_login_premium_plan')" >Upgrade Now</a>
|
1227 |
</footer>
|
1228 |
<div class="cd-pricing-body">
|
1229 |
<ul class="cd-pricing-features ">
|
@@ -1263,8 +1299,8 @@ function mo_openid_licensing_plans(){
|
|
1263 |
<div class="cd-price" style="align-content: center">
|
1264 |
<center><h1><img src="<?php echo plugin_dir_url(dirname(dirname(__FILE__)));?>includes/images/dollar.png" style="width:20px;height:20px;">25</h1></center>
|
1265 |
</div>
|
1266 |
-
<footer
|
1267 |
-
<a href="#" class="cd-select" onclick="mo_openid_support_form('[Plan-3.Buddypress Integrations]')" >Interested</a>
|
1268 |
</footer>
|
1269 |
<div class="cd-pricing-body">
|
1270 |
<ul class="cd-pricing-features">
|
@@ -1281,8 +1317,8 @@ function mo_openid_licensing_plans(){
|
|
1281 |
<div class="cd-price" style="align-content: center">
|
1282 |
<center><h1><img src="<?php echo plugin_dir_url(dirname(dirname(__FILE__)));?>includes/images/dollar.png" style="width:20px;height:20px;">19</h1></center>
|
1283 |
</div>
|
1284 |
-
<footer
|
1285 |
-
<a href="#" class="cd-select" onclick="mo_openid_support_form('[Plan-6.User moderation + Force admin]')" >Interested</a>
|
1286 |
</footer>
|
1287 |
<div class="cd-pricing-body">
|
1288 |
<ul class="cd-pricing-features">
|
@@ -1298,8 +1334,8 @@ function mo_openid_licensing_plans(){
|
|
1298 |
<div class="cd-price" style="align-content: center">
|
1299 |
<center><h1><img src="<?php echo plugin_dir_url(dirname(dirname(__FILE__)));?>includes/images/dollar.png" style="width:20px;height:20px;">19</h1></center>
|
1300 |
</div>
|
1301 |
-
<footer
|
1302 |
-
<a href="#" id="plan" class="cd-select" onclick="mo_openid_support_form('[Plan-9.Recaptcha +GDPR] ')" >Interested</a>
|
1303 |
</footer>
|
1304 |
<div class="cd-pricing-body">
|
1305 |
<ul class="cd-pricing-features">
|
@@ -1315,8 +1351,8 @@ function mo_openid_licensing_plans(){
|
|
1315 |
<div class="cd-price" style="align-content: center">
|
1316 |
<center><h1><img src="<?php echo plugin_dir_url(dirname(dirname(__FILE__)));?>includes/images/dollar.png" style="width:20px;height:20px;">10</h1></center>
|
1317 |
</div>
|
1318 |
-
<footer
|
1319 |
-
<a href="#" class="cd-select" onclick="mo_openid_support_form('[Plan-12.Email notification]')" >Interested</a>
|
1320 |
</footer>
|
1321 |
<div class="cd-pricing-body">
|
1322 |
<ul class="cd-pricing-features">
|
@@ -1888,6 +1924,9 @@ function mo_openid_licensing_plans_addon()
|
|
1888 |
});
|
1889 |
}
|
1890 |
</script>
|
|
|
|
|
|
|
1891 |
<td>
|
1892 |
<form style="display:none;" id="mosocial_loginform" action="<?php echo get_option( 'mo_openid_host_name' ) . '/moas/login'; ?>"
|
1893 |
target="_blank" method="post" >
|
4 |
|
5 |
echo '<style>.update-nag, .updated, .error, .is-dismissible, .notice, .notice-error { display: none; }</style>';
|
6 |
?>
|
7 |
+
|
8 |
+
<style>
|
9 |
+
body {font-family: Arial, Helvetica, sans-serif;}
|
10 |
+
|
11 |
+
/* The Modal (background) */
|
12 |
+
.mo_openid_woo_modal {
|
13 |
+
display: none; /* Hidden by default */
|
14 |
+
position: fixed; /* Stay in place */
|
15 |
+
z-index: 1; /* Sit on top */
|
16 |
+
padding-top: 100px; /* Location of the box */
|
17 |
+
padding-left: 20%;
|
18 |
+
padding-right: 15%;
|
19 |
+
|
20 |
+
left: 0;
|
21 |
+
top: 0;
|
22 |
+
width: 100%; /* Full width */
|
23 |
+
height: 100%; /* Full height */
|
24 |
+
overflow: auto; /* Enable scroll if needed */
|
25 |
+
background-color: rgb(0,0,0); /* Fallback color */
|
26 |
+
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
|
27 |
+
}
|
28 |
+
|
29 |
+
/* Modal Content */
|
30 |
+
.mo_openid_woo_modal-content {
|
31 |
+
background-color: #ffffff;
|
32 |
+
margin: auto;
|
33 |
+
padding: 20px;
|
34 |
+
border: 1px solid #888;
|
35 |
+
width: 80%;
|
36 |
+
}
|
37 |
+
|
38 |
+
/* The Close Button */
|
39 |
+
.mo_openid_woo_close {
|
40 |
+
color: #aaaaaa;
|
41 |
+
float: right;
|
42 |
+
font-size: 28px;
|
43 |
+
font-weight: bold;
|
44 |
+
}
|
45 |
+
|
46 |
+
.mo_openid_woo_close:hover,
|
47 |
+
.close:focus {
|
48 |
+
color: #000;
|
49 |
+
text-decoration: none;
|
50 |
+
cursor: pointer;
|
51 |
+
}
|
52 |
+
</style>
|
53 |
+
|
54 |
<style>
|
55 |
*, *::after, *::before {
|
56 |
-webkit-box-sizing: border-box;
|
382 |
}
|
383 |
}
|
384 |
|
|
|
|
|
|
|
|
|
385 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
386 |
.cd-popular .cd-duration {
|
387 |
color: #f3b6ab;
|
388 |
}
|
415 |
color: #ba6453;
|
416 |
}
|
417 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
418 |
|
|
|
|
|
|
|
419 |
}
|
420 |
.cd-pricing-body {
|
421 |
overflow-x: auto;
|
494 |
}
|
495 |
}
|
496 |
|
497 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
498 |
|
499 |
.cd-select {
|
500 |
position: relative;
|
852 |
.ui-slider-horizontal .ui-slider-handle {
|
853 |
top: -.6em !important;
|
854 |
}
|
855 |
+
|
856 |
|
857 |
|
858 |
.pricing-tooltip .pricing-tooltiptext {
|
945 |
}
|
946 |
</style>
|
947 |
|
948 |
+
<!-- Trigger/Open The Modal -->
|
949 |
+
<button id="myBtnwoo" style="width:23%;border-radius: 25px;margin-top:2%;margin-right:2%;border-color:#FA5658;background-color:#FA5658;float:right;color:white;font-size: 15px;font-weight: bold;" class="button button-primary button-large">Woocommerce Special Offer</button>
|
950 |
+
<!-- The Modal -->
|
951 |
+
<div id="myModalwoo" class="mo_openid_woo_modal">
|
952 |
+
<!-- Modal content -->
|
953 |
+
<div class="mo_openid_woo_modal-content">
|
954 |
+
<span class="mo_openid_woo_close">×</span>
|
955 |
+
<strong><h1 style="padding-left: 33%;color: red">Special March Offer</h1><hr><p style="padding-left: 23%;font-size: 14px;font-weight: bold;font-size:20px;color:darkblue">WOOCOMMERCE INTEGRATION PLAN $19</p></strong>
|
956 |
+
<h3><strong>Features Included</strong></h3>
|
957 |
+
<h4>Woocommerce Display Options+Standard Features(STANDARD PLAN) <strike style="color: maroon;font-size:20px;font-weight: bold">$29</strike></h4>
|
958 |
+
<h4>Woocommerce integration + Display Options+Premium Features(PREMIUM PLAN) <strike style="color: maroon;font-size:20px;font-weight: bold">$49</strike></h4>
|
959 |
+
<h4 style="font-size: 16px;color: #0000A0">Woocommerce integration + Display Options+Free Features(<b>WOOCOMMERCE INTEGRATION PLAN</b>) <b style="color: red;font-size:20px;font-weight: bold">$19</b></h4>
|
960 |
+
|
961 |
+
<p><strong style="color: red;font-size: 100%">WOOCOMMERCE INTEGRATION WITH SOCIAL LOGIN </strong><br>
|
962 |
+
<p style="font-size: 15px"> If you will use social login icons at the registration and login page then the information field will be automatically filled at the checkout page. </p> </p><br>
|
963 |
+
<center><input type="submit" onclick="mosocial_addonform('wp_social_login_woocommerce_plan')" name="submit" value="<?php echo mo_sl('UPGRADE NOW');?>" style="width:150px;background-color:#0867b2;color:white;box-shadow:none;text-shadow: none;" class="button button-primary button-large" /></b><br><br></center>
|
964 |
+
</div>
|
965 |
+
|
966 |
+
</div>
|
967 |
+
|
968 |
+
<script>
|
969 |
+
// Get the modal
|
970 |
+
var modalwoo = document.getElementById("myModalwoo");
|
971 |
+
//woocommerce_notice // Get the button that opens the modal
|
972 |
+
|
973 |
+
|
974 |
+
var btnwoo = document.getElementById("myBtnwoo");
|
975 |
+
|
976 |
+
// Get the <span> element that closes the modal
|
977 |
+
var span = document.getElementsByClassName("mo_openid_woo_close")[0];
|
978 |
+
|
979 |
+
// When the user clicks the button, open the modal
|
980 |
+
btnwoo.onclick = function() {
|
981 |
+
modalwoo.style.display = "block";
|
982 |
+
}
|
983 |
+
|
984 |
+
// When the user clicks on <span> (x), close the modal
|
985 |
+
span.onclick = function() {
|
986 |
+
modalwoo.style.display = "none";
|
987 |
+
}
|
988 |
+
|
989 |
+
// When the user clicks anywhere outside of the modal, close it
|
990 |
+
window.onclick = function(event) {
|
991 |
+
if (event.target == modalwoo) {
|
992 |
+
modalwoo.style.display = "none";
|
993 |
+
}
|
994 |
+
}
|
995 |
+
</script>
|
996 |
+
|
997 |
+
|
998 |
+
|
999 |
+
|
1000 |
|
1001 |
<div class="tab-content">
|
1002 |
<div class="tab-pane active text-center" id="cloud">
|
1003 |
<div class="cd-pricing-container cd-has-margins"><br>
|
1004 |
<div class="cd-pricing-switcher">
|
1005 |
+
<p class="fieldset" style="background-color: #e97d68;margin-left: 20%">
|
1006 |
<input type="radio" name="sitetype" value="regular_plans" id="regular_plans" onclick="mo_openid_load();" checked>
|
1007 |
<label for="regular_plans">Regular Plans</label>
|
1008 |
<input type="radio" name="sitetype" value="Recharge" id="Recharge">
|
1031 |
</header> <!-- .cd-pricing-header -->
|
1032 |
</a>
|
1033 |
|
1034 |
+
<footer>
|
1035 |
+
<a href="#" style="padding-left: 3%" class="cd-select" onclick="mo_openid_support_form('')" >Contact us for more features</a>
|
1036 |
</footer>
|
1037 |
|
1038 |
<div class="cd-pricing-body">
|
1061 |
|
1062 |
<li data-type="Recharge" class="momslp is-hidden" >
|
1063 |
<h2> </h2>
|
1064 |
+
<center><h2 style="margin-bottom: 10px;margin-top: 1px;padding-left: 32%">Plan-1</h2>
|
1065 |
<h3 style="color:black;">(Social Login Premium Applications)<br /><br /></h3></center>
|
1066 |
<div class="cd-price" style="align-content: center">
|
1067 |
<center><h1><img src="<?php echo plugin_dir_url(dirname(dirname(__FILE__)));?>includes/images/dollar.png" style="width:20px;height:20px;">10</h1></center>
|
1068 |
</div>
|
1069 |
+
<footer >
|
1070 |
+
<a href="#" style="padding-left: 32%" class="cd-select" onclick="mo_openid_support_form('[Plan-1.App integrations]')" >Interested</a>
|
1071 |
</footer>
|
1072 |
<div class="cd-pricing-body">
|
1073 |
<ul class="cd-pricing-features">
|
1078 |
<br>
|
1079 |
<li data-type="Recharge" class="momslp is-hidden">
|
1080 |
<h2> </h2>
|
1081 |
+
<center><h2 style="margin-bottom: 10px;margin-top: 1px;padding-left: 32%">Plan-4</h2>
|
1082 |
<h3 style="color:black;">(Email notification + GDPR + Account linking)<br /><br /></h3></center>
|
1083 |
<div class="cd-price" style="align-content: center">
|
1084 |
<center><h1><img src="<?php echo plugin_dir_url(dirname(dirname(__FILE__)));?>includes/images/dollar.png" style="width:20px;height:20px;">19</h1></center>
|
1085 |
</div>
|
1086 |
+
<footer >
|
1087 |
+
<a href="#" style="padding-left: 32%" class="cd-select" onclick="mo_openid_support_form('[Plan-4.Email notification+GDPR+Account linking],It seems that you have shown interest. Please elaborate more on your requirements ')" >Interested</a>
|
1088 |
</footer>
|
1089 |
<div class="cd-pricing-body">
|
1090 |
<ul class="cd-pricing-features">
|
1095 |
<br>
|
1096 |
<li data-type="Recharge" class="momslp is-hidden" >
|
1097 |
<h2> </h2>
|
1098 |
+
<center><h2 style="margin-bottom: 10px;margin-top: 1px;padding-left: 32%">Plan-7</h2>
|
1099 |
<h3 style="color:black;">(Mailchimp Integration)<br /><br /><br></h3></center>
|
1100 |
<div class="cd-price" style="align-content: center">
|
1101 |
<center><h1><img src="<?php echo plugin_dir_url(dirname(dirname(__FILE__)));?>includes/images/dollar.png" style="width:20px;height:20px;">29</h1></center>
|
1102 |
</div>
|
1103 |
+
<footer>
|
1104 |
+
<a href="#" style="padding-left: 32%" class="cd-select" onclick="mo_openid_support_form('[Plan-7.Mailchimp integration]')" >Interested</a>
|
1105 |
</footer>
|
1106 |
<div class="cd-pricing-body">
|
1107 |
<ul class="cd-pricing-features">
|
1111 |
</li><br>
|
1112 |
<li data-type="Recharge" class="momslp is-hidden" >
|
1113 |
<h2> </h2>
|
1114 |
+
<center><h2 style="margin-bottom: 10px;margin-top: 1px;padding-left: 32%">Plan-10</h2>
|
1115 |
<h3 style="color:black;">(Premium Features)<br /><br /><br></h3></center>
|
1116 |
<div class="cd-price" style="align-content: center">
|
1117 |
<center><h1><img src="<?php echo plugin_dir_url(dirname(dirname(__FILE__)));?>includes/images/dollar.png" style="width:20px;height:20px;">19</h1></center>
|
1118 |
</div>
|
1119 |
+
<footer >
|
1120 |
+
<a href="#" style="padding-left: 32%" class="cd-select" onclick="mo_openid_support_form('[Plan-10.Premium Features]')" >Interested</a>
|
1121 |
</footer>
|
1122 |
<div class="cd-pricing-body">
|
1123 |
<ul class="cd-pricing-features">
|
1145 |
</header> <!-- .cd-pricing-header -->
|
1146 |
|
1147 |
</a>
|
1148 |
+
<footer >
|
1149 |
+
<a href="#" style="padding-left: 32%" class="cd-select" id="mosocial_purchase_cust_addon" onclick="mosocial_addonform('wp_social_login_standard_plan')" >Upgrade Now</a>
|
1150 |
|
1151 |
</footer>
|
1152 |
|
1153 |
<div class="cd-pricing-body">
|
1154 |
<ul class="cd-pricing-features">
|
1155 |
<li><b>All Free features +</b></li>
|
1156 |
+
<li><div class="mo_openid_tooltip" style="padding-left: 40px;">31 Custom Social Login Apps <i class="mofa mofa-commenting " style="font-size:18px;color:#85929E"></i><span class="mo_openid_tooltiptext"style="width:100%;"> Using the custom app tab, you can set up your own app id and secret in the plugin. Login flow will not involve miniOrange in between. Login flow will go from plugin to social media application and then back to plugin.<br>31 custom apps are <span id="mo_openid_dots3">...</span><span id="mo_openid_more3" style="display:none" ><br>Facebook,Google,vkontakte,<br/>Reddit,twitter,linkedin,amazon,<br>windowslive,yahoo,apple,<br>disqus,instagram,wordpress,<br>pinterest,spotify,tumblr,<br/>
|
1157 |
+
twitch,vimeo,kakao,discord,<br>dirbble,flickr,line,meetup,naver,<br/>snapchat,foursquare,teamsnap,<br/>stackexchange,livejournal & odnoklassniki.</span><button style="border:transparent;background-color: transparent;color: tomato;" onclick="myFunction('mo_openid_dots3','mo_openid_more3','mo_openid_myBtn3')" id="mo_openid_myBtn3">Read more</button>
|
1158 |
</div></li>
|
1159 |
<li>Advance Account Linking</li>
|
1160 |
<li style="padding-right: 0px; padding-left: 0px">General Data Protection Regulation (GDPR)</li>
|
1182 |
<div class="cd-price" style="align-content: center">
|
1183 |
<center><h1><img src="<?php echo plugin_dir_url(dirname(dirname(__FILE__)));?>includes/images/dollar.png" style="width:20px;height:20px;">19</h1></center>
|
1184 |
</div>
|
1185 |
+
<footer >
|
1186 |
+
<a href="#" style="padding-left: 32%" class="cd-select" onclick="mo_openid_support_form('[Plan-2.Woocommerce integration]')" >Interested</a>
|
1187 |
</footer>
|
1188 |
<div class="cd-pricing-body">
|
1189 |
<ul class="cd-pricing-features">
|
1200 |
<div class="cd-price" style="align-content: center">
|
1201 |
<center><h1><img src="<?php echo plugin_dir_url(dirname(dirname(__FILE__)));?>includes/images/dollar.png" style="width:20px;height:20px;">19</h1></center>
|
1202 |
</div>
|
1203 |
+
<footer>
|
1204 |
+
<a href="#" style="padding-left: 32%" class="cd-select" onclick="mo_openid_support_form('[Plan-5.Domain Restriction+Recaptcha+Password reset]')" >Interested</a>
|
1205 |
</footer>
|
1206 |
<div class="cd-pricing-body">
|
1207 |
<ul class="cd-pricing-features">
|
1218 |
<div class="cd-price" style="align-content: center">
|
1219 |
<center><h1><img src="<?php echo plugin_dir_url(dirname(dirname(__FILE__)));?>includes/images/dollar.png" style="width:20px;height:20px;">19</h1></center>
|
1220 |
</div>
|
1221 |
+
<footer>
|
1222 |
+
<a href="#" style="padding-left: 32%" class="cd-select" onclick="mo_openid_support_form('[Plan-8.Paid Membership Pro+GDPR+Email notification]')" >Interested</a>
|
1223 |
</footer>
|
1224 |
<div class="cd-pricing-body">
|
1225 |
<ul class="cd-pricing-features">
|
1236 |
<div class="cd-price" style="align-content: center">
|
1237 |
<center><h1><img src="<?php echo plugin_dir_url(dirname(dirname(__FILE__)));?>includes/images/dollar.png" style="width:20px;height:20px;">19</h1></center>
|
1238 |
</div>
|
1239 |
+
<footer>
|
1240 |
+
<a href="#" style="padding-left: 32%" class="cd-select" onclick="mo_openid_support_form('[Plan-11.Redirect to new window+Domain restriction]')" >Interested</a>
|
1241 |
</footer>
|
1242 |
<div class="cd-pricing-body">
|
1243 |
<ul class="cd-pricing-features">
|
1258 |
<h3>(Features and plans)</h3>
|
1259 |
</header> <!-- .cd-pricing-header -->
|
1260 |
</a>
|
1261 |
+
<footer>
|
1262 |
+
<a href="#" style="padding-left: 32%" class="cd-select" id="mosocial_purchase_cust_addon" onclick="mosocial_addonform('wp_social_login_premium_plan')" >Upgrade Now</a>
|
1263 |
</footer>
|
1264 |
<div class="cd-pricing-body">
|
1265 |
<ul class="cd-pricing-features ">
|
1299 |
<div class="cd-price" style="align-content: center">
|
1300 |
<center><h1><img src="<?php echo plugin_dir_url(dirname(dirname(__FILE__)));?>includes/images/dollar.png" style="width:20px;height:20px;">25</h1></center>
|
1301 |
</div>
|
1302 |
+
<footer>
|
1303 |
+
<a href="#" style="padding-left: 32%" class="cd-select" onclick="mo_openid_support_form('[Plan-3.Buddypress Integrations]')" >Interested</a>
|
1304 |
</footer>
|
1305 |
<div class="cd-pricing-body">
|
1306 |
<ul class="cd-pricing-features">
|
1317 |
<div class="cd-price" style="align-content: center">
|
1318 |
<center><h1><img src="<?php echo plugin_dir_url(dirname(dirname(__FILE__)));?>includes/images/dollar.png" style="width:20px;height:20px;">19</h1></center>
|
1319 |
</div>
|
1320 |
+
<footer >
|
1321 |
+
<a href="#" style="padding-left: 32%" class="cd-select" onclick="mo_openid_support_form('[Plan-6.User moderation + Force admin]')" >Interested</a>
|
1322 |
</footer>
|
1323 |
<div class="cd-pricing-body">
|
1324 |
<ul class="cd-pricing-features">
|
1334 |
<div class="cd-price" style="align-content: center">
|
1335 |
<center><h1><img src="<?php echo plugin_dir_url(dirname(dirname(__FILE__)));?>includes/images/dollar.png" style="width:20px;height:20px;">19</h1></center>
|
1336 |
</div>
|
1337 |
+
<footer >
|
1338 |
+
<a href="#" style="padding-left: 32%" id="plan" class="cd-select" onclick="mo_openid_support_form('[Plan-9.Recaptcha +GDPR] ')" >Interested</a>
|
1339 |
</footer>
|
1340 |
<div class="cd-pricing-body">
|
1341 |
<ul class="cd-pricing-features">
|
1351 |
<div class="cd-price" style="align-content: center">
|
1352 |
<center><h1><img src="<?php echo plugin_dir_url(dirname(dirname(__FILE__)));?>includes/images/dollar.png" style="width:20px;height:20px;">10</h1></center>
|
1353 |
</div>
|
1354 |
+
<footer >
|
1355 |
+
<a href="#" style="padding-left: 32%" class="cd-select" onclick="mo_openid_support_form('[Plan-12.Email notification]')" >Interested</a>
|
1356 |
</footer>
|
1357 |
<div class="cd-pricing-body">
|
1358 |
<ul class="cd-pricing-features">
|
1924 |
});
|
1925 |
}
|
1926 |
</script>
|
1927 |
+
|
1928 |
+
|
1929 |
+
|
1930 |
<td>
|
1931 |
<form style="display:none;" id="mosocial_loginform" action="<?php echo get_option( 'mo_openid_host_name' ) . '/moas/login'; ?>"
|
1932 |
target="_blank" method="post" >
|
view/profile_completion/mo_openid_prof_comp_funct.php
CHANGED
@@ -165,9 +165,10 @@ function send_otp_token($email){
|
|
165 |
$response = wp_mail($email, $subject,$message);
|
166 |
|
167 |
if($response){
|
168 |
-
|
169 |
-
$
|
170 |
-
|
|
|
171 |
$content = array('status' => 'SUCCESS','tId' => $transactionId);
|
172 |
}
|
173 |
else
|
@@ -176,16 +177,15 @@ function send_otp_token($email){
|
|
176 |
}
|
177 |
|
178 |
function validate_otp_token($transactionId,$otpToken){
|
179 |
-
mo_openid_start_session();
|
180 |
$customerKey = get_option('mo_openid_admin_customer_key');
|
181 |
-
|
182 |
-
|
|
|
183 |
$pass = checkTransactionId($customerKey, $otpToken, $transactionId, $pass);
|
184 |
if($pass)
|
185 |
$content = array('status' => 'SUCCESS');
|
186 |
else
|
187 |
$content = array('status' => 'FAILURE');
|
188 |
-
unset($_SESSION['$mo_otptoken']);
|
189 |
}
|
190 |
else
|
191 |
$content = array('status' =>'FAILURE');
|
@@ -235,7 +235,6 @@ function mo_openid_social_login_validate_otp($username, $user_email, $first_name
|
|
235 |
$user = get_user_by('id', $existing_email_user_id);
|
236 |
$user_id = $user->ID;
|
237 |
}
|
238 |
-
mo_openid_start_session_login($user_details);
|
239 |
mo_openid_login_user($user_email,$user_id,$user,$user_picture,1);
|
240 |
exit;
|
241 |
}else{
|
165 |
$response = wp_mail($email, $subject,$message);
|
166 |
|
167 |
if($response){
|
168 |
+
setcookie('mo_otptoken', 'true', 0,"/");
|
169 |
+
$_COOKIE['mo_otptoken']='true';
|
170 |
+
setcookie('otp_start_time', time(), 0,"/");
|
171 |
+
$_COOKIE['otp_start_time']=time();
|
172 |
$content = array('status' => 'SUCCESS','tId' => $transactionId);
|
173 |
}
|
174 |
else
|
177 |
}
|
178 |
|
179 |
function validate_otp_token($transactionId,$otpToken){
|
|
|
180 |
$customerKey = get_option('mo_openid_admin_customer_key');
|
181 |
+
$my_mood = $_COOKIE['mo_otptoken'];
|
182 |
+
if($my_mood == "true"){
|
183 |
+
$pass = checkTimeStamp($_COOKIE['otp_start_time'],time());
|
184 |
$pass = checkTransactionId($customerKey, $otpToken, $transactionId, $pass);
|
185 |
if($pass)
|
186 |
$content = array('status' => 'SUCCESS');
|
187 |
else
|
188 |
$content = array('status' => 'FAILURE');
|
|
|
189 |
}
|
190 |
else
|
191 |
$content = array('status' =>'FAILURE');
|
235 |
$user = get_user_by('id', $existing_email_user_id);
|
236 |
$user_id = $user->ID;
|
237 |
}
|
|
|
238 |
mo_openid_login_user($user_email,$user_id,$user,$user_picture,1);
|
239 |
exit;
|
240 |
}else{
|
view/shrtco/mo_openid_shrtco.php
CHANGED
@@ -177,7 +177,12 @@ function mo_openid_login_shortcodes(){
|
|
177 |
|
178 |
</body>
|
179 |
</div>
|
180 |
-
<hr
|
|
|
|
|
|
|
|
|
|
|
181 |
</td>
|
182 |
</tr>
|
183 |
</table>
|
177 |
|
178 |
</body>
|
179 |
</div>
|
180 |
+
<br/><hr><br/>
|
181 |
+
<h3><?php echo mo_sl("Shortcode in php file");?></h3>
|
182 |
+
<?php echo mo_sl("You can use shortcode in PHP file as following: ");?>
|
183 |
+
<code><?php echo do_shortcode(‘SHORTCODE’) /?></code><br/><br/>
|
184 |
+
<?php echo mo_sl('Replace SHORTCODE in above code with the required shortcode like <code>[miniorange_social_login theme="default"]</code>, so the final code looks like following :');?><br/><br/>
|
185 |
+
<code id='7'><?php echo do_shortcode('[miniorange_social_login theme="default"]') ?></code><i style= "width: 11px;height: 9px;padding-left:2px;padding-top:3px" class="mofa mofa-fw mofa-lg mofa-copy mo_copy mo_copytooltip" onclick="copyToClipboard(this, '#7', '#shortcode_url33_copy')"><span id="shortcode_url33_copy" class="mo_copytooltiptext">Copy to Clipboard</span></i><br/><br/>
|
186 |
</td>
|
187 |
</tr>
|
188 |
</table>
|