Version Description
- "Malformed URL" issue fixed for custom apps
- Added Customizable text for account linking, profile completion and OTP verification form.
- Allow non-English characters for page and post title.(Removed sanitize_title in the filter)
- minor UI changes.
Download this release
Release Info
Developer | cyberlord92 |
Plugin | Social Login |
Version | 7.0.3 |
Comparing to | |
See all releases |
Code changes from version 7.0.2 to 7.0.3
- class-mo-openid-login-widget.php +87 -97
- class-mo-openid-social-comment.php +93 -87
- class-mo-openid-social-share.php +49 -49
- class-mo-openid-sso-shortcode-buttons.php +605 -619
- includes/css/mo_openid_style.css +55 -8
- includes/images/account_linking.png +0 -0
- includes/images/email_verify.png +0 -0
- includes/images/lock1.png +0 -0
- includes/images/logo.png +0 -0
- includes/images/profile_completion.png +0 -0
- miniorange_openid_sso_settings.php +225 -132
- miniorange_openid_sso_settings_page.php +523 -388
- mo_openid_feedback_form.php +5 -2
- readme.txt +25 -13
- uninstall.php +27 -1
class-mo-openid-login-widget.php
CHANGED
@@ -97,8 +97,9 @@ if(mo_openid_is_customer_registered()) {
|
|
97 |
</p>
|
98 |
<?php if(get_option('mo_openid_gdpr_consent_enable')){
|
99 |
$consent_message = isset($consent_message) ? $consent_message: ''; ?>
|
100 |
-
|
101 |
-
<
|
|
|
102 |
<?php }
|
103 |
|
104 |
if($customTheme == 'default'){
|
@@ -475,7 +476,7 @@ if(mo_openid_is_customer_registered()) {
|
|
475 |
$html .= '<label class="mo-consent"><input type="checkbox" onchange="mo_openid_on_consent_change(this,value)" value="1" id="mo_openid_consent_checkbox">';
|
476 |
$html .= $consent_message.'</label>';
|
477 |
}
|
478 |
-
|
479 |
if($customTheme == 'default'){
|
480 |
|
481 |
if( get_option('mo_openid_facebook_enable') ) {
|
@@ -527,7 +528,7 @@ if(mo_openid_is_customer_registered()) {
|
|
527 |
|
528 |
if( get_option('mo_openid_linkedin_enable') ) {
|
529 |
if($selected_theme == 'longbutton'){
|
530 |
-
$html .= "<a rel='nofollow' ".$gdpr_setting."style='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;' class='btn btn-mo btn-block btn-social btn-linkedin btn-custom-dec login-button' onClick=\"moOpenIdLogin('linkedin','" .$
|
531 |
}
|
532 |
else{
|
533 |
$html .= "<a class='".$dis." login-button' rel='nofollow' title= ' ".$customTextofTitle." LinkedIn' onClick=\"moOpenIdLogin('linkedin','" . $linkedin_custom_app . "');\" ><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>";
|
@@ -655,7 +656,6 @@ if(mo_openid_is_customer_registered()) {
|
|
655 |
$html .= $logo_html;
|
656 |
}
|
657 |
?>
|
658 |
-
<br/>
|
659 |
<?php
|
660 |
}else {
|
661 |
global $current_user;
|
@@ -735,6 +735,7 @@ if(mo_openid_is_customer_registered()) {
|
|
735 |
|
736 |
}
|
737 |
}
|
|
|
738 |
}
|
739 |
else {
|
740 |
|
@@ -750,7 +751,9 @@ if(mo_openid_is_customer_registered()) {
|
|
750 |
}
|
751 |
|
752 |
}
|
|
|
753 |
window.location.href = redirect_url + app_name;
|
|
|
754 |
}
|
755 |
</script>
|
756 |
<?php
|
@@ -1079,7 +1082,7 @@ if(mo_openid_is_customer_registered()) {
|
|
1079 |
$return_url = strpos($base_return_url, '?') !== false ? urlencode( $base_return_url . '&option=moopenid' ): urlencode( $base_return_url . '?option=moopenid' );
|
1080 |
|
1081 |
$url = get_option('mo_openid_host_name') . '/moas/openid-connect/client-app/authenticate?token=' . $encoded_token . '&userdata=' . $userdata. '&id=' . get_option('mo_openid_admin_customer_key') . '&encrypted=true&app=' . $_REQUEST['app_name'] . '_oauth&returnurl=' . $return_url . '&encrypt_response=true';
|
1082 |
-
wp_redirect(
|
1083 |
exit;
|
1084 |
}
|
1085 |
|
@@ -1224,7 +1227,7 @@ if(mo_openid_is_customer_registered()) {
|
|
1224 |
wp_set_auth_cookie( $email_user_id, true );
|
1225 |
}
|
1226 |
// if account linking is enable and email is set
|
1227 |
-
else if ( get_option('mo_openid_account_linking_enable') ){
|
1228 |
mo_openid_start_session();
|
1229 |
$_SESSION['username'] = $username;
|
1230 |
$_SESSION['user_email'] = $user_email;
|
@@ -1391,7 +1394,7 @@ if(mo_openid_is_customer_registered()) {
|
|
1391 |
$user_email = str_replace(' ', '', $user_email);
|
1392 |
|
1393 |
//account linking
|
1394 |
-
if ( get_option('mo_openid_account_linking_enable')){
|
1395 |
mo_openid_start_session();
|
1396 |
$_SESSION['username'] = $decrypted_user_name;
|
1397 |
$_SESSION['user_email'] = $user_email;
|
@@ -1511,7 +1514,7 @@ if(mo_openid_is_customer_registered()) {
|
|
1511 |
do_action( 'wp_login', $user->user_login, $user );
|
1512 |
wp_set_auth_cookie( $user_id, true );
|
1513 |
}
|
1514 |
-
else if ( get_option('mo_openid_account_linking_enable')){
|
1515 |
mo_openid_start_session();
|
1516 |
$_SESSION['username'] = $decrypted_user_name;
|
1517 |
$_SESSION['user_email'] = $user_email;
|
@@ -1618,18 +1621,35 @@ if(mo_openid_is_customer_registered()) {
|
|
1618 |
|
1619 |
if($key == "facebook" && $appname == "facebook"){
|
1620 |
$_SESSION["appname"] = "facebook";
|
1621 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1622 |
$client_id = $currentapp['clientid'];
|
1623 |
$scope = $currentapp['scope'];
|
1624 |
$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;
|
1625 |
break;
|
1626 |
}
|
1627 |
else if($key == "google" && $appname == "google"){
|
|
|
1628 |
$_SESSION["appname"] = "google";
|
1629 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1630 |
$client_id = $currentapp['clientid'];
|
1631 |
$scope = $currentapp['scope'];
|
1632 |
$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';
|
|
|
1633 |
break;
|
1634 |
}
|
1635 |
else if($key == "twitter" && $appname == "twitter")
|
@@ -1661,7 +1681,18 @@ if(mo_openid_is_customer_registered()) {
|
|
1661 |
$_SESSION['appname'] = "twitter";
|
1662 |
}
|
1663 |
|
1664 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1665 |
|
1666 |
if($appname == "twitter"){
|
1667 |
$dirs = explode('&', $_SERVER['REQUEST_URI']);
|
@@ -1685,7 +1716,12 @@ if(mo_openid_is_customer_registered()) {
|
|
1685 |
else{
|
1686 |
$appslist = array();
|
1687 |
}
|
1688 |
-
|
|
|
|
|
|
|
|
|
|
|
1689 |
|
1690 |
foreach($appslist as $key=>$currentapp){
|
1691 |
if($key == "facebook" && $appname == "facebook"){
|
@@ -1739,6 +1775,7 @@ if(mo_openid_is_customer_registered()) {
|
|
1739 |
exit();
|
1740 |
}
|
1741 |
$access_token_json_output = json_decode($result, true);
|
|
|
1742 |
}
|
1743 |
else
|
1744 |
{
|
@@ -1911,7 +1948,7 @@ if(mo_openid_is_customer_registered()) {
|
|
1911 |
}
|
1912 |
$user_email = str_replace(' ', '', $user_email);
|
1913 |
|
1914 |
-
if ( get_option('mo_openid_account_linking_enable')){
|
1915 |
mo_openid_start_session();
|
1916 |
$_SESSION['username'] = $username;
|
1917 |
$_SESSION['user_email'] = $user_email;
|
@@ -2028,7 +2065,7 @@ if(mo_openid_is_customer_registered()) {
|
|
2028 |
|
2029 |
}
|
2030 |
//if account linking is enable
|
2031 |
-
else if ( get_option('mo_openid_account_linking_enable')){
|
2032 |
mo_openid_start_session();
|
2033 |
$_SESSION['username'] = $user_name;
|
2034 |
$_SESSION['user_email'] = $user_email;
|
@@ -2113,8 +2150,15 @@ if(mo_openid_is_customer_registered()) {
|
|
2113 |
}
|
2114 |
}
|
2115 |
|
2116 |
-
function mo_openid_validate_otp_form($username, $user_email, $transaction_id, $user_picture, $user_url, $last_name, $user_full_name ,$first_name, $decrypted_app_name, $decrypted_user_id,$message = '
|
2117 |
$path = mo_openid_get_wp_style();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2118 |
$html = '<head><link rel="stylesheet" href='.$path.' type="text/css" media="all" /></head>
|
2119 |
|
2120 |
<body class="login login-action-login wp-core-ui locale-en-us">
|
@@ -2124,12 +2168,12 @@ if(mo_openid_is_customer_registered()) {
|
|
2124 |
<form name="f" method="post" action="">
|
2125 |
<div style="background: white;margin-top:-15px;padding: 15px;">
|
2126 |
|
2127 |
-
<span style="
|
2128 |
<div style="padding: 12px;"></div>
|
2129 |
<div style=" padding: 16px;background-color:rgba(1, 145, 191, 0.117647);color: black;">
|
2130 |
<span style=" margin-left: 15px;color: black;font-weight: bold;float: right;font-size: 22px;line-height: 20px;cursor: pointer;font-family: Arial;transition: 0.3s"></span>'.$message.'</div> <br>
|
2131 |
<p>
|
2132 |
-
<label for="user_login">
|
2133 |
<input type="text" pattern="\d{4,5}" class="input" name="otp_field" value="" size="20" /></label>
|
2134 |
</p>
|
2135 |
<input type="hidden" name="username_field" value='.$username.'>
|
@@ -2145,11 +2189,12 @@ if(mo_openid_is_customer_registered()) {
|
|
2145 |
<input type="hidden" name="option" value="mo_openid_otp_validation">
|
2146 |
</div>
|
2147 |
<div style="float: right;margin-right: 11px;">
|
2148 |
-
<input type="
|
|
|
2149 |
</div>
|
2150 |
<div style="float: right">
|
2151 |
-
|
2152 |
-
|
2153 |
</div>';
|
2154 |
|
2155 |
if(get_option('mo_openid_oauth')=='1' && get_option('moopenid_logo_check') == 1) {
|
@@ -2192,16 +2237,16 @@ if(mo_openid_is_customer_registered()) {
|
|
2192 |
<form name="f" method="post" action="">
|
2193 |
<div style="background: white;margin-top:-15px;padding: 15px;">
|
2194 |
|
2195 |
-
|
2196 |
-
<p>
|
2197 |
-
<label for="user_login">
|
2198 |
<input type="text" class="input" name="username_field" value='.$username.' size="20" required>
|
2199 |
-
<span align="center" class="form-input-validation is-error">
|
2200 |
</label>
|
2201 |
</p>
|
2202 |
<br>
|
2203 |
<p>
|
2204 |
-
<label for="user_pass">
|
2205 |
<input type="email" name="email_field" class="input" value='.$user_email.' size="20" required></label>
|
2206 |
</p>
|
2207 |
<input type="hidden" name="first_name" value='.$first_name.'>
|
@@ -2214,7 +2259,7 @@ if(mo_openid_is_customer_registered()) {
|
|
2214 |
<input type="hidden" name="option" value="mo_openid_profile_form_submitted">
|
2215 |
</div>
|
2216 |
<p class="submit">
|
2217 |
-
<input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="
|
2218 |
</p> ';
|
2219 |
|
2220 |
if(get_option('mo_openid_oauth')=='1' && get_option('moopenid_logo_check') == 1) {
|
@@ -2240,18 +2285,18 @@ if(mo_openid_is_customer_registered()) {
|
|
2240 |
<form name="f" method="post" action="">
|
2241 |
<div style="background: white;margin-top:-15px;padding: 15px;">
|
2242 |
|
2243 |
-
|
2244 |
<div style="padding: 12px;"></div>
|
2245 |
<div style=" padding: 16px;background-color:rgba(1, 145, 191, 0.117647);color: black;">
|
2246 |
-
<span style=" margin-left: 15px;color: black;font-weight: bold;float: right;font-size: 22px;line-height: 20px;cursor: pointer;font-family: Arial;transition: 0.3s"></span>
|
2247 |
<p>
|
2248 |
-
<label for="user_login">
|
2249 |
<input type="text" class="input" name="username_field" size="20" required value='.$decrypted_user_name.'></label>
|
2250 |
</p>
|
2251 |
<p>
|
2252 |
-
<label for="user_pass">
|
2253 |
<input type="email" class="input" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]+$" name="email_field" size="20" required value='.$decrypted_email.'></label>
|
2254 |
-
<span align="center" class="form-input-validation note">
|
2255 |
</p>
|
2256 |
<input type="hidden" name="first_name" value='.$first_name.'>
|
2257 |
<input type="hidden" name="last_name" value='.$last_name.'>
|
@@ -2263,7 +2308,7 @@ if(mo_openid_is_customer_registered()) {
|
|
2263 |
<input type="hidden" name="option" value="mo_openid_profile_form_submitted">
|
2264 |
</div>
|
2265 |
<p class="submit">
|
2266 |
-
<input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="
|
2267 |
</p> ';
|
2268 |
|
2269 |
if(get_option('mo_openid_oauth')=='1' && get_option('moopenid_logo_check') == 1) {
|
@@ -2289,18 +2334,15 @@ if(mo_openid_is_customer_registered()) {
|
|
2289 |
<div style = 'background-color:white; padding:12px; position:fixed; top:100px; right: 350px; padding-bottom: 20px;left:350px; overflow:hidden; outline:1px black;border-radius: 5px;'>
|
2290 |
|
2291 |
<br>
|
2292 |
-
<span style='
|
2293 |
<div style='padding: 12px;'></div>
|
2294 |
-
<div style=' padding: 16px;background-color:rgba(1, 145, 191, 0.117647);color: black;'>
|
2295 |
-
If you do not have an existing account with a different email address, click on <b>Create a new account</b>.
|
2296 |
-
<br><br>
|
2297 |
-
If you already have an existing account with a different email adddress and want to link this account with that, click on <b>Link to an existing account</b>. You will be redirected to login page to login to your existing account.
|
2298 |
</div>
|
2299 |
<br><br>
|
2300 |
|
2301 |
-
<input type = 'submit' value = '
|
2302 |
|
2303 |
-
<input type = 'submit' value = '
|
2304 |
|
2305 |
if(get_option('mo_openid_oauth')=='1' && get_option('moopenid_logo_check') == 1) {
|
2306 |
$html .= mo_openid_customize_logo();
|
@@ -2690,8 +2732,9 @@ Thank you.';
|
|
2690 |
|
2691 |
//compatibility with international characters
|
2692 |
add_filter('sanitize_user', 'mo_openid_sanitize_user', 10, 3);
|
2693 |
-
|
2694 |
-
|
|
|
2695 |
|
2696 |
function mo_openid_delete_social_profile_script(){
|
2697 |
?>
|
@@ -2722,72 +2765,19 @@ Thank you.';
|
|
2722 |
// Kill octets
|
2723 |
$username = preg_replace( '|%([a-fA-F0-9][a-fA-F0-9])|', '', $username );
|
2724 |
$username = preg_replace( '/&.+?;/', '', $username ); // Kill entities
|
|
|
2725 |
// If strict, reduce to ASCII and Cyrillic characters for max portability.
|
2726 |
if ( $strict )
|
2727 |
$username = preg_replace( '|[^a-zあ-ん\p{Han}а-я0-9ㅂㅈㄷㄱ쇼ㅕㅑㅐㅔㅁㄴㅇㄹ호ㅓㅏㅣㅋㅌㅊ퓨ㅜㅡㅃㅉㄸㄲ썌ㅖ _.\-@]|iu', '', $username );
|
|
|
2728 |
$username = trim( $username );
|
2729 |
// Consolidate contiguous whitespace
|
2730 |
$username = preg_replace( '|\s+|', ' ', $username );
|
2731 |
return $username;
|
2732 |
}
|
2733 |
|
2734 |
-
function mo_openid_sanitize_title_with_dashes( $title, $raw_title = '', $context = 'display' ) {
|
2735 |
-
|
2736 |
-
$title = strip_tags($raw_title);
|
2737 |
-
// Preserve escaped octets.
|
2738 |
-
$title = preg_replace('|%([a-fA-F0-9][a-fA-F0-9])|', '---$1---', $title);
|
2739 |
-
// Remove percent signs that are not part of an octet.
|
2740 |
-
$title = str_replace('%', '', $title);
|
2741 |
-
// Restore octets.
|
2742 |
-
$title = preg_replace('|---([a-fA-F0-9][a-fA-F0-9])---|', '%$1', $title);
|
2743 |
-
if (seems_utf8($title)) {
|
2744 |
-
if (function_exists('mb_strtolower')) {
|
2745 |
-
$title = mb_strtolower($title, 'UTF-8');
|
2746 |
-
}
|
2747 |
-
}
|
2748 |
-
|
2749 |
-
$title = strtolower($title);
|
2750 |
-
|
2751 |
-
if ( 'save' == $context ) {
|
2752 |
-
// Convert nbsp, ndash and mdash to hyphens
|
2753 |
-
$title = str_replace( array( '%c2%a0', '%e2%80%93', '%e2%80%94' ), '-', $title );
|
2754 |
-
// Convert nbsp, ndash and mdash HTML entities to hyphens
|
2755 |
-
$title = str_replace( array( ' ', ' ', '–', '–', '—', '—' ), '-', $title );
|
2756 |
-
// Convert forward slash to hyphen
|
2757 |
-
$title = str_replace( '/', '-', $title );
|
2758 |
-
|
2759 |
-
// Strip these characters entirely
|
2760 |
-
$title = str_replace( array(
|
2761 |
-
// iexcl and iquest
|
2762 |
-
'%c2%a1', '%c2%bf',
|
2763 |
-
// angle quotes
|
2764 |
-
'%c2%ab', '%c2%bb', '%e2%80%b9', '%e2%80%ba',
|
2765 |
-
// curly quotes
|
2766 |
-
'%e2%80%98', '%e2%80%99', '%e2%80%9c', '%e2%80%9d',
|
2767 |
-
'%e2%80%9a', '%e2%80%9b', '%e2%80%9e', '%e2%80%9f',
|
2768 |
-
// copy, reg, deg, hellip and trade
|
2769 |
-
'%c2%a9', '%c2%ae', '%c2%b0', '%e2%80%a6', '%e2%84%a2',
|
2770 |
-
// acute accents
|
2771 |
-
'%c2%b4', '%cb%8a', '%cc%81', '%cd%81',
|
2772 |
-
// grave accent, macron, caron
|
2773 |
-
'%cc%80', '%cc%84', '%cc%8c',
|
2774 |
-
), '', $title );
|
2775 |
-
// Convert times to x
|
2776 |
-
$title = str_replace( '%c3%97', 'x', $title );
|
2777 |
-
}
|
2778 |
|
2779 |
-
$title = preg_replace('/&.+?;/', '', $title); // kill entities
|
2780 |
-
$title = str_replace('.', '-', $title);
|
2781 |
|
2782 |
-
//Do not replace special characters for post
|
2783 |
-
if (!( 'query' == $context) ) {
|
2784 |
-
$title = preg_replace('|[^a-zあ-ん\p{Han}а-я0-9ㅂㅈㄷㄱ쇼ㅕㅑㅐㅔㅁㄴㅇㄹ호ㅓㅏㅣㅋㅌㅊ퓨ㅜㅡㅃㅉㄸㄲ썌ㅖ _.\-@]|iu', '', $title);
|
2785 |
-
}
|
2786 |
-
$title = preg_replace('/\s+/', '-', $title);
|
2787 |
-
$title = preg_replace('|-+|', '-', $title);
|
2788 |
-
$title = trim($title, '-');
|
2789 |
|
2790 |
-
return $title;
|
2791 |
-
}
|
2792 |
}
|
2793 |
?>
|
97 |
</p>
|
98 |
<?php if(get_option('mo_openid_gdpr_consent_enable')){
|
99 |
$consent_message = isset($consent_message) ? $consent_message: ''; ?>
|
100 |
+
<!-- space -->
|
101 |
+
<label class="mo-consent" style="padding-right: 10px;"><input type="checkbox" onchange="mo_openid_on_consent_change(this,value)" value="1" id="mo_openid_consent_checkbox"><?php echo $consent_message;?></label>
|
102 |
+
<br>
|
103 |
<?php }
|
104 |
|
105 |
if($customTheme == 'default'){
|
476 |
$html .= '<label class="mo-consent"><input type="checkbox" onchange="mo_openid_on_consent_change(this,value)" value="1" id="mo_openid_consent_checkbox">';
|
477 |
$html .= $consent_message.'</label>';
|
478 |
}
|
479 |
+
|
480 |
if($customTheme == 'default'){
|
481 |
|
482 |
if( get_option('mo_openid_facebook_enable') ) {
|
528 |
|
529 |
if( get_option('mo_openid_linkedin_enable') ) {
|
530 |
if($selected_theme == 'longbutton'){
|
531 |
+
$html .= "<a rel='nofollow' ".$gdpr_setting."style='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;' class='btn btn-mo btn-block btn-social btn-linkedin btn-custom-dec login-button' onClick=\"moOpenIdLogin('linkedin','" .$linkedin_custom_app. "');\"> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-linkedin'></i>" . $buttonText . " LinkedIn</a>";
|
532 |
}
|
533 |
else{
|
534 |
$html .= "<a class='".$dis." login-button' rel='nofollow' title= ' ".$customTextofTitle." LinkedIn' onClick=\"moOpenIdLogin('linkedin','" . $linkedin_custom_app . "');\" ><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>";
|
656 |
$html .= $logo_html;
|
657 |
}
|
658 |
?>
|
|
|
659 |
<?php
|
660 |
}else {
|
661 |
global $current_user;
|
735 |
|
736 |
}
|
737 |
}
|
738 |
+
|
739 |
}
|
740 |
else {
|
741 |
|
751 |
}
|
752 |
|
753 |
}
|
754 |
+
|
755 |
window.location.href = redirect_url + app_name;
|
756 |
+
|
757 |
}
|
758 |
</script>
|
759 |
<?php
|
1082 |
$return_url = strpos($base_return_url, '?') !== false ? urlencode( $base_return_url . '&option=moopenid' ): urlencode( $base_return_url . '?option=moopenid' );
|
1083 |
|
1084 |
$url = get_option('mo_openid_host_name') . '/moas/openid-connect/client-app/authenticate?token=' . $encoded_token . '&userdata=' . $userdata. '&id=' . get_option('mo_openid_admin_customer_key') . '&encrypted=true&app=' . $_REQUEST['app_name'] . '_oauth&returnurl=' . $return_url . '&encrypt_response=true';
|
1085 |
+
wp_redirect($url);
|
1086 |
exit;
|
1087 |
}
|
1088 |
|
1227 |
wp_set_auth_cookie( $email_user_id, true );
|
1228 |
}
|
1229 |
// if account linking is enable and email is set
|
1230 |
+
else if ( get_option('mo_openid_account_linking_enable') && (!mo_openid_restrict_user())){
|
1231 |
mo_openid_start_session();
|
1232 |
$_SESSION['username'] = $username;
|
1233 |
$_SESSION['user_email'] = $user_email;
|
1394 |
$user_email = str_replace(' ', '', $user_email);
|
1395 |
|
1396 |
//account linking
|
1397 |
+
if ( get_option('mo_openid_account_linking_enable') && (!mo_openid_restrict_user())){
|
1398 |
mo_openid_start_session();
|
1399 |
$_SESSION['username'] = $decrypted_user_name;
|
1400 |
$_SESSION['user_email'] = $user_email;
|
1514 |
do_action( 'wp_login', $user->user_login, $user );
|
1515 |
wp_set_auth_cookie( $user_id, true );
|
1516 |
}
|
1517 |
+
else if ( get_option('mo_openid_account_linking_enable')&& (!mo_openid_restrict_user())){
|
1518 |
mo_openid_start_session();
|
1519 |
$_SESSION['username'] = $decrypted_user_name;
|
1520 |
$_SESSION['user_email'] = $user_email;
|
1621 |
|
1622 |
if($key == "facebook" && $appname == "facebook"){
|
1623 |
$_SESSION["appname"] = "facebook";
|
1624 |
+
if(get_option('mo_openid_malform_error')) {
|
1625 |
+
$social_app_redirect_uri = site_url() . '/openidcallback/facebook';
|
1626 |
+
|
1627 |
+
}
|
1628 |
+
else {
|
1629 |
+
$social_app_redirect_uri = site_url() . '/openidcallback';
|
1630 |
+
}
|
1631 |
+
|
1632 |
$client_id = $currentapp['clientid'];
|
1633 |
$scope = $currentapp['scope'];
|
1634 |
$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;
|
1635 |
break;
|
1636 |
}
|
1637 |
else if($key == "google" && $appname == "google"){
|
1638 |
+
|
1639 |
$_SESSION["appname"] = "google";
|
1640 |
+
if(get_option('mo_openid_malform_error')) {
|
1641 |
+
$social_app_redirect_uri = site_url() . '/openidcallback/google';
|
1642 |
+
|
1643 |
+
}
|
1644 |
+
else {
|
1645 |
+
$social_app_redirect_uri = site_url() . '/openidcallback';
|
1646 |
+
|
1647 |
+
}
|
1648 |
+
|
1649 |
$client_id = $currentapp['clientid'];
|
1650 |
$scope = $currentapp['scope'];
|
1651 |
$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';
|
1652 |
+
|
1653 |
break;
|
1654 |
}
|
1655 |
else if($key == "twitter" && $appname == "twitter")
|
1681 |
$_SESSION['appname'] = "twitter";
|
1682 |
}
|
1683 |
|
1684 |
+
if($_SESSION['appname']) {
|
1685 |
+
$appname = $_SESSION['appname'];
|
1686 |
+
}else {
|
1687 |
+
if (strpos($_SERVER['REQUEST_URI'], "/openidcallback/google") !== false) {
|
1688 |
+
$appname = "google";
|
1689 |
+
}
|
1690 |
+
|
1691 |
+
if (strpos($_SERVER['REQUEST_URI'], "/openidcallback/facebook") !== false) {
|
1692 |
+
$appname = "facebook";
|
1693 |
+
|
1694 |
+
}
|
1695 |
+
}
|
1696 |
|
1697 |
if($appname == "twitter"){
|
1698 |
$dirs = explode('&', $_SERVER['REQUEST_URI']);
|
1716 |
else{
|
1717 |
$appslist = array();
|
1718 |
}
|
1719 |
+
if(get_option('mo_openid_malform_error')){
|
1720 |
+
$social_app_redirect_uri = site_url() .'/openidcallback/'.$appname;
|
1721 |
+
}
|
1722 |
+
else{
|
1723 |
+
$social_app_redirect_uri = site_url() .'/openidcallback';
|
1724 |
+
}
|
1725 |
|
1726 |
foreach($appslist as $key=>$currentapp){
|
1727 |
if($key == "facebook" && $appname == "facebook"){
|
1775 |
exit();
|
1776 |
}
|
1777 |
$access_token_json_output = json_decode($result, true);
|
1778 |
+
|
1779 |
}
|
1780 |
else
|
1781 |
{
|
1948 |
}
|
1949 |
$user_email = str_replace(' ', '', $user_email);
|
1950 |
|
1951 |
+
if ( get_option('mo_openid_account_linking_enable')&& (!mo_openid_restrict_user())){
|
1952 |
mo_openid_start_session();
|
1953 |
$_SESSION['username'] = $username;
|
1954 |
$_SESSION['user_email'] = $user_email;
|
2065 |
|
2066 |
}
|
2067 |
//if account linking is enable
|
2068 |
+
else if ( get_option('mo_openid_account_linking_enable')&& (!mo_openid_restrict_user())){
|
2069 |
mo_openid_start_session();
|
2070 |
$_SESSION['username'] = $user_name;
|
2071 |
$_SESSION['user_email'] = $user_email;
|
2150 |
}
|
2151 |
}
|
2152 |
|
2153 |
+
function mo_openid_validate_otp_form($username, $user_email, $transaction_id, $user_picture, $user_url, $last_name, $user_full_name ,$first_name, $decrypted_app_name, $decrypted_user_id,$message = ''){
|
2154 |
$path = mo_openid_get_wp_style();
|
2155 |
+
if($message=='')
|
2156 |
+
{
|
2157 |
+
$message=get_option('mo_email_verify_message');
|
2158 |
+
}
|
2159 |
+
else
|
2160 |
+
$message=get_option('mo_email_verify_wrong_otp');
|
2161 |
+
|
2162 |
$html = '<head><link rel="stylesheet" href='.$path.' type="text/css" media="all" /></head>
|
2163 |
|
2164 |
<body class="login login-action-login wp-core-ui locale-en-us">
|
2168 |
<form name="f" method="post" action="">
|
2169 |
<div style="background: white;margin-top:-15px;padding: 15px;">
|
2170 |
|
2171 |
+
<div style="text-align:center"><span style="font-size: 24px;font-family: Arial">'.get_option('mo_email_verify_title').'</span></div><br>
|
2172 |
<div style="padding: 12px;"></div>
|
2173 |
<div style=" padding: 16px;background-color:rgba(1, 145, 191, 0.117647);color: black;">
|
2174 |
<span style=" margin-left: 15px;color: black;font-weight: bold;float: right;font-size: 22px;line-height: 20px;cursor: pointer;font-family: Arial;transition: 0.3s"></span>'.$message.'</div> <br>
|
2175 |
<p>
|
2176 |
+
<label for="user_login">'.get_option('mo_email_verify_verification_code_instruction').'<br/>
|
2177 |
<input type="text" pattern="\d{4,5}" class="input" name="otp_field" value="" size="20" /></label>
|
2178 |
</p>
|
2179 |
<input type="hidden" name="username_field" value='.$username.'>
|
2189 |
<input type="hidden" name="option" value="mo_openid_otp_validation">
|
2190 |
</div>
|
2191 |
<div style="float: right;margin-right: 11px;">
|
2192 |
+
<input type="submit" style="margin-left:10px" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="'.get_option('mo_profile_complete_submit_button').'"/>
|
2193 |
+
|
2194 |
</div>
|
2195 |
<div style="float: right">
|
2196 |
+
<input type="button" style="margin-left:10px" onclick="show_profile_completion_form()" name="otp_back" id="back" class="button button-primary button-large" value="'.get_option('mo_email_verify_back_button').'"/> 
|
2197 |
+
<input type="submit" name="resend_otp" id="resend_otp" class="button button-primary button-large" value="'.get_option('mo_email_verify_resend_otp_button').'"/>
|
2198 |
</div>';
|
2199 |
|
2200 |
if(get_option('mo_openid_oauth')=='1' && get_option('moopenid_logo_check') == 1) {
|
2237 |
<form name="f" method="post" action="">
|
2238 |
<div style="background: white;margin-top:-15px;padding: 15px;">
|
2239 |
|
2240 |
+
<div style="text-align:center"><span style="font-size: 24px;font-family: Arial">'.get_option('mo_profile_complete_title').'</span></div>
|
2241 |
+
<p><br>
|
2242 |
+
<label for="user_login">'.get_option('mo_profile_complete_username_label').'<br/>
|
2243 |
<input type="text" class="input" name="username_field" value='.$username.' size="20" required>
|
2244 |
+
<span align="center" class="form-input-validation is-error">'.get_option('mo_profile_complete_uname_exist').'</span>
|
2245 |
</label>
|
2246 |
</p>
|
2247 |
<br>
|
2248 |
<p>
|
2249 |
+
<label for="user_pass">'.get_option('mo_profile_complete_email_label').'<br/>
|
2250 |
<input type="email" name="email_field" class="input" value='.$user_email.' size="20" required></label>
|
2251 |
</p>
|
2252 |
<input type="hidden" name="first_name" value='.$first_name.'>
|
2259 |
<input type="hidden" name="option" value="mo_openid_profile_form_submitted">
|
2260 |
</div>
|
2261 |
<p class="submit">
|
2262 |
+
<input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="'.get_option('mo_profile_complete_submit_button').'"/>
|
2263 |
</p> ';
|
2264 |
|
2265 |
if(get_option('mo_openid_oauth')=='1' && get_option('moopenid_logo_check') == 1) {
|
2285 |
<form name="f" method="post" action="">
|
2286 |
<div style="background: white;margin-top:-15px;padding: 15px;">
|
2287 |
|
2288 |
+
<div style="text-align:center"><span style="font-size: 24px;font-family: Arial">'.get_option('mo_profile_complete_title').'</span></div><br>
|
2289 |
<div style="padding: 12px;"></div>
|
2290 |
<div style=" padding: 16px;background-color:rgba(1, 145, 191, 0.117647);color: black;">
|
2291 |
+
<span style=" margin-left: 15px;color: black;font-weight: bold;float: right;font-size: 22px;line-height: 20px;cursor: pointer;font-family: Arial;transition: 0.3s"></span>'.get_option('mo_profile_complete_instruction').'</div><br>
|
2292 |
<p>
|
2293 |
+
<label for="user_login">'.get_option('mo_profile_complete_username_label').'<br/>
|
2294 |
<input type="text" class="input" name="username_field" size="20" required value='.$decrypted_user_name.'></label>
|
2295 |
</p>
|
2296 |
<p>
|
2297 |
+
<label for="user_pass">'.get_option('mo_profile_complete_email_label').'<br/>
|
2298 |
<input type="email" class="input" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]+$" name="email_field" size="20" required value='.$decrypted_email.'></label>
|
2299 |
+
<span align="center" class="form-input-validation note">'.get_option('mo_profile_complete_extra_instruction').'</span>
|
2300 |
</p>
|
2301 |
<input type="hidden" name="first_name" value='.$first_name.'>
|
2302 |
<input type="hidden" name="last_name" value='.$last_name.'>
|
2308 |
<input type="hidden" name="option" value="mo_openid_profile_form_submitted">
|
2309 |
</div>
|
2310 |
<p class="submit">
|
2311 |
+
<input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="'.get_option('mo_profile_complete_submit_button').'"/>
|
2312 |
</p> ';
|
2313 |
|
2314 |
if(get_option('mo_openid_oauth')=='1' && get_option('moopenid_logo_check') == 1) {
|
2334 |
<div style = 'background-color:white; padding:12px; position:fixed; top:100px; right: 350px; padding-bottom: 20px;left:350px; overflow:hidden; outline:1px black;border-radius: 5px;'>
|
2335 |
|
2336 |
<br>
|
2337 |
+
<div style=\"text-align:center\"><span style='font-size: 24px;font-family: Arial;text-align:center'>".get_option('mo_account_linking_title')."</span></div><br>
|
2338 |
<div style='padding: 12px;'></div>
|
2339 |
+
<div style=' padding: 16px;background-color:rgba(1, 145, 191, 0.117647);color: black;'>".get_option('mo_account_linking_new_user_instruction').".<br><br>".get_option('mo_account_linking_existing_user_instruction')."".get_option('mo_account_linking_extra_instruction')."
|
|
|
|
|
|
|
2340 |
</div>
|
2341 |
<br><br>
|
2342 |
|
2343 |
+
<input type = 'submit' value = '".get_option('mo_account_linking_existing_user_button')."' name = 'mo_openid_link_account' class='button button-primary button-large' style = 'margin-left: 13%;margin-right: 17%;'/>
|
2344 |
|
2345 |
+
<input type = 'submit' value = '".get_option('mo_account_linking_new_user_button')."' name = 'mo_openid_create_new_account' class='button button-primary button-large'/>";
|
2346 |
|
2347 |
if(get_option('mo_openid_oauth')=='1' && get_option('moopenid_logo_check') == 1) {
|
2348 |
$html .= mo_openid_customize_logo();
|
2732 |
|
2733 |
//compatibility with international characters
|
2734 |
add_filter('sanitize_user', 'mo_openid_sanitize_user', 10, 3);
|
2735 |
+
|
2736 |
+
// remove_filter('sanitize_title','sanitize_title_with_dashes', 10);
|
2737 |
+
// add_filter( 'sanitize_title', 'mo_openid_sanitize_title_with_dashes', 10, 3 );
|
2738 |
|
2739 |
function mo_openid_delete_social_profile_script(){
|
2740 |
?>
|
2765 |
// Kill octets
|
2766 |
$username = preg_replace( '|%([a-fA-F0-9][a-fA-F0-9])|', '', $username );
|
2767 |
$username = preg_replace( '/&.+?;/', '', $username ); // Kill entities
|
2768 |
+
|
2769 |
// If strict, reduce to ASCII and Cyrillic characters for max portability.
|
2770 |
if ( $strict )
|
2771 |
$username = preg_replace( '|[^a-zあ-ん\p{Han}а-я0-9ㅂㅈㄷㄱ쇼ㅕㅑㅐㅔㅁㄴㅇㄹ호ㅓㅏㅣㅋㅌㅊ퓨ㅜㅡㅃㅉㄸㄲ썌ㅖ _.\-@]|iu', '', $username );
|
2772 |
+
|
2773 |
$username = trim( $username );
|
2774 |
// Consolidate contiguous whitespace
|
2775 |
$username = preg_replace( '|\s+|', ' ', $username );
|
2776 |
return $username;
|
2777 |
}
|
2778 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2779 |
|
|
|
|
|
2780 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2781 |
|
|
|
|
|
2782 |
}
|
2783 |
?>
|
class-mo-openid-social-comment.php
CHANGED
@@ -1,98 +1,104 @@
|
|
1 |
<?php
|
2 |
-
function mo_openid_social_comment($post, $url)
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
|
|
|
|
27 |
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
|
|
45 |
}
|
46 |
|
47 |
-
function mo_openid_comments_shortcode()
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
|
|
|
|
55 |
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
|
92 |
-
|
93 |
-
|
94 |
|
95 |
-
|
96 |
-
|
|
|
97 |
|
98 |
?>
|
1 |
<?php
|
2 |
+
function mo_openid_social_comment($post, $url)
|
3 |
+
{
|
4 |
+
if (mo_openid_is_customer_registered())
|
5 |
+
{
|
6 |
+
?>
|
7 |
+
<script>
|
8 |
+
function moOpenIDShowCommentForms() {
|
9 |
+
var commentFormElement = document.getElementById("respond");
|
10 |
+
if (commentFormElement) {
|
11 |
+
<?php wp_enqueue_script('moopenid-comment-fb', plugins_url('includes/js/social/fb_comment.js', __FILE__), array('jquery'));?>
|
12 |
+
var commentForm = '<div><h3 id="mo_reply_label" class="comment-reply-title"><?php echo get_option("mo_openid_social_comment_heading_label") ?></h3><br/><ul class="mo_openid_comment_tab">';
|
13 |
+
<?php if(get_option('mo_openid_social_comment_default')){ $commentsCount = wp_count_comments($post->ID); ?>
|
14 |
+
commentForm += '<li id="moopenid_social_comment_default" class="mo_openid_selected_tab"><?php echo get_option("mo_openid_social_comment_default_label") ?>(<?php echo($commentsCount && isset($commentsCount->approved) ? $commentsCount->approved : '') ?>)</li>';
|
15 |
+
<?php } if(get_option('mo_openid_social_comment_fb')){ ?>
|
16 |
+
commentForm += '<li id="moopenid_social_comment_fb"><?php echo get_option("mo_openid_social_comment_fb_label") ?></li>';
|
17 |
+
<?php } if(get_option('mo_openid_social_comment_google')){ ?>
|
18 |
+
commentForm += '<li id="moopenid_social_comment_google"><?php echo get_option("mo_openid_social_comment_google_label") ?></li>';
|
19 |
+
<?php } ?>
|
20 |
+
commentForm += '</ul>';
|
21 |
+
commentForm += '<br/><div id="moopenid_comment_form_default" style="display:none;">';
|
22 |
+
commentForm += document.getElementById("respond").innerHTML;
|
23 |
+
commentForm += '</div>';
|
24 |
+
commentForm += '<div id="moopenid_comment_form_fb" style="display:none;"><div class="fb-comments" data-href=' + '"<?php echo $url ?>"' + '></div></div>';
|
25 |
+
commentForm += '<br/><div id="moopenid_comment_form_google" style="display:none;"></div>';
|
26 |
+
commentForm += '</div>';
|
27 |
+
document.getElementById("respond").innerHTML = commentForm;
|
28 |
+
document.getElementById("reply-title") && jQuery("#reply-title").remove();
|
29 |
|
30 |
+
<?php $mo_disqus_shortname = get_option("mo_openid_social_comment_disqus_shortname"); ?>
|
31 |
+
var sg1 = document.createElement("script");
|
32 |
+
sg1.src = 'https://apis.google.com/js/plusone.js?onload=gapiCallback';
|
33 |
+
var divComm = document.createElement("div");
|
34 |
+
divComm.id = "google-comments";
|
35 |
+
document.getElementById("moopenid_comment_form_google").appendChild(divComm);
|
36 |
+
document.getElementById("moopenid_comment_form_google").appendChild(sg1);
|
37 |
+
}
|
38 |
+
}
|
39 |
|
40 |
+
window.gapiCallback = function () {
|
41 |
+
var sg2 = document.createElement("script");
|
42 |
+
sg2.innerHTML = 'gapi.comments.render("google-comments", {href: window.location, width: "624", first_party_property: "BLOGGER", view_type: "FILTERED_POSTMOD" });';
|
43 |
+
document.getElementById("moopenid_comment_form_google").appendChild(sg2);
|
44 |
+
}
|
45 |
+
</script>
|
46 |
+
<?php
|
47 |
+
}
|
48 |
}
|
49 |
|
50 |
+
function mo_openid_comments_shortcode()
|
51 |
+
{
|
52 |
+
if (mo_openid_is_customer_registered()) {
|
53 |
+
$html = '';
|
54 |
+
$html .= '<div id="mo_comment_shortcode"></div>';
|
55 |
+
$html .= '<script>';
|
56 |
+
$html .= 'window.onload=function(){';
|
57 |
+
$html .= 'var comments = document.getElementById("comments");';
|
58 |
+
$html .= 'document.getElementById("mo_comment_shortcode").innerHTML = comments.innerHTML;';
|
59 |
+
$html .= 'comments.parentNode.removeChild(comments);';
|
60 |
|
61 |
+
$html .= 'if(document.getElementById("moopenid_social_comment_default")) {';
|
62 |
+
$html .= 'jQuery("#moopenid_comment_form_default").attr("style","display:block");';
|
63 |
+
$html .= 'jQuery("#moopenid_social_comment_default").addClass("mo_openid_selected_tab");';
|
64 |
+
$html .= '} else if(document.getElementById("moopenid_social_comment_fb")) {';
|
65 |
+
$html .= 'jQuery("#moopenid_comment_form_fb").attr("style","display:block");';
|
66 |
+
$html .= 'jQuery("#moopenid_social_comment_fb").addClass("mo_openid_selected_tab");';
|
67 |
+
$html .= '} else if(document.getElementById("moopenid_social_comment_google")){';
|
68 |
+
$html .= 'Query("#moopenid_comment_form_google").attr("style","display:block");';
|
69 |
+
$html .= 'jQuery("#moopenid_social_comment_google").addClass("mo_openid_selected_tab");';
|
70 |
+
$html .= '}';
|
71 |
|
72 |
+
$html .= 'jQuery("#moopenid_social_comment_fb").click(function(){';
|
73 |
+
$html .= 'jQuery("#moopenid_comment_form_fb").attr("style","display:block");';
|
74 |
+
$html .= 'jQuery("#moopenid_comment_form_google").attr("style","display:none");';
|
75 |
+
$html .= 'jQuery("#moopenid_comment_form_default").attr("style","display:none");';
|
76 |
+
$html .= 'jQuery("#moopenid_social_comment_fb").addClass("mo_openid_selected_tab");';
|
77 |
+
$html .= 'jQuery("#moopenid_social_comment_default").removeClass("mo_openid_selected_tab");';
|
78 |
+
$html .= 'jQuery("#moopenid_social_comment_google").removeClass("mo_openid_selected_tab");';
|
79 |
+
$html .= '});';
|
80 |
+
$html .= 'jQuery("#moopenid_social_comment_default").click(function(){';
|
81 |
+
$html .= 'jQuery("#moopenid_comment_form_fb").attr("style","display:none");';
|
82 |
+
$html .= 'jQuery("#moopenid_comment_form_google").attr("style","display:none");';
|
83 |
+
$html .= 'jQuery("#moopenid_comment_form_default").attr("style","display:block");';
|
84 |
+
$html .= 'jQuery("#moopenid_social_comment_fb").removeClass("mo_openid_selected_tab");';
|
85 |
+
$html .= 'jQuery("#moopenid_social_comment_default").addClass("mo_openid_selected_tab");';
|
86 |
+
$html .= 'jQuery("#moopenid_social_comment_google").removeClass("mo_openid_selected_tab");';
|
87 |
+
$html .= '});';
|
88 |
+
$html .= 'jQuery("#moopenid_social_comment_google").click(function(){';
|
89 |
+
$html .= 'jQuery("#moopenid_comment_form_fb").attr("style","display:none");';
|
90 |
+
$html .= 'jQuery("#moopenid_comment_form_google").attr("style","display:block");';
|
91 |
+
$html .= 'jQuery("#moopenid_comment_form_default").attr("style","display:none");';
|
92 |
+
$html .= 'jQuery("#moopenid_social_comment_fb").removeClass("mo_openid_selected_tab");';
|
93 |
+
$html .= 'jQuery("#moopenid_social_comment_default").removeClass("mo_openid_selected_tab");';
|
94 |
+
$html .= 'jQuery("#moopenid_social_comment_google").addClass("mo_openid_selected_tab");';
|
95 |
+
$html .= '});';
|
96 |
|
97 |
+
$html .= '}';
|
98 |
+
$html .= '</script>';
|
99 |
|
100 |
+
return $html;
|
101 |
+
}
|
102 |
+
}
|
103 |
|
104 |
?>
|
class-mo-openid-social-share.php
CHANGED
@@ -6,7 +6,7 @@ if(isset($_SERVER['HTTPS']) && !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !=
|
|
6 |
}
|
7 |
$url = $http . $_SERVER["HTTP_HOST"] . $_SERVER['REQUEST_URI'];
|
8 |
|
9 |
-
|
10 |
$selected_theme = get_option('mo_openid_share_theme');
|
11 |
$selected_direction = get_option('mo_openid_share_widget_customize_direction');
|
12 |
$sharingSize = get_option('mo_sharing_icon_custom_size');
|
@@ -21,7 +21,7 @@ $url = $http . $_SERVER["HTTP_HOST"] . $_SERVER['REQUEST_URI'];
|
|
21 |
$email_subject = get_option('mo_openid_share_email_subject');
|
22 |
$email_body = get_option('mo_openid_share_email_body');
|
23 |
$email_body = str_replace('##url##', $url, $email_body);
|
24 |
-
|
25 |
$orientation = 'hor';
|
26 |
if($landscape) {
|
27 |
if($landscape == 'horizontal') {
|
@@ -38,7 +38,7 @@ $url = $http . $_SERVER["HTTP_HOST"] . $_SERVER['REQUEST_URI'];
|
|
38 |
}
|
39 |
?>
|
40 |
<script>
|
41 |
-
|
42 |
function popupCenter(pageURL, w,h) {
|
43 |
var left = (screen.width/2)-(w/2);
|
44 |
var top = (screen.height/2)-(h/2);
|
@@ -50,11 +50,11 @@ $url = $http . $_SERVER["HTTP_HOST"] . $_SERVER['REQUEST_URI'];
|
|
50 |
e.setAttribute('type','text/javascript');
|
51 |
e.setAttribute('charset','UTF-8');
|
52 |
e.setAttribute('src','https://assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);
|
53 |
-
document.body.appendChild(e);
|
54 |
}
|
55 |
</script>
|
56 |
<div class="mo-openid-app-icons circle ">
|
57 |
-
<p style="color: #<?php echo $heading_color; ?>;"><?php
|
58 |
if( $orientation == 'hor' ) {
|
59 |
echo $heading_text;
|
60 |
?></p>
|
@@ -67,14 +67,14 @@ $url = $http . $_SERVER["HTTP_HOST"] . $_SERVER['REQUEST_URI'];
|
|
67 |
<a rel='nofollow' title="Facebook" onclick="popupCenter('<?php echo $link; ?>', 800, 400);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-facebook" style="padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
68 |
<?php
|
69 |
}
|
70 |
-
|
71 |
if( get_option('mo_openid_twitter_share_enable') ) {
|
72 |
$link = empty($twitter_username) ? 'https://twitter.com/intent/tweet?text='.$title.'&url='.$url : 'https://twitter.com/intent/tweet?text='.$title.'&url='.$url. '&via='.$twitter_username;
|
73 |
?>
|
74 |
<a rel='nofollow' title="Twitter" onclick="popupCenter('<?php echo $link; ?>', 600, 300);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-twitter" style="padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
75 |
<?php
|
76 |
}
|
77 |
-
|
78 |
if( get_option('mo_openid_google_share_enable') ) {
|
79 |
$link = 'https://plus.google.com/share?url='.$url;
|
80 |
?>
|
@@ -90,7 +90,7 @@ $url = $http . $_SERVER["HTTP_HOST"] . $_SERVER['REQUEST_URI'];
|
|
90 |
}
|
91 |
|
92 |
if( get_option('mo_openid_tumblr_share_enable') ) {
|
93 |
-
$link = 'http://www.tumblr.com/share/link?url='.$url.'&title='.$title.'&description='.$excerpt;
|
94 |
?>
|
95 |
<a rel='nofollow' title="Tumblr" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-tumblr" style="padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
96 |
<?php
|
@@ -102,21 +102,21 @@ $url = $http . $_SERVER["HTTP_HOST"] . $_SERVER['REQUEST_URI'];
|
|
102 |
<a rel='nofollow' title="StumbleUpon" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-stumbleupon" style="padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
103 |
<?php
|
104 |
}
|
105 |
-
|
106 |
if( get_option('mo_openid_linkedin_share_enable') ) {
|
107 |
$link = 'https://www.linkedin.com/shareArticle?mini=true&title='.$title.'&url='.$url.'&summary='.$excerpt;
|
108 |
?>
|
109 |
<a rel='nofollow' title="LinkekIn" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-linkedin" style="padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
110 |
<?php
|
111 |
}
|
112 |
-
|
113 |
if( get_option('mo_openid_reddit_share_enable') ) {
|
114 |
$link = 'http://www.reddit.com/submit?url='.$url.'&title='.$title;
|
115 |
?>
|
116 |
<a rel='nofollow' title="Reddit" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-reddit" style="padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
117 |
<?php
|
118 |
}
|
119 |
-
|
120 |
if( get_option('mo_openid_pinterest_share_enable') ) {
|
121 |
?>
|
122 |
<a rel='nofollow' title="Pinterest" href='javascript:pinIt();' class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-pinterest" style="padding-top:3px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-10); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
@@ -163,21 +163,21 @@ $url = $http . $_SERVER["HTTP_HOST"] . $_SERVER['REQUEST_URI'];
|
|
163 |
<?php
|
164 |
}
|
165 |
if( get_option('mo_openid_whatsapp_share_enable') && wp_is_mobile()) {
|
166 |
-
|
167 |
?>
|
168 |
<a rel='nofollow' title="Whatsapp" href='whatsapp://send?text=<?php echo $url?>' class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important">
|
169 |
<i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-whatsapp" style="padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
170 |
<?php
|
171 |
-
}
|
172 |
else if( get_option('mo_openid_whatsapp_share_enable') ) {
|
173 |
-
|
174 |
?>
|
175 |
<a rel='nofollow' title="Whatsapp" target ='_blank' href='https://web.whatsapp.com/send?text=<?php echo $url?>' class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important">
|
176 |
<i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-whatsapp" style="padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
177 |
<?php
|
178 |
-
}
|
179 |
}
|
180 |
-
|
181 |
else if($custom_theme == 'customFont'){
|
182 |
if( get_option('mo_openid_facebook_share_enable') ) {
|
183 |
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href='.$url;
|
@@ -185,28 +185,28 @@ $url = $http . $_SERVER["HTTP_HOST"] . $_SERVER['REQUEST_URI'];
|
|
185 |
<a rel='nofollow' title="Facebook" onclick="popupCenter('<?php echo $link; ?>', 800, 400);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons-6?>px !important"><i class=" <?php echo $selected_theme; ?> fa fa-facebook" style="padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
186 |
<?php
|
187 |
}
|
188 |
-
|
189 |
if( get_option('mo_openid_twitter_share_enable') ) {
|
190 |
$link = empty($twitter_username) ? 'https://twitter.com/intent/tweet?text='.$title.'&url='.$url : 'https://twitter.com/intent/tweet?text='.$title.'&url='.$url. '&via='.$twitter_username;
|
191 |
?>
|
192 |
<a rel='nofollow' title="Twitter" onclick="popupCenter('<?php echo $link; ?>', 600, 300);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons-6?>px !important"><i class=" <?php echo $selected_theme; ?> fa fa-twitter" style="padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
193 |
<?php
|
194 |
}
|
195 |
-
|
196 |
if( get_option('mo_openid_google_share_enable') ) {
|
197 |
$link = 'https://plus.google.com/share?url='.$url;
|
198 |
?>
|
199 |
<a rel='nofollow' title="Google" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons-6?>px !important"><i class=" <?php echo $selected_theme; ?> fa fa-google-plus" style="padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
200 |
<?php
|
201 |
}
|
202 |
-
|
203 |
if( get_option('mo_openid_vkontakte_share_enable') ) {
|
204 |
$link = 'http://vk.com/share.php?url='.$url.'&title='.$title.'&description='.$excerpt;
|
205 |
?>
|
206 |
<a rel='nofollow' title="Vkontakte" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons-6?>px !important"><i class=" <?php echo $selected_theme; ?> fa fa-vk" style="padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
207 |
<?php
|
208 |
}
|
209 |
-
|
210 |
if( get_option('mo_openid_tumblr_share_enable') ) {
|
211 |
$link = 'http://www.tumblr.com/share/link?url='.$url.'&title='.$title;
|
212 |
?>
|
@@ -280,23 +280,23 @@ $url = $http . $_SERVER["HTTP_HOST"] . $_SERVER['REQUEST_URI'];
|
|
280 |
<?php
|
281 |
}
|
282 |
if( get_option('mo_openid_whatsapp_share_enable')&& wp_is_mobile() ) {
|
283 |
-
|
284 |
?>
|
285 |
<a rel='nofollow' title="Whatsapp" href='whatsapp://send?text=<?php echo $url?>' class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important">
|
286 |
<i class=" <?php echo $selected_theme; ?> fa fa-whatsapp" style="padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
287 |
<?php
|
288 |
}
|
289 |
else if( get_option('mo_openid_whatsapp_share_enable') ) {
|
290 |
-
|
291 |
?>
|
292 |
<a rel='nofollow' title="Whatsapp" target ='_blank' href='https://web.whatsapp.com/send?text=<?php echo $url?>' class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important">
|
293 |
<i class=" <?php echo $selected_theme; ?> fa fa-whatsapp" style="padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
294 |
<?php
|
295 |
-
}
|
296 |
}
|
297 |
-
|
298 |
else{
|
299 |
-
|
300 |
|
301 |
if( get_option('mo_openid_facebook_share_enable') ) {
|
302 |
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href='.$url;
|
@@ -304,21 +304,21 @@ $url = $http . $_SERVER["HTTP_HOST"] . $_SERVER['REQUEST_URI'];
|
|
304 |
<a rel='nofollow' title="Facebook" onclick="popupCenter('<?php echo $link; ?>', 800, 400);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><img alt='Facebook' style= 'height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/facebook.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" ></a>
|
305 |
<?php
|
306 |
}
|
307 |
-
|
308 |
if( get_option('mo_openid_twitter_share_enable') ) {
|
309 |
$link = empty($twitter_username) ? 'https://twitter.com/intent/tweet?text='.$title.'&url='.$url : 'https://twitter.com/intent/tweet?text='.$title.'&url='.$url. '&via='.$twitter_username;
|
310 |
?>
|
311 |
<a rel='nofollow' title="Twitter" onclick="popupCenter('<?php echo $link; ?>', 600, 300);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><img alt='Twitter' style= 'height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/twitter.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" ></a>
|
312 |
<?php
|
313 |
}
|
314 |
-
|
315 |
if( get_option('mo_openid_google_share_enable') ) {
|
316 |
$link = 'https://plus.google.com/share?url='.$url;
|
317 |
?>
|
318 |
<a rel='nofollow' title="Google" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><img alt='Google' style= 'height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;background-color: <?php echo $selected_theme; ?>' src="<?php echo plugins_url( 'includes/images/icons/google.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" ></a>
|
319 |
<?php
|
320 |
}
|
321 |
-
|
322 |
if( get_option('mo_openid_vkontakte_share_enable') ) {
|
323 |
$link = 'http://vk.com/share.php?url='.$url.'&title='.$title.'&description='.$excerpt;
|
324 |
?>
|
@@ -397,23 +397,23 @@ $url = $http . $_SERVER["HTTP_HOST"] . $_SERVER['REQUEST_URI'];
|
|
397 |
<?php
|
398 |
}
|
399 |
if( get_option('mo_openid_whatsapp_share_enable') && wp_is_mobile()) {
|
400 |
-
|
401 |
?>
|
402 |
<a rel='nofollow' title="Whatsapp" href='whatsapp://send?text=<?php echo $url?>' class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important">
|
403 |
<img alt='Whatsapp' style= 'height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/whatsapp.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" data-action="share/whatsapp/share"></a>
|
404 |
<?php
|
405 |
}
|
406 |
else if( get_option('mo_openid_whatsapp_share_enable') ) {
|
407 |
-
|
408 |
?>
|
409 |
<a rel='nofollow'title="Whatsapp" target ='_blank' href='https://web.whatsapp.com/send?text=<?php echo $url?>' class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important">
|
410 |
<img alt='Whatsapp' style= 'height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/whatsapp.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" data-action="share/whatsapp/share"></a>
|
411 |
<?php
|
412 |
-
}
|
413 |
}
|
414 |
?></p>
|
415 |
</div>
|
416 |
-
<?php
|
417 |
}?>
|
418 |
<?php if( $orientation == 'ver' ) {?>
|
419 |
<div id="mo_floating_vertical_widget">
|
@@ -425,21 +425,21 @@ $url = $http . $_SERVER["HTTP_HOST"] . $_SERVER['REQUEST_URI'];
|
|
425 |
<a rel='nofollow' title="Facebook" onclick="popupCenter('<?php echo $link; ?>', 800, 400);" class="mo-openid-share-link" style="margin-bottom:<?php echo $space_icons?>px !important;"><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-facebook" style="margin-bottom:<?php echo $space_icons-4?>px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
426 |
<?php
|
427 |
}
|
428 |
-
|
429 |
if( get_option('mo_openid_twitter_share_enable') ) {
|
430 |
$link = empty($twitter_username) ? 'https://twitter.com/intent/tweet?text='.$title.'&url='.$url : 'https://twitter.com/intent/tweet?text='.$title.'&url='.$url. '&via='.$twitter_username;
|
431 |
?>
|
432 |
<a rel='nofollow' title="Twitter" onclick="popupCenter('<?php echo $link; ?>', 600, 300);" class="mo-openid-share-link" ><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-twitter" style="margin-bottom:<?php echo $space_icons-4?>px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
433 |
<?php
|
434 |
}
|
435 |
-
|
436 |
if( get_option('mo_openid_google_share_enable') ) {
|
437 |
$link = 'https://plus.google.com/share?url='.$url;
|
438 |
?>
|
439 |
<a rel='nofollow' title="Google" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-bottom:<?php echo $space_icons?>px !important;"><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-google-plus" style="margin-bottom:<?php echo $space_icons-4?>px!important; padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
440 |
<?php
|
441 |
}
|
442 |
-
|
443 |
if( get_option('mo_openid_vkontakte_share_enable') ) {
|
444 |
$link = 'http://vk.com/share.php?url='.$url.'&title='.$title.'&description='.$excerpt;
|
445 |
?>
|
@@ -521,19 +521,19 @@ $url = $http . $_SERVER["HTTP_HOST"] . $_SERVER['REQUEST_URI'];
|
|
521 |
<?php
|
522 |
}
|
523 |
if( get_option('mo_openid_whatsapp_share_enable')&& wp_is_mobile() ) {
|
524 |
-
|
525 |
?>
|
526 |
<a rel='nofollow' title="Whatsapp" href='whatsapp://send?text=<?php echo $url?>' class="mo-openid-share-link">
|
527 |
<i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-whatsapp" style="margin-bottom:<?php echo $space_icons-4?>px!important;padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
528 |
<?php
|
529 |
}
|
530 |
else if( get_option('mo_openid_whatsapp_share_enable') ) {
|
531 |
-
|
532 |
?>
|
533 |
<a rel='nofollow' title="Whatsapp" target ='_blank' href='https://web.whatsapp.com/send?text=<?php echo $url?>' class="mo-openid-share-link">
|
534 |
<i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-whatsapp" style="margin-bottom:<?php echo $space_icons-4?>px!important;padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
535 |
<?php
|
536 |
-
}
|
537 |
}
|
538 |
else if($custom_theme == 'customFont'){
|
539 |
if( get_option('mo_openid_facebook_share_enable') ) {
|
@@ -556,7 +556,7 @@ $url = $http . $_SERVER["HTTP_HOST"] . $_SERVER['REQUEST_URI'];
|
|
556 |
<a rel='nofollow' title="Google" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link"><i class=" <?php echo $selected_theme; ?> fa fa-google-plus" style="margin-bottom:<?php echo $space_icons-4?>px !important;padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
557 |
<?php
|
558 |
}
|
559 |
-
|
560 |
if( get_option('mo_openid_vkontakte_share_enable') ) {
|
561 |
$link = 'http://vk.com/share.php?url='.$url.'&title='.$title.'&description='.$excerpt;
|
562 |
?>
|
@@ -638,19 +638,19 @@ $url = $http . $_SERVER["HTTP_HOST"] . $_SERVER['REQUEST_URI'];
|
|
638 |
<?php
|
639 |
}
|
640 |
if( get_option('mo_openid_whatsapp_share_enable') && wp_is_mobile()) {
|
641 |
-
|
642 |
?>
|
643 |
<a rel='nofollow'title="Whatsapp" href='whatsapp://send?text=<?php echo $url?>' class="mo-openid-share-link">
|
644 |
<i class=" <?php echo $selected_theme; ?> fa fa-whatsapp" style="margin-bottom:<?php echo $space_icons-4?>px !important;padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
645 |
<?php
|
646 |
}
|
647 |
else if( get_option('mo_openid_whatsapp_share_enable') ) {
|
648 |
-
|
649 |
?>
|
650 |
<a rel='nofollow' title="Whatsapp" target ='_blank' href='https://web.whatsapp.com/send?text=<?php echo $url?>' class="mo-openid-share-link">
|
651 |
<i class=" <?php echo $selected_theme; ?> fa fa-whatsapp" style="margin-bottom:<?php echo $space_icons-4?>px !important;padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
652 |
<?php
|
653 |
-
}
|
654 |
}
|
655 |
else{
|
656 |
if( get_option('mo_openid_facebook_share_enable') ) {
|
@@ -659,21 +659,21 @@ $url = $http . $_SERVER["HTTP_HOST"] . $_SERVER['REQUEST_URI'];
|
|
659 |
<a rel='nofollow' title="Facebook" onclick="popupCenter('<?php echo $link; ?>', 800, 400);" class="mo-openid-share-link"><img alt='Facebook' style= 'margin-bottom:<?php echo $space_icons-6?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;background-color:white;' src="<?php echo plugins_url( 'includes/images/icons/facebook.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" ></a>
|
660 |
<?php
|
661 |
}
|
662 |
-
|
663 |
if( get_option('mo_openid_twitter_share_enable') ) {
|
664 |
$link = empty($twitter_username) ? 'https://twitter.com/intent/tweet?text='.$title.'&url='.$url : 'https://twitter.com/intent/tweet?text='.$title.'&url='.$url. '&via='.$twitter_username;
|
665 |
?>
|
666 |
<a rel='nofollow' title="Twitter" onclick="popupCenter('<?php echo $link; ?>', 600, 300);" class="mo-openid-share-link" ><img alt='Twitter' style= 'margin-bottom:<?php echo $space_icons-6?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;background-color:white;' src="<?php echo plugins_url( 'includes/images/icons/twitter.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" ></a>
|
667 |
<?php
|
668 |
}
|
669 |
-
|
670 |
if( get_option('mo_openid_google_share_enable') ) {
|
671 |
$link = 'https://plus.google.com/share?url='.$url;
|
672 |
?>
|
673 |
<a rel='nofollow' title="Google" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link"><img alt='Google' style= 'margin-bottom:<?php echo $space_icons-6?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;background-color: <?php echo $selected_theme; ?>' src="<?php echo plugins_url( 'includes/images/icons/google.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" ></a>
|
674 |
<?php
|
675 |
}
|
676 |
-
|
677 |
if( get_option('mo_openid_vkontakte_share_enable') ) {
|
678 |
$link = 'http://vk.com/share.php?url='.$url.'&title='.$title.'&description='.$excerpt;
|
679 |
?>
|
@@ -692,7 +692,7 @@ $url = $http . $_SERVER["HTTP_HOST"] . $_SERVER['REQUEST_URI'];
|
|
692 |
$link = 'http://www.stumbleupon.com/submit?url='.$url.'&title='.$title;
|
693 |
?>
|
694 |
<a rel='nofollow' title="StumbleUpon" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" ><img alt='StumbleUpon' style= 'margin-bottom:<?php echo $space_icons-6?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/stumble.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" ></a>
|
695 |
-
<?php
|
696 |
}
|
697 |
|
698 |
if( get_option('mo_openid_linkedin_share_enable') ) {
|
@@ -756,7 +756,7 @@ $url = $http . $_SERVER["HTTP_HOST"] . $_SERVER['REQUEST_URI'];
|
|
756 |
<?php
|
757 |
}
|
758 |
if( get_option('mo_openid_whatsapp_share_enable') && wp_is_mobile()) {
|
759 |
-
|
760 |
?>
|
761 |
<a rel='nofollow' title="Whatsapp" href='whatsapp://send?text=<?php echo $url?>' class="mo-openid-share-link">
|
762 |
<img alt='Whatsapp' style= 'margin-bottom:<?php echo $space_icons-6?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/whatsapp.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>"></a>
|
@@ -767,7 +767,7 @@ $url = $http . $_SERVER["HTTP_HOST"] . $_SERVER['REQUEST_URI'];
|
|
767 |
<a rel='nofollow' title="Whatsapp" target ='_blank' href='https://web.whatsapp.com/send?text=<?php echo $url?>' class="mo-openid-share-link">
|
768 |
<img alt='Whatsapp' style= 'margin-bottom:<?php echo $space_icons-6?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/whatsapp.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>"></a>
|
769 |
<?php
|
770 |
-
}
|
771 |
}
|
772 |
?></p>
|
773 |
</div>
|
@@ -776,7 +776,7 @@ $url = $http . $_SERVER["HTTP_HOST"] . $_SERVER['REQUEST_URI'];
|
|
776 |
function hideVerticalShare() {
|
777 |
var isMobile = false; //initiate as false
|
778 |
// device detection
|
779 |
-
if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)
|
780 |
|| /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4))) {
|
781 |
isMobile = true;
|
782 |
}
|
6 |
}
|
7 |
$url = $http . $_SERVER["HTTP_HOST"] . $_SERVER['REQUEST_URI'];
|
8 |
|
9 |
+
|
10 |
$selected_theme = get_option('mo_openid_share_theme');
|
11 |
$selected_direction = get_option('mo_openid_share_widget_customize_direction');
|
12 |
$sharingSize = get_option('mo_sharing_icon_custom_size');
|
21 |
$email_subject = get_option('mo_openid_share_email_subject');
|
22 |
$email_body = get_option('mo_openid_share_email_body');
|
23 |
$email_body = str_replace('##url##', $url, $email_body);
|
24 |
+
|
25 |
$orientation = 'hor';
|
26 |
if($landscape) {
|
27 |
if($landscape == 'horizontal') {
|
38 |
}
|
39 |
?>
|
40 |
<script>
|
41 |
+
|
42 |
function popupCenter(pageURL, w,h) {
|
43 |
var left = (screen.width/2)-(w/2);
|
44 |
var top = (screen.height/2)-(h/2);
|
50 |
e.setAttribute('type','text/javascript');
|
51 |
e.setAttribute('charset','UTF-8');
|
52 |
e.setAttribute('src','https://assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);
|
53 |
+
document.body.appendChild(e);
|
54 |
}
|
55 |
</script>
|
56 |
<div class="mo-openid-app-icons circle ">
|
57 |
+
<p style="color: #<?php echo $heading_color; ?>;"><?php
|
58 |
if( $orientation == 'hor' ) {
|
59 |
echo $heading_text;
|
60 |
?></p>
|
67 |
<a rel='nofollow' title="Facebook" onclick="popupCenter('<?php echo $link; ?>', 800, 400);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-facebook" style="padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
68 |
<?php
|
69 |
}
|
70 |
+
|
71 |
if( get_option('mo_openid_twitter_share_enable') ) {
|
72 |
$link = empty($twitter_username) ? 'https://twitter.com/intent/tweet?text='.$title.'&url='.$url : 'https://twitter.com/intent/tweet?text='.$title.'&url='.$url. '&via='.$twitter_username;
|
73 |
?>
|
74 |
<a rel='nofollow' title="Twitter" onclick="popupCenter('<?php echo $link; ?>', 600, 300);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-twitter" style="padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
75 |
<?php
|
76 |
}
|
77 |
+
|
78 |
if( get_option('mo_openid_google_share_enable') ) {
|
79 |
$link = 'https://plus.google.com/share?url='.$url;
|
80 |
?>
|
90 |
}
|
91 |
|
92 |
if( get_option('mo_openid_tumblr_share_enable') ) {
|
93 |
+
$link = 'http://www.tumblr.com/share/link?url='.$url.'&title='.$title.'&description='.$excerpt;
|
94 |
?>
|
95 |
<a rel='nofollow' title="Tumblr" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-tumblr" style="padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
96 |
<?php
|
102 |
<a rel='nofollow' title="StumbleUpon" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-stumbleupon" style="padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
103 |
<?php
|
104 |
}
|
105 |
+
|
106 |
if( get_option('mo_openid_linkedin_share_enable') ) {
|
107 |
$link = 'https://www.linkedin.com/shareArticle?mini=true&title='.$title.'&url='.$url.'&summary='.$excerpt;
|
108 |
?>
|
109 |
<a rel='nofollow' title="LinkekIn" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-linkedin" style="padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
110 |
<?php
|
111 |
}
|
112 |
+
|
113 |
if( get_option('mo_openid_reddit_share_enable') ) {
|
114 |
$link = 'http://www.reddit.com/submit?url='.$url.'&title='.$title;
|
115 |
?>
|
116 |
<a rel='nofollow' title="Reddit" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-reddit" style="padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
117 |
<?php
|
118 |
}
|
119 |
+
|
120 |
if( get_option('mo_openid_pinterest_share_enable') ) {
|
121 |
?>
|
122 |
<a rel='nofollow' title="Pinterest" href='javascript:pinIt();' class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-pinterest" style="padding-top:3px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-10); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
163 |
<?php
|
164 |
}
|
165 |
if( get_option('mo_openid_whatsapp_share_enable') && wp_is_mobile()) {
|
166 |
+
|
167 |
?>
|
168 |
<a rel='nofollow' title="Whatsapp" href='whatsapp://send?text=<?php echo $url?>' class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important">
|
169 |
<i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-whatsapp" style="padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
170 |
<?php
|
171 |
+
}
|
172 |
else if( get_option('mo_openid_whatsapp_share_enable') ) {
|
173 |
+
|
174 |
?>
|
175 |
<a rel='nofollow' title="Whatsapp" target ='_blank' href='https://web.whatsapp.com/send?text=<?php echo $url?>' class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important">
|
176 |
<i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-whatsapp" style="padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
177 |
<?php
|
178 |
+
}
|
179 |
}
|
180 |
+
|
181 |
else if($custom_theme == 'customFont'){
|
182 |
if( get_option('mo_openid_facebook_share_enable') ) {
|
183 |
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href='.$url;
|
185 |
<a rel='nofollow' title="Facebook" onclick="popupCenter('<?php echo $link; ?>', 800, 400);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons-6?>px !important"><i class=" <?php echo $selected_theme; ?> fa fa-facebook" style="padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
186 |
<?php
|
187 |
}
|
188 |
+
|
189 |
if( get_option('mo_openid_twitter_share_enable') ) {
|
190 |
$link = empty($twitter_username) ? 'https://twitter.com/intent/tweet?text='.$title.'&url='.$url : 'https://twitter.com/intent/tweet?text='.$title.'&url='.$url. '&via='.$twitter_username;
|
191 |
?>
|
192 |
<a rel='nofollow' title="Twitter" onclick="popupCenter('<?php echo $link; ?>', 600, 300);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons-6?>px !important"><i class=" <?php echo $selected_theme; ?> fa fa-twitter" style="padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
193 |
<?php
|
194 |
}
|
195 |
+
|
196 |
if( get_option('mo_openid_google_share_enable') ) {
|
197 |
$link = 'https://plus.google.com/share?url='.$url;
|
198 |
?>
|
199 |
<a rel='nofollow' title="Google" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons-6?>px !important"><i class=" <?php echo $selected_theme; ?> fa fa-google-plus" style="padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
200 |
<?php
|
201 |
}
|
202 |
+
|
203 |
if( get_option('mo_openid_vkontakte_share_enable') ) {
|
204 |
$link = 'http://vk.com/share.php?url='.$url.'&title='.$title.'&description='.$excerpt;
|
205 |
?>
|
206 |
<a rel='nofollow' title="Vkontakte" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons-6?>px !important"><i class=" <?php echo $selected_theme; ?> fa fa-vk" style="padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
207 |
<?php
|
208 |
}
|
209 |
+
|
210 |
if( get_option('mo_openid_tumblr_share_enable') ) {
|
211 |
$link = 'http://www.tumblr.com/share/link?url='.$url.'&title='.$title;
|
212 |
?>
|
280 |
<?php
|
281 |
}
|
282 |
if( get_option('mo_openid_whatsapp_share_enable')&& wp_is_mobile() ) {
|
283 |
+
|
284 |
?>
|
285 |
<a rel='nofollow' title="Whatsapp" href='whatsapp://send?text=<?php echo $url?>' class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important">
|
286 |
<i class=" <?php echo $selected_theme; ?> fa fa-whatsapp" style="padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
287 |
<?php
|
288 |
}
|
289 |
else if( get_option('mo_openid_whatsapp_share_enable') ) {
|
290 |
+
|
291 |
?>
|
292 |
<a rel='nofollow' title="Whatsapp" target ='_blank' href='https://web.whatsapp.com/send?text=<?php echo $url?>' class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important">
|
293 |
<i class=" <?php echo $selected_theme; ?> fa fa-whatsapp" style="padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
294 |
<?php
|
295 |
+
}
|
296 |
}
|
297 |
+
|
298 |
else{
|
299 |
+
|
300 |
|
301 |
if( get_option('mo_openid_facebook_share_enable') ) {
|
302 |
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href='.$url;
|
304 |
<a rel='nofollow' title="Facebook" onclick="popupCenter('<?php echo $link; ?>', 800, 400);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><img alt='Facebook' style= 'height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/facebook.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" ></a>
|
305 |
<?php
|
306 |
}
|
307 |
+
|
308 |
if( get_option('mo_openid_twitter_share_enable') ) {
|
309 |
$link = empty($twitter_username) ? 'https://twitter.com/intent/tweet?text='.$title.'&url='.$url : 'https://twitter.com/intent/tweet?text='.$title.'&url='.$url. '&via='.$twitter_username;
|
310 |
?>
|
311 |
<a rel='nofollow' title="Twitter" onclick="popupCenter('<?php echo $link; ?>', 600, 300);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><img alt='Twitter' style= 'height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/twitter.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" ></a>
|
312 |
<?php
|
313 |
}
|
314 |
+
|
315 |
if( get_option('mo_openid_google_share_enable') ) {
|
316 |
$link = 'https://plus.google.com/share?url='.$url;
|
317 |
?>
|
318 |
<a rel='nofollow' title="Google" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><img alt='Google' style= 'height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;background-color: <?php echo $selected_theme; ?>' src="<?php echo plugins_url( 'includes/images/icons/google.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" ></a>
|
319 |
<?php
|
320 |
}
|
321 |
+
|
322 |
if( get_option('mo_openid_vkontakte_share_enable') ) {
|
323 |
$link = 'http://vk.com/share.php?url='.$url.'&title='.$title.'&description='.$excerpt;
|
324 |
?>
|
397 |
<?php
|
398 |
}
|
399 |
if( get_option('mo_openid_whatsapp_share_enable') && wp_is_mobile()) {
|
400 |
+
|
401 |
?>
|
402 |
<a rel='nofollow' title="Whatsapp" href='whatsapp://send?text=<?php echo $url?>' class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important">
|
403 |
<img alt='Whatsapp' style= 'height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/whatsapp.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" data-action="share/whatsapp/share"></a>
|
404 |
<?php
|
405 |
}
|
406 |
else if( get_option('mo_openid_whatsapp_share_enable') ) {
|
407 |
+
|
408 |
?>
|
409 |
<a rel='nofollow'title="Whatsapp" target ='_blank' href='https://web.whatsapp.com/send?text=<?php echo $url?>' class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important">
|
410 |
<img alt='Whatsapp' style= 'height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/whatsapp.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" data-action="share/whatsapp/share"></a>
|
411 |
<?php
|
412 |
+
}
|
413 |
}
|
414 |
?></p>
|
415 |
</div>
|
416 |
+
<?php
|
417 |
}?>
|
418 |
<?php if( $orientation == 'ver' ) {?>
|
419 |
<div id="mo_floating_vertical_widget">
|
425 |
<a rel='nofollow' title="Facebook" onclick="popupCenter('<?php echo $link; ?>', 800, 400);" class="mo-openid-share-link" style="margin-bottom:<?php echo $space_icons?>px !important;"><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-facebook" style="margin-bottom:<?php echo $space_icons-4?>px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
426 |
<?php
|
427 |
}
|
428 |
+
|
429 |
if( get_option('mo_openid_twitter_share_enable') ) {
|
430 |
$link = empty($twitter_username) ? 'https://twitter.com/intent/tweet?text='.$title.'&url='.$url : 'https://twitter.com/intent/tweet?text='.$title.'&url='.$url. '&via='.$twitter_username;
|
431 |
?>
|
432 |
<a rel='nofollow' title="Twitter" onclick="popupCenter('<?php echo $link; ?>', 600, 300);" class="mo-openid-share-link" ><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-twitter" style="margin-bottom:<?php echo $space_icons-4?>px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
433 |
<?php
|
434 |
}
|
435 |
+
|
436 |
if( get_option('mo_openid_google_share_enable') ) {
|
437 |
$link = 'https://plus.google.com/share?url='.$url;
|
438 |
?>
|
439 |
<a rel='nofollow' title="Google" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-bottom:<?php echo $space_icons?>px !important;"><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-google-plus" style="margin-bottom:<?php echo $space_icons-4?>px!important; padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
440 |
<?php
|
441 |
}
|
442 |
+
|
443 |
if( get_option('mo_openid_vkontakte_share_enable') ) {
|
444 |
$link = 'http://vk.com/share.php?url='.$url.'&title='.$title.'&description='.$excerpt;
|
445 |
?>
|
521 |
<?php
|
522 |
}
|
523 |
if( get_option('mo_openid_whatsapp_share_enable')&& wp_is_mobile() ) {
|
524 |
+
|
525 |
?>
|
526 |
<a rel='nofollow' title="Whatsapp" href='whatsapp://send?text=<?php echo $url?>' class="mo-openid-share-link">
|
527 |
<i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-whatsapp" style="margin-bottom:<?php echo $space_icons-4?>px!important;padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
528 |
<?php
|
529 |
}
|
530 |
else if( get_option('mo_openid_whatsapp_share_enable') ) {
|
531 |
+
|
532 |
?>
|
533 |
<a rel='nofollow' title="Whatsapp" target ='_blank' href='https://web.whatsapp.com/send?text=<?php echo $url?>' class="mo-openid-share-link">
|
534 |
<i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-whatsapp" style="margin-bottom:<?php echo $space_icons-4?>px!important;padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
535 |
<?php
|
536 |
+
}
|
537 |
}
|
538 |
else if($custom_theme == 'customFont'){
|
539 |
if( get_option('mo_openid_facebook_share_enable') ) {
|
556 |
<a rel='nofollow' title="Google" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link"><i class=" <?php echo $selected_theme; ?> fa fa-google-plus" style="margin-bottom:<?php echo $space_icons-4?>px !important;padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
557 |
<?php
|
558 |
}
|
559 |
+
|
560 |
if( get_option('mo_openid_vkontakte_share_enable') ) {
|
561 |
$link = 'http://vk.com/share.php?url='.$url.'&title='.$title.'&description='.$excerpt;
|
562 |
?>
|
638 |
<?php
|
639 |
}
|
640 |
if( get_option('mo_openid_whatsapp_share_enable') && wp_is_mobile()) {
|
641 |
+
|
642 |
?>
|
643 |
<a rel='nofollow'title="Whatsapp" href='whatsapp://send?text=<?php echo $url?>' class="mo-openid-share-link">
|
644 |
<i class=" <?php echo $selected_theme; ?> fa fa-whatsapp" style="margin-bottom:<?php echo $space_icons-4?>px !important;padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
645 |
<?php
|
646 |
}
|
647 |
else if( get_option('mo_openid_whatsapp_share_enable') ) {
|
648 |
+
|
649 |
?>
|
650 |
<a rel='nofollow' title="Whatsapp" target ='_blank' href='https://web.whatsapp.com/send?text=<?php echo $url?>' class="mo-openid-share-link">
|
651 |
<i class=" <?php echo $selected_theme; ?> fa fa-whatsapp" style="margin-bottom:<?php echo $space_icons-4?>px !important;padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
652 |
<?php
|
653 |
+
}
|
654 |
}
|
655 |
else{
|
656 |
if( get_option('mo_openid_facebook_share_enable') ) {
|
659 |
<a rel='nofollow' title="Facebook" onclick="popupCenter('<?php echo $link; ?>', 800, 400);" class="mo-openid-share-link"><img alt='Facebook' style= 'margin-bottom:<?php echo $space_icons-6?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;background-color:white;' src="<?php echo plugins_url( 'includes/images/icons/facebook.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" ></a>
|
660 |
<?php
|
661 |
}
|
662 |
+
|
663 |
if( get_option('mo_openid_twitter_share_enable') ) {
|
664 |
$link = empty($twitter_username) ? 'https://twitter.com/intent/tweet?text='.$title.'&url='.$url : 'https://twitter.com/intent/tweet?text='.$title.'&url='.$url. '&via='.$twitter_username;
|
665 |
?>
|
666 |
<a rel='nofollow' title="Twitter" onclick="popupCenter('<?php echo $link; ?>', 600, 300);" class="mo-openid-share-link" ><img alt='Twitter' style= 'margin-bottom:<?php echo $space_icons-6?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;background-color:white;' src="<?php echo plugins_url( 'includes/images/icons/twitter.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" ></a>
|
667 |
<?php
|
668 |
}
|
669 |
+
|
670 |
if( get_option('mo_openid_google_share_enable') ) {
|
671 |
$link = 'https://plus.google.com/share?url='.$url;
|
672 |
?>
|
673 |
<a rel='nofollow' title="Google" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link"><img alt='Google' style= 'margin-bottom:<?php echo $space_icons-6?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;background-color: <?php echo $selected_theme; ?>' src="<?php echo plugins_url( 'includes/images/icons/google.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" ></a>
|
674 |
<?php
|
675 |
}
|
676 |
+
|
677 |
if( get_option('mo_openid_vkontakte_share_enable') ) {
|
678 |
$link = 'http://vk.com/share.php?url='.$url.'&title='.$title.'&description='.$excerpt;
|
679 |
?>
|
692 |
$link = 'http://www.stumbleupon.com/submit?url='.$url.'&title='.$title;
|
693 |
?>
|
694 |
<a rel='nofollow' title="StumbleUpon" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" ><img alt='StumbleUpon' style= 'margin-bottom:<?php echo $space_icons-6?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/stumble.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" ></a>
|
695 |
+
<?php
|
696 |
}
|
697 |
|
698 |
if( get_option('mo_openid_linkedin_share_enable') ) {
|
756 |
<?php
|
757 |
}
|
758 |
if( get_option('mo_openid_whatsapp_share_enable') && wp_is_mobile()) {
|
759 |
+
|
760 |
?>
|
761 |
<a rel='nofollow' title="Whatsapp" href='whatsapp://send?text=<?php echo $url?>' class="mo-openid-share-link">
|
762 |
<img alt='Whatsapp' style= 'margin-bottom:<?php echo $space_icons-6?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/whatsapp.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>"></a>
|
767 |
<a rel='nofollow' title="Whatsapp" target ='_blank' href='https://web.whatsapp.com/send?text=<?php echo $url?>' class="mo-openid-share-link">
|
768 |
<img alt='Whatsapp' style= 'margin-bottom:<?php echo $space_icons-6?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/whatsapp.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>"></a>
|
769 |
<?php
|
770 |
+
}
|
771 |
}
|
772 |
?></p>
|
773 |
</div>
|
776 |
function hideVerticalShare() {
|
777 |
var isMobile = false; //initiate as false
|
778 |
// device detection
|
779 |
+
if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)
|
780 |
|| /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4))) {
|
781 |
isMobile = true;
|
782 |
}
|
class-mo-openid-sso-shortcode-buttons.php
CHANGED
@@ -1,635 +1,621 @@
|
|
1 |
<?php
|
2 |
|
3 |
//shortcode for horizontal sharing
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
<img alt="Whatsapp" style= "height: '. $sharingSize . 'px !important;width: '. $sharingSize . 'px !important;" src=" '. plugins_url(
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
$html .= '<script>';
|
301 |
-
|
302 |
-
$html .= 'function popupCenter(pageURL, w,h) {';
|
303 |
-
$html .= 'var left = (screen.width/2)-(w/2);';
|
304 |
-
$html .= 'var top = (screen.height/2)-(h/2);';
|
305 |
-
$html .= "var targetWin = window.open (pageURL, '_blank','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);}";
|
306 |
-
|
307 |
-
$html .= 'function pinIt(){';
|
308 |
$html .= 'var e = document.createElement("script");';
|
309 |
$html .= "e.setAttribute('type','text/javascript');";
|
310 |
$html .= "e.setAttribute('charset','UTF-8');";
|
311 |
$html .= "e.setAttribute('src','https://assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);
|
312 |
document.body.appendChild(e);}";
|
313 |
-
|
314 |
-
|
315 |
-
|
|
|
316 |
}
|
317 |
|
318 |
function mo_openid_vertical_share_shortcode( $atts = '', $title = '', $excerpt = '' ) {
|
319 |
//$url = get_site_url();
|
320 |
//$url = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
321 |
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
$html .= '<script>';
|
619 |
-
|
620 |
-
$html .= 'function popupCenter(pageURL, w,h) {';
|
621 |
-
$html .= 'var left = (screen.width/2)-(w/2);';
|
622 |
-
$html .= 'var top = (screen.height/2)-(h/2);';
|
623 |
-
$html .= "var targetWin = window.open (pageURL, '_blank','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);}";
|
624 |
-
|
625 |
-
$html .= 'function pinIt(){';
|
626 |
-
$html .= 'var e = document.createElement("script");';
|
627 |
-
$html .= "e.setAttribute('type','text/javascript');";
|
628 |
-
$html .= "e.setAttribute('charset','UTF-8');";
|
629 |
-
$html .= "e.setAttribute('src','https://assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);";
|
630 |
-
$html .= "document.body.appendChild(e);}";
|
631 |
-
$html .= '</script>';
|
632 |
-
|
633 |
-
return $html;
|
634 |
}
|
635 |
?>
|
1 |
<?php
|
2 |
|
3 |
//shortcode for horizontal sharing
|
4 |
+
|
5 |
+
function mo_openid_share_shortcode( $atts = '', $title = '', $excerpt = '' )
|
6 |
+
{
|
7 |
+
if (mo_openid_is_customer_registered())
|
8 |
+
{
|
9 |
+
$html = '';
|
10 |
+
$selected_theme = isset($atts['shape']) ? $atts['shape'] : get_option('mo_openid_share_theme');
|
11 |
+
$selected_direction = get_option('mo_openid_share_widget_customize_direction');
|
12 |
+
$sharingSize = isset($atts['size']) ? $atts['size'] : get_option('mo_sharing_icon_custom_size');
|
13 |
+
$custom_color = isset($atts['backgroundcolor']) ? $atts['backgroundcolor'] : get_option('mo_sharing_icon_custom_color');
|
14 |
+
$custom_theme = isset($atts['theme']) ? $atts['theme'] : get_option('mo_openid_share_custom_theme');
|
15 |
+
$fontColor = isset($atts['fontcolor']) ? $atts['fontcolor'] : get_option('mo_sharing_icon_custom_font');
|
16 |
+
$spaceBetweenIcons = isset($atts['space']) ? $atts['space'] : get_option('mo_sharing_icon_space');
|
17 |
+
$textColor = isset($atts['color']) ? $atts['color'] : '#' . get_option('mo_openid_share_widget_customize_text_color');
|
18 |
+
$text = isset($atts['heading']) ? $atts ['heading'] : get_option('mo_openid_share_widget_customize_text');
|
19 |
+
$twitter_username = get_option('mo_openid_share_twitter_username');
|
20 |
+
$url = isset($atts['url']) ? $atts['url'] : get_permalink();
|
21 |
+
if (!$url) {
|
22 |
+
$url = get_site_url();
|
23 |
+
}
|
24 |
+
|
25 |
+
if ($fontColor) {
|
26 |
+
if (ctype_xdigit($fontColor) && strlen($fontColor) == 6 && strpos($fontColor, '#') == false) {
|
27 |
+
$fontColor = "#" . $fontColor;
|
28 |
+
} else
|
29 |
+
$fontColor;
|
30 |
+
}
|
31 |
+
|
32 |
+
$email_subject = get_option('mo_openid_share_email_subject');
|
33 |
+
$email_body = get_option('mo_openid_share_email_body');
|
34 |
+
$email_body = str_replace('##url##', $url, $email_body);
|
35 |
+
|
36 |
+
if ($custom_theme == 'custombackground') {
|
37 |
+
$custom_theme = 'custom';
|
38 |
+
}
|
39 |
+
if ($custom_theme == 'nobackground') {
|
40 |
+
$custom_theme = 'customFont';
|
41 |
+
}
|
42 |
+
|
43 |
+
$orientation = 'hor';
|
44 |
+
|
45 |
+
|
46 |
+
$html .= '<div class="mo-openid-app-icons circle ">';
|
47 |
+
$html .= '<p style="margin-top:4% !important; margin-bottom:0px !important; color:' . $textColor . '">';
|
48 |
+
if ($orientation == 'hor') {
|
49 |
+
$html .= $text . '</p>';
|
50 |
+
$html .= "<div class='horizontal'>";
|
51 |
+
if ($custom_theme == 'custom') {
|
52 |
+
|
53 |
+
|
54 |
+
if (get_option('mo_openid_facebook_share_enable')) {
|
55 |
+
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href=' . $url;
|
56 |
+
$html .= "<a rel='nofollow' title='Facebook' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><i class='mo-custom-share-icon " . $selected_theme . " fa fa-facebook' style='padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
57 |
+
}
|
58 |
+
|
59 |
+
if (get_option('mo_openid_twitter_share_enable')) {
|
60 |
+
$link = empty($twitter_username) ? 'https://twitter.com/intent/tweet?text=' . $title . '&url=' . $url : 'https://twitter.com/intent/tweet?text=' . $title . '&url=' . $url . '&via=' . $twitter_username;
|
61 |
+
$html .= "<a rel='nofollow' title='Twitter' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><i class='mo-custom-share-icon " . $selected_theme . " fa fa-twitter' style='padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
62 |
+
|
63 |
+
}
|
64 |
+
|
65 |
+
if (get_option('mo_openid_google_share_enable')) {
|
66 |
+
$link = 'https://plus.google.com/share?url=' . $url;
|
67 |
+
$html .= "<a rel='nofollow' title='Google' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><i class='mo-custom-share-icon " . $selected_theme . " fa fa-google-plus' style='padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
68 |
+
}
|
69 |
+
if (get_option('mo_openid_vkontakte_share_enable')) {
|
70 |
+
$link = 'http://vk.com/share.php?url=' . $url . '&title=' . $title . '&description=' . $excerpt;
|
71 |
+
$html .= "<a rel='nofollow' title='Vkontakte' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><i class='mo-custom-share-icon " . $selected_theme . " fa fa-vk' style='padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
72 |
+
}
|
73 |
+
if (get_option('mo_openid_tumblr_share_enable')) {
|
74 |
+
$link = 'http://www.tumblr.com/share/link?url=' . $url . '&title=' . $title;
|
75 |
+
$html .= "<a rel='nofollow' title='Tumblr' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><i class='mo-custom-share-icon " . $selected_theme . " fa fa-tumblr' style='padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
76 |
+
}
|
77 |
+
if (get_option('mo_openid_stumble_share_enable')) {
|
78 |
+
$link = 'http://www.stumbleupon.com/submit?url=' . $url . '&title=' . $title;
|
79 |
+
$html .= "<a rel='nofollow' title='StumbleUpon' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><i class='mo-custom-share-icon " . $selected_theme . " fa fa-stumbleupon' style='padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
80 |
+
}
|
81 |
+
if (get_option('mo_openid_linkedin_share_enable')) {
|
82 |
+
$link = 'https://www.linkedin.com/shareArticle?mini=true&title=' . $title . '&url=' . $url . '&summary=' . $excerpt;
|
83 |
+
|
84 |
+
|
85 |
+
$html .= "<a rel='nofollow' title='LinkedIn' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><i class='mo-custom-share-icon " . $selected_theme . " fa fa-linkedin' style='padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
86 |
+
|
87 |
+
}
|
88 |
+
|
89 |
+
if (get_option('mo_openid_reddit_share_enable')) {
|
90 |
+
$link = 'http://www.reddit.com/submit?url=' . $url . '&title=' . $title;
|
91 |
+
$html .= "<a rel='nofollow' title='Reddit' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><i class='mo-custom-share-icon " . $selected_theme . " fa fa-reddit' style='padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
92 |
+
}
|
93 |
+
|
94 |
+
if (get_option('mo_openid_pinterest_share_enable')) {
|
95 |
+
$html .= "<a rel='nofollow' title='Pinterest' href='javascript:pinIt();' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><i class='mo-custom-share-icon " . $selected_theme . " fa fa-pinterest' style='padding-top:3px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 10) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
96 |
+
|
97 |
+
}
|
98 |
+
|
99 |
+
if (get_option('mo_openid_pocket_share_enable')) {
|
100 |
+
$link = 'https://getpocket.com/save?url=' . $url . '&title=' . $title;
|
101 |
+
$html .= "<a rel='nofollow' title='Pocket' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><i class='mo-custom-share-icon " . $selected_theme . " fa fa-get-pocket' style='padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
102 |
+
}
|
103 |
+
if (get_option('mo_openid_digg_share_enable')) {
|
104 |
+
$link = 'http://digg.com/submit?url=' . $url . '&title=' . $title;
|
105 |
+
$html .= "<a rel='nofollow' title='Digg' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><i class='mo-custom-share-icon " . $selected_theme . " fa fa-digg' style='padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
106 |
+
}
|
107 |
+
if (get_option('mo_openid_delicious_share_enable')) {
|
108 |
+
$link = 'http://www.delicious.com/save?v=5&noui&jump=close&url=' . $url . '&title=' . $title;
|
109 |
+
$html .= "<a rel='nofollow' title='Delicious' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><i class='mo-custom-share-icon " . $selected_theme . " fa fa-delicious' style='padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
110 |
+
}
|
111 |
+
if (get_option('mo_openid_odnoklassniki_share_enable')) {
|
112 |
+
$link = 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st.comments=' . $excerpt . '&st._surl=' . $url;
|
113 |
+
$html .= "<a rel='nofollow' title='Odnoklassniki' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><i class='mo-custom-share-icon " . $selected_theme . " fa fa-odnoklassniki' style='padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
114 |
+
}
|
115 |
+
if (get_option('mo_openid_mail_share_enable')) {
|
116 |
+
$html .= "<a rel='nofollow' title='Email this page' onclick='popupCenter(" . '"mailto:?subject= ' . $email_subject . '&body=' . $email_body . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><i class='mo-custom-share-icon " . $selected_theme . " fa fa-envelope' style='padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
117 |
+
}
|
118 |
+
if (get_option('mo_openid_print_share_enable')) {
|
119 |
+
$html .= "<a rel='nofollow' title='Print this page' onclick='javascript:window.print();' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><i class='mo-custom-share-icon " . $selected_theme . " fa fa-print' style='padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
120 |
+
}
|
121 |
+
if (get_option('mo_openid_whatsapp_share_enable')) {
|
122 |
+
|
123 |
+
if (!wp_is_mobile()) {
|
124 |
+
$html .= '<a rel="nofollow" title="Whatsapp" target ="_blank" href="https://web.whatsapp.com/send?text=' . $url . '" class="mo-openid-share-link" style="margin-left : ' . ($spaceBetweenIcons) . 'px !important;border-bottom:0px !important;"><i class="mo-custom-share-icon ' . $selected_theme . ' fa fa-whatsapp" style="padding-top:8px;text-align:center;color:#ffffff;font-size: ' . ($sharingSize - 16) . 'px !important;background-color:#' . $custom_color . ';height: ' . $sharingSize . 'px !important;width:' . $sharingSize . 'px !important;"></i></a>';
|
125 |
+
} else {
|
126 |
+
$html .= '<a rel="nofollow" title="Whatsapp" href="whatsapp://send?text=' . $url . '" class="mo-openid-share-link" style="margin-left : ' . ($spaceBetweenIcons) . 'px !important;border-bottom:0px !important;"><i class="mo-custom-share-icon ' . $selected_theme . ' fa fa-whatsapp" style="padding-top:8px;text-align:center;color:#ffffff;font-size: ' . ($sharingSize - 16) . 'px !important;background-color:#' . $custom_color . ';height: ' . $sharingSize . 'px !important;width:' . $sharingSize . 'px !important;"></i></a>';
|
127 |
+
|
128 |
+
}
|
129 |
+
|
130 |
+
}
|
131 |
+
|
132 |
+
} else if ($custom_theme == 'customFont') {
|
133 |
+
|
134 |
+
if (get_option('mo_openid_facebook_share_enable')) {
|
135 |
+
|
136 |
+
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href=' . $url;
|
137 |
+
$html .= "<a rel='nofollow' title='Facebook' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons - 6) . "px !important'><i class=' " . $selected_theme . " fa fa-facebook' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
138 |
+
}
|
139 |
+
|
140 |
+
if (get_option('mo_openid_twitter_share_enable')) {
|
141 |
+
$link = empty($twitter_username) ? 'https://twitter.com/intent/tweet?text=' . $title . '&url=' . $url : 'https://twitter.com/intent/tweet?text=' . $title . '&url=' . $url . '&via=' . $twitter_username;
|
142 |
+
$html .= "<a rel='nofollow' title='Twitter' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons - 6) . "px !important'><i class=' " . $selected_theme . " fa fa-twitter' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
143 |
+
}
|
144 |
+
|
145 |
+
if (get_option('mo_openid_google_share_enable')) {
|
146 |
+
|
147 |
+
$link = 'https://plus.google.com/share?url=' . $url;
|
148 |
+
$html .= "<a rel='nofollow' title='Google' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons - 6) . "px !important'><i class='fa fa-google-plus' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
149 |
+
}
|
150 |
+
if (get_option('mo_openid_vkontakte_share_enable')) {
|
151 |
+
$link = 'http://vk.com/share.php?url=' . $url . '&title=' . $title . '&description=' . $excerpt;
|
152 |
+
$html .= "<a rel='nofollow' title='Vkontakte' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons - 6) . "px !important'><i class=' " . $selected_theme . " fa fa-vk' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
153 |
+
}
|
154 |
+
if (get_option('mo_openid_tumblr_share_enable')) {
|
155 |
+
$link = 'http://www.tumblr.com/share/link?url=' . $url . '&title=' . $title;
|
156 |
+
$html .= "<a rel='nofollow' title='Tumblr' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons - 6) . "px !important'><i class=' " . $selected_theme . " fa fa-tumblr' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
157 |
+
}
|
158 |
+
if (get_option('mo_openid_stumble_share_enable')) {
|
159 |
+
$link = 'http://www.stumbleupon.com/submit?url=' . $url . '&title=' . $title;
|
160 |
+
$html .= "<a rel='nofollow' title='StumbleUpon' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons - 6) . "px !important'><i class=' " . $selected_theme . " fa fa-stumbleupon' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
161 |
+
}
|
162 |
+
if (get_option('mo_openid_linkedin_share_enable')) {
|
163 |
+
$link = 'https://www.linkedin.com/shareArticle?mini=true&title=' . $title . '&url=' . $url . '&summary=' . $excerpt;
|
164 |
+
$html .= "<a rel='nofollow' title='LinkedIn' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons - 6) . "px !important'><i class=' " . $selected_theme . " fa fa-linkedin' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
165 |
+
}
|
166 |
+
if (get_option('mo_openid_reddit_share_enable')) {
|
167 |
+
$link = 'http://www.reddit.com/submit?url=' . $url . '&title=' . $title;
|
168 |
+
$html .= "<a rel='nofollow' title='Reddit' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons - 6) . "px !important'><i class=' " . $selected_theme . " fa fa-reddit' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
169 |
+
}
|
170 |
+
if (get_option('mo_openid_pinterest_share_enable')) {
|
171 |
+
$html .= "<a rel='nofollow' title='Pinterest' href='javascript:pinIt();' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons - 6) . "px !important'><i class=' " . $selected_theme . " fa fa-pinterest' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
172 |
+
}
|
173 |
+
|
174 |
+
if (get_option('mo_openid_pocket_share_enable')) {
|
175 |
+
$link = 'https://getpocket.com/save?url=' . $url . '&title=' . $title;
|
176 |
+
$html .= "<a rel='nofollow' title='Pocket' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons - 6) . "px !important'><i class=' " . $selected_theme . " fa fa-get-pocket' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
177 |
+
}
|
178 |
+
if (get_option('mo_openid_digg_share_enable')) {
|
179 |
+
$link = 'http://digg.com/submit?url=' . $url . '&title=' . $title;
|
180 |
+
$html .= "<a rel='nofollow' title='Digg' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons - 6) . "px !important'><i class=' " . $selected_theme . " fa fa-digg' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
181 |
+
}
|
182 |
+
if (get_option('mo_openid_delicious_share_enable')) {
|
183 |
+
$link = 'http://www.delicious.com/save?v=5&noui&jump=close&url=' . $url . '&title=' . $title;
|
184 |
+
$html .= "<a rel='nofollow' title='Delicious' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons - 6) . "px !important'><i class=' " . $selected_theme . " fa fa-delicious' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
185 |
+
}
|
186 |
+
if (get_option('mo_openid_odnoklassniki_share_enable')) {
|
187 |
+
$link = 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st.comments=' . $excerpt . '&st._surl=' . $url;
|
188 |
+
$html .= "<a rel='nofollow' title='Odnoklassniki' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons - 6) . "px !important'><i class=' " . $selected_theme . " fa fa-odnoklassniki' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
189 |
+
}
|
190 |
+
if (get_option('mo_openid_mail_share_enable')) {
|
191 |
+
$html .= "<a rel='nofollow' title='Email this page' onclick='popupCenter(" . '"mailto:?subject= ' . $email_subject . '&body=' . $email_body . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><i class=' " . $selected_theme . " fa fa-envelope' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
192 |
+
}
|
193 |
+
if (get_option('mo_openid_print_share_enable')) {
|
194 |
+
$html .= "<a rel='nofollow' title='Print this page' onclick='javascript:window.print();' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><i class=' " . $selected_theme . " fa fa-print' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
195 |
+
}
|
196 |
+
if (get_option('mo_openid_whatsapp_share_enable')) {
|
197 |
+
|
198 |
+
if (wp_is_mobile()) {
|
199 |
+
$html .= '<a rel="nofollow" title="Whatsapp" href="whatsapp://send?text=' . $url . '" class="mo-openid-share-link" style="margin-left : ' . ($spaceBetweenIcons - 6) . 'px !important;border-bottom:0px !important;"><i class=" ' . $selected_theme . ' fa fa-whatsapp" style="padding-top:4px;text-align:center;color:' . $fontColor . ';font-size:' . $sharingSize . 'px !important;height:' . $sharingSize . 'px !important;width:' . $sharingSize . 'px !important;"></i></a>';
|
200 |
+
} else {
|
201 |
+
$html .= '<a rel="nofollow" title="Whatsapp" target ="_blank" href="https://web.whatsapp.com/send?text=' . $url . '" class="mo-openid-share-link" style="margin-left : ' . ($spaceBetweenIcons - 6) . 'px !important;border-bottom:0px !important;"><i class=" ' . $selected_theme . ' fa fa-whatsapp" style="padding-top:4px;text-align:center;color:' . $fontColor . ';font-size:' . $sharingSize . 'px !important;height:' . $sharingSize . 'px !important;width:' . $sharingSize . 'px !important;"></i></a>';
|
202 |
+
}
|
203 |
+
}
|
204 |
+
|
205 |
+
|
206 |
+
} else {
|
207 |
+
|
208 |
+
if (get_option('mo_openid_facebook_share_enable')) {
|
209 |
+
|
210 |
+
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href=' . $url;
|
211 |
+
$html .= "<a rel='nofollow' title='Facebook' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 400);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><img alt='Facebook' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url('includes/images/icons/facebook.png', __FILE__) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
212 |
+
}
|
213 |
+
|
214 |
+
if (get_option('mo_openid_twitter_share_enable')) {
|
215 |
+
$link = empty($twitter_username) ? 'https://twitter.com/intent/tweet?text=' . $title . '&url=' . $url : 'https://twitter.com/intent/tweet?text=' . $title . '&url=' . $url . '&via=' . $twitter_username;
|
216 |
+
$html .= "<a rel='nofollow' title='Twitter' onclick='popupCenter(" . '"' . $link . '"' . ", 600, 300);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><img alt='Twitter' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url('includes/images/icons/twitter.png', __FILE__) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
217 |
+
}
|
218 |
+
|
219 |
+
if (get_option('mo_openid_google_share_enable')) {
|
220 |
+
$link = 'https://plus.google.com/share?url=' . $url;
|
221 |
+
$html .= "<a rel='nofollow' title='Google' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><img alt='Google' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;background-color: " . $selected_theme . "' src='" . plugins_url('includes/images/icons/google.png', __FILE__) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
222 |
+
}
|
223 |
+
if (get_option('mo_openid_vkontakte_share_enable')) {
|
224 |
+
$link = 'http://vk.com/share.php?url=' . $url . '&title=' . $title . '&description=' . $excerpt;
|
225 |
+
$html .= "<a rel='nofollow' title='Vkontakte' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><img alt='Vkontakte' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url('includes/images/icons/vk.png', __FILE__) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
226 |
+
}
|
227 |
+
if (get_option('mo_openid_tumblr_share_enable')) {
|
228 |
+
$link = 'http://www.tumblr.com/share/link?url=' . $url . '&title=' . $title;
|
229 |
+
$html .= "<a rel='nofollow' title='Tumblr' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><img alt='Tumblr' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url('includes/images/icons/tumblr.png', __FILE__) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
230 |
+
}
|
231 |
+
if (get_option('mo_openid_stumble_share_enable')) {
|
232 |
+
$link = 'http://www.stumbleupon.com/submit?url=' . $url . '&title=' . $title;
|
233 |
+
$html .= "<a rel='nofollow' title='StumbleUpon' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><img alt='StumbleUpon' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url('includes/images/icons/stumble.png', __FILE__) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
234 |
+
}
|
235 |
+
if (get_option('mo_openid_linkedin_share_enable')) {
|
236 |
+
$link = 'https://www.linkedin.com/shareArticle?mini=true&title=' . $title . '&url=' . $url . '&summary=' . $excerpt;
|
237 |
+
$html .= "<a rel='nofollow' title='LinkedIn' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><img alt='LinkedIn' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url('includes/images/icons/linkedin.png', __FILE__) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
238 |
+
}
|
239 |
+
|
240 |
+
if (get_option('mo_openid_reddit_share_enable')) {
|
241 |
+
$link = 'http://www.reddit.com/submit?url=' . $url . '&title=' . $title;
|
242 |
+
$html .= "<a rel='nofollow' title='Reddit' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><img alt='Reddit' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url('includes/images/icons/reddit.png', __FILE__) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
243 |
+
}
|
244 |
+
|
245 |
+
if (get_option('mo_openid_pinterest_share_enable')) {
|
246 |
+
$html .= "<a rel='nofollow' title='Pinterest' href='javascript:pinIt();' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><img alt='Pinterest' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url('includes/images/icons/pininterest.png', __FILE__) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
247 |
+
}
|
248 |
+
|
249 |
+
if (get_option('mo_openid_pocket_share_enable')) {
|
250 |
+
$link = 'https://getpocket.com/save?url=' . $url . '&title=' . $title;
|
251 |
+
$html .= "<a rel='nofollow' title='Pocket' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><img alt='Pocket' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url('includes/images/icons/pocket.png', __FILE__) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
252 |
+
}
|
253 |
+
if (get_option('mo_openid_digg_share_enable')) {
|
254 |
+
$link = 'http://digg.com/submit?url=' . $url . '&title=' . $title;
|
255 |
+
$html .= "<a rel='nofollow' title='Digg' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><img alt='Digg' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url('includes/images/icons/digg.png', __FILE__) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
256 |
+
}
|
257 |
+
if (get_option('mo_openid_delicious_share_enable')) {
|
258 |
+
$link = 'http://www.delicious.com/save?v=5&noui&jump=close&url=' . $url . '&title=' . $title;
|
259 |
+
$html .= "<a rel='nofollow' title='Delicious' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><img alt='Delicious' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url('includes/images/icons/delicious.png', __FILE__) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
260 |
+
}
|
261 |
+
if (get_option('mo_openid_odnoklassniki_share_enable')) {
|
262 |
+
$link = 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st.comments=' . $excerpt . '&st._surl=' . $url;
|
263 |
+
$html .= "<a rel='nofollow' title='Odnoklassniki' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><img alt='Odnoklassniki' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url('includes/images/icons/odnoklassniki.png', __FILE__) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
264 |
+
}
|
265 |
+
if (get_option('mo_openid_mail_share_enable')) {
|
266 |
+
$html .= "<a rel='nofollow' title='Email this page' onclick='popupCenter(" . '"mailto:?subject= ' . $email_subject . '&body=' . $email_body . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><img alt='Email this page' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url('includes/images/icons/mail.png', __FILE__) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
267 |
+
}
|
268 |
+
if (get_option('mo_openid_print_share_enable')) {
|
269 |
+
$html .= "<a rel='nofollow' title='Print this page' onclick='javascript:window.print();' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><img alt='Print this page' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url('includes/images/icons/print.png', __FILE__) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
270 |
+
}
|
271 |
+
if (get_option('mo_openid_whatsapp_share_enable')) {
|
272 |
+
|
273 |
+
if (wp_is_mobile()) {
|
274 |
+
$html .= '<a rel="nofollow" title="Whatsapp" href="whatsapp://send?text=' . $url . '" class="mo-openid-share-link" style="margin-left : ' . ($spaceBetweenIcons) . 'px !important; border-bottom:0px !important;">
|
275 |
+
<img alt="Whatsapp" style= "height: ' . $sharingSize . 'px !important;width: ' . $sharingSize . 'px !important;" src=" ' . plugins_url("includes/images/icons/whatsapp.png", __FILE__) . '" class="mo-openid-app-share-icons ' . $selected_theme . '" ></a>';
|
276 |
+
} else {
|
277 |
+
$html .= '<a rel="nofollow" title="Whatsapp" target ="_blank" href="https://web.whatsapp.com/send?text=' . $url . '" class="mo-openid-share-link" style="margin-left : ' . ($spaceBetweenIcons) . 'px !important; border-bottom:0px !important;">
|
278 |
+
<img alt="Whatsapp" style= "height: ' . $sharingSize . 'px !important;width: ' . $sharingSize . 'px !important;" src=" ' . plugins_url("includes/images/icons/whatsapp.png", __FILE__) . '" class="mo-openid-app-share-icons ' . $selected_theme . '" ></a>';
|
279 |
+
}
|
280 |
+
|
281 |
+
}
|
282 |
+
|
283 |
+
|
284 |
+
}
|
285 |
+
$html .= "</div>";
|
286 |
+
}
|
287 |
+
|
288 |
+
|
289 |
+
$html .= "</p></div><br/>";
|
290 |
+
|
291 |
+
|
292 |
+
$html .= '<script>';
|
293 |
+
|
294 |
+
$html .= 'function popupCenter(pageURL, w,h) {';
|
295 |
+
$html .= 'var left = (screen.width/2)-(w/2);';
|
296 |
+
$html .= 'var top = (screen.height/2)-(h/2);';
|
297 |
+
$html .= "var targetWin = window.open (pageURL, '_blank','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);}";
|
298 |
+
|
299 |
+
$html .= 'function pinIt(){';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
300 |
$html .= 'var e = document.createElement("script");';
|
301 |
$html .= "e.setAttribute('type','text/javascript');";
|
302 |
$html .= "e.setAttribute('charset','UTF-8');";
|
303 |
$html .= "e.setAttribute('src','https://assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);
|
304 |
document.body.appendChild(e);}";
|
305 |
+
$html .= '</script>';
|
306 |
+
|
307 |
+
return $html;
|
308 |
+
}
|
309 |
}
|
310 |
|
311 |
function mo_openid_vertical_share_shortcode( $atts = '', $title = '', $excerpt = '' ) {
|
312 |
//$url = get_site_url();
|
313 |
//$url = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
|
314 |
+
if (mo_openid_is_customer_registered()) {
|
315 |
+
$html = '';
|
316 |
+
$selected_theme = isset($atts['shape']) ? $atts['shape'] : get_option('mo_openid_share_theme');
|
317 |
+
$selected_direction = get_option('mo_openid_share_widget_customize_direction');
|
318 |
+
$sharingSize = isset($atts['size']) ? $atts['size'] : get_option('mo_sharing_icon_custom_size');
|
319 |
+
$custom_color = isset($atts['backgroundcolor']) ? $atts['backgroundcolor'] : get_option('mo_sharing_icon_custom_color');
|
320 |
+
$custom_theme = isset($atts['theme']) ? $atts['theme'] : get_option('mo_openid_share_custom_theme');
|
321 |
+
$fontColor = isset($atts['fontcolor']) ? $atts['fontcolor'] : get_option('mo_sharing_icon_custom_font');
|
322 |
+
$spaceBetweenIcons = isset($atts['space']) ? $atts['space'] : '10';
|
323 |
|
324 |
+
$alignment = isset($atts['alignment']) ? $atts['alignment'] : 'left';
|
325 |
+
$left_offset = isset($atts['leftoffset']) ? $atts['leftoffset'] : '20';
|
326 |
+
$right_offset = isset($atts['rightoffset']) ? $atts['rightoffset'] : '10';
|
327 |
+
$top_offset = isset($atts['topoffset']) ? $atts['topoffset'] : '100';
|
328 |
+
|
329 |
+
|
330 |
+
$twitter_username = get_option('mo_openid_share_twitter_username');
|
331 |
+
$url = isset($atts['url']) ? $atts['url'] : "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
|
332 |
+
|
333 |
+
$email_subject = get_option('mo_openid_share_email_subject');
|
334 |
+
$email_body = get_option('mo_openid_share_email_body');
|
335 |
+
$email_body = str_replace('##url##', $url, $email_body);
|
336 |
+
|
337 |
+
if ($custom_theme == 'custombackground') {
|
338 |
+
$custom_theme = 'custom';
|
339 |
+
}
|
340 |
+
if ($custom_theme == 'nobackground') {
|
341 |
+
$custom_theme = 'customFont';
|
342 |
+
}
|
343 |
+
|
344 |
+
//$orientation = 'ver';
|
345 |
+
|
346 |
+
$html .= "<div class='mo_openid_vertical' style='" . (isset($alignment) && $alignment != '' ? $alignment . ': ' . (${$alignment . '_offset'} == '' ? 0 : ${$alignment . '_offset'}) . 'px;' : '') . (isset($top_offset) ? 'top: ' . ($top_offset == '' ? 0 : $top_offset) . 'px;' : '') . "'>";
|
347 |
+
|
348 |
+
$html .= '<div class="mo-openid-app-icons circle ">';
|
349 |
+
$html .= '<p>';
|
350 |
+
//if( $orientation == 'ver' ) {
|
351 |
+
|
352 |
+
$html .= "<div id='mo_floating_vertical_shortcode'>";
|
353 |
+
if ($custom_theme == 'custom') {
|
354 |
+
|
355 |
+
if (get_option('mo_openid_facebook_share_enable')) {
|
356 |
+
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href=' . $url;
|
357 |
+
$html .= "<a rel='nofollow' title='Facebook' onclick='popupCenter(" . '"' . $link . '"' . ", 1000, 500);' class='mo-openid-share-link' style='margin-bottom : " . $spaceBetweenIcons . "px !important'><i class='mo-custom-share-icon " . $selected_theme . " fa fa-facebook' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
358 |
+
}
|
359 |
+
|
360 |
+
if (get_option('mo_openid_twitter_share_enable')) {
|
361 |
+
$link = empty($twitter_username) ? 'https://twitter.com/intent/tweet?text=' . $title . '&url=' . $url : 'https://twitter.com/intent/tweet?text=' . $title . '&url=' . $url . '&via=' . $twitter_username;
|
362 |
+
$html .= "<a rel='nofollow' title='Twitter' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='mo-custom-share-icon " . $selected_theme . " fa fa-twitter' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
363 |
+
|
364 |
+
}
|
365 |
+
|
366 |
+
if (get_option('mo_openid_google_share_enable')) {
|
367 |
+
$link = "https://plus.google.com/share?url=" . $url;
|
368 |
+
$html .= "<a rel='nofollow' title='Google' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-bottom : " . $spaceBetweenIcons . "px !important'><i class='mo-custom-share-icon " . $selected_theme . " fa fa-google-plus' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
369 |
+
|
370 |
+
}
|
371 |
+
if (get_option('mo_openid_vkontakte_share_enable')) {
|
372 |
+
$link = 'http://vk.com/share.php?url=' . $url . '&title=' . $title . '&description=' . $excerpt;
|
373 |
+
$html .= "<a rel='nofollow' title='Vkontakte' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='mo-custom-share-icon " . $selected_theme . " fa fa-vk' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
374 |
+
}
|
375 |
+
if (get_option('mo_openid_tumblr_share_enable')) {
|
376 |
+
$link = 'http://www.tumblr.com/share/link?url=' . $url . '&title=' . $title;
|
377 |
+
$html .= "<a rel='nofollow' title='Tumblr' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='mo-custom-share-icon " . $selected_theme . " fa fa-tumblr' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
378 |
+
}
|
379 |
+
if (get_option('mo_openid_stumble_share_enable')) {
|
380 |
+
$link = 'http://www.stumbleupon.com/submit?url=' . $url . '&title=' . $title;
|
381 |
+
$html .= "<a rel='nofollow' title='StumbleUpon' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='mo-custom-share-icon " . $selected_theme . " fa fa-stumbleupon' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
382 |
+
}
|
383 |
+
if (get_option('mo_openid_linkedin_share_enable')) {
|
384 |
+
$link = 'https://www.linkedin.com/shareArticle?mini=true&title=' . $title . '&url=' . $url . '&summary=' . $excerpt;
|
385 |
+
|
386 |
+
|
387 |
+
$html .= "<a rel='nofollow' title='LinkedIn' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='mo-custom-share-icon " . $selected_theme . " fa fa-linkedin' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
388 |
+
|
389 |
+
}
|
390 |
+
|
391 |
+
if (get_option('mo_openid_reddit_share_enable')) {
|
392 |
+
$link = 'http://www.reddit.com/submit?url=' . $url . '&title=' . $title;
|
393 |
+
$html .= "<a rel='nofollow' title='Reddit' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='mo-custom-share-icon " . $selected_theme . " fa fa-reddit' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
394 |
+
}
|
395 |
+
|
396 |
+
if (get_option('mo_openid_pinterest_share_enable')) {
|
397 |
+
$html .= "<a rel='nofollow' title='Pinterest' href='javascript:pinIt();' class='mo-openid-share-link' ><i class='mo-custom-share-icon " . $selected_theme . " fa fa-pinterest' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:3px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 10) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
398 |
+
|
399 |
+
}
|
400 |
+
|
401 |
+
if (get_option('mo_openid_pocket_share_enable')) {
|
402 |
+
$link = 'https://getpocket.com/save?url=' . $url . '&title=' . $title;
|
403 |
+
$html .= "<a rel='nofollow' title='Pocket' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='mo-custom-share-icon " . $selected_theme . " fa fa-get-pocket' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
404 |
+
}
|
405 |
+
|
406 |
+
if (get_option('mo_openid_digg_share_enable')) {
|
407 |
+
$link = 'http://digg.com/submit?url=' . $url . '&title=' . $title;
|
408 |
+
$html .= "<a rel='nofollow' title='Digg' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='mo-custom-share-icon " . $selected_theme . " fa fa-digg' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
409 |
+
}
|
410 |
+
if (get_option('mo_openid_delicious_share_enable')) {
|
411 |
+
$link = 'http://www.delicious.com/save?v=5&noui&jump=close&url=' . $url . '&title=' . $title;
|
412 |
+
$html .= "<a rel='nofollow' title='Delicious' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='mo-custom-share-icon " . $selected_theme . " fa fa-delicious' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
413 |
+
}
|
414 |
+
if (get_option('mo_openid_odnoklassniki_share_enable')) {
|
415 |
+
$link = 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st.comments=' . $excerpt . '&st._surl=' . $url;
|
416 |
+
$html .= "<a rel='nofollow' title='Odnoklassniki' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='mo-custom-share-icon " . $selected_theme . " fa fa-odnoklassniki' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
417 |
+
}
|
418 |
+
if (get_option('mo_openid_mail_share_enable')) {
|
419 |
+
$html .= "<a rel='nofollow' title='Email this page' onclick='popupCenter(" . '"mailto:?subject= ' . $email_subject . '&body=' . $email_body . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='mo-custom-share-icon " . $selected_theme . " fa fa-envelope' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
420 |
+
}
|
421 |
+
if (get_option('mo_openid_print_share_enable')) {
|
422 |
+
$html .= "<a rel='nofollow' title='Print this page' onclick='javascript:window.print();' class='mo-openid-share-link' ><i class='mo-custom-share-icon " . $selected_theme . " fa fa-print' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
423 |
+
}
|
424 |
+
if (get_option('mo_openid_whatsapp_share_enable')) {
|
425 |
+
|
426 |
+
if (wp_is_mobile()) {
|
427 |
+
$html .= '<a rel="nofollow" title="Whatsapp" href="whatsapp://send?text=' . $url . "\" class='mo-openid-share-link' ><i class='mo-custom-share-icon " . $selected_theme . " fa fa-whatsapp' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
428 |
+
} else {
|
429 |
+
$html .= '<a rel="nofollow" title="Whatsapp" target ="_blank" href="https://web.whatsapp.com/send?text=' . $url . "\" class='mo-openid-share-link' ><i class='mo-custom-share-icon " . $selected_theme . " fa fa-whatsapp' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
430 |
+
}
|
431 |
+
}
|
432 |
+
|
433 |
+
|
434 |
+
} else if ($custom_theme == 'customFont') {
|
435 |
+
|
436 |
+
if (get_option('mo_openid_facebook_share_enable')) {
|
437 |
+
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href=' . $url;
|
438 |
+
$html .= "<a rel='nofollow' title='Facebook' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='fa fa-facebook' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
439 |
+
}
|
440 |
+
|
441 |
+
if (get_option('mo_openid_twitter_share_enable')) {
|
442 |
+
$link = empty($twitter_username) ? 'https://twitter.com/intent/tweet?text=' . $title . '&url=' . $url : 'https://twitter.com/intent/tweet?text=' . $title . '&url=' . $url . '&via=' . $twitter_username;
|
443 |
+
$html .= "<a rel='nofollow' title='Twitter' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='fa fa-twitter' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
444 |
+
}
|
445 |
+
|
446 |
+
if (get_option('mo_openid_google_share_enable')) {
|
447 |
+
|
448 |
+
$link = 'https://plus.google.com/share?url=' . $url;
|
449 |
+
$html .= "<a rel='nofollow' title='Google' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link'><i class='fa fa-google-plus' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
450 |
+
}
|
451 |
+
if (get_option('mo_openid_vkontakte_share_enable')) {
|
452 |
+
$link = 'http://vk.com/share.php?url=' . $url . '&title=' . $title . '&description=' . $excerpt;
|
453 |
+
$html .= "<a rel='nofollow' title='Vkontakte' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='fa fa-vk' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
454 |
+
}
|
455 |
+
if (get_option('mo_openid_tumblr_share_enable')) {
|
456 |
+
$link = 'http://www.tumblr.com/share/link?url=' . $url . '&title=' . $title;
|
457 |
+
$html .= "<a rel='nofollow' title='Tumblr' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='fa fa-tumblr' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
458 |
+
}
|
459 |
+
if (get_option('mo_openid_stumble_share_enable')) {
|
460 |
+
$link = 'http://www.stumbleupon.com/submit?url=' . $url . '&title=' . $title;
|
461 |
+
$html .= "<a rel='nofollow' title='StumbleUpon' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='fa fa-stumbleupon' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
462 |
+
}
|
463 |
+
if (get_option('mo_openid_linkedin_share_enable')) {
|
464 |
+
$link = 'https://www.linkedin.com/shareArticle?mini=true&title=' . $title . '&url=' . $url . '&summary=' . $excerpt;
|
465 |
+
$html .= "<a rel='nofollow' title='LinkedIn' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='fa fa-linkedin' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
466 |
+
}
|
467 |
+
if (get_option('mo_openid_reddit_share_enable')) {
|
468 |
+
$link = 'http://www.reddit.com/submit?url=' . $url . '&title=' . $title;
|
469 |
+
$html .= "<a rel='nofollow' title='Reddit' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='fa fa-reddit' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
470 |
+
}
|
471 |
+
if (get_option('mo_openid_pinterest_share_enable')) {
|
472 |
+
$html .= "<a rel='nofollow' title='Pinterest' href='javascript:pinIt();' class='mo-openid-share-link' ><i class='fa fa-pinterest' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . ($sharingSize - 5) . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
473 |
+
}
|
474 |
+
|
475 |
+
if (get_option('mo_openid_pocket_share_enable')) {
|
476 |
+
$link = 'https://getpocket.com/save?url=' . $url . '&title=' . $title;
|
477 |
+
$html .= "<a rel='nofollow' title='Pocket' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='fa fa-get-pocket' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
478 |
+
}
|
479 |
+
if (get_option('mo_openid_digg_share_enable')) {
|
480 |
+
$link = 'http://digg.com/submit?url=' . $url . '&title=' . $title;
|
481 |
+
$html .= "<a rel='nofollow' title='Digg' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='fa fa-digg' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
482 |
+
}
|
483 |
+
if (get_option('mo_openid_delicious_share_enable')) {
|
484 |
+
$link = 'http://www.delicious.com/save?v=5&noui&jump=close&url=' . $url . '&title=' . $title;
|
485 |
+
$html .= "<a rel='nofollow' title='Delicious' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='fa fa-delicious' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
486 |
+
}
|
487 |
+
if (get_option('mo_openid_odnoklassniki_share_enable')) {
|
488 |
+
$link = 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st.comments=' . $excerpt . '&st._surl=' . $url;
|
489 |
+
$html .= "<a rel='nofollow' title='Odnoklassniki' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='fa fa-odnoklassniki' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
490 |
+
}
|
491 |
+
if (get_option('mo_openid_mail_share_enable')) {
|
492 |
+
$html .= "<a rel='nofollow' title='Email this page' onclick='popupCenter(" . '"mailto:?subject= ' . $email_subject . '&body=' . $email_body . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='fa fa-envelope' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
493 |
+
}
|
494 |
+
if (get_option('mo_openid_print_share_enable')) {
|
495 |
+
$html .= "<a rel='nofollow' title='Print this page' onclick='javascript:window.print();' class='mo-openid-share-link' ><i class='fa fa-print' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
496 |
+
}
|
497 |
+
if (get_option('mo_openid_whatsapp_share_enable')) {
|
498 |
+
|
499 |
+
if (wp_is_mobile()) {
|
500 |
+
$html .= '<a rel="nofollow" title="Whatsapp" href="whatsapp://send?text=' . $url . "\" class='mo-openid-share-link' ><i class='fa fa-whatsapp' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
501 |
+
} else {
|
502 |
+
$html .= '<a rel="nofollow" title="Whatsapp" target ="_blank" href="https://web.whatsapp.com/send?text=' . $url . "\" class='mo-openid-share-link' ><i class='fa fa-whatsapp' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
503 |
+
}
|
504 |
+
}
|
505 |
+
|
506 |
+
|
507 |
+
} else {
|
508 |
+
|
509 |
+
if (get_option('mo_openid_facebook_share_enable')) {
|
510 |
+
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href=' . $url;
|
511 |
+
$html .= "<a rel='nofollow' title='Facebook' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link'><img alt='Facebook' style= 'margin-bottom : " . ($spaceBetweenIcons - 6) . "px !important;height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url('includes/images/icons/facebook.png', __FILE__) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
512 |
+
}
|
513 |
+
|
514 |
+
if (get_option('mo_openid_twitter_share_enable')) {
|
515 |
+
$link = empty($twitter_username) ? 'https://twitter.com/intent/tweet?text=' . $title . '&url=' . $url : 'https://twitter.com/intent/tweet?text=' . $title . '&url=' . $url . '&via=' . $twitter_username;
|
516 |
+
$html .= "<a rel='nofollow' title='Twitter' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link'><img alt='Twitter' style= 'margin-bottom : " . ($spaceBetweenIcons - 6) . "px !important;height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url('includes/images/icons/twitter.png', __FILE__) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
517 |
+
}
|
518 |
+
|
519 |
+
if (get_option('mo_openid_google_share_enable')) {
|
520 |
+
$link = 'https://plus.google.com/share?url=' . $url;
|
521 |
+
|
522 |
+
$html .= "<a rel='nofollow' title='Google' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link'><img alt='Google' style= 'margin-bottom : " . ($spaceBetweenIcons - 6) . "px !important;height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url('includes/images/icons/google.png', __FILE__) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
523 |
+
}
|
524 |
+
if (get_option('mo_openid_vkontakte_share_enable')) {
|
525 |
+
$link = 'http://vk.com/share.php?url=' . $url . '&title=' . $title . '&description=' . $excerpt;
|
526 |
+
$html .= "<a rel='nofollow' title='Vkontakte' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link'><img alt='Vkontakte' style= 'margin-bottom : " . ($spaceBetweenIcons - 6) . "px !important;height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url('includes/images/icons/vk.png', __FILE__) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
527 |
+
}
|
528 |
+
if (get_option('mo_openid_tumblr_share_enable')) {
|
529 |
+
$link = 'http://www.tumblr.com/share/link?url=' . $url . '&title=' . $title;
|
530 |
+
$html .= "<a rel='nofollow' title='Tumblr' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link'><img alt='Tumblr' style= 'margin-bottom : " . ($spaceBetweenIcons - 6) . "px !important;height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url('includes/images/icons/tumblr.png', __FILE__) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
531 |
+
}
|
532 |
+
if (get_option('mo_openid_stumble_share_enable')) {
|
533 |
+
$link = 'http://www.stumbleupon.com/submit?url=' . $url . '&title=' . $title;
|
534 |
+
$html .= "<a rel='nofollow' title='StumbleUpon' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link'><img alt='StumbleUpon' style= 'margin-bottom : " . ($spaceBetweenIcons - 6) . "px !important;height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url('includes/images/icons/stumble.png', __FILE__) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
535 |
+
}
|
536 |
+
if (get_option('mo_openid_linkedin_share_enable')) {
|
537 |
+
$link = 'https://www.linkedin.com/shareArticle?mini=true&title=' . $title . '&url=' . $url . '&summary=' . $excerpt;
|
538 |
+
$html .= "<a rel='nofollow' title='LinkedIn' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link'><img alt='LinkedIn' style= 'margin-bottom : " . ($spaceBetweenIcons - 6) . "px !important;height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url('includes/images/icons/linkedin.png', __FILE__) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
539 |
+
}
|
540 |
+
if (get_option('mo_openid_reddit_share_enable')) {
|
541 |
+
$link = 'http://www.reddit.com/submit?url=' . $url . '&title=' . $title;
|
542 |
+
$html .= "<a rel='nofollow' title='Reddit' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link'><img alt='Reddit' style= 'margin-bottom : " . ($spaceBetweenIcons - 6) . "px !important;height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url('includes/images/icons/reddit.png', __FILE__) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
543 |
+
}
|
544 |
+
if (get_option('mo_openid_pinterest_share_enable')) {
|
545 |
+
$html .= "<a rel='nofollow' title='Pinterest' href='javascript:pinIt();' class='mo-openid-share-link'><img alt='Pinterest' style= 'margin-bottom : " . ($spaceBetweenIcons - 6) . "px !important;height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url('includes/images/icons/pininterest.png', __FILE__) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
546 |
+
}
|
547 |
+
if (get_option('mo_openid_pocket_share_enable')) {
|
548 |
+
$link = 'https://getpocket.com/save?url=' . $url . '&title=' . $title;
|
549 |
+
$html .= "<a rel='nofollow' title='Pocket' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link'><img alt='Pocket' style= 'margin-bottom : " . ($spaceBetweenIcons - 6) . "px !important;height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url('includes/images/icons/pocket.png', __FILE__) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
550 |
+
}
|
551 |
+
if (get_option('mo_openid_digg_share_enable')) {
|
552 |
+
$link = 'http://digg.com/submit?url=' . $url . '&title=' . $title;
|
553 |
+
$html .= "<a rel='nofollow' title='Digg' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link'><img alt='Digg' style= 'margin-bottom : " . ($spaceBetweenIcons - 6) . "px !important;height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url('includes/images/icons/digg.png', __FILE__) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
554 |
+
}
|
555 |
+
if (get_option('mo_openid_delicious_share_enable')) {
|
556 |
+
$link = 'http://www.delicious.com/save?v=5&noui&jump=close&url=' . $url . '&title=' . $title;
|
557 |
+
$html .= "<a rel='nofollow' title='Delicious' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link'><img alt='Delicious' style= 'margin-bottom : " . ($spaceBetweenIcons - 6) . "px !important;height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url('includes/images/icons/delicious.png', __FILE__) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
558 |
+
}
|
559 |
+
if (get_option('mo_openid_odnoklassniki_share_enable')) {
|
560 |
+
$link = 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st.comments=' . $excerpt . '&st._surl=' . $url;
|
561 |
+
$html .= "<a rel='nofollow' title='Odnoklassniki' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link'><img alt='Odnoklassniki' style= 'margin-bottom : " . ($spaceBetweenIcons - 6) . "px !important;height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url('includes/images/icons/odnoklassniki.png', __FILE__) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
562 |
+
}
|
563 |
+
if (get_option('mo_openid_mail_share_enable')) {
|
564 |
+
$html .= "<a rel='nofollow' title='Email this page' onclick='popupCenter(" . '"mailto:?subject= ' . $email_subject . '&body=' . $email_body . '"' . ", 800, 500);' class='mo-openid-share-link'><img alt='Email this page' style= 'margin-bottom : " . ($spaceBetweenIcons - 6) . "px !important; height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url('includes/images/icons/mail.png', __FILE__) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
565 |
+
}
|
566 |
+
if (get_option('mo_openid_print_share_enable')) {
|
567 |
+
$html .= "<a rel='nofollow' title='Print this page' onclick='javascript:window.print();' class='mo-openid-share-link'><img alt='Print this page' style= 'margin-bottom : " . ($spaceBetweenIcons - 6) . "px !important; height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url('includes/images/icons/print.png', __FILE__) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
568 |
+
}
|
569 |
+
if (get_option('mo_openid_whatsapp_share_enable')) {
|
570 |
+
if (wp_is_mobile()) {
|
571 |
+
$html .= '<a rel="nofollow" title="Whatsapp" href="whatsapp://send?text=' . $url . "\" class='mo-openid-share-link'><img alt='Whatsapp' style= 'margin-bottom : " . ($spaceBetweenIcons - 6) . "px !important;height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url('includes/images/icons/whatsapp.png', __FILE__) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
572 |
+
} else {
|
573 |
+
$html .= '<a rel="nofollow" title="Whatsapp" target ="_blank" href="https://web.whatsapp.com/send?text=' . $url . "\" class='mo-openid-share-link'><img alt='Whatsapp' style= 'margin-bottom : " . ($spaceBetweenIcons - 6) . "px !important;height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url('includes/images/icons/whatsapp.png', __FILE__) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
574 |
+
}
|
575 |
+
}
|
576 |
+
|
577 |
+
}
|
578 |
+
$html .= "</div>";
|
579 |
+
//}
|
580 |
+
|
581 |
+
|
582 |
+
$html .= "</p></div></div>";
|
583 |
+
|
584 |
+
|
585 |
+
if (get_option('mo_share_vertical_hide_mobile')) {
|
586 |
+
$html .= "<script>";
|
587 |
+
$html .= "function hideVerticalShare() {";
|
588 |
+
$html .= "var isMobile = false;";
|
589 |
+
$html .= "if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4))) {";
|
590 |
+
$html .= "isMobile = true;";
|
591 |
+
$html .= "}";
|
592 |
+
|
593 |
+
$html .= "if(isMobile) {";
|
594 |
+
$html .= "if(jQuery('#mo_floating_vertical_shortcode'))";
|
595 |
+
$html .= 'jQuery("#mo_floating_vertical_shortcode").hide();';
|
596 |
+
$html .= "}";
|
597 |
+
$html .= "}";
|
598 |
+
$html .= "hideVerticalShare();";
|
599 |
+
$html .= "</script>";
|
600 |
+
}
|
601 |
+
|
602 |
+
|
603 |
+
$html .= '<script>';
|
604 |
+
|
605 |
+
$html .= 'function popupCenter(pageURL, w,h) {';
|
606 |
+
$html .= 'var left = (screen.width/2)-(w/2);';
|
607 |
+
$html .= 'var top = (screen.height/2)-(h/2);';
|
608 |
+
$html .= "var targetWin = window.open (pageURL, '_blank','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);}";
|
609 |
+
|
610 |
+
$html .= 'function pinIt(){';
|
611 |
+
$html .= 'var e = document.createElement("script");';
|
612 |
+
$html .= "e.setAttribute('type','text/javascript');";
|
613 |
+
$html .= "e.setAttribute('charset','UTF-8');";
|
614 |
+
$html .= "e.setAttribute('src','https://assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);";
|
615 |
+
$html .= "document.body.appendChild(e);}";
|
616 |
+
$html .= '</script>';
|
617 |
+
|
618 |
+
return $html;
|
619 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
620 |
}
|
621 |
?>
|
includes/css/mo_openid_style.css
CHANGED
@@ -1,28 +1,75 @@
|
|
1 |
.dis{
|
2 |
pointer-events: none;
|
3 |
}
|
4 |
-
.tooltip{
|
5 |
-
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
8 |
.tooltip .tooltiptext {
|
|
|
9 |
visibility: hidden;
|
10 |
-
width:
|
11 |
background-color: black;
|
12 |
color: #fff;
|
13 |
text-align: center;
|
14 |
border-radius: 6px;
|
15 |
-
padding: 5px 0;
|
16 |
-
|
17 |
-
/* Position the tooltip */
|
18 |
position: absolute;
|
19 |
z-index: 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
}
|
21 |
|
22 |
.tooltip:hover .tooltiptext {
|
23 |
visibility: visible;
|
24 |
}
|
25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
.mo_openid_help_title {
|
27 |
font-size:13px;
|
28 |
width:100%;
|
1 |
.dis{
|
2 |
pointer-events: none;
|
3 |
}
|
4 |
+
.tooltip {
|
5 |
+
position: relative;
|
6 |
+
display: inline-block;
|
7 |
+
opacity:1;
|
8 |
+
|
9 |
+
|
10 |
+
}
|
11 |
+
|
12 |
.tooltip .tooltiptext {
|
13 |
+
padding:15px 20px 20px 20px;
|
14 |
visibility: hidden;
|
15 |
+
width: 120px;
|
16 |
background-color: black;
|
17 |
color: #fff;
|
18 |
text-align: center;
|
19 |
border-radius: 6px;
|
|
|
|
|
|
|
20 |
position: absolute;
|
21 |
z-index: 1;
|
22 |
+
top: 150%;
|
23 |
+
left: 50%;
|
24 |
+
margin-left: -60px;
|
25 |
+
|
26 |
+
}
|
27 |
+
|
28 |
+
.tooltip .tooltiptext::after {
|
29 |
+
content: "";
|
30 |
+
position: absolute;
|
31 |
+
bottom: 100%;
|
32 |
+
left: 50%;
|
33 |
+
margin-left: -60px;
|
34 |
+
border-width: 5px;
|
35 |
+
border-style: solid;
|
36 |
+
border-color: transparent transparent black transparent;
|
37 |
}
|
38 |
|
39 |
.tooltip:hover .tooltiptext {
|
40 |
visibility: visible;
|
41 |
}
|
42 |
|
43 |
+
.tooltip .tooltiptext1 {
|
44 |
+
visibility: hidden;
|
45 |
+
width: 120px;
|
46 |
+
background-color: black;
|
47 |
+
color: #fff;
|
48 |
+
text-align: center;
|
49 |
+
border-radius: 6px;
|
50 |
+
padding:10px 5px 5px 5px;
|
51 |
+
position: absolute;
|
52 |
+
z-index: 1;
|
53 |
+
top: 150%;
|
54 |
+
left: 50%;
|
55 |
+
margin-left: -60px;
|
56 |
+
|
57 |
+
}
|
58 |
+
|
59 |
+
.tooltip .tooltiptext1::after {
|
60 |
+
content: "";
|
61 |
+
position: absolute;
|
62 |
+
bottom: 100%;
|
63 |
+
left: 50%;
|
64 |
+
margin-left: -5px;
|
65 |
+
border-width: 5px;
|
66 |
+
border-style: solid;
|
67 |
+
border-color: transparent transparent black transparent;
|
68 |
+
}
|
69 |
+
|
70 |
+
.tooltip:hover .tooltiptext1 {
|
71 |
+
visibility: visible;
|
72 |
+
}
|
73 |
.mo_openid_help_title {
|
74 |
font-size:13px;
|
75 |
width:100%;
|
includes/images/account_linking.png
ADDED
Binary file
|
includes/images/email_verify.png
ADDED
Binary file
|
includes/images/lock1.png
ADDED
Binary file
|
includes/images/logo.png
ADDED
Binary file
|
includes/images/profile_completion.png
ADDED
Binary file
|
miniorange_openid_sso_settings.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Social Login, Social Sharing by miniOrange
|
4 |
* Plugin URI: https://www.miniorange.com
|
5 |
* Description: Allow your users to login, comment and share with Facebook, Google, Twitter, LinkedIn etc using customizable buttons.
|
6 |
-
* Version: 7.0.
|
7 |
* Author: miniOrange
|
8 |
* Author URI: https://www.miniorange.com
|
9 |
* License: GPL2
|
@@ -14,16 +14,16 @@ include_once dirname( __FILE__ ) . '/class-mo-openid-login-widget.php';
|
|
14 |
require('class-mo-openid-sso-customer.php');
|
15 |
require('class-mo-openid-sso-shortcode-buttons.php');
|
16 |
require('class-mo-openid-social-comment.php');
|
17 |
-
define('MO_OPENID_SOCIAL_LOGIN_VERSION', '7.0.
|
18 |
include dirname( __FILE__ ) . '/mo_openid_feedback_form.php';
|
19 |
class Miniorange_OpenID_SSO {
|
20 |
|
21 |
function __construct() {
|
22 |
-
|
23 |
add_action( 'admin_menu', array( $this, 'miniorange_openid_menu' ) );
|
24 |
add_filter( 'plugin_action_links', array($this, 'mo_openid_plugin_actions'), 10, 2 );
|
25 |
add_action( 'admin_init', array( $this, 'miniorange_openid_save_settings' ) );
|
26 |
-
|
27 |
add_action( 'plugins_loaded', array( $this, 'mo_login_widget_text_domain' ) );
|
28 |
add_action( 'plugins_loaded', array( $this, 'mo_openid_plugin_update' ),1 );
|
29 |
add_action( 'admin_enqueue_scripts', array( $this, 'mo_openid_plugin_settings_style' ) );
|
@@ -34,27 +34,28 @@ class Miniorange_OpenID_SSO {
|
|
34 |
|
35 |
register_deactivation_hook(__FILE__, array( $this, 'mo_openid_deactivate'));
|
36 |
register_activation_hook( __FILE__, array( $this, 'mo_openid_activate' ) );
|
37 |
-
|
38 |
// add social login icons to default login form
|
39 |
if(get_option('mo_openid_default_login_enable') == 1){
|
40 |
add_action( 'login_form', array($this, 'mo_openid_add_social_login') );
|
41 |
add_action( 'login_enqueue_scripts', array( $this, 'mo_custom_login_stylesheet' ) );
|
42 |
}
|
43 |
-
|
44 |
// add social login icons to default registration form
|
45 |
if(get_option('mo_openid_default_register_enable') == 1){
|
46 |
add_action( 'register_form', array($this, 'mo_openid_add_social_login') );
|
|
|
47 |
}
|
48 |
-
|
49 |
//add shortcode
|
50 |
add_shortcode( 'miniorange_social_login', array($this, 'mo_get_output') );
|
51 |
add_shortcode( 'miniorange_social_sharing', array($this, 'mo_get_sharing_output') );
|
52 |
add_shortcode( 'miniorange_social_sharing_vertical', array($this, 'mo_get_vertical_sharing_output') );
|
53 |
add_shortcode( 'miniorange_social_comments', array($this, 'mo_get_comments_output') );
|
54 |
-
|
55 |
// add social login icons to comment form
|
56 |
if(get_option('mo_openid_default_comment_enable') == 1 ){
|
57 |
-
add_action('comment_form_must_log_in_after', array($this, 'mo_openid_add_social_login'));
|
58 |
add_action('comment_form_top', array($this, 'mo_openid_add_social_login'));
|
59 |
}
|
60 |
|
@@ -105,7 +106,7 @@ class Miniorange_OpenID_SSO {
|
|
105 |
if(get_option('mo_openid_logout_redirection_enable') == 0){
|
106 |
remove_filter( 'logout_url', 'mo_openid_redirect_after_logout');
|
107 |
}
|
108 |
-
|
109 |
if(get_option('mo_share_options_wc_sp_summary') == 1){
|
110 |
add_action('woocommerce_after_single_product_summary', array( $this, 'mo_openid_social_share' ));
|
111 |
}
|
@@ -121,59 +122,61 @@ class Miniorange_OpenID_SSO {
|
|
121 |
if(get_option('mo_share_options_bb_forum') == 1){
|
122 |
if(get_option('mo_share_options_bb_forum_position') == 'before')
|
123 |
add_action('bbp_template_before_single_forum', array( $this, 'mo_openid_social_share' ));
|
124 |
-
|
125 |
if(get_option('mo_share_options_bb_forum_position') == 'after')
|
126 |
add_action('bbp_template_after_single_forum', array( $this, 'mo_openid_social_share' ));
|
127 |
-
|
128 |
if(get_option('mo_share_options_bb_forum_position') == 'both'){
|
129 |
add_action('bbp_template_before_single_forum', array( $this, 'mo_openid_social_share' ));
|
130 |
-
add_action('bbp_template_after_single_forum', array( $this, 'mo_openid_social_share' ));
|
131 |
}
|
132 |
}
|
133 |
-
|
134 |
if(get_option('mo_share_options_bb_topic') == 1){
|
135 |
if(get_option('mo_share_options_bb_topic_position') == 'before')
|
136 |
add_action('bbp_template_before_single_topic', array( $this, 'mo_openid_social_share' ));
|
137 |
-
|
138 |
if(get_option('mo_share_options_bb_topic_position') == 'after')
|
139 |
add_action('bbp_template_after_single_topic', array( $this, 'mo_openid_social_share' ));
|
140 |
-
|
141 |
if(get_option('mo_share_options_bb_topic_position') == 'both'){
|
142 |
add_action('bbp_template_before_single_topic', array( $this, 'mo_openid_social_share' ));
|
143 |
-
add_action('bbp_template_after_single_topic', array( $this, 'mo_openid_social_share' ));
|
144 |
}
|
145 |
}
|
146 |
-
|
147 |
if(get_option('mo_share_options_bb_reply') == 1){
|
148 |
if(get_option('mo_share_options_bb_reply_position') == 'before')
|
149 |
add_action('bbp_template_before_single_reply', array( $this, 'mo_openid_social_share' ));
|
150 |
-
|
151 |
if(get_option('mo_share_options_bb_reply_position') == 'after')
|
152 |
add_action('bbp_template_after_single_reply', array( $this, 'mo_openid_social_share' ));
|
153 |
-
|
154 |
if(get_option('mo_share_options_bb_reply_position') == 'both'){
|
155 |
add_action('bbp_template_before_single_reply', array( $this, 'mo_openid_social_share' ));
|
156 |
-
add_action('bbp_template_after_single_reply', array( $this, 'mo_openid_social_share' ));
|
157 |
}
|
158 |
}
|
159 |
-
|
160 |
add_filter( 'the_content', array( $this, 'mo_openid_add_social_share_links' ) );
|
161 |
add_filter( 'the_excerpt', array( $this, 'mo_openid_add_social_share_links' ) );
|
162 |
-
|
163 |
//custom avatar
|
164 |
if(get_option('moopenid_social_login_avatar')) {
|
165 |
add_filter( 'get_avatar', array( $this, 'mo_social_login_custom_avatar' ), 15, 5 );
|
166 |
add_filter( 'get_avatar_url', array( $this, 'mo_social_login_custom_avatar_url' ), 15, 3);
|
167 |
add_filter( 'bp_core_fetch_avatar', array( $this, 'mo_social_login_buddypress_avatar' ), 10, 2);
|
168 |
}
|
169 |
-
|
170 |
remove_action( 'admin_notices', array( $this, 'mo_openid_success_message') );
|
171 |
remove_action( 'admin_notices', array( $this, 'mo_openid_error_message') );
|
172 |
-
|
173 |
//set default values
|
174 |
add_option( 'mo_openid_login_redirect', 'same' );
|
175 |
add_option( 'mo_openid_login_theme', 'longbutton' );
|
176 |
add_option( 'mo_openid_oauth','0');
|
|
|
|
|
177 |
add_option( 'mo_openid_share_theme', 'oval' );
|
178 |
add_option( 'mo_share_options_enable_post_position', 'before');
|
179 |
add_option( 'mo_share_options_home_page_position', 'before');
|
@@ -206,7 +209,7 @@ class Miniorange_OpenID_SSO {
|
|
206 |
add_option( 'mo_openid_account_linking_enable', '0');
|
207 |
add_option( 'mo_openid_email_enable', '1');
|
208 |
add_option( 'mo_openid_register_disabled_message', 'Registration is disabled for this website. Please contact the administrator for any queries.' );
|
209 |
-
add_option( 'mo_openid_register_email_message', 'Hello,<br><br>##User Name## has registered to your site successfully.<br><br>Thanks,<br>miniOrange' );
|
210 |
add_option( 'moopenid_social_login_avatar','1' );
|
211 |
add_option( 'moopenid_user_attributes','0' );
|
212 |
add_option( 'mo_share_vertical_hide_mobile', '1' );
|
@@ -224,6 +227,35 @@ class Miniorange_OpenID_SSO {
|
|
224 |
add_option( 'mo_openid_share_email_body','Check out this site ##url##' );
|
225 |
add_option( 'mo_openid_enable_profile_completion','1' );
|
226 |
add_option( 'moopenid_logo_check','1' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
227 |
//woocommerce display options
|
228 |
add_option( 'mo_openid_woocommerce_login_form','0');
|
229 |
add_option( 'mo_openid_woocommerce_before_login_form','0');
|
@@ -387,7 +419,7 @@ class Miniorange_OpenID_SSO {
|
|
387 |
add_option('Activated_Plugin','Plugin-Slug');
|
388 |
update_option( 'mo_openid_host_name', 'https://auth.miniorange.com' );
|
389 |
}
|
390 |
-
|
391 |
function mo_openid_add_social_login(){
|
392 |
|
393 |
if(!is_user_logged_in() && mo_openid_is_customer_registered() && strpos( $_SERVER['QUERY_STRING'], 'disable-social-login' ) == false){
|
@@ -395,12 +427,12 @@ class Miniorange_OpenID_SSO {
|
|
395 |
$mo_login_widget->openidloginForm();
|
396 |
}
|
397 |
}
|
398 |
-
|
399 |
function mo_openid_add_social_share_links($content) {
|
400 |
global $post;
|
401 |
$post_content=$content;
|
402 |
$title = str_replace('+', '%20', urlencode($post->post_title));
|
403 |
-
|
404 |
if(is_front_page() && get_option('mo_share_options_enable_home_page')==1){
|
405 |
$html_content = mo_openid_share_shortcode('', $title);
|
406 |
|
@@ -423,7 +455,7 @@ class Miniorange_OpenID_SSO {
|
|
423 |
}
|
424 |
} else if(is_single() && get_option('mo_share_options_enable_post') == 1 ){
|
425 |
$html_content = mo_openid_share_shortcode('', $title);
|
426 |
-
|
427 |
if ( get_option('mo_share_options_enable_post_position') == 'before' ) {
|
428 |
return $html_content . $post_content;
|
429 |
} else if ( get_option('mo_share_options_enable_post_position') == 'after' ) {
|
@@ -433,13 +465,13 @@ class Miniorange_OpenID_SSO {
|
|
433 |
}
|
434 |
} else
|
435 |
return $post_content;
|
436 |
-
|
437 |
}
|
438 |
|
439 |
function mo_openid_social_share(){
|
440 |
global $post;
|
441 |
$title = str_replace('+', '%20', urlencode($post->post_title));
|
442 |
-
echo mo_openid_share_shortcode('', $title);
|
443 |
}
|
444 |
|
445 |
function mo_openid_add_comment(){
|
@@ -456,7 +488,7 @@ class Miniorange_OpenID_SSO {
|
|
456 |
mo_openid_social_comment($post, $url);
|
457 |
}
|
458 |
}
|
459 |
-
|
460 |
function mo_custom_login_stylesheet()
|
461 |
{
|
462 |
wp_enqueue_style( 'mo-wp-style',plugins_url('includes/css/mo_openid_style.css?version=5.0.6', __FILE__), false );
|
@@ -464,16 +496,16 @@ class Miniorange_OpenID_SSO {
|
|
464 |
wp_enqueue_style( 'mo-wp-bootstrap-main',plugins_url('includes/css/bootstrap.min.css', __FILE__), false );
|
465 |
wp_enqueue_style( 'mo-wp-font-awesome',plugins_url('includes/css/font-awesome.min.css?version=4.8', __FILE__), false );
|
466 |
wp_enqueue_style( 'mo-wp-font-awesome',plugins_url('includes/css/font-awesome.css?version=4.8', __FILE__), false );
|
467 |
-
}
|
468 |
-
|
469 |
function mo_openid_plugin_settings_style() {
|
470 |
wp_enqueue_style( 'mo_openid_admin_settings_style', plugins_url('includes/css/mo_openid_style.css?version=5.0.6', __FILE__));
|
471 |
-
wp_enqueue_style( 'mo_openid_admin_settings_phone_style', plugins_url('includes/css/phone.css', __FILE__));
|
472 |
wp_enqueue_style( 'mo-wp-bootstrap-social',plugins_url('includes/css/bootstrap-social.css', __FILE__), false );
|
473 |
wp_enqueue_style( 'mo-wp-bootstrap-main',plugins_url('includes/css/bootstrap.min-preview.css', __FILE__), false );
|
474 |
wp_enqueue_style( 'mo-wp-font-awesome',plugins_url('includes/css/font-awesome.min.css?version=4.8', __FILE__), false );
|
475 |
wp_enqueue_style( 'mo-wp-font-awesome',plugins_url('includes/css/font-awesome.css?version=4.8', __FILE__), false );
|
476 |
-
|
477 |
}
|
478 |
|
479 |
function mo_openid_plugin_script() {
|
@@ -487,12 +519,12 @@ class Miniorange_OpenID_SSO {
|
|
487 |
wp_enqueue_script( 'mo_openid_admin_settings_script', plugins_url('includes/js/settings.js?version=4.9.6', __FILE__ ), array('jquery'));
|
488 |
wp_enqueue_script( 'mo_openid_admin_settings_phone_script', plugins_url('includes/js/bootstrap.min.js', __FILE__ ));
|
489 |
}
|
490 |
-
|
491 |
function mo_openid_success_message() {
|
492 |
-
$message = get_option('mo_openid_message'); ?>
|
493 |
-
<script>
|
494 |
-
|
495 |
-
jQuery(document).ready(function() {
|
496 |
var message = "<?php echo $message; ?>";
|
497 |
jQuery('#mo_openid_msgs').append("<div class='error notice is-dismissible mo_openid_error_container'> <p class='mo_openid_msgs'>" + message + "</p></div>");
|
498 |
});
|
@@ -501,7 +533,7 @@ class Miniorange_OpenID_SSO {
|
|
501 |
|
502 |
function mo_openid_error_message() {
|
503 |
$message = get_option('mo_openid_message'); ?>
|
504 |
-
<script>
|
505 |
jQuery(document).ready(function() {
|
506 |
var message = "<?php echo $message; ?>";
|
507 |
jQuery('#mo_openid_msgs').append("<div class='updated notice is-dismissible mo_openid_success_container'> <p class='mo_openid_msgs'>" + message + "</p></div>");
|
@@ -555,7 +587,7 @@ class Miniorange_OpenID_SSO {
|
|
555 |
function mo_login_widget_text_domain(){
|
556 |
load_plugin_textdomain('flw', FALSE, basename( dirname( __FILE__ ) ) .'/languages');
|
557 |
}
|
558 |
-
|
559 |
public function mo_oauth_check_empty_or_null( $value ) {
|
560 |
if( ! isset( $value ) || empty( $value ) ) {
|
561 |
return true;
|
@@ -579,14 +611,14 @@ class Miniorange_OpenID_SSO {
|
|
579 |
|
580 |
function miniorange_openid_save_settings(){
|
581 |
|
582 |
-
if ( current_user_can( 'manage_options' )){
|
583 |
if(is_admin() && get_option('Activated_Plugin')=='Plugin-Slug') {
|
584 |
-
|
585 |
delete_option('Activated_Plugin');
|
586 |
update_option('mo_openid_message','Go to plugin <b><a href="admin.php?page=mo_openid_settings">settings</a></b> to enable Social Login, Social Sharing by miniOrange.');
|
587 |
add_action('admin_notices', array($this, 'mo_openid_activation_message'));
|
588 |
}
|
589 |
-
|
590 |
if( isset( $_POST['option'] ) and $_POST['option'] == "mo_openid_connect_register_customer" ) { //register the admin to miniOrange
|
591 |
|
592 |
//validation and sanitization
|
@@ -613,10 +645,10 @@ class Miniorange_OpenID_SSO {
|
|
613 |
return;
|
614 |
} else {
|
615 |
$company = sanitize_text_field($_POST['company']);
|
616 |
-
$first_name = sanitize_text_field($_POST['fname']);
|
617 |
-
$last_name = sanitize_text_field($_POST['lname']);
|
618 |
$email = sanitize_email( $_POST['email'] );
|
619 |
-
$phone = sanitize_text_field( $_POST['phone'] );
|
620 |
$password = sanitize_text_field( $_POST['password'] );
|
621 |
$confirmPassword = sanitize_text_field( $_POST['confirmPassword'] );
|
622 |
}
|
@@ -626,7 +658,7 @@ class Miniorange_OpenID_SSO {
|
|
626 |
update_option( 'mo_openid_admin_last_name', $last_name);
|
627 |
update_option( 'mo_openid_admin_email', $email );
|
628 |
update_option( 'mo_openid_admin_phone', $phone );
|
629 |
-
|
630 |
if( strcmp( $password, $confirmPassword) == 0 ) {
|
631 |
update_option( 'mo_openid_admin_password', $password );
|
632 |
|
@@ -644,7 +676,7 @@ class Miniorange_OpenID_SSO {
|
|
644 |
}
|
645 |
update_option('mo_openid_transactionId',$content['txId']);
|
646 |
update_option('mo_openid_registration_status','MO_OTP_DELIVERED_SUCCESS');
|
647 |
-
|
648 |
$this->mo_openid_show_success_message();
|
649 |
}else{
|
650 |
update_option('mo_openid_message','There was an error in sending email. Please click on Resend OTP to try again.');
|
@@ -684,8 +716,12 @@ class Miniorange_OpenID_SSO {
|
|
684 |
$content = json_decode($customer->validate_otp_token(get_option('mo_openid_transactionId'), $otp_token ),true);
|
685 |
if(strcasecmp($content['status'], 'SUCCESS') == 0) {
|
686 |
$this->create_customer();
|
687 |
-
|
688 |
-
|
|
|
|
|
|
|
|
|
689 |
update_option( 'mo_openid_message','Invalid one time passcode. Please enter a valid passcode.');
|
690 |
update_option('mo_openid_registration_status','MO_OTP_VALIDATION_FAILURE');
|
691 |
$this->mo_openid_show_error_message();
|
@@ -693,7 +729,7 @@ class Miniorange_OpenID_SSO {
|
|
693 |
}
|
694 |
else if( isset($_POST['option']) and $_POST['option'] == 'mo_openid_phone_verification'){ //at registration time
|
695 |
$phone = sanitize_text_field($_POST['phone_number']);
|
696 |
-
|
697 |
$phone = str_replace(' ', '', $phone);
|
698 |
update_option('mo_openid_admin_phone',$phone);
|
699 |
$auth_type = 'SMS';
|
@@ -701,25 +737,25 @@ class Miniorange_OpenID_SSO {
|
|
701 |
$send_otp_response = json_decode($customer->send_otp_token($auth_type),true);
|
702 |
if(strcasecmp($send_otp_response['status'], 'SUCCESS') == 0){
|
703 |
//Save txId
|
704 |
-
|
705 |
update_option('mo_openid_transactionId',$send_otp_response['txId']);
|
706 |
update_option( 'mo_openid_registration_status','MO_OTP_DELIVERED_SUCCESS');
|
707 |
if(get_option('mo_openid_sms_otp_count')){
|
708 |
update_option('mo_openid_sms_otp_count',get_option('mo_openid_sms_otp_count') + 1);
|
709 |
update_option('mo_openid_message', 'Another One Time Passcode has been sent <b>( ' . get_option('mo_openid_sms_otp_count') . ' )</b> for verification to ' . $phone);
|
710 |
}else{
|
711 |
-
|
712 |
update_option('mo_openid_message', 'One Time Passcode has been sent for verification to ' . $phone);
|
713 |
update_option('mo_openid_sms_otp_count',1);
|
714 |
}
|
715 |
|
716 |
$this->mo_openid_show_success_message();
|
717 |
-
|
718 |
}else{
|
719 |
update_option('mo_openid_message','There was an error in sending sms. Please click on Resend OTP link next to phone number textbox.');
|
720 |
update_option('mo_openid_registration_status','MO_OTP_DELIVERED_FAILURE');
|
721 |
$this->mo_openid_show_error_message();
|
722 |
-
|
723 |
}
|
724 |
}
|
725 |
else if( isset( $_POST['option'] ) and $_POST['option'] == "mo_openid_connect_verify_customer" ) { //register the admin to miniOrange
|
@@ -756,6 +792,7 @@ class Miniorange_OpenID_SSO {
|
|
756 |
update_option( 'mo_openid_message', 'Your account has been retrieved successfully.');
|
757 |
delete_option('mo_openid_verify_customer');
|
758 |
$this->mo_openid_show_success_message();
|
|
|
759 |
} else {
|
760 |
update_option( 'mo_openid_message', 'Invalid username or password. Please try again.');
|
761 |
$this->mo_openid_show_error_message();
|
@@ -771,7 +808,7 @@ class Miniorange_OpenID_SSO {
|
|
771 |
return;
|
772 |
} else {
|
773 |
$email = $_POST['email'];
|
774 |
-
}
|
775 |
}
|
776 |
$customer = new CustomerOpenID();
|
777 |
$content = json_decode($customer->forgot_password($email),true);
|
@@ -781,7 +818,7 @@ class Miniorange_OpenID_SSO {
|
|
781 |
}else{
|
782 |
update_option( 'mo_openid_message','An error occured while processing your request. Please make sure you are registered with miniOrange with the given email address.');
|
783 |
$this->mo_openid_show_error_message();
|
784 |
-
}
|
785 |
}
|
786 |
else if(isset($_POST['option']) and $_POST['option'] == 'mo_openid_check_license'){
|
787 |
if(mo_openid_is_customer_registered()) {
|
@@ -803,7 +840,7 @@ class Miniorange_OpenID_SSO {
|
|
803 |
}else{
|
804 |
update_option( 'mo_openid_message','An error occured while processing your request. Please try again.');
|
805 |
$this->mo_openid_show_error_message();
|
806 |
-
}
|
807 |
} else {
|
808 |
update_option('mo_openid_message', 'Please register an account before trying to check your plan');
|
809 |
$this->mo_openid_show_error_message();
|
@@ -811,7 +848,7 @@ class Miniorange_OpenID_SSO {
|
|
811 |
}
|
812 |
else if( isset( $_POST['option'] ) and $_POST['option'] == "mo_openid_enable_apps" ) {
|
813 |
|
814 |
-
|
815 |
update_option( 'mo_openid_google_enable', isset( $_POST['mo_openid_google_enable']) ? $_POST['mo_openid_google_enable'] : 0);
|
816 |
update_option( 'mo_openid_salesforce_enable', isset( $_POST['mo_openid_salesforce_enable']) ? $_POST['mo_openid_salesforce_enable'] : 0);
|
817 |
if($this->if_custom_app_exists('facebook')) {
|
@@ -828,61 +865,89 @@ class Miniorange_OpenID_SSO {
|
|
828 |
update_option( 'mo_openid_instagram_enable', isset( $_POST['mo_openid_instagram_enable']) ? $_POST['mo_openid_instagram_enable'] : 0);
|
829 |
update_option( 'mo_openid_twitter_enable', isset( $_POST['mo_openid_twitter_enable']) ? $_POST['mo_openid_twitter_enable'] : 0);
|
830 |
update_option( 'mo_openid_vkontakte_enable', isset( $_POST['mo_openid_vkontakte_enable']) ? $_POST['mo_openid_vkontakte_enable'] : 0);
|
831 |
-
|
832 |
update_option( 'mo_openid_default_login_enable', isset( $_POST['mo_openid_default_login_enable']) ? $_POST['mo_openid_default_login_enable'] : 0);
|
833 |
update_option( 'mo_openid_default_register_enable', isset( $_POST['mo_openid_default_register_enable']) ? $_POST['mo_openid_default_register_enable'] : 0);
|
834 |
update_option( 'mo_openid_default_comment_enable', isset( $_POST['mo_openid_default_comment_enable']) ? $_POST['mo_openid_default_comment_enable'] : 0);
|
835 |
|
836 |
-
|
837 |
-
update_option( 'mo_openid_woocommerce_login_form', isset( $_POST['mo_openid_woocommerce_login_form']) ? $_POST['mo_openid_woocommerce_login_form'] : 0);
|
838 |
-
update_option( 'mo_openid_woocommerce_before_login_form', isset( $_POST['mo_openid_woocommerce_before_login_form']) ? $_POST['mo_openid_woocommerce_before_login_form'] : 0);
|
839 |
-
update_option( 'mo_openid_woocommerce_center_login_form', isset( $_POST['mo_openid_woocommerce_center_login_form']) ? $_POST['mo_openid_woocommerce_center_login_form'] : 0);
|
840 |
-
update_option( 'mo_openid_woocommerce_register_form_start', isset( $_POST['mo_openid_woocommerce_register_form_start']) ? $_POST['mo_openid_woocommerce_register_form_start'] : 0);
|
841 |
-
update_option( 'mo_openid_woocommerce_center_register_form', isset( $_POST['mo_openid_woocommerce_center_register_form']) ? $_POST['mo_openid_woocommerce_center_register_form'] : 0);
|
842 |
-
update_option( 'mo_openid_woocommerce_register_form_end', isset( $_POST['mo_openid_woocommerce_register_form_end']) ? $_POST['mo_openid_woocommerce_register_form_end'] : 0);
|
843 |
-
update_option( 'mo_openid_woocommerce_before_checkout_billing_form', isset( $_POST['mo_openid_woocommerce_before_checkout_billing_form']) ? $_POST['mo_openid_woocommerce_before_checkout_billing_form'] : 0);
|
844 |
-
update_option( 'mo_openid_woocommerce_after_checkout_billing_form', isset( $_POST['mo_openid_woocommerce_after_checkout_billing_form']) ? $_POST['mo_openid_woocommerce_after_checkout_billing_form'] : 0);
|
845 |
-
// update_option( 'mo_openid_woocommerce_edit_account_form_start', isset( $_POST['mo_openid_woocommerce_edit_account_form_start']) ? $_POST['mo_openid_woocommerce_edit_account_form_start'] : 0);
|
846 |
-
// update_option( 'mo_openid_woocommerce_edit_account_form_end', isset( $_POST['mo_openid_woocommerce_edit_account_form_end']) ? $_POST['mo_openid_woocommerce_edit_account_form_end'] : 0);
|
847 |
-
|
848 |
-
//buddypress display options
|
849 |
-
update_option( 'mo_openid_bp_before_register_page', isset( $_POST['mo_openid_bp_before_register_page']) ? $_POST['mo_openid_bp_before_register_page'] : 0);
|
850 |
-
update_option( 'mo_openid_bp_before_account_details_fields', isset( $_POST['mo_openid_bp_before_account_details_fields']) ? $_POST['mo_openid_bp_before_account_details_fields'] : 0);
|
851 |
-
update_option( 'mo_openid_bp_after_register_page', isset( $_POST['mo_openid_bp_after_register_page']) ? $_POST['mo_openid_bp_after_register_page'] : 0);
|
852 |
|
853 |
// GDPR options
|
854 |
update_option( 'mo_openid_gdpr_consent_enable', isset( $_POST['mo_openid_gdpr_consent_enable']) ? $_POST['mo_openid_gdpr_consent_enable'] : 0);
|
855 |
-
|
856 |
-
|
857 |
-
|
858 |
-
|
|
|
859 |
//Redirect URL
|
860 |
update_option( 'mo_openid_login_redirect', $_POST['mo_openid_login_redirect']);
|
861 |
update_option( 'mo_openid_login_redirect_url', $_POST['mo_openid_login_redirect_url'] );
|
862 |
update_option( 'mo_openid_relative_login_redirect_url', isset( $_POST['mo_openid_relative_login_redirect_url']) ? $_POST['mo_openid_relative_login_redirect_url'] : "" );
|
863 |
-
|
864 |
//Logout Url
|
865 |
update_option( 'mo_openid_logout_redirection_enable', isset( $_POST['mo_openid_logout_redirection_enable']) ? $_POST['mo_openid_logout_redirection_enable'] : 0);
|
866 |
update_option( 'mo_openid_logout_redirect', $_POST['mo_openid_logout_redirect']);
|
867 |
update_option( 'mo_openid_logout_redirect_url', $_POST['mo_openid_logout_redirect_url'] );
|
868 |
-
|
869 |
//auto register
|
870 |
update_option( 'mo_openid_auto_register_enable', isset( $_POST['mo_openid_auto_register_enable']) ? $_POST['mo_openid_auto_register_enable'] : 0);
|
871 |
update_option( 'mo_openid_register_disabled_message', $_POST['mo_openid_register_disabled_message']);
|
872 |
|
873 |
-
//account-linking
|
874 |
-
update_option( 'mo_openid_account_linking_enable', isset( $_POST['mo_openid_account_linking_enable']) ? $_POST['mo_openid_account_linking_enable'] : 0);
|
875 |
|
876 |
//email notification
|
877 |
update_option( 'mo_openid_email_enable', isset( $_POST['mo_openid_email_enable']) ? $_POST['mo_openid_email_enable'] : 0);
|
878 |
-
|
879 |
//Customized text
|
880 |
update_option('mo_openid_login_widget_customize_text',$_POST['mo_openid_login_widget_customize_text'] );
|
881 |
update_option( 'mo_openid_login_button_customize_text',$_POST['mo_openid_login_button_customize_text'] );
|
882 |
-
|
883 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
884 |
update_option('mo_openid_login_widget_customize_logout_name_text',sanitize_text_field($_POST['mo_openid_login_widget_customize_logout_name_text']));
|
885 |
update_option( 'mo_openid_login_widget_customize_logout_text',sanitize_text_field($_POST['mo_openid_login_widget_customize_logout_text']));
|
|
|
|
|
886 |
}else{
|
887 |
update_option('moopenid_logo_check', isset( $_POST['moopenid_logo_check']) ? $_POST['moopenid_logo_check'] : 0);
|
888 |
}
|
@@ -890,7 +955,7 @@ class Miniorange_OpenID_SSO {
|
|
890 |
update_option('mo_login_openid_login_widget_customize_textcolor',$_POST['mo_login_openid_login_widget_customize_textcolor']);
|
891 |
update_option('mo_openid_login_theme',$_POST['mo_openid_login_theme'] );
|
892 |
update_option( 'mo_openid_message', 'Your settings are saved successfully.' );
|
893 |
-
|
894 |
//customization of icons
|
895 |
update_option('mo_login_icon_custom_size',$_POST['mo_login_icon_custom_size'] );
|
896 |
update_option('mo_login_icon_space',$_POST['mo_login_icon_space'] );
|
@@ -899,13 +964,11 @@ class Miniorange_OpenID_SSO {
|
|
899 |
update_option('mo_openid_login_custom_theme',$_POST['mo_openid_login_custom_theme'] );
|
900 |
update_option( 'mo_login_icon_custom_color', $_POST['mo_login_icon_custom_color'] );
|
901 |
update_option('mo_login_icon_custom_boundary',$_POST['mo_login_icon_custom_boundary']);
|
902 |
-
|
903 |
// avatar
|
904 |
update_option( 'moopenid_social_login_avatar', isset( $_POST['moopenid_social_login_avatar']) ? $_POST['moopenid_social_login_avatar'] : 0);
|
905 |
|
906 |
-
|
907 |
-
update_option('mo_openid_enable_profile_completion', isset( $_POST['mo_openid_enable_profile_completion']) ? $_POST['mo_openid_enable_profile_completion'] : 0);
|
908 |
-
|
909 |
if(isset($_POST['mapping_value_default']))
|
910 |
update_option('mo_openid_login_role_mapping', isset( $_POST['mapping_value_default']) ? $_POST['mapping_value_default'] : 'subscriber');
|
911 |
|
@@ -913,22 +976,49 @@ class Miniorange_OpenID_SSO {
|
|
913 |
//Attribute collection
|
914 |
update_option( 'moopenid_user_attributes', isset( $_POST['moopenid_user_attributes']) ? $_POST['moopenid_user_attributes'] : 0);
|
915 |
}
|
916 |
-
|
917 |
$this->mo_openid_show_success_message();
|
918 |
-
|
919 |
-
|
920 |
-
|
921 |
-
|
922 |
-
|
923 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
924 |
else if( isset( $_POST['option'] ) and $_POST['option'] == "mo_openid_save_comment_settings" ) {
|
925 |
-
|
926 |
|
927 |
//commenting
|
928 |
update_option( 'mo_openid_social_comment_fb', isset( $_POST['mo_openid_social_comment_fb']) ? $_POST['mo_openid_social_comment_fb'] : 0);
|
929 |
update_option( 'mo_openid_social_comment_google', isset( $_POST['mo_openid_social_comment_google']) ? $_POST['mo_openid_social_comment_google'] : 0);
|
930 |
update_option( 'mo_openid_social_comment_default', isset( $_POST['mo_openid_social_comment_default']) ? $_POST['mo_openid_social_comment_default'] : 0);
|
931 |
-
|
932 |
//comment position
|
933 |
update_option( 'mo_openid_social_comment_blogpost', isset( $_POST['mo_openid_social_comment_blogpost']) ? $_POST['mo_openid_social_comment_blogpost'] : 0);
|
934 |
update_option( 'mo_openid_social_comment_static', isset( $_POST['mo_openid_social_comment_static']) ? $_POST['mo_openid_social_comment_static'] : 0);
|
@@ -941,11 +1031,13 @@ class Miniorange_OpenID_SSO {
|
|
941 |
|
942 |
update_option( 'mo_openid_message', 'Your settings are saved successfully.' );
|
943 |
$this->mo_openid_show_success_message();
|
|
|
|
|
|
|
|
|
|
|
|
|
944 |
|
945 |
-
} else {
|
946 |
-
update_option('mo_openid_message', 'Please register an account before trying to enable any app');
|
947 |
-
$this->mo_openid_show_error_message();
|
948 |
-
}
|
949 |
}
|
950 |
else if( isset( $_POST['option'] ) and $_POST['option'] == "mo_openid_contact_us_query_option" ) {
|
951 |
// Contact Us query
|
@@ -1002,12 +1094,12 @@ class Miniorange_OpenID_SSO {
|
|
1002 |
delete_option('mo_openid_admin_password');
|
1003 |
delete_option('mo_openid_admin_customer_key');
|
1004 |
delete_option('mo_openid_verify_customer');
|
1005 |
-
|
1006 |
}else if( isset( $_POST['option'] ) and $_POST['option'] == "mo_openid_go_back_registration" ){
|
1007 |
update_option('mo_openid_verify_customer','true');
|
1008 |
-
|
1009 |
}else if( isset( $_POST['option'] ) and $_POST['option'] == "mo_openid_save_other_settings" ){
|
1010 |
-
|
1011 |
update_option( 'mo_openid_google_share_enable', isset( $_POST['mo_openid_google_share_enable']) ? $_POST['mo_openid_google_share_enable'] : 0);
|
1012 |
update_option( 'mo_openid_facebook_share_enable', isset( $_POST['mo_openid_facebook_share_enable']) ? $_POST['mo_openid_facebook_share_enable'] : 0);
|
1013 |
update_option( 'mo_openid_linkedin_share_enable', isset( $_POST['mo_openid_linkedin_share_enable']) ? $_POST['mo_openid_linkedin_share_enable'] : 0);
|
@@ -1021,7 +1113,7 @@ class Miniorange_OpenID_SSO {
|
|
1021 |
update_option( 'mo_openid_odnoklassniki_share_enable', isset( $_POST['mo_openid_odnoklassniki_share_enable']) ? $_POST['mo_openid_odnoklassniki_share_enable'] : 0);
|
1022 |
update_option( 'mo_openid_digg_share_enable', isset( $_POST['mo_openid_digg_share_enable']) ? $_POST['mo_openid_digg_share_enable'] : 0);
|
1023 |
update_option( 'mo_openid_pocket_share_enable', isset( $_POST['mo_openid_pocket_share_enable']) ? $_POST['mo_openid_pocket_share_enable'] : 0);
|
1024 |
-
|
1025 |
update_option( 'mo_openid_mail_share_enable', isset( $_POST['mo_openid_mail_share_enable']) ? $_POST['mo_openid_mail_share_enable'] : 0);
|
1026 |
update_option( 'mo_openid_print_share_enable', isset( $_POST['mo_openid_print_share_enable']) ? $_POST['mo_openid_print_share_enable'] : 0);
|
1027 |
update_option( 'mo_openid_whatsapp_share_enable', isset( $_POST['mo_openid_whatsapp_share_enable']) ? $_POST['mo_openid_whatsapp_share_enable'] : 0);
|
@@ -1039,7 +1131,7 @@ class Miniorange_OpenID_SSO {
|
|
1039 |
update_option('mo_share_options_bb_reply_position',$_POST['mo_share_options_bb_reply_position'] );
|
1040 |
update_option('mo_openid_share_theme',$_POST['mo_openid_share_theme'] );
|
1041 |
update_option('mo_share_vertical_hide_mobile',isset( $_POST['mo_share_vertical_hide_mobile']) ? $_POST['mo_share_vertical_hide_mobile'] : 0);
|
1042 |
-
update_option('mo_share_options_bb_forum',isset( $_POST['mo_share_options_bb_forum']) ? $_POST['mo_share_options_bb_forum'] : 0);
|
1043 |
update_option('mo_share_options_bb_topic',isset( $_POST['mo_share_options_bb_topic']) ? $_POST['mo_share_options_bb_topic'] : 0);
|
1044 |
update_option('mo_share_options_bb_reply',isset( $_POST['mo_share_options_bb_reply']) ? $_POST['mo_share_options_bb_reply'] : 0);
|
1045 |
update_option('mo_openid_share_widget_customize_text',$_POST['mo_openid_share_widget_customize_text'] );
|
@@ -1047,7 +1139,7 @@ class Miniorange_OpenID_SSO {
|
|
1047 |
update_option('mo_openid_share_twitter_username', sanitize_text_field($_POST['mo_openid_share_twitter_username'])) ;
|
1048 |
update_option('mo_openid_share_email_subject', sanitize_text_field($_POST['mo_openid_share_email_subject'])) ;
|
1049 |
update_option('mo_openid_share_email_body', sanitize_text_field($_POST['mo_openid_share_email_body'])) ;
|
1050 |
-
|
1051 |
update_option('mo_openid_share_widget_customize_direction_horizontal',isset( $_POST['mo_openid_share_widget_customize_direction_horizontal']) ? $_POST['mo_openid_share_widget_customize_direction_horizontal'] : 0);
|
1052 |
update_option('mo_openid_share_widget_customize_direction_vertical',isset( $_POST['mo_openid_share_widget_customize_direction_vertical']) ? $_POST['mo_openid_share_widget_customize_direction_vertical'] : 0);
|
1053 |
update_option('mo_sharing_icon_custom_size',isset( $_POST['mo_sharing_icon_custom_size']) ? $_POST['mo_sharing_icon_custom_size'] : 35);
|
@@ -1057,10 +1149,11 @@ class Miniorange_OpenID_SSO {
|
|
1057 |
update_option('mo_sharing_icon_space',$_POST['mo_sharing_icon_space'] );
|
1058 |
update_option( 'mo_openid_message', 'Your settings are saved successfully.' );
|
1059 |
$this->mo_openid_show_success_message();
|
1060 |
-
|
1061 |
-
|
1062 |
-
|
1063 |
-
|
|
|
1064 |
}
|
1065 |
else if( isset( $_POST['option'] ) and $_POST['option'] == "mo_openid_add_custom_app" ) {
|
1066 |
if($this->mo_oauth_check_empty_or_null($_POST['mo_oauth_client_id']) || $this->mo_oauth_check_empty_or_null($_POST['mo_oauth_client_secret'])) {
|
@@ -1072,21 +1165,21 @@ class Miniorange_OpenID_SSO {
|
|
1072 |
$clientid = stripslashes(sanitize_text_field( $_POST['mo_oauth_client_id'] ));
|
1073 |
$clientsecret = stripslashes(sanitize_text_field( $_POST['mo_oauth_client_secret'] ));
|
1074 |
$appname = stripslashes(sanitize_text_field( $_POST['mo_oauth_app_name'] ));
|
1075 |
-
|
1076 |
if(get_option('mo_openid_apps_list'))
|
1077 |
$appslist = get_option('mo_openid_apps_list');
|
1078 |
else
|
1079 |
$appslist = array();
|
1080 |
|
1081 |
$newapp = array();
|
1082 |
-
|
1083 |
foreach($appslist as $key => $currentapp){
|
1084 |
if($appname == $key){
|
1085 |
$newapp = $currentapp;
|
1086 |
break;
|
1087 |
}
|
1088 |
}
|
1089 |
-
|
1090 |
$newapp['clientid'] = $clientid;
|
1091 |
$newapp['clientsecret'] = $clientsecret;
|
1092 |
$newapp['scope'] = $scope;
|
@@ -1111,7 +1204,7 @@ class Miniorange_OpenID_SSO {
|
|
1111 |
$resourceownerdetailsurl = stripslashes(sanitize_text_field($_POST['mo_oauth_resourceownerdetailsurl']));
|
1112 |
$appname = stripslashes(sanitize_text_field( $_POST['mo_oauth_custom_app_name'] ));
|
1113 |
}
|
1114 |
-
|
1115 |
$newapp['authorizeurl'] = $authorizeurl;
|
1116 |
$newapp['accesstokenurl'] = $accesstokenurl;
|
1117 |
$newapp['resourceownerdetailsurl'] = $resourceownerdetailsurl;
|
@@ -1124,7 +1217,7 @@ class Miniorange_OpenID_SSO {
|
|
1124 |
$appname = stripslashes(sanitize_text_field( $_POST['mo_oauth_app_name'] ));
|
1125 |
$email_attr = stripslashes(sanitize_text_field( $_POST['mo_oauth_email_attr'] ));
|
1126 |
$name_attr = stripslashes(sanitize_text_field( $_POST['mo_oauth_name_attr'] ));
|
1127 |
-
|
1128 |
$appslist = get_option('mo_openid_apps_list');
|
1129 |
foreach($appslist as $key => $currentapp){
|
1130 |
if($appname == $key){
|
@@ -1138,7 +1231,7 @@ class Miniorange_OpenID_SSO {
|
|
1138 |
update_option( 'message', 'Your settings are saved successfully.' );
|
1139 |
$this->mo_openid_show_success_message();
|
1140 |
wp_redirect('admin.php?page=mo_openid_settings&tab=custom_app&action=update&app='.urlencode($appname));
|
1141 |
-
}
|
1142 |
}
|
1143 |
|
1144 |
|
@@ -1203,7 +1296,7 @@ class Miniorange_OpenID_SSO {
|
|
1203 |
|
1204 |
}
|
1205 |
}
|
1206 |
-
|
1207 |
}
|
1208 |
|
1209 |
function create_customer(){
|
@@ -1266,7 +1359,7 @@ class Miniorange_OpenID_SSO {
|
|
1266 |
}
|
1267 |
return $links;
|
1268 |
}
|
1269 |
-
|
1270 |
public function mo_get_output( $atts ){
|
1271 |
if(mo_openid_is_customer_registered()){
|
1272 |
$miniorange_widget = new mo_openid_login_wid();
|
@@ -1288,7 +1381,7 @@ class Miniorange_OpenID_SSO {
|
|
1288 |
return $html;
|
1289 |
}
|
1290 |
}
|
1291 |
-
|
1292 |
public function mo_get_vertical_sharing_output( $atts ){
|
1293 |
if(mo_openid_is_customer_registered()){
|
1294 |
$title = '';
|
@@ -1302,16 +1395,16 @@ class Miniorange_OpenID_SSO {
|
|
1302 |
return $html;
|
1303 |
}
|
1304 |
}
|
1305 |
-
|
1306 |
public function mo_get_comments_output( $atts ){
|
1307 |
if(mo_openid_is_customer_registered()){
|
1308 |
$html = mo_openid_comments_shortcode();
|
1309 |
return $html;
|
1310 |
}
|
1311 |
}
|
1312 |
-
|
1313 |
function mo_social_login_custom_avatar( $avatar, $mixed, $size, $default, $alt = '' ) {
|
1314 |
-
|
1315 |
if ( is_numeric( $mixed ) AND $mixed > 0 ) { //Check if we have a user identifier
|
1316 |
$user_id = $mixed;
|
1317 |
} elseif ( is_string( $mixed ) AND ( $user = get_user_by( 'email', $mixed )) ) { //Check if we have a user email
|
@@ -1403,4 +1496,4 @@ class Miniorange_OpenID_SSO {
|
|
1403 |
}
|
1404 |
|
1405 |
new Miniorange_OpenID_SSO;
|
1406 |
-
?>
|
3 |
* Plugin Name: Social Login, Social Sharing by miniOrange
|
4 |
* Plugin URI: https://www.miniorange.com
|
5 |
* Description: Allow your users to login, comment and share with Facebook, Google, Twitter, LinkedIn etc using customizable buttons.
|
6 |
+
* Version: 7.0.3
|
7 |
* Author: miniOrange
|
8 |
* Author URI: https://www.miniorange.com
|
9 |
* License: GPL2
|
14 |
require('class-mo-openid-sso-customer.php');
|
15 |
require('class-mo-openid-sso-shortcode-buttons.php');
|
16 |
require('class-mo-openid-social-comment.php');
|
17 |
+
define('MO_OPENID_SOCIAL_LOGIN_VERSION', '7.0.3');
|
18 |
include dirname( __FILE__ ) . '/mo_openid_feedback_form.php';
|
19 |
class Miniorange_OpenID_SSO {
|
20 |
|
21 |
function __construct() {
|
22 |
+
|
23 |
add_action( 'admin_menu', array( $this, 'miniorange_openid_menu' ) );
|
24 |
add_filter( 'plugin_action_links', array($this, 'mo_openid_plugin_actions'), 10, 2 );
|
25 |
add_action( 'admin_init', array( $this, 'miniorange_openid_save_settings' ) );
|
26 |
+
|
27 |
add_action( 'plugins_loaded', array( $this, 'mo_login_widget_text_domain' ) );
|
28 |
add_action( 'plugins_loaded', array( $this, 'mo_openid_plugin_update' ),1 );
|
29 |
add_action( 'admin_enqueue_scripts', array( $this, 'mo_openid_plugin_settings_style' ) );
|
34 |
|
35 |
register_deactivation_hook(__FILE__, array( $this, 'mo_openid_deactivate'));
|
36 |
register_activation_hook( __FILE__, array( $this, 'mo_openid_activate' ) );
|
37 |
+
|
38 |
// add social login icons to default login form
|
39 |
if(get_option('mo_openid_default_login_enable') == 1){
|
40 |
add_action( 'login_form', array($this, 'mo_openid_add_social_login') );
|
41 |
add_action( 'login_enqueue_scripts', array( $this, 'mo_custom_login_stylesheet' ) );
|
42 |
}
|
43 |
+
|
44 |
// add social login icons to default registration form
|
45 |
if(get_option('mo_openid_default_register_enable') == 1){
|
46 |
add_action( 'register_form', array($this, 'mo_openid_add_social_login') );
|
47 |
+
add_action('login_enqueue_scripts', array( $this, 'mo_custom_login_stylesheet'));
|
48 |
}
|
49 |
+
|
50 |
//add shortcode
|
51 |
add_shortcode( 'miniorange_social_login', array($this, 'mo_get_output') );
|
52 |
add_shortcode( 'miniorange_social_sharing', array($this, 'mo_get_sharing_output') );
|
53 |
add_shortcode( 'miniorange_social_sharing_vertical', array($this, 'mo_get_vertical_sharing_output') );
|
54 |
add_shortcode( 'miniorange_social_comments', array($this, 'mo_get_comments_output') );
|
55 |
+
|
56 |
// add social login icons to comment form
|
57 |
if(get_option('mo_openid_default_comment_enable') == 1 ){
|
58 |
+
add_action('comment_form_must_log_in_after', array($this, 'mo_openid_add_social_login'));
|
59 |
add_action('comment_form_top', array($this, 'mo_openid_add_social_login'));
|
60 |
}
|
61 |
|
106 |
if(get_option('mo_openid_logout_redirection_enable') == 0){
|
107 |
remove_filter( 'logout_url', 'mo_openid_redirect_after_logout');
|
108 |
}
|
109 |
+
|
110 |
if(get_option('mo_share_options_wc_sp_summary') == 1){
|
111 |
add_action('woocommerce_after_single_product_summary', array( $this, 'mo_openid_social_share' ));
|
112 |
}
|
122 |
if(get_option('mo_share_options_bb_forum') == 1){
|
123 |
if(get_option('mo_share_options_bb_forum_position') == 'before')
|
124 |
add_action('bbp_template_before_single_forum', array( $this, 'mo_openid_social_share' ));
|
125 |
+
|
126 |
if(get_option('mo_share_options_bb_forum_position') == 'after')
|
127 |
add_action('bbp_template_after_single_forum', array( $this, 'mo_openid_social_share' ));
|
128 |
+
|
129 |
if(get_option('mo_share_options_bb_forum_position') == 'both'){
|
130 |
add_action('bbp_template_before_single_forum', array( $this, 'mo_openid_social_share' ));
|
131 |
+
add_action('bbp_template_after_single_forum', array( $this, 'mo_openid_social_share' ));
|
132 |
}
|
133 |
}
|
134 |
+
|
135 |
if(get_option('mo_share_options_bb_topic') == 1){
|
136 |
if(get_option('mo_share_options_bb_topic_position') == 'before')
|
137 |
add_action('bbp_template_before_single_topic', array( $this, 'mo_openid_social_share' ));
|
138 |
+
|
139 |
if(get_option('mo_share_options_bb_topic_position') == 'after')
|
140 |
add_action('bbp_template_after_single_topic', array( $this, 'mo_openid_social_share' ));
|
141 |
+
|
142 |
if(get_option('mo_share_options_bb_topic_position') == 'both'){
|
143 |
add_action('bbp_template_before_single_topic', array( $this, 'mo_openid_social_share' ));
|
144 |
+
add_action('bbp_template_after_single_topic', array( $this, 'mo_openid_social_share' ));
|
145 |
}
|
146 |
}
|
147 |
+
|
148 |
if(get_option('mo_share_options_bb_reply') == 1){
|
149 |
if(get_option('mo_share_options_bb_reply_position') == 'before')
|
150 |
add_action('bbp_template_before_single_reply', array( $this, 'mo_openid_social_share' ));
|
151 |
+
|
152 |
if(get_option('mo_share_options_bb_reply_position') == 'after')
|
153 |
add_action('bbp_template_after_single_reply', array( $this, 'mo_openid_social_share' ));
|
154 |
+
|
155 |
if(get_option('mo_share_options_bb_reply_position') == 'both'){
|
156 |
add_action('bbp_template_before_single_reply', array( $this, 'mo_openid_social_share' ));
|
157 |
+
add_action('bbp_template_after_single_reply', array( $this, 'mo_openid_social_share' ));
|
158 |
}
|
159 |
}
|
160 |
+
|
161 |
add_filter( 'the_content', array( $this, 'mo_openid_add_social_share_links' ) );
|
162 |
add_filter( 'the_excerpt', array( $this, 'mo_openid_add_social_share_links' ) );
|
163 |
+
|
164 |
//custom avatar
|
165 |
if(get_option('moopenid_social_login_avatar')) {
|
166 |
add_filter( 'get_avatar', array( $this, 'mo_social_login_custom_avatar' ), 15, 5 );
|
167 |
add_filter( 'get_avatar_url', array( $this, 'mo_social_login_custom_avatar_url' ), 15, 3);
|
168 |
add_filter( 'bp_core_fetch_avatar', array( $this, 'mo_social_login_buddypress_avatar' ), 10, 2);
|
169 |
}
|
170 |
+
|
171 |
remove_action( 'admin_notices', array( $this, 'mo_openid_success_message') );
|
172 |
remove_action( 'admin_notices', array( $this, 'mo_openid_error_message') );
|
173 |
+
|
174 |
//set default values
|
175 |
add_option( 'mo_openid_login_redirect', 'same' );
|
176 |
add_option( 'mo_openid_login_theme', 'longbutton' );
|
177 |
add_option( 'mo_openid_oauth','0');
|
178 |
+
add_option('mo_openid_new_user','0');
|
179 |
+
add_option('mo_openid_malform_error','0');
|
180 |
add_option( 'mo_openid_share_theme', 'oval' );
|
181 |
add_option( 'mo_share_options_enable_post_position', 'before');
|
182 |
add_option( 'mo_share_options_home_page_position', 'before');
|
209 |
add_option( 'mo_openid_account_linking_enable', '0');
|
210 |
add_option( 'mo_openid_email_enable', '1');
|
211 |
add_option( 'mo_openid_register_disabled_message', 'Registration is disabled for this website. Please contact the administrator for any queries.' );
|
212 |
+
add_option( 'mo_openid_register_email_message', 'Hello,<br><br>##User Name## has registered to your site successfully.<br><br>Thanks,<br>miniOrange' );
|
213 |
add_option( 'moopenid_social_login_avatar','1' );
|
214 |
add_option( 'moopenid_user_attributes','0' );
|
215 |
add_option( 'mo_share_vertical_hide_mobile', '1' );
|
227 |
add_option( 'mo_openid_share_email_body','Check out this site ##url##' );
|
228 |
add_option( 'mo_openid_enable_profile_completion','1' );
|
229 |
add_option( 'moopenid_logo_check','1' );
|
230 |
+
|
231 |
+
//profile completion
|
232 |
+
add_option( 'mo_profile_complete_title','Profile Completion');
|
233 |
+
add_option( 'mo_profile_complete_username_label','Username');
|
234 |
+
add_option( 'mo_profile_complete_email_label','Email');
|
235 |
+
add_option( 'mo_profile_complete_submit_button','Submit');
|
236 |
+
add_option( 'mo_profile_complete_instruction','If you are an existing user on this site, enter your registered email and username. If you are a new user, please edit/fill the details.');
|
237 |
+
add_option( 'mo_profile_complete_extra_instruction','We will be sending a verification code to this email to verify it. Please enter a valid email address.');
|
238 |
+
add_option( 'mo_profile_complete_uname_exist','Entered username already exists. Try some other username');
|
239 |
+
add_option( 'mo_email_verify_resend_otp_button','Resend OTP');
|
240 |
+
add_option( 'mo_email_verify_back_button','Back');
|
241 |
+
add_option( 'mo_email_verify_title','Verify your email');
|
242 |
+
add_option( 'mo_email_verify_message','We have sent a verification code to given email. Please verify your account with it.');
|
243 |
+
add_option( 'mo_email_verify_verification_code_instruction','Enter your verification code');
|
244 |
+
add_option( 'mo_email_verify_wrong_otp','You have entered an invalid verification code. Enter a valid code.');
|
245 |
+
|
246 |
+
|
247 |
+
|
248 |
+
|
249 |
+
//account linking
|
250 |
+
add_option( 'mo_account_linking_title','Account Linking');
|
251 |
+
add_option( 'mo_account_linking_new_user_button','Create a new account?');
|
252 |
+
add_option( 'mo_account_linking_existing_user_button','Link to an existing account?');
|
253 |
+
add_option( 'mo_account_linking_new_user_instruction','If you do not have an existing account with a different email address, click on <b>Create a new account</b>');
|
254 |
+
add_option( 'mo_account_linking_existing_user_instruction','If you already have an existing account with a different email adddress and want to link this account with that, click on <b>Link to an existing account</b>.');
|
255 |
+
add_option( 'mo_account_linking_extra_instruction','You will be redirected to login page to login to your existing account.');
|
256 |
+
|
257 |
+
|
258 |
+
|
259 |
//woocommerce display options
|
260 |
add_option( 'mo_openid_woocommerce_login_form','0');
|
261 |
add_option( 'mo_openid_woocommerce_before_login_form','0');
|
419 |
add_option('Activated_Plugin','Plugin-Slug');
|
420 |
update_option( 'mo_openid_host_name', 'https://auth.miniorange.com' );
|
421 |
}
|
422 |
+
|
423 |
function mo_openid_add_social_login(){
|
424 |
|
425 |
if(!is_user_logged_in() && mo_openid_is_customer_registered() && strpos( $_SERVER['QUERY_STRING'], 'disable-social-login' ) == false){
|
427 |
$mo_login_widget->openidloginForm();
|
428 |
}
|
429 |
}
|
430 |
+
|
431 |
function mo_openid_add_social_share_links($content) {
|
432 |
global $post;
|
433 |
$post_content=$content;
|
434 |
$title = str_replace('+', '%20', urlencode($post->post_title));
|
435 |
+
|
436 |
if(is_front_page() && get_option('mo_share_options_enable_home_page')==1){
|
437 |
$html_content = mo_openid_share_shortcode('', $title);
|
438 |
|
455 |
}
|
456 |
} else if(is_single() && get_option('mo_share_options_enable_post') == 1 ){
|
457 |
$html_content = mo_openid_share_shortcode('', $title);
|
458 |
+
|
459 |
if ( get_option('mo_share_options_enable_post_position') == 'before' ) {
|
460 |
return $html_content . $post_content;
|
461 |
} else if ( get_option('mo_share_options_enable_post_position') == 'after' ) {
|
465 |
}
|
466 |
} else
|
467 |
return $post_content;
|
468 |
+
|
469 |
}
|
470 |
|
471 |
function mo_openid_social_share(){
|
472 |
global $post;
|
473 |
$title = str_replace('+', '%20', urlencode($post->post_title));
|
474 |
+
echo mo_openid_share_shortcode('', $title);
|
475 |
}
|
476 |
|
477 |
function mo_openid_add_comment(){
|
488 |
mo_openid_social_comment($post, $url);
|
489 |
}
|
490 |
}
|
491 |
+
|
492 |
function mo_custom_login_stylesheet()
|
493 |
{
|
494 |
wp_enqueue_style( 'mo-wp-style',plugins_url('includes/css/mo_openid_style.css?version=5.0.6', __FILE__), false );
|
496 |
wp_enqueue_style( 'mo-wp-bootstrap-main',plugins_url('includes/css/bootstrap.min.css', __FILE__), false );
|
497 |
wp_enqueue_style( 'mo-wp-font-awesome',plugins_url('includes/css/font-awesome.min.css?version=4.8', __FILE__), false );
|
498 |
wp_enqueue_style( 'mo-wp-font-awesome',plugins_url('includes/css/font-awesome.css?version=4.8', __FILE__), false );
|
499 |
+
}
|
500 |
+
|
501 |
function mo_openid_plugin_settings_style() {
|
502 |
wp_enqueue_style( 'mo_openid_admin_settings_style', plugins_url('includes/css/mo_openid_style.css?version=5.0.6', __FILE__));
|
503 |
+
wp_enqueue_style( 'mo_openid_admin_settings_phone_style', plugins_url('includes/css/phone.css', __FILE__));
|
504 |
wp_enqueue_style( 'mo-wp-bootstrap-social',plugins_url('includes/css/bootstrap-social.css', __FILE__), false );
|
505 |
wp_enqueue_style( 'mo-wp-bootstrap-main',plugins_url('includes/css/bootstrap.min-preview.css', __FILE__), false );
|
506 |
wp_enqueue_style( 'mo-wp-font-awesome',plugins_url('includes/css/font-awesome.min.css?version=4.8', __FILE__), false );
|
507 |
wp_enqueue_style( 'mo-wp-font-awesome',plugins_url('includes/css/font-awesome.css?version=4.8', __FILE__), false );
|
508 |
+
|
509 |
}
|
510 |
|
511 |
function mo_openid_plugin_script() {
|
519 |
wp_enqueue_script( 'mo_openid_admin_settings_script', plugins_url('includes/js/settings.js?version=4.9.6', __FILE__ ), array('jquery'));
|
520 |
wp_enqueue_script( 'mo_openid_admin_settings_phone_script', plugins_url('includes/js/bootstrap.min.js', __FILE__ ));
|
521 |
}
|
522 |
+
|
523 |
function mo_openid_success_message() {
|
524 |
+
$message = get_option('mo_openid_message'); ?>
|
525 |
+
<script>
|
526 |
+
|
527 |
+
jQuery(document).ready(function() {
|
528 |
var message = "<?php echo $message; ?>";
|
529 |
jQuery('#mo_openid_msgs').append("<div class='error notice is-dismissible mo_openid_error_container'> <p class='mo_openid_msgs'>" + message + "</p></div>");
|
530 |
});
|
533 |
|
534 |
function mo_openid_error_message() {
|
535 |
$message = get_option('mo_openid_message'); ?>
|
536 |
+
<script>
|
537 |
jQuery(document).ready(function() {
|
538 |
var message = "<?php echo $message; ?>";
|
539 |
jQuery('#mo_openid_msgs').append("<div class='updated notice is-dismissible mo_openid_success_container'> <p class='mo_openid_msgs'>" + message + "</p></div>");
|
587 |
function mo_login_widget_text_domain(){
|
588 |
load_plugin_textdomain('flw', FALSE, basename( dirname( __FILE__ ) ) .'/languages');
|
589 |
}
|
590 |
+
|
591 |
public function mo_oauth_check_empty_or_null( $value ) {
|
592 |
if( ! isset( $value ) || empty( $value ) ) {
|
593 |
return true;
|
611 |
|
612 |
function miniorange_openid_save_settings(){
|
613 |
|
614 |
+
if ( current_user_can( 'manage_options' )){
|
615 |
if(is_admin() && get_option('Activated_Plugin')=='Plugin-Slug') {
|
616 |
+
|
617 |
delete_option('Activated_Plugin');
|
618 |
update_option('mo_openid_message','Go to plugin <b><a href="admin.php?page=mo_openid_settings">settings</a></b> to enable Social Login, Social Sharing by miniOrange.');
|
619 |
add_action('admin_notices', array($this, 'mo_openid_activation_message'));
|
620 |
}
|
621 |
+
|
622 |
if( isset( $_POST['option'] ) and $_POST['option'] == "mo_openid_connect_register_customer" ) { //register the admin to miniOrange
|
623 |
|
624 |
//validation and sanitization
|
645 |
return;
|
646 |
} else {
|
647 |
$company = sanitize_text_field($_POST['company']);
|
648 |
+
$first_name = sanitize_text_field(isset($_POST['fname'])?$_POST['fname']:'');
|
649 |
+
$last_name = sanitize_text_field(isset($_POST['lname'])?$_POST['lname']:'');
|
650 |
$email = sanitize_email( $_POST['email'] );
|
651 |
+
$phone = sanitize_text_field( isset($_POST['phone'])?$_POST['phone']:'' );
|
652 |
$password = sanitize_text_field( $_POST['password'] );
|
653 |
$confirmPassword = sanitize_text_field( $_POST['confirmPassword'] );
|
654 |
}
|
658 |
update_option( 'mo_openid_admin_last_name', $last_name);
|
659 |
update_option( 'mo_openid_admin_email', $email );
|
660 |
update_option( 'mo_openid_admin_phone', $phone );
|
661 |
+
|
662 |
if( strcmp( $password, $confirmPassword) == 0 ) {
|
663 |
update_option( 'mo_openid_admin_password', $password );
|
664 |
|
676 |
}
|
677 |
update_option('mo_openid_transactionId',$content['txId']);
|
678 |
update_option('mo_openid_registration_status','MO_OTP_DELIVERED_SUCCESS');
|
679 |
+
|
680 |
$this->mo_openid_show_success_message();
|
681 |
}else{
|
682 |
update_option('mo_openid_message','There was an error in sending email. Please click on Resend OTP to try again.');
|
716 |
$content = json_decode($customer->validate_otp_token(get_option('mo_openid_transactionId'), $otp_token ),true);
|
717 |
if(strcasecmp($content['status'], 'SUCCESS') == 0) {
|
718 |
$this->create_customer();
|
719 |
+
update_option('mo_openid_oauth','1');
|
720 |
+
update_option('mo_openid_new_user','1');
|
721 |
+
update_option('mo_openid_malform_error','1');
|
722 |
+
|
723 |
+
|
724 |
+
}else{
|
725 |
update_option( 'mo_openid_message','Invalid one time passcode. Please enter a valid passcode.');
|
726 |
update_option('mo_openid_registration_status','MO_OTP_VALIDATION_FAILURE');
|
727 |
$this->mo_openid_show_error_message();
|
729 |
}
|
730 |
else if( isset($_POST['option']) and $_POST['option'] == 'mo_openid_phone_verification'){ //at registration time
|
731 |
$phone = sanitize_text_field($_POST['phone_number']);
|
732 |
+
|
733 |
$phone = str_replace(' ', '', $phone);
|
734 |
update_option('mo_openid_admin_phone',$phone);
|
735 |
$auth_type = 'SMS';
|
737 |
$send_otp_response = json_decode($customer->send_otp_token($auth_type),true);
|
738 |
if(strcasecmp($send_otp_response['status'], 'SUCCESS') == 0){
|
739 |
//Save txId
|
740 |
+
|
741 |
update_option('mo_openid_transactionId',$send_otp_response['txId']);
|
742 |
update_option( 'mo_openid_registration_status','MO_OTP_DELIVERED_SUCCESS');
|
743 |
if(get_option('mo_openid_sms_otp_count')){
|
744 |
update_option('mo_openid_sms_otp_count',get_option('mo_openid_sms_otp_count') + 1);
|
745 |
update_option('mo_openid_message', 'Another One Time Passcode has been sent <b>( ' . get_option('mo_openid_sms_otp_count') . ' )</b> for verification to ' . $phone);
|
746 |
}else{
|
747 |
+
|
748 |
update_option('mo_openid_message', 'One Time Passcode has been sent for verification to ' . $phone);
|
749 |
update_option('mo_openid_sms_otp_count',1);
|
750 |
}
|
751 |
|
752 |
$this->mo_openid_show_success_message();
|
753 |
+
|
754 |
}else{
|
755 |
update_option('mo_openid_message','There was an error in sending sms. Please click on Resend OTP link next to phone number textbox.');
|
756 |
update_option('mo_openid_registration_status','MO_OTP_DELIVERED_FAILURE');
|
757 |
$this->mo_openid_show_error_message();
|
758 |
+
|
759 |
}
|
760 |
}
|
761 |
else if( isset( $_POST['option'] ) and $_POST['option'] == "mo_openid_connect_verify_customer" ) { //register the admin to miniOrange
|
792 |
update_option( 'mo_openid_message', 'Your account has been retrieved successfully.');
|
793 |
delete_option('mo_openid_verify_customer');
|
794 |
$this->mo_openid_show_success_message();
|
795 |
+
|
796 |
} else {
|
797 |
update_option( 'mo_openid_message', 'Invalid username or password. Please try again.');
|
798 |
$this->mo_openid_show_error_message();
|
808 |
return;
|
809 |
} else {
|
810 |
$email = $_POST['email'];
|
811 |
+
}
|
812 |
}
|
813 |
$customer = new CustomerOpenID();
|
814 |
$content = json_decode($customer->forgot_password($email),true);
|
818 |
}else{
|
819 |
update_option( 'mo_openid_message','An error occured while processing your request. Please make sure you are registered with miniOrange with the given email address.');
|
820 |
$this->mo_openid_show_error_message();
|
821 |
+
}
|
822 |
}
|
823 |
else if(isset($_POST['option']) and $_POST['option'] == 'mo_openid_check_license'){
|
824 |
if(mo_openid_is_customer_registered()) {
|
840 |
}else{
|
841 |
update_option( 'mo_openid_message','An error occured while processing your request. Please try again.');
|
842 |
$this->mo_openid_show_error_message();
|
843 |
+
}
|
844 |
} else {
|
845 |
update_option('mo_openid_message', 'Please register an account before trying to check your plan');
|
846 |
$this->mo_openid_show_error_message();
|
848 |
}
|
849 |
else if( isset( $_POST['option'] ) and $_POST['option'] == "mo_openid_enable_apps" ) {
|
850 |
|
851 |
+
|
852 |
update_option( 'mo_openid_google_enable', isset( $_POST['mo_openid_google_enable']) ? $_POST['mo_openid_google_enable'] : 0);
|
853 |
update_option( 'mo_openid_salesforce_enable', isset( $_POST['mo_openid_salesforce_enable']) ? $_POST['mo_openid_salesforce_enable'] : 0);
|
854 |
if($this->if_custom_app_exists('facebook')) {
|
865 |
update_option( 'mo_openid_instagram_enable', isset( $_POST['mo_openid_instagram_enable']) ? $_POST['mo_openid_instagram_enable'] : 0);
|
866 |
update_option( 'mo_openid_twitter_enable', isset( $_POST['mo_openid_twitter_enable']) ? $_POST['mo_openid_twitter_enable'] : 0);
|
867 |
update_option( 'mo_openid_vkontakte_enable', isset( $_POST['mo_openid_vkontakte_enable']) ? $_POST['mo_openid_vkontakte_enable'] : 0);
|
868 |
+
|
869 |
update_option( 'mo_openid_default_login_enable', isset( $_POST['mo_openid_default_login_enable']) ? $_POST['mo_openid_default_login_enable'] : 0);
|
870 |
update_option( 'mo_openid_default_register_enable', isset( $_POST['mo_openid_default_register_enable']) ? $_POST['mo_openid_default_register_enable'] : 0);
|
871 |
update_option( 'mo_openid_default_comment_enable', isset( $_POST['mo_openid_default_comment_enable']) ? $_POST['mo_openid_default_comment_enable'] : 0);
|
872 |
|
873 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
874 |
|
875 |
// GDPR options
|
876 |
update_option( 'mo_openid_gdpr_consent_enable', isset( $_POST['mo_openid_gdpr_consent_enable']) ? $_POST['mo_openid_gdpr_consent_enable'] : 0);
|
877 |
+
if(get_option('mo_openid_gdpr_consent_enable') == 1 && (!mo_openid_restrict_user())) {
|
878 |
+
update_option('mo_openid_privacy_policy_url', isset($_POST['mo_openid_privacy_policy_url']) ? $_POST['mo_openid_privacy_policy_url'] : get_option('mo_openid_privacy_policy_url'));
|
879 |
+
update_option('mo_openid_privacy_policy_text', isset($_POST['mo_openid_privacy_policy_text']) ? $_POST['mo_openid_privacy_policy_text'] : get_option('mo_openid_privacy_policy_text'));
|
880 |
+
update_option('mo_openid_gdpr_consent_message', isset($_POST['mo_openid_gdpr_consent_message']) ? stripslashes($_POST['mo_openid_gdpr_consent_message']) : get_option('mo_openid_gdpr_consent_message'));
|
881 |
+
}
|
882 |
//Redirect URL
|
883 |
update_option( 'mo_openid_login_redirect', $_POST['mo_openid_login_redirect']);
|
884 |
update_option( 'mo_openid_login_redirect_url', $_POST['mo_openid_login_redirect_url'] );
|
885 |
update_option( 'mo_openid_relative_login_redirect_url', isset( $_POST['mo_openid_relative_login_redirect_url']) ? $_POST['mo_openid_relative_login_redirect_url'] : "" );
|
886 |
+
|
887 |
//Logout Url
|
888 |
update_option( 'mo_openid_logout_redirection_enable', isset( $_POST['mo_openid_logout_redirection_enable']) ? $_POST['mo_openid_logout_redirection_enable'] : 0);
|
889 |
update_option( 'mo_openid_logout_redirect', $_POST['mo_openid_logout_redirect']);
|
890 |
update_option( 'mo_openid_logout_redirect_url', $_POST['mo_openid_logout_redirect_url'] );
|
891 |
+
|
892 |
//auto register
|
893 |
update_option( 'mo_openid_auto_register_enable', isset( $_POST['mo_openid_auto_register_enable']) ? $_POST['mo_openid_auto_register_enable'] : 0);
|
894 |
update_option( 'mo_openid_register_disabled_message', $_POST['mo_openid_register_disabled_message']);
|
895 |
|
|
|
|
|
896 |
|
897 |
//email notification
|
898 |
update_option( 'mo_openid_email_enable', isset( $_POST['mo_openid_email_enable']) ? $_POST['mo_openid_email_enable'] : 0);
|
899 |
+
|
900 |
//Customized text
|
901 |
update_option('mo_openid_login_widget_customize_text',$_POST['mo_openid_login_widget_customize_text'] );
|
902 |
update_option( 'mo_openid_login_button_customize_text',$_POST['mo_openid_login_button_customize_text'] );
|
903 |
+
|
904 |
+
//profile completion
|
905 |
+
update_option('mo_openid_enable_profile_completion', isset( $_POST['mo_openid_enable_profile_completion']) ? $_POST['mo_openid_enable_profile_completion'] : 0);
|
906 |
+
|
907 |
+
if(get_option('mo_openid_enable_profile_completion') == 1) {
|
908 |
+
// update_option('mo_profile_completion_form_title', $_POST['mo_profile_completion_form_title']);
|
909 |
+
//update_option('mo_profile_completion_form_message', $_POST['mo_profile_completion_form_message']);
|
910 |
+
|
911 |
+
update_option('mo_profile_complete_title', $_POST['mo_profile_complete_title']);
|
912 |
+
update_option('mo_profile_complete_username_label', $_POST['mo_profile_complete_username_label']);
|
913 |
+
update_option('mo_profile_complete_email_label', $_POST['mo_profile_complete_email_label']);
|
914 |
+
update_option('mo_profile_complete_submit_button', $_POST['mo_profile_complete_submit_button']);
|
915 |
+
update_option('mo_profile_complete_instruction', $_POST['mo_profile_complete_instruction']);
|
916 |
+
update_option('mo_profile_complete_extra_instruction', $_POST['mo_profile_complete_extra_instruction']);
|
917 |
+
update_option('mo_profile_complete_uname_exist', $_POST['mo_profile_complete_uname_exist']);
|
918 |
+
|
919 |
+
update_option('mo_email_verify_resend_otp_button', $_POST['mo_email_verify_resend_otp_button']);
|
920 |
+
update_option('mo_email_verify_back_button', $_POST['mo_email_verify_back_button']);
|
921 |
+
update_option('mo_email_verify_title', $_POST['mo_email_verify_title']);
|
922 |
+
update_option('mo_email_verify_message', $_POST['mo_email_verify_message']);
|
923 |
+
update_option('mo_email_verify_verification_code_instruction', $_POST['mo_email_verify_verification_code_instruction']);
|
924 |
+
update_option('mo_email_verify_wrong_otp', $_POST['mo_email_verify_wrong_otp']);
|
925 |
+
}
|
926 |
+
//account-linking
|
927 |
+
update_option( 'mo_openid_account_linking_enable', isset( $_POST['mo_openid_account_linking_enable']) ? $_POST['mo_openid_account_linking_enable'] : 0);
|
928 |
+
|
929 |
+
if(get_option('mo_openid_account_linking_enable') == 1 && (!mo_openid_restrict_user()))
|
930 |
+
{
|
931 |
+
// update_option('mo_account_linking_form_title', $_POST['mo_account_linking_form_title']);
|
932 |
+
//update_option('mo_account_linking_form_message', $_POST['mo_account_linking_form_message']);
|
933 |
+
|
934 |
+
update_option('mo_account_linking_title', $_POST['mo_account_linking_title']);
|
935 |
+
update_option('mo_account_linking_new_user_button', $_POST['mo_account_linking_new_user_button']);
|
936 |
+
update_option('mo_account_linking_existing_user_button', $_POST['mo_account_linking_existing_user_button']);
|
937 |
+
update_option('mo_account_linking_new_user_instruction', $_POST['mo_account_linking_new_user_instruction']);
|
938 |
+
update_option('mo_account_linking_existing_user_instruction', $_POST['mo_account_linking_existing_user_instruction']);
|
939 |
+
update_option('mo_account_linking_extra_instruction', $_POST['mo_account_linking_extra_instruction']);
|
940 |
+
|
941 |
+
|
942 |
+
}
|
943 |
+
|
944 |
+
|
945 |
+
|
946 |
+
if(!get_option('mo_openid_oauth')){
|
947 |
update_option('mo_openid_login_widget_customize_logout_name_text',sanitize_text_field($_POST['mo_openid_login_widget_customize_logout_name_text']));
|
948 |
update_option( 'mo_openid_login_widget_customize_logout_text',sanitize_text_field($_POST['mo_openid_login_widget_customize_logout_text']));
|
949 |
+
update_option('moopenid_logo_check', isset( $_POST['moopenid_logo_check']) ? $_POST['moopenid_logo_check'] : 0);
|
950 |
+
|
951 |
}else{
|
952 |
update_option('moopenid_logo_check', isset( $_POST['moopenid_logo_check']) ? $_POST['moopenid_logo_check'] : 0);
|
953 |
}
|
955 |
update_option('mo_login_openid_login_widget_customize_textcolor',$_POST['mo_login_openid_login_widget_customize_textcolor']);
|
956 |
update_option('mo_openid_login_theme',$_POST['mo_openid_login_theme'] );
|
957 |
update_option( 'mo_openid_message', 'Your settings are saved successfully.' );
|
958 |
+
|
959 |
//customization of icons
|
960 |
update_option('mo_login_icon_custom_size',$_POST['mo_login_icon_custom_size'] );
|
961 |
update_option('mo_login_icon_space',$_POST['mo_login_icon_space'] );
|
964 |
update_option('mo_openid_login_custom_theme',$_POST['mo_openid_login_custom_theme'] );
|
965 |
update_option( 'mo_login_icon_custom_color', $_POST['mo_login_icon_custom_color'] );
|
966 |
update_option('mo_login_icon_custom_boundary',$_POST['mo_login_icon_custom_boundary']);
|
967 |
+
|
968 |
// avatar
|
969 |
update_option( 'moopenid_social_login_avatar', isset( $_POST['moopenid_social_login_avatar']) ? $_POST['moopenid_social_login_avatar'] : 0);
|
970 |
|
971 |
+
|
|
|
|
|
972 |
if(isset($_POST['mapping_value_default']))
|
973 |
update_option('mo_openid_login_role_mapping', isset( $_POST['mapping_value_default']) ? $_POST['mapping_value_default'] : 'subscriber');
|
974 |
|
976 |
//Attribute collection
|
977 |
update_option( 'moopenid_user_attributes', isset( $_POST['moopenid_user_attributes']) ? $_POST['moopenid_user_attributes'] : 0);
|
978 |
}
|
979 |
+
|
980 |
$this->mo_openid_show_success_message();
|
981 |
+
if(!mo_openid_is_customer_registered()) {
|
982 |
+
$redirect = add_query_arg( array('tab' => 'register'), $_SERVER['REQUEST_URI'] );
|
983 |
+
update_option('mo_openid_message', 'Your settings are successfully saved. Please <a href=\" '. $redirect .'\">Register or Login with miniOrange</a> to enable Social Login and Social Sharing.');
|
984 |
+
$this->mo_openid_show_error_message();
|
985 |
+
}
|
986 |
+
|
987 |
+
|
988 |
+
}else if( isset( $_POST['option'] ) and $_POST['option'] == "mo_openid_save_woocommerce_field" ) {
|
989 |
+
//woocommerce integration
|
990 |
+
// woocommerce display options
|
991 |
+
if(!mo_openid_restrict_user()) {
|
992 |
+
|
993 |
+
update_option('mo_openid_woocommerce_login_form', isset($_POST['mo_openid_woocommerce_login_form']) ? $_POST['mo_openid_woocommerce_login_form'] : 0);
|
994 |
+
update_option('mo_openid_woocommerce_before_login_form', isset($_POST['mo_openid_woocommerce_before_login_form']) ? $_POST['mo_openid_woocommerce_before_login_form'] : 0);
|
995 |
+
update_option('mo_openid_woocommerce_center_login_form', isset($_POST['mo_openid_woocommerce_center_login_form']) ? $_POST['mo_openid_woocommerce_center_login_form'] : 0);
|
996 |
+
update_option('mo_openid_woocommerce_register_form_start', isset($_POST['mo_openid_woocommerce_register_form_start']) ? $_POST['mo_openid_woocommerce_register_form_start'] : 0);
|
997 |
+
update_option('mo_openid_woocommerce_center_register_form', isset($_POST['mo_openid_woocommerce_center_register_form']) ? $_POST['mo_openid_woocommerce_center_register_form'] : 0);
|
998 |
+
update_option('mo_openid_woocommerce_register_form_end', isset($_POST['mo_openid_woocommerce_register_form_end']) ? $_POST['mo_openid_woocommerce_register_form_end'] : 0);
|
999 |
+
update_option('mo_openid_woocommerce_before_checkout_billing_form', isset($_POST['mo_openid_woocommerce_before_checkout_billing_form']) ? $_POST['mo_openid_woocommerce_before_checkout_billing_form'] : 0);
|
1000 |
+
update_option('mo_openid_woocommerce_after_checkout_billing_form', isset($_POST['mo_openid_woocommerce_after_checkout_billing_form']) ? $_POST['mo_openid_woocommerce_after_checkout_billing_form'] : 0);
|
1001 |
+
}
|
1002 |
+
|
1003 |
+
}else if( isset( $_POST['option'] ) and $_POST['option'] == "mo_openid_save_buddypress_field" ){
|
1004 |
+
|
1005 |
+
//buddypress display options
|
1006 |
+
if(!mo_openid_restrict_user()) {
|
1007 |
+
update_option('mo_openid_bp_before_register_page', isset($_POST['mo_openid_bp_before_register_page']) ? $_POST['mo_openid_bp_before_register_page'] : 0);
|
1008 |
+
update_option('mo_openid_bp_before_account_details_fields', isset($_POST['mo_openid_bp_before_account_details_fields']) ? $_POST['mo_openid_bp_before_account_details_fields'] : 0);
|
1009 |
+
update_option('mo_openid_bp_after_register_page', isset($_POST['mo_openid_bp_after_register_page']) ? $_POST['mo_openid_bp_after_register_page'] : 0);
|
1010 |
+
}
|
1011 |
+
|
1012 |
+
|
1013 |
+
}
|
1014 |
else if( isset( $_POST['option'] ) and $_POST['option'] == "mo_openid_save_comment_settings" ) {
|
1015 |
+
|
1016 |
|
1017 |
//commenting
|
1018 |
update_option( 'mo_openid_social_comment_fb', isset( $_POST['mo_openid_social_comment_fb']) ? $_POST['mo_openid_social_comment_fb'] : 0);
|
1019 |
update_option( 'mo_openid_social_comment_google', isset( $_POST['mo_openid_social_comment_google']) ? $_POST['mo_openid_social_comment_google'] : 0);
|
1020 |
update_option( 'mo_openid_social_comment_default', isset( $_POST['mo_openid_social_comment_default']) ? $_POST['mo_openid_social_comment_default'] : 0);
|
1021 |
+
|
1022 |
//comment position
|
1023 |
update_option( 'mo_openid_social_comment_blogpost', isset( $_POST['mo_openid_social_comment_blogpost']) ? $_POST['mo_openid_social_comment_blogpost'] : 0);
|
1024 |
update_option( 'mo_openid_social_comment_static', isset( $_POST['mo_openid_social_comment_static']) ? $_POST['mo_openid_social_comment_static'] : 0);
|
1031 |
|
1032 |
update_option( 'mo_openid_message', 'Your settings are saved successfully.' );
|
1033 |
$this->mo_openid_show_success_message();
|
1034 |
+
if(!mo_openid_is_customer_registered()) {
|
1035 |
+
$redirect = add_query_arg( array('tab' => 'register'), $_SERVER['REQUEST_URI'] );
|
1036 |
+
update_option('mo_openid_message', 'Your settings are successfully saved. Please <a href=\" '. $redirect .'\">Register or Login with miniOrange</a> to enable Social Login and Social Sharing.');
|
1037 |
+
$this->mo_openid_show_error_message();
|
1038 |
+
}
|
1039 |
+
|
1040 |
|
|
|
|
|
|
|
|
|
1041 |
}
|
1042 |
else if( isset( $_POST['option'] ) and $_POST['option'] == "mo_openid_contact_us_query_option" ) {
|
1043 |
// Contact Us query
|
1094 |
delete_option('mo_openid_admin_password');
|
1095 |
delete_option('mo_openid_admin_customer_key');
|
1096 |
delete_option('mo_openid_verify_customer');
|
1097 |
+
|
1098 |
}else if( isset( $_POST['option'] ) and $_POST['option'] == "mo_openid_go_back_registration" ){
|
1099 |
update_option('mo_openid_verify_customer','true');
|
1100 |
+
|
1101 |
}else if( isset( $_POST['option'] ) and $_POST['option'] == "mo_openid_save_other_settings" ){
|
1102 |
+
|
1103 |
update_option( 'mo_openid_google_share_enable', isset( $_POST['mo_openid_google_share_enable']) ? $_POST['mo_openid_google_share_enable'] : 0);
|
1104 |
update_option( 'mo_openid_facebook_share_enable', isset( $_POST['mo_openid_facebook_share_enable']) ? $_POST['mo_openid_facebook_share_enable'] : 0);
|
1105 |
update_option( 'mo_openid_linkedin_share_enable', isset( $_POST['mo_openid_linkedin_share_enable']) ? $_POST['mo_openid_linkedin_share_enable'] : 0);
|
1113 |
update_option( 'mo_openid_odnoklassniki_share_enable', isset( $_POST['mo_openid_odnoklassniki_share_enable']) ? $_POST['mo_openid_odnoklassniki_share_enable'] : 0);
|
1114 |
update_option( 'mo_openid_digg_share_enable', isset( $_POST['mo_openid_digg_share_enable']) ? $_POST['mo_openid_digg_share_enable'] : 0);
|
1115 |
update_option( 'mo_openid_pocket_share_enable', isset( $_POST['mo_openid_pocket_share_enable']) ? $_POST['mo_openid_pocket_share_enable'] : 0);
|
1116 |
+
|
1117 |
update_option( 'mo_openid_mail_share_enable', isset( $_POST['mo_openid_mail_share_enable']) ? $_POST['mo_openid_mail_share_enable'] : 0);
|
1118 |
update_option( 'mo_openid_print_share_enable', isset( $_POST['mo_openid_print_share_enable']) ? $_POST['mo_openid_print_share_enable'] : 0);
|
1119 |
update_option( 'mo_openid_whatsapp_share_enable', isset( $_POST['mo_openid_whatsapp_share_enable']) ? $_POST['mo_openid_whatsapp_share_enable'] : 0);
|
1131 |
update_option('mo_share_options_bb_reply_position',$_POST['mo_share_options_bb_reply_position'] );
|
1132 |
update_option('mo_openid_share_theme',$_POST['mo_openid_share_theme'] );
|
1133 |
update_option('mo_share_vertical_hide_mobile',isset( $_POST['mo_share_vertical_hide_mobile']) ? $_POST['mo_share_vertical_hide_mobile'] : 0);
|
1134 |
+
update_option('mo_share_options_bb_forum',isset( $_POST['mo_share_options_bb_forum']) ? $_POST['mo_share_options_bb_forum'] : 0);
|
1135 |
update_option('mo_share_options_bb_topic',isset( $_POST['mo_share_options_bb_topic']) ? $_POST['mo_share_options_bb_topic'] : 0);
|
1136 |
update_option('mo_share_options_bb_reply',isset( $_POST['mo_share_options_bb_reply']) ? $_POST['mo_share_options_bb_reply'] : 0);
|
1137 |
update_option('mo_openid_share_widget_customize_text',$_POST['mo_openid_share_widget_customize_text'] );
|
1139 |
update_option('mo_openid_share_twitter_username', sanitize_text_field($_POST['mo_openid_share_twitter_username'])) ;
|
1140 |
update_option('mo_openid_share_email_subject', sanitize_text_field($_POST['mo_openid_share_email_subject'])) ;
|
1141 |
update_option('mo_openid_share_email_body', sanitize_text_field($_POST['mo_openid_share_email_body'])) ;
|
1142 |
+
|
1143 |
update_option('mo_openid_share_widget_customize_direction_horizontal',isset( $_POST['mo_openid_share_widget_customize_direction_horizontal']) ? $_POST['mo_openid_share_widget_customize_direction_horizontal'] : 0);
|
1144 |
update_option('mo_openid_share_widget_customize_direction_vertical',isset( $_POST['mo_openid_share_widget_customize_direction_vertical']) ? $_POST['mo_openid_share_widget_customize_direction_vertical'] : 0);
|
1145 |
update_option('mo_sharing_icon_custom_size',isset( $_POST['mo_sharing_icon_custom_size']) ? $_POST['mo_sharing_icon_custom_size'] : 35);
|
1149 |
update_option('mo_sharing_icon_space',$_POST['mo_sharing_icon_space'] );
|
1150 |
update_option( 'mo_openid_message', 'Your settings are saved successfully.' );
|
1151 |
$this->mo_openid_show_success_message();
|
1152 |
+
if(!mo_openid_is_customer_registered()) {
|
1153 |
+
$redirect = add_query_arg( array('tab' => 'register'), $_SERVER['REQUEST_URI'] );
|
1154 |
+
update_option('mo_openid_message', 'Your settings are successfully saved. Please <a href=\" '. $redirect .'\">Register or Login with miniOrange</a> to enable Social Login and Social Sharing.');
|
1155 |
+
$this->mo_openid_show_error_message();
|
1156 |
+
}
|
1157 |
}
|
1158 |
else if( isset( $_POST['option'] ) and $_POST['option'] == "mo_openid_add_custom_app" ) {
|
1159 |
if($this->mo_oauth_check_empty_or_null($_POST['mo_oauth_client_id']) || $this->mo_oauth_check_empty_or_null($_POST['mo_oauth_client_secret'])) {
|
1165 |
$clientid = stripslashes(sanitize_text_field( $_POST['mo_oauth_client_id'] ));
|
1166 |
$clientsecret = stripslashes(sanitize_text_field( $_POST['mo_oauth_client_secret'] ));
|
1167 |
$appname = stripslashes(sanitize_text_field( $_POST['mo_oauth_app_name'] ));
|
1168 |
+
|
1169 |
if(get_option('mo_openid_apps_list'))
|
1170 |
$appslist = get_option('mo_openid_apps_list');
|
1171 |
else
|
1172 |
$appslist = array();
|
1173 |
|
1174 |
$newapp = array();
|
1175 |
+
|
1176 |
foreach($appslist as $key => $currentapp){
|
1177 |
if($appname == $key){
|
1178 |
$newapp = $currentapp;
|
1179 |
break;
|
1180 |
}
|
1181 |
}
|
1182 |
+
|
1183 |
$newapp['clientid'] = $clientid;
|
1184 |
$newapp['clientsecret'] = $clientsecret;
|
1185 |
$newapp['scope'] = $scope;
|
1204 |
$resourceownerdetailsurl = stripslashes(sanitize_text_field($_POST['mo_oauth_resourceownerdetailsurl']));
|
1205 |
$appname = stripslashes(sanitize_text_field( $_POST['mo_oauth_custom_app_name'] ));
|
1206 |
}
|
1207 |
+
|
1208 |
$newapp['authorizeurl'] = $authorizeurl;
|
1209 |
$newapp['accesstokenurl'] = $accesstokenurl;
|
1210 |
$newapp['resourceownerdetailsurl'] = $resourceownerdetailsurl;
|
1217 |
$appname = stripslashes(sanitize_text_field( $_POST['mo_oauth_app_name'] ));
|
1218 |
$email_attr = stripslashes(sanitize_text_field( $_POST['mo_oauth_email_attr'] ));
|
1219 |
$name_attr = stripslashes(sanitize_text_field( $_POST['mo_oauth_name_attr'] ));
|
1220 |
+
|
1221 |
$appslist = get_option('mo_openid_apps_list');
|
1222 |
foreach($appslist as $key => $currentapp){
|
1223 |
if($appname == $key){
|
1231 |
update_option( 'message', 'Your settings are saved successfully.' );
|
1232 |
$this->mo_openid_show_success_message();
|
1233 |
wp_redirect('admin.php?page=mo_openid_settings&tab=custom_app&action=update&app='.urlencode($appname));
|
1234 |
+
}
|
1235 |
}
|
1236 |
|
1237 |
|
1296 |
|
1297 |
}
|
1298 |
}
|
1299 |
+
|
1300 |
}
|
1301 |
|
1302 |
function create_customer(){
|
1359 |
}
|
1360 |
return $links;
|
1361 |
}
|
1362 |
+
|
1363 |
public function mo_get_output( $atts ){
|
1364 |
if(mo_openid_is_customer_registered()){
|
1365 |
$miniorange_widget = new mo_openid_login_wid();
|
1381 |
return $html;
|
1382 |
}
|
1383 |
}
|
1384 |
+
|
1385 |
public function mo_get_vertical_sharing_output( $atts ){
|
1386 |
if(mo_openid_is_customer_registered()){
|
1387 |
$title = '';
|
1395 |
return $html;
|
1396 |
}
|
1397 |
}
|
1398 |
+
|
1399 |
public function mo_get_comments_output( $atts ){
|
1400 |
if(mo_openid_is_customer_registered()){
|
1401 |
$html = mo_openid_comments_shortcode();
|
1402 |
return $html;
|
1403 |
}
|
1404 |
}
|
1405 |
+
|
1406 |
function mo_social_login_custom_avatar( $avatar, $mixed, $size, $default, $alt = '' ) {
|
1407 |
+
|
1408 |
if ( is_numeric( $mixed ) AND $mixed > 0 ) { //Check if we have a user identifier
|
1409 |
$user_id = $mixed;
|
1410 |
} elseif ( is_string( $mixed ) AND ( $user = get_user_by( 'email', $mixed )) ) { //Check if we have a user email
|
1496 |
}
|
1497 |
|
1498 |
new Miniorange_OpenID_SSO;
|
1499 |
+
?>
|
miniorange_openid_sso_settings_page.php
CHANGED
@@ -1,33 +1,48 @@
|
|
1 |
<?php
|
2 |
function mo_register_openid() {
|
|
|
|
|
3 |
if( isset( $_GET[ 'tab' ]) && $_GET[ 'tab' ] !== 'register' ) {
|
4 |
$active_tab = $_GET[ 'tab' ];
|
5 |
} else if(mo_openid_is_customer_registered()) {
|
6 |
$active_tab = 'login';
|
7 |
-
} else {
|
8 |
-
|
9 |
}
|
10 |
-
|
|
|
|
|
|
|
11 |
if(mo_openid_is_curl_installed()==0){ ?>
|
12 |
<p style="color:red;">(Warning: <a href="http://php.net/manual/en/curl.installation.php" target="_blank">PHP CURL extension</a> is not installed or disabled) Please go to Troubleshooting for steps to enable curl.</p>
|
13 |
<?php
|
14 |
}?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
<div id="tab">
|
16 |
<h2 class="nav-tab-wrapper">
|
17 |
-
<?php if(!mo_openid_is_customer_registered()) { ?>
|
18 |
-
<a class="nav-tab <?php echo $active_tab == 'register' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'register'), $_SERVER['REQUEST_URI'] ); ?>">Account Setup</a>
|
19 |
-
<?php } ?>
|
20 |
<a class="nav-tab <?php echo $active_tab == 'login' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'login'), $_SERVER['REQUEST_URI'] ); ?>">Social Login</a>
|
21 |
<a class="nav-tab <?php echo $active_tab == 'custom_app' ? 'nav-tab-active' : ''; ?>" href="admin.php?page=mo_openid_settings&tab=custom_app">Custom App</a>
|
22 |
<a class="nav-tab <?php echo $active_tab == 'email_notif' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'email_notif'), $_SERVER['REQUEST_URI'] ); ?>">Email Notification</a>
|
23 |
-
<a class="nav-tab <?php echo $active_tab == 'integrations' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'integrations'), $_SERVER['REQUEST_URI'] ); ?>">
|
24 |
<a class="nav-tab <?php echo $active_tab == 'share' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'share'), $_SERVER['REQUEST_URI'] ); ?>">Social Sharing</a>
|
25 |
<a class="nav-tab <?php echo $active_tab == 'comment' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'comment'), $_SERVER['REQUEST_URI'] ); ?>">Social Comments</a>
|
26 |
<a class="nav-tab <?php echo $active_tab == 'shortcode' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'shortcode'), $_SERVER['REQUEST_URI'] ); ?>">Shortcode</a>
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
</div>
|
32 |
|
33 |
<script>
|
@@ -119,13 +134,7 @@ function mo_openid_show_new_registration_page() {
|
|
119 |
|
120 |
|
121 |
<div class="mo_openid_table_layout">
|
122 |
-
|
123 |
-
<div style="display:block;margin-top:10px;color:red;background-color:rgba(251, 232, 0, 0.15);padding:5px;border:solid 1px rgba(255, 0, 9, 0.36);">
|
124 |
-
Please <a href="<?php echo add_query_arg( array('tab' => 'register'), $_SERVER['REQUEST_URI'] ); ?>">Register or Login with miniOrange</a> to enable Social Login and Social Sharing. miniOrange takes care of creating applications for you so that you don't have to worry about creating applications in each social network.
|
125 |
-
</div>
|
126 |
-
<?php } ?>
|
127 |
-
|
128 |
-
<h3>Register with miniOrange</h3>
|
129 |
|
130 |
<p>Please enter a valid email that you have access to. You will be able to move forward after verifying an OTP that we will be sending to this email. <b>OR</b> Login using your miniOrange credentials.
|
131 |
</p>
|
@@ -142,27 +151,6 @@ function mo_openid_show_new_registration_page() {
|
|
142 |
required placeholder="Enter website or company name"
|
143 |
value="<?php echo $_SERVER['SERVER_NAME']; ?>"/></td>
|
144 |
</tr>
|
145 |
-
<tr>
|
146 |
-
<td><b> First Name (optional):</b></td>
|
147 |
-
<td><input class="mo_openid_table_textbox" type="text" name="fname"
|
148 |
-
placeholder="Enter first name"
|
149 |
-
value="<?php echo $current_user->user_firstname;?>" /></td>
|
150 |
-
</tr>
|
151 |
-
<tr>
|
152 |
-
<td><b> Last Name (optional):</b></td>
|
153 |
-
<td><input class="mo_openid_table_textbox" type="text" name="lname"
|
154 |
-
placeholder="Enter last name"
|
155 |
-
value="<?php echo $current_user->user_lastname;?>" /></td>
|
156 |
-
</tr>
|
157 |
-
<tr>
|
158 |
-
<td><b> Mobile number (optional):</b></td>
|
159 |
-
<td><input class="mo_openid_table_textbox" type="tel" id="phone"
|
160 |
-
pattern="[\+]\d{10,14}|[\+]\d{1,4}[\s]\d{8,10}" name="phone"
|
161 |
-
title="Mobile number with country code eg. +1xxxxxxxxxx"
|
162 |
-
placeholder="Mobile number with country code eg. +1xxxxxxxxxx"
|
163 |
-
value="<?php echo get_option('mo_openid_admin_phone');?>" /><br/>We will call only if you need support.</td>
|
164 |
-
<td></td>
|
165 |
-
</tr>
|
166 |
<tr>
|
167 |
<td><b><font color="#FF0000">*</font>Password:</b></td>
|
168 |
<td><input class="mo_openid_table_textbox" required type="password"
|
@@ -210,13 +198,7 @@ function mo_openid_show_verify_password_page() {
|
|
210 |
<form name="f" method="post" action="">
|
211 |
<input type="hidden" name="option" value="mo_openid_connect_verify_customer" />
|
212 |
<div class="mo_openid_table_layout">
|
213 |
-
|
214 |
-
<div style="display:block;margin-top:10px;color:red;background-color:rgba(251, 232, 0, 0.15);padding:5px;border:solid 1px rgba(255, 0, 9, 0.36);">
|
215 |
-
Please <a href="<?php echo add_query_arg( array('tab' => 'register'), $_SERVER['REQUEST_URI'] ); ?>">Register or Login with miniOrange</a> to enable Social Login and Social Sharing. miniOrange takes care of creating applications for you so that you don't have to worry about creating applications in each social network.
|
216 |
-
</div>
|
217 |
-
<?php } ?>
|
218 |
-
|
219 |
-
<h3>Login with miniOrange</h3>
|
220 |
<p><b>It seems you already have an account with miniOrange. Please enter your miniOrange email and password. <a href="#forgot_password">Click here if you forgot your password?</a></b></p>
|
221 |
<table class="mo_openid_settings_table">
|
222 |
<tr>
|
@@ -264,6 +246,7 @@ function mo_openid_show_verify_password_page() {
|
|
264 |
}
|
265 |
|
266 |
function mo_openid_apps_config() {
|
|
|
267 |
?>
|
268 |
<td style="vertical-align:top;width:65%;">
|
269 |
<!-- Google configurations -->
|
@@ -273,21 +256,16 @@ function mo_openid_apps_config() {
|
|
273 |
|
274 |
<div class="mo_openid_table_layout">
|
275 |
|
276 |
-
|
277 |
-
<div style="display:block;margin-top:10px;color:red;background-color:rgba(251, 232, 0, 0.15);padding:5px;border:solid 1px rgba(255, 0, 9, 0.36);">
|
278 |
-
Please <a href="<?php echo add_query_arg( array('tab' => 'register'), $_SERVER['REQUEST_URI'] ); ?>">Register or Login with miniOrange</a> to enable Social Login and Social Sharing. miniOrange takes care of creating applications for you so that you don't have to worry about creating applications in each social network.
|
279 |
-
</div>
|
280 |
-
<?php }?>
|
281 |
|
282 |
<table>
|
283 |
<tr>
|
284 |
<td colspan="2">
|
285 |
<h3>Social Login
|
286 |
-
<input type="submit" name="submit" value="Save" style="float:right; margin-right:2%; margin-top: -3px;width:100px;"
|
287 |
-
class="button button-primary button-large" />
|
288 |
</h3>
|
289 |
|
290 |
-
<b>Select applications to enable login for your users. Customize your login icons using a range of shapes, themes and sizes. You can choose different places to display these icons and also customize redirect
|
291 |
</td>
|
292 |
|
293 |
</tr>
|
@@ -307,7 +285,7 @@ function mo_openid_apps_config() {
|
|
307 |
<input type="checkbox" id="facebook_enable" class="app_enable tooltip" name="mo_openid_facebook_enable" value="1" onchange="previewLoginIcons();"
|
308 |
<?php checked( get_option('mo_openid_facebook_enable') == 1 );?> /><strong> Facebook <i class="fa fa-exclamation" aria-hidden="true"> </i> </strong>
|
309 |
|
310 |
-
<span class="tooltiptext"> There
|
311 |
</div>
|
312 |
</td>
|
313 |
|
@@ -440,10 +418,10 @@ function mo_openid_apps_config() {
|
|
440 |
</span>
|
441 |
|
442 |
|
443 |
-
<span style="margin-left:228px" class="longbuttontheme">Curve
|
444 |
<input style="width:50px" id="mo_login_icon_custom_boundary" onkeyup="moLoginBoundaryValidate(this)" name="mo_login_icon_custom_boundary" type="text" value=
|
445 |
"<?php echo get_option('mo_login_icon_custom_boundary')?>" />
|
446 |
-
<span style="margin-left:
|
447 |
|
448 |
<input id="mo_login_boundary_plus" type="button" value="+" onmouseup="moLoginPreview(document.getElementById('mo_login_icon_width').value,setLoginTheme(),setLoginCustomTheme(),document.getElementById('mo_login_icon_custom_color').value,document.getElementById('mo_login_icon_space').value,document.getElementById('mo_login_icon_height').value,document.getElementById('mo_login_icon_custom_boundary').value)" />
|
449 |
<input id="mo_login_boundary_minus" type="button" value="-" onmouseup="moLoginPreview(document.getElementById('mo_login_icon_width').value,setLoginTheme(),setLoginCustomTheme(),document.getElementById('mo_login_icon_custom_color').value,document.getElementById('mo_login_icon_space').value,document.getElementById('mo_login_icon_height').value,document.getElementById('mo_login_icon_custom_boundary').value)" />
|
@@ -543,24 +521,24 @@ function mo_openid_apps_config() {
|
|
543 |
<tr>
|
544 |
<td>
|
545 |
<b>Select color for customize text:</b>
|
546 |
-
<span style="margin-left:
|
547 |
<input id="mo_openid_table_textbox" style="width:135px;" name="mo_login_openid_login_widget_customize_textcolor" class="color" value="<?php echo get_option('mo_login_openid_login_widget_customize_textcolor')?>" > </td>
|
548 |
</span>
|
549 |
</td>
|
550 |
</tr>
|
551 |
|
552 |
<tr>
|
553 |
-
<td><b>Enter text to show above login widget:</b>  
|
554 |
|
555 |
-
<input class="mo_openid_table_textbox" style="width:50%" type="text" name="mo_openid_login_widget_customize_text" value="<?php echo get_option('mo_openid_login_widget_customize_text'); ?>" /></td>
|
556 |
</tr>
|
557 |
<tr>
|
558 |
<td><b>Enter text to show on your login buttons (If you have</b>
|
559 |
<br/><b> selected shape 4 from 'Customize Login Icons' section):</b>
|
560 |
-
<input class="mo_openid_table_textbox" style="width:50%" type="text" name="mo_openid_login_button_customize_text"
|
561 |
value="<?php echo get_option('mo_openid_login_button_customize_text'); ?>" /></td>
|
562 |
</tr>
|
563 |
-
|
564 |
<?php if(get_option('mo_openid_oauth')!='1') {?>
|
565 |
<tr>
|
566 |
<td>
|
@@ -603,110 +581,12 @@ function mo_openid_apps_config() {
|
|
603 |
<?php checked( get_option('mo_openid_default_comment_enable') == 1 );?> />Comment Form</td>
|
604 |
</tr>
|
605 |
|
606 |
-
<td>
|
607 |
-
<br>
|
608 |
-
<b>Woocommerce display options</b>
|
609 |
-
</td>
|
610 |
|
611 |
|
612 |
-
<tr>
|
613 |
-
<td class="mo_openid_table_td_checkbox">
|
614 |
-
<input type="checkbox" id="woocommerce_before_login_form" name="mo_openid_woocommerce_before_login_form" value="1"
|
615 |
-
<?php checked( get_option('mo_openid_woocommerce_before_login_form') == 1 );?> />Before WooCommerce Login Form</td>
|
616 |
-
</tr>
|
617 |
-
<tr>
|
618 |
-
<td class="mo_openid_table_td_checkbox">
|
619 |
-
<input type="checkbox" id="woocommerce_center_login_form" name="mo_openid_woocommerce_center_login_form" value="1"
|
620 |
-
<?php checked( get_option('mo_openid_woocommerce_center_login_form') == 1 );?> />Before 'Remember Me' of WooCommerce Login Form</td>
|
621 |
-
</tr>
|
622 |
-
<tr>
|
623 |
-
<td class="mo_openid_table_td_checkbox">
|
624 |
-
<input type="checkbox" id="woocommerce_login_form" name="mo_openid_woocommerce_login_form" value="1"
|
625 |
-
<?php checked( get_option('mo_openid_woocommerce_login_form') == 1 );?> />After WooCommerce Login Form</td>
|
626 |
-
</tr>
|
627 |
-
<tr>
|
628 |
-
<td class="mo_openid_table_td_checkbox">
|
629 |
-
<input type="checkbox" id="woocommerce_register_form_start" name="mo_openid_woocommerce_register_form_start" value="1"
|
630 |
-
<?php checked( get_option('mo_openid_woocommerce_register_form_start') == 1 );?> />Before WooCommerce Registration Form</td>
|
631 |
-
</tr>
|
632 |
-
<tr>
|
633 |
-
<td class="mo_openid_table_td_checkbox">
|
634 |
-
<input type="checkbox" id="woocommerce_center_register_form" name="mo_openid_woocommerce_center_register_form" value="1"
|
635 |
-
<?php checked( get_option('mo_openid_woocommerce_center_register_form') == 1 );?> />Before 'Register button' of WooCommerce Registration Form</td>
|
636 |
-
</tr>
|
637 |
-
|
638 |
-
<tr>
|
639 |
-
<td class="mo_openid_table_td_checkbox">
|
640 |
-
<input type="checkbox" id="woocommerce_register_form_end" name="mo_openid_woocommerce_register_form_end" value="1"
|
641 |
-
<?php checked( get_option('mo_openid_woocommerce_register_form_end') == 1 );?> />After WooCommerce Registration Form</td>
|
642 |
-
</tr>
|
643 |
-
<tr>
|
644 |
-
<td class="mo_openid_table_td_checkbox">
|
645 |
-
<input type="checkbox" id="woocommerce_before_checkout_billing_form" name="mo_openid_woocommerce_before_checkout_billing_form" value="1"
|
646 |
-
<?php checked( get_option('mo_openid_woocommerce_before_checkout_billing_form') == 1 );?> />Before WooCommerce Checkout Form</td>
|
647 |
-
</tr>
|
648 |
-
<tr>
|
649 |
-
<td class="mo_openid_table_td_checkbox">
|
650 |
-
<input type="checkbox" id="woocommerce_after_checkout_billing_form" name="mo_openid_woocommerce_after_checkout_billing_form" value="1"
|
651 |
-
<?php checked( get_option('mo_openid_woocommerce_after_checkout_billing_form') == 1 );?> />After WooCommerce Checkout Form</td>
|
652 |
-
</tr>
|
653 |
-
<!-- <tr>
|
654 |
-
<td class="mo_openid_table_td_checkbox">
|
655 |
-
<input type="checkbox" id="woocommerce_edit_account_form_start" name="mo_openid_woocommerce_edit_account_form_start" value="1"
|
656 |
-
<?php /*checked( get_option('mo_openid_woocommerce_edit_account_form_start') == 1 );*/?> />Before WooCommerce Edit Account Form</td>
|
657 |
-
</tr>
|
658 |
-
<tr>
|
659 |
-
<td class="mo_openid_table_td_checkbox">
|
660 |
-
<input type="checkbox" id="woocommerce_edit_account_form_end" name="mo_openid_woocommerce_edit_account_form_end" value="1"
|
661 |
-
<?php /*checked( get_option('mo_openid_woocommerce_edit_account_form_end') == 1 );*/?> />After WooCommerce Edit Account Form</td>
|
662 |
-
</tr>-->
|
663 |
-
<td>
|
664 |
-
<br>
|
665 |
-
<b>BuddyPress display options</b>
|
666 |
-
</td>
|
667 |
-
<tr>
|
668 |
-
<td class="mo_openid_table_td_checkbox">
|
669 |
-
<input type="checkbox" id="bp_before_register_page" name="mo_openid_bp_before_register_page" value="1"
|
670 |
-
<?php checked( get_option('mo_openid_bp_before_register_page') == 1 );?> />Before BuddyPress Registration Form</td>
|
671 |
-
</tr>
|
672 |
-
<tr>
|
673 |
-
<td class="mo_openid_table_td_checkbox">
|
674 |
-
<input type="checkbox" id="bp_before_account_details_fields" name="mo_openid_bp_before_account_details_fields" value="1"
|
675 |
-
<?php checked( get_option('mo_openid_bp_before_account_details_fields') == 1 );?> />Before BuddyPress Account Details</td>
|
676 |
-
</tr>
|
677 |
-
<tr>
|
678 |
-
<td class="mo_openid_table_td_checkbox">
|
679 |
-
<input type="checkbox" id="bp_after_register_page" name="mo_openid_bp_after_register_page" value="1"
|
680 |
-
<?php checked( get_option('mo_openid_bp_after_register_page') == 1 );?> />After BuddyPress Registration Form</td>
|
681 |
-
</tr>
|
682 |
-
|
683 |
-
<tr>
|
684 |
-
<td>
|
685 |
-
<br>
|
686 |
-
<hr>
|
687 |
-
<h3>GDPR Settings</h3>
|
688 |
-
</td>
|
689 |
-
</tr>
|
690 |
-
<tr>
|
691 |
-
<td>
|
692 |
-
If GDPR check is enabled, users will be asked to give consent before using Social Login. Users who will not give consent will not be able to log in. This setting stands true only when users are registering using Social Login. This will not interfere with users registering through the regular WordPress. (Click <a target="_blank" href="<?php echo add_query_arg( array('tab' => 'privacy_policy'), $_SERVER['REQUEST_URI'] ); ?>"> here </a> to read miniOrange Social Login Privacy Policy. Please update your website's privacy policy accordingly and enter the URL to your privacy policy below.)
|
693 |
-
<br/><br/>
|
694 |
-
<input type="checkbox" name="mo_openid_gdpr_consent_enable" value="1"
|
695 |
-
<?php checked( get_option('mo_openid_gdpr_consent_enable') == 1 );?> /><b>Take consent from users</b>
|
696 |
-
<br/><br/>
|
697 |
-
<b>Enter the Consent message: </b><br>
|
698 |
-
<textarea style="width:80%" name="mo_openid_gdpr_consent_message" ><?php echo get_option('mo_openid_gdpr_consent_message')?></textarea>
|
699 |
-
<br><br>
|
700 |
-
<b>Enter the text that redirects to Privacy Policy URL: </b><br>
|
701 |
-
<input type="text" style="width:90%" name="mo_openid_privacy_policy_text" value="<?php echo get_option('mo_openid_privacy_policy_text')?>" <?php if(!mo_openid_is_customer_registered()) echo 'disabled'?>/>
|
702 |
-
<br><br>
|
703 |
-
<b>Enter Privacy Policy URL: </b><br>
|
704 |
-
<input type="text" style="width:90%" name="mo_openid_privacy_policy_url" value="<?php echo get_option('mo_openid_privacy_policy_url')?>" <?php if(!mo_openid_is_customer_registered()) echo 'disabled'?>/>
|
705 |
-
</td>
|
706 |
-
</tr>
|
707 |
|
708 |
<tr><td>
|
709 |
<br>
|
|
|
710 |
<hr>
|
711 |
</td>
|
712 |
</tr>
|
@@ -740,14 +620,13 @@ function mo_openid_apps_config() {
|
|
740 |
<input type="radio" id="login_redirect_customurl" name="mo_openid_login_redirect" value="custom"
|
741 |
<?php checked( get_option('mo_openid_login_redirect') == 'custom' );?> />Custom URL
|
742 |
|
743 |
-
<input type="url" id="login_redirect_url" style="width:50
|
744 |
</td>
|
745 |
</tr>
|
746 |
<tr>
|
747 |
<td>
|
748 |
-
<input type="radio" id="login_redirect_relativeurl" name="mo_openid_login_redirect" value="relative"
|
749 |
-
|
750 |
-
<?php echo site_url();?>
|
751 |
<input type="text" id="login_redirect_url" style="width:50%" name="mo_openid_relative_login_redirect_url" value="<?php echo get_option('mo_openid_relative_login_redirect_url')?>" <?php if(!mo_openid_is_customer_registered()) echo 'disabled'?>/>
|
752 |
</td>
|
753 |
</tr>
|
@@ -782,7 +661,7 @@ function mo_openid_apps_config() {
|
|
782 |
<td>
|
783 |
<input type="radio" id="logout_redirect_customurl" name="mo_openid_logout_redirect" value="custom"
|
784 |
<?php checked( get_option('mo_openid_logout_redirect') == 'custom' );?> />Relative URL
|
785 |
-
|
786 |
<?php echo site_url();?>
|
787 |
<input type="text" id="logout_redirect_url" style="width:50%" name="mo_openid_logout_redirect_url" value="<?php echo get_option('mo_openid_logout_redirect_url')?>" />
|
788 |
</td>
|
@@ -831,20 +710,191 @@ function mo_openid_apps_config() {
|
|
831 |
</select>
|
832 |
</td>
|
833 |
</tr>
|
834 |
-
|
835 |
-
|
836 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
837 |
<br>
|
838 |
-
<hr>
|
839 |
<h3>Account Linking</h3>
|
840 |
-
</td>
|
841 |
<tr>
|
842 |
<td>
|
843 |
Enable account linking to let your users link their Social accounts with existing WordPress account. Users will be prompted with the option to either link to any existing account using WordPress login page or register as a new user.<br><br>
|
844 |
<input type="checkbox" id="account_linking_enable" name="mo_openid_account_linking_enable" value="1"
|
845 |
-
<?php checked( get_option('mo_openid_account_linking_enable') == 1 );?> /><b>Enable Account-Linking</b>
|
846 |
-
|
|
|
847 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
848 |
<script>
|
849 |
var tempHorSize = '<?php echo get_option('mo_login_icon_custom_size') ?>';
|
850 |
var tempHorTheme = '<?php echo get_option('mo_openid_login_theme') ?>';
|
@@ -1171,7 +1221,6 @@ function mo_openid_apps_config() {
|
|
1171 |
</script>
|
1172 |
<tr>
|
1173 |
<td>
|
1174 |
-
<br/>
|
1175 |
<hr>
|
1176 |
<h3>Advanced Settings</h3>
|
1177 |
</td>
|
@@ -1190,7 +1239,7 @@ function mo_openid_apps_config() {
|
|
1190 |
[ <b>Notice:</b> SMTP should be configured. ]
|
1191 |
</td>
|
1192 |
</tr>
|
1193 |
-
|
1194 |
<tr >
|
1195 |
<td>
|
1196 |
<div ><br>
|
@@ -1198,21 +1247,10 @@ function mo_openid_apps_config() {
|
|
1198 |
</div>
|
1199 |
</td>
|
1200 |
</tr>
|
1201 |
-
|
1202 |
-
<tr>
|
1203 |
-
<td>
|
1204 |
-
<br/>
|
1205 |
|
1206 |
-
<input type="checkbox" name="mo_openid_enable_profile_completion" value="1" <?php checked( get_option('mo_openid_enable_profile_completion') == '1' );?>><b>Prompt users for username & email when unavailable (profile completion)</b>
|
1207 |
-
<br>In case of unavailability of username or email from the social media application, user is prompted to input the same.
|
1208 |
-
<p style="color:#000000;">
|
1209 |
-
<b>*NOTE:</b><br> Disabling profile completion is not recommended. Instagram and Twitter don't return email address. Please keep this enabled if you are using Instagram or Twitter. This feature requires SMTP to be setup.</p>
|
1210 |
|
1211 |
|
1212 |
-
</td>
|
1213 |
-
</tr>
|
1214 |
-
|
1215 |
-
|
1216 |
|
1217 |
<?php if(mo_openid_is_customer_valid() && !mo_openid_get_customer_plan('Do It Yourself')) { ?>
|
1218 |
<tr><td> </td></tr>
|
@@ -1223,12 +1261,62 @@ function mo_openid_apps_config() {
|
|
1223 |
<?php } else {
|
1224 |
if(get_option('moopenid_user_attributes')) update_option('moopenid_user_attributes', 0);
|
1225 |
} ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1226 |
</table>
|
1227 |
<table class="mo_openid_display_table">
|
1228 |
-
|
1229 |
-
<td><br /><input type="submit" name="submit" value="Save" style="width:100px;" <?php if(!mo_openid_is_customer_registered()) echo 'disabled'?> class="button button-primary button-large" />
|
1230 |
-
</td>
|
1231 |
-
</tr>
|
1232 |
<tr>
|
1233 |
<td colspan="2">
|
1234 |
<hr>
|
@@ -1288,18 +1376,46 @@ function mo_openid_integrations(){
|
|
1288 |
|
1289 |
.tableborder tr:nth-child(even){background-color: #f2f2f2}
|
1290 |
</style>
|
1291 |
-
|
1292 |
<div style="display:block;margin-top:10px;color:red;background-color:rgba(251, 232, 0, 0.15);padding:5px;border:solid 1px rgba(255, 0, 9, 0.36);">
|
1293 |
Please <a href="<?php echo add_query_arg( array('tab' => 'register'), $_SERVER['REQUEST_URI'] ); ?>">Register or Login with miniOrange</a> to enable Social Login and Social Sharing.
|
1294 |
</div>
|
1295 |
-
<?php }
|
1296 |
|
1297 |
<div style="display:block;">
|
1298 |
-
<b><span style="display:block;margin-top:10px;background-color:aliceblue;padding:5px;border:solid 1px deepskyblue;">*NOTE: These features are available in the <a target="_blank" href="<?php echo add_query_arg( array('tab' => 'pricing'), $_SERVER['REQUEST_URI'] ); ?>">premium
|
1299 |
</b>
|
1300 |
</div>
|
1301 |
|
1302 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1303 |
<?php
|
1304 |
echo "<div style='text-align: center'><p>You have not setup attribute mapping for any apps yet. Please click on <b>Add Application</b> to configure mapping for each app.</p>";
|
1305 |
echo "</div>";
|
@@ -1333,11 +1449,62 @@ function mo_openid_integrations(){
|
|
1333 |
<input type="hidden" name="option" value="mo_openid_save_woocommerce_field"/>
|
1334 |
<br>
|
1335 |
<hr>
|
1336 |
-
<h3><span style="color:red;">*</span>Woocommerce
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1337 |
<p><b>If enabled, first name, last name and email are pre-filled in billing details of a user and on the Woocommerce checkout page.</b></p>
|
1338 |
<input disabled type="checkbox" name="mo_openid_save_woocommerce_field" value="1" <?php if(!mo_openid_is_customer_registered()) echo 'disabled'?> <?php checked( get_option('mo_openid_enable_woocommerce_sync') == 1 );?> /><strong>Sync Woocommerce checkout fields</strong>
|
1339 |
<br><br>
|
1340 |
-
<input
|
1341 |
<br>
|
1342 |
</form><br><br>
|
1343 |
|
@@ -1359,14 +1526,14 @@ function mo_openid_email_notification(){
|
|
1359 |
<input type="hidden" name="option" value="mo_openid_mail_configuration" />
|
1360 |
<div class="mo_openid_table_layout">
|
1361 |
|
1362 |
-
|
1363 |
<div style="display:block;margin-top:10px;color:red;background-color:rgba(251, 232, 0, 0.15);padding:5px;border:solid 1px rgba(255, 0, 9, 0.36);">
|
1364 |
Please <a href="<?php echo add_query_arg( array('tab' => 'register'), $_SERVER['REQUEST_URI'] ); ?>">Login with miniOrange</a> to enable Social Login and Social Sharing.
|
1365 |
</div>
|
1366 |
-
<?php }
|
1367 |
|
1368 |
<div style="display:block;">
|
1369 |
-
<b><span style="display:block;margin-top:10px;background-color:aliceblue;padding:5px;border:solid 1px deepskyblue;">*NOTE: These features are available in the <a target="_blank" href="<?php echo add_query_arg( array('tab' => 'pricing'), $_SERVER['REQUEST_URI'] ); ?>">standard and premium
|
1370 |
</b>
|
1371 |
</div>
|
1372 |
|
@@ -1475,7 +1642,7 @@ function mo_openid_email_notification(){
|
|
1475 |
|
1476 |
</table>
|
1477 |
|
1478 |
-
<b>*NOTE: These features require SMTP to be setup.</b>
|
1479 |
|
1480 |
</div>
|
1481 |
</form>
|
@@ -1499,18 +1666,12 @@ function mo_openid_app_comment() {
|
|
1499 |
<input type="hidden" name="option" value="mo_openid_save_comment_settings" />
|
1500 |
<div class="mo_openid_table_layout">
|
1501 |
|
1502 |
-
<?php if(!mo_openid_is_customer_registered()) { ?>
|
1503 |
-
<div style="display:block;margin-top:10px;color:red;background-color:rgba(251, 232, 0, 0.15);padding:5px;border:solid 1px rgba(255, 0, 9, 0.36);">
|
1504 |
-
Please <a href="<?php echo add_query_arg( array('tab' => 'register'), $_SERVER['REQUEST_URI'] ); ?>">Register or Login with miniOrange</a> to enable Social Login and Social Sharing. miniOrange takes care of creating applications for you so that you don't have to worry about creating applications in each social network.
|
1505 |
-
</div>
|
1506 |
-
<?php } ?>
|
1507 |
-
|
1508 |
<table class="mo_openid_display_table">
|
1509 |
<tr>
|
1510 |
<td colspan="2">
|
1511 |
<h3>Social Comments
|
1512 |
<input type="submit" name="submit" value="Save" style="width:100px;float:right;margin-right:2%"
|
1513 |
-
class="button button-primary button-large"
|
1514 |
</h3>
|
1515 |
<b>Select applications to add Social Comments. These commenting applications will be added to your blog post pages at the location of your comments.</b>
|
1516 |
</td>
|
@@ -1527,15 +1688,15 @@ function mo_openid_app_comment() {
|
|
1527 |
</tr>
|
1528 |
<tr><td> </td></tr>
|
1529 |
</tr>
|
1530 |
-
<td><input type="checkbox" id="mo_openid_social_comment_default" name="mo_openid_social_comment_default" value="1"
|
1531 |
</td>
|
1532 |
</tr>
|
1533 |
<tr>
|
1534 |
-
<td><input type="checkbox" id="mo_openid_social_comment_fb" name="mo_openid_social_comment_fb" value="1"
|
1535 |
</td>
|
1536 |
</tr>
|
1537 |
<tr>
|
1538 |
-
<td><input type="checkbox" id="mo_openid_social_comment_google" name="mo_openid_social_comment_google" value="1"
|
1539 |
</td>
|
1540 |
<tr>
|
1541 |
</table>
|
@@ -1550,11 +1711,11 @@ function mo_openid_app_comment() {
|
|
1550 |
</tr>
|
1551 |
<tr><td> </td></tr>
|
1552 |
<tr>
|
1553 |
-
<td><input type="checkbox" id="mo_openid_social_comment_blogpost" name="mo_openid_social_comment_blogpost" value="1"
|
1554 |
</td>
|
1555 |
</tr>
|
1556 |
<tr>
|
1557 |
-
<td><input type="checkbox" id="mo_openid_social_comment_static" name="mo_openid_social_comment_static" value="1"
|
1558 |
</td>
|
1559 |
<tr>
|
1560 |
</table>
|
@@ -1568,23 +1729,23 @@ function mo_openid_app_comment() {
|
|
1568 |
</tr>
|
1569 |
<tr>
|
1570 |
<td><b>Comment Section Heading:</b></td>
|
1571 |
-
<td><input class="mo_openid_table_textbox" type="text" name="mo_openid_social_comment_heading_label"
|
1572 |
</tr>
|
1573 |
<tr>
|
1574 |
<td><b>Comments - Default Label:</b></td>
|
1575 |
-
<td><input class="mo_openid_table_textbox" type="text" name="mo_openid_social_comment_default_label"
|
1576 |
</tr>
|
1577 |
<tr>
|
1578 |
<td><b>Comments - Facebook Label:</b></td>
|
1579 |
-
<td><input class="mo_openid_table_textbox" type="text" name="mo_openid_social_comment_fb_label"
|
1580 |
</tr>
|
1581 |
<tr>
|
1582 |
<td><b>Comments - Google Label:</b></td>
|
1583 |
-
<td><input class="mo_openid_table_textbox" type="text" name="mo_openid_social_comment_google_label"
|
1584 |
</tr>
|
1585 |
|
1586 |
<tr>
|
1587 |
-
<td><br /><input type="submit" name="submit" value="Save" style="width:100px;"
|
1588 |
</td>
|
1589 |
</tr>
|
1590 |
<tr>
|
@@ -1695,19 +1856,13 @@ function mo_openid_other_settings(){
|
|
1695 |
<form name="f" method="post" id="settings_form" action="">
|
1696 |
<input type="hidden" name="option" value="mo_openid_save_other_settings" />
|
1697 |
<div class="mo_openid_table_layout">
|
1698 |
-
|
1699 |
-
<?php if(!mo_openid_is_customer_registered()) { ?>
|
1700 |
-
<div style="display:block;margin-top:10px;color:red;background-color:rgba(251, 232, 0, 0.15);padding:5px;border:solid 1px rgba(255, 0, 9, 0.36);">
|
1701 |
-
Please <a href="<?php echo add_query_arg( array('tab' => 'register'), $_SERVER['REQUEST_URI'] ); ?>">Register or Login with miniOrange</a> to enable Social Login and Social Sharing. miniOrange takes care of creating applications for you so that you don't have to worry about creating applications in each social network.
|
1702 |
-
</div>
|
1703 |
-
<?php } ?>
|
1704 |
-
|
1705 |
<table>
|
1706 |
<tr>
|
1707 |
<td colspan="2">
|
1708 |
<h3>Social Sharing
|
1709 |
<input type="submit" name="submit" value="Save" style="width:100px;float:right;margin-right:2%"
|
1710 |
-
class="button button-primary button-large"
|
1711 |
</h3>
|
1712 |
<b>Select applications to add share icons. Customize sharing icons by using a range of shapes, themes and sizes to suit to your website. You can also choose different places to display these icons. Additionally, place vertical floating icons on your pages.</b>
|
1713 |
</td>
|
@@ -1724,28 +1879,28 @@ function mo_openid_other_settings(){
|
|
1724 |
<tr>
|
1725 |
<td style="width:20%">
|
1726 |
<input type="checkbox" id="facebook_share_enable" class="app_enable" name="mo_openid_facebook_share_enable" value="1"
|
1727 |
-
onclick="addSelectedApps();"
|
1728 |
<strong>Facebook</strong>
|
1729 |
</td>
|
1730 |
<td style="width:20%">
|
1731 |
-
<input type="checkbox"
|
1732 |
id="twitter_share_enable" class="app_enable" name="mo_openid_twitter_share_enable" value="1" onclick="addSelectedApps();"
|
1733 |
<?php checked( get_option('mo_openid_twitter_share_enable') == 1 );?> />
|
1734 |
<strong>Twitter </strong>
|
1735 |
</td>
|
1736 |
<td style="width:20%">
|
1737 |
<input type="checkbox" id="google_share_enable" class="app_enable" name="mo_openid_google_share_enable" value="1" onclick="addSelectedApps();"
|
1738 |
-
|
1739 |
<strong>Google</strong>
|
1740 |
</td>
|
1741 |
|
1742 |
<td style="width:20%">
|
1743 |
-
|
1744 |
-
|
1745 |
-
|
1746 |
</td>
|
1747 |
<td style="width:20%">
|
1748 |
-
<input type="checkbox"
|
1749 |
id="tumblr_share_enable" class="app_enable" name="mo_openid_tumblr_share_enable" value="1" onclick="addSelectedApps();"
|
1750 |
<?php checked( get_option('mo_openid_tumblr_share_enable') == 1 );?> />
|
1751 |
<strong>Tumblr </strong>
|
@@ -1753,61 +1908,61 @@ function mo_openid_other_settings(){
|
|
1753 |
</tr>
|
1754 |
<tr>
|
1755 |
<td style="width:20%">
|
1756 |
-
<input type="checkbox" id="stumble_share_enable" class="app_enable" name="mo_openid_stumble_share_enable" value="1" onclick="addSelectedApps();"
|
1757 |
<strong>StumbleUpon</strong>
|
1758 |
</td>
|
1759 |
<td style="width:20%">
|
1760 |
-
<input type="checkbox" id="linkedin_share_enable" class="app_enable" name="mo_openid_linkedin_share_enable" value="1" onclick="addSelectedApps();"
|
1761 |
<?php checked( get_option('mo_openid_linkedin_share_enable') == 1 );?> />
|
1762 |
<strong>LinkedIn</strong>
|
1763 |
</td>
|
1764 |
<td style="width:20%">
|
1765 |
-
<input type="checkbox"
|
1766 |
id="reddit_share_enable" class="app_enable" name="mo_openid_reddit_share_enable" value="1" onclick="addSelectedApps();"
|
1767 |
<?php checked( get_option('mo_openid_reddit_share_enable') == 1 );?> />
|
1768 |
<strong>Reddit </strong>
|
1769 |
</td>
|
1770 |
<td style="width:20%">
|
1771 |
<input type="checkbox" id="pinterest_share_enable" class="app_enable" name="mo_openid_pinterest_share_enable" value="1" onclick="addSelectedApps();"
|
1772 |
-
|
1773 |
<?php checked( get_option('mo_openid_pinterest_share_enable') == 1 );?> />
|
1774 |
<strong>Pinterest </strong>
|
1775 |
</td>
|
1776 |
<td style="width:20%">
|
1777 |
-
<input type="checkbox" id="pocket_share_enable" class="app_enable" name="mo_openid_pocket_share_enable" value="1" onclick="addSelectedApps();" <?php
|
1778 |
<strong>Pocket</strong>
|
1779 |
</td>
|
1780 |
</tr>
|
1781 |
<tr>
|
1782 |
<td style="width:20%">
|
1783 |
<input type="checkbox" id="digg_share_enable" class="app_enable" name="mo_openid_digg_share_enable" value="1"
|
1784 |
-
onclick="addSelectedApps();"
|
1785 |
<strong>Digg</strong>
|
1786 |
</td>
|
1787 |
<td style="width:20%">
|
1788 |
<input type="checkbox" id="delicious_share_enable" class="app_enable" name="mo_openid_delicious_share_enable" value="1"
|
1789 |
-
onclick="addSelectedApps();"
|
1790 |
<strong>Delicious</strong></td>
|
1791 |
<td style="width:20%">
|
1792 |
<input type="checkbox" id="odnoklassniki_share_enable" class="app_enable" name="mo_openid_odnoklassniki_share_enable" value="1"
|
1793 |
-
onclick="addSelectedApps();"
|
1794 |
<strong>Odnoklassniki</strong>
|
1795 |
</td>
|
1796 |
<td style="width:20%">
|
1797 |
<input type="checkbox" id="mail_share_enable" class="app_enable" name="mo_openid_mail_share_enable" value="1"
|
1798 |
-
onclick="addSelectedApps();moSharingPreview();"
|
1799 |
<strong>Email</strong>
|
1800 |
</td>
|
1801 |
<td style="width:20%">
|
1802 |
<input type="checkbox" id="print_share_enable" class="app_enable" name="mo_openid_print_share_enable" value="1"
|
1803 |
-
onclick="addSelectedApps();moSharingPreview();"
|
1804 |
<strong>Print</strong>
|
1805 |
</td>
|
1806 |
</tr>
|
1807 |
<tr>
|
1808 |
<td style="width:20%">
|
1809 |
<input type="checkbox" id="whatsapp_share_enable" class="app_enable" name="mo_openid_whatsapp_share_enable" value="1"
|
1810 |
-
onclick="addSelectedApps();moSharingPreview();"
|
1811 |
<strong>Whatsapp</strong>
|
1812 |
</td>
|
1813 |
</tr>
|
@@ -1839,36 +1994,36 @@ function mo_openid_other_settings(){
|
|
1839 |
<tr>
|
1840 |
<td style="width:inherit;"> <!-- Shape radio buttons -->
|
1841 |
<!-- Round -->
|
1842 |
-
<input type="radio" id="mo_openid_share_theme_circle"
|
1843 |
|
1844 |
</td>
|
1845 |
<td><!-- Theme radio buttons -->
|
1846 |
<!-- Default -->
|
1847 |
<input type="radio" id="mo_openid_default_background_radio" name="mo_openid_share_custom_theme" value="default" onclick="tempHorTheme = 'default';moSharingPreview('horizontal', document.getElementById('mo_sharing_icon_size').value, setTheme(), 'default', document.getElementById('mo_sharing_icon_custom_color').value, document.getElementById('mo_sharing_icon_space').value, document.getElementById('mo_sharing_icon_custom_font').value)"
|
1848 |
-
<?php checked( get_option('mo_openid_share_custom_theme') == 'default' );?>
|
1849 |
</td>
|
1850 |
<td> <!-- Size between icons buttons-->
|
1851 |
-
<input style="width:50px" onkeyup="moSharingSpaceValidate(this)" id="mo_sharing_icon_space" name="mo_sharing_icon_space" type="text" value="<?php echo get_option('mo_sharing_icon_space')?>"
|
1852 |
-
<input id="mo_sharing_space_plus" type="button" value="+" onmouseup="moSharingPreview('horizontal',document.getElementById('mo_sharing_icon_size').value ,setTheme(),setCustomTheme(),document.getElementById('mo_sharing_icon_custom_color').value,document.getElementById('mo_sharing_icon_space').value)"
|
1853 |
-
<input id="mo_sharing_space_minus" type="button" value="-" onmouseup="moSharingPreview('horizontal',document.getElementById('mo_sharing_icon_size').value ,setTheme(),setCustomTheme(),document.getElementById('mo_sharing_icon_custom_color').value,document.getElementById('mo_sharing_icon_space').value)"
|
1854 |
</td>
|
1855 |
<td> <!-- Size buttons-->
|
1856 |
-
<input style="width:50px" id="mo_sharing_icon_size" onkeyup="moSharingSizeValidate(this)" name="mo_sharing_icon_custom_size" type="text" value="<?php echo get_option('mo_sharing_icon_custom_size')?>"
|
1857 |
|
1858 |
-
<input id="mo_sharing_size_plus" type="button" value="+" onmouseup="tempHorSize = document.getElementById('mo_sharing_icon_size').value;moSharingPreview('horizontal',document.getElementById('mo_sharing_icon_size').value , setTheme(), setCustomTheme(), document.getElementById('mo_sharing_icon_custom_color').value, document.getElementById('mo_sharing_icon_space').value,document.getElementById('mo_sharing_icon_custom_font').value)"
|
1859 |
|
1860 |
-
<input id="mo_sharing_size_minus" type="button" value="-" onmouseup="tempHorSize = document.getElementById('mo_sharing_icon_size').value;moSharingPreview('horizontal',document.getElementById('mo_sharing_icon_size').value ,setTheme(), setCustomTheme(), document.getElementById('mo_sharing_icon_custom_color').value, document.getElementById('mo_sharing_icon_space').value, document.getElementById('mo_sharing_icon_custom_font').value)"
|
1861 |
</td>
|
1862 |
</tr>
|
1863 |
<tr>
|
1864 |
<td> <!-- Shape radio buttons -->
|
1865 |
<!-- Rounded Edges -->
|
1866 |
-
<input type="radio" name="mo_openid_share_theme" value="oval" onclick="tempHorShape = 'circle';moSharingPreview('horizontal', document.getElementById('mo_sharing_icon_size').value, 'oval', setCustomTheme(), document.getElementById('mo_sharing_icon_custom_color').value, document.getElementById('mo_sharing_icon_space').value)"
|
1867 |
</td>
|
1868 |
<td> <!-- Theme radio buttons -->
|
1869 |
<!-- Custom background -->
|
1870 |
|
1871 |
-
<input type="radio" id="mo_openid_custom_background_radio" name="mo_openid_share_custom_theme" value="custom" onclick="tempHorTheme = 'custom';moSharingPreview('horizontal', document.getElementById('mo_sharing_icon_size').value, setTheme(),'custom',document.getElementById('mo_sharing_icon_custom_color').value,document.getElementById('mo_sharing_icon_space').value)"
|
1872 |
<?php checked( get_option('mo_openid_share_custom_theme') == 'custom' );?> />Custom background*
|
1873 |
</td>
|
1874 |
<td></td>
|
@@ -1877,12 +2032,12 @@ function mo_openid_other_settings(){
|
|
1877 |
<tr>
|
1878 |
<td> <!-- Shape radio buttons -->
|
1879 |
<!-- Square -->
|
1880 |
-
<input type="radio" name="mo_openid_share_theme" value="square" onclick="tempHorShape = 'square';moSharingPreview('horizontal', document.getElementById('mo_sharing_icon_size').value, setTheme(), setCustomTheme(), document.getElementById('mo_sharing_icon_custom_color').value, document.getElementById('mo_sharing_icon_space').value)"
|
1881 |
</td>
|
1882 |
<td> <!-- Theme radio buttons -->
|
1883 |
<!-- Custom background textbox -->
|
1884 |
|
1885 |
-
<input id="mo_sharing_icon_custom_color" name="mo_sharing_icon_custom_color" class="color" value="<?php echo get_option('mo_sharing_icon_custom_color')?>" onchange="moSharingPreview('horizontal', document.getElementById('mo_sharing_icon_size').value, setTheme(),setCustomTheme(),document.getElementById('mo_sharing_icon_custom_color').value,document.getElementById('mo_sharing_icon_space').value,document.getElementById('mo_sharing_icon_custom_font').value)"
|
1886 |
</td>
|
1887 |
<td></td>
|
1888 |
<td></td>
|
@@ -1891,7 +2046,7 @@ function mo_openid_other_settings(){
|
|
1891 |
<td></td>
|
1892 |
<td> <!-- Theme radio buttons -->
|
1893 |
<!-- No background -->
|
1894 |
-
<input type="radio" id="mo_openid_no_background_radio" name="mo_openid_share_custom_theme" value="customFont" onclick="tempHorTheme = 'custom';moSharingPreview('horizontal', document.getElementById('mo_sharing_icon_size').value, setTheme(),'customFont',document.getElementById('mo_sharing_icon_custom_color').value,document.getElementById('mo_sharing_icon_space').value,document.getElementById('mo_sharing_icon_custom_font').value)"
|
1895 |
</td>
|
1896 |
<td></td>
|
1897 |
<td></td>
|
@@ -1900,7 +2055,7 @@ function mo_openid_other_settings(){
|
|
1900 |
<td></td>
|
1901 |
<td> <!-- Theme radio buttons -->
|
1902 |
<!-- No background textbox-->
|
1903 |
-
<input id="mo_sharing_icon_custom_font" name="mo_sharing_icon_custom_font" class="color" value="<?php echo get_option('mo_sharing_icon_custom_font')?>" onchange="moSharingPreview('horizontal', document.getElementById('mo_sharing_icon_size').value, setTheme(),setCustomTheme(),document.getElementById('mo_sharing_icon_custom_color').value,document.getElementById('mo_sharing_icon_space').value,document.getElementById('mo_sharing_icon_custom_font').value,document.getElementById('mo_sharing_icon_custom_font').value)"
|
1904 |
</td>
|
1905 |
<td></td>
|
1906 |
<td></td>
|
@@ -2337,14 +2492,14 @@ function mo_openid_other_settings(){
|
|
2337 |
|
2338 |
<tr>
|
2339 |
<td><b>Select color for share heading:</b>
|
2340 |
-
<input id="mo_openid_table_textbox" style="width:135px;" name="mo_openid_share_widget_customize_text_color" class="color" value="<?php echo get_option('mo_openid_share_widget_customize_text_color')?>"
|
2341 |
</tr>
|
2342 |
<tr>
|
2343 |
<td>
|
2344 |
<b>Enter text to show above share widget:</b>
|
2345 |
|
2346 |
<input class="mo_openid_table_textbox" style="width:50%;" type="text" name="mo_openid_share_widget_customize_text"
|
2347 |
-
value="<?php echo get_option('mo_openid_share_widget_customize_text'); ?>"
|
2348 |
</td>
|
2349 |
</tr>
|
2350 |
<tr>
|
@@ -2352,7 +2507,7 @@ function mo_openid_other_settings(){
|
|
2352 |
<b>Enter your twitter Username (without @):</b>
|
2353 |
|
2354 |
<input class="mo_openid_table_textbox" style="width:50%;" type="text" name="mo_openid_share_twitter_username"
|
2355 |
-
value="<?php echo get_option('mo_openid_share_twitter_username'); ?>"
|
2356 |
</td>
|
2357 |
</tr>
|
2358 |
<tr>
|
@@ -2361,7 +2516,7 @@ function mo_openid_other_settings(){
|
|
2361 |
|
2362 |
|
2363 |
<input class="mo_openid_table_textbox" style="width:50%;" type="text" name="mo_openid_share_email_subject"
|
2364 |
-
value="<?php echo get_option('mo_openid_share_email_subject'); ?>"
|
2365 |
</td>
|
2366 |
</tr>
|
2367 |
<tr>
|
@@ -2369,7 +2524,7 @@ function mo_openid_other_settings(){
|
|
2369 |
<b>Enter the Email body (add ##url## to place the URL):</b>
|
2370 |
|
2371 |
<input class="mo_openid_table_textbox" style="width:50%;" type="text" name="mo_openid_share_email_body"
|
2372 |
-
value="<?php echo get_option('mo_openid_share_email_body'); ?>"
|
2373 |
</td>
|
2374 |
</tr>
|
2375 |
<tr>
|
@@ -2383,103 +2538,103 @@ function mo_openid_other_settings(){
|
|
2383 |
|
2384 |
<tr>
|
2385 |
<td>
|
2386 |
-
<input type="checkbox" id="mo_apps_home_page" name="mo_share_options_home_page" value="1"
|
2387 |
Home Page
|
2388 |
<br/>
|
2389 |
-
<input type="radio" id="mo_apps_posts_options" name="mo_share_options_home_page_position" value="before"
|
2390 |
Before content
|
2391 |
<br/>
|
2392 |
-
<input type="radio" id="mo_apps_posts_options" name="mo_share_options_home_page_position" value="after"
|
2393 |
After content
|
2394 |
<br/>
|
2395 |
-
<input type="radio" id="mo_apps_posts_options" name="mo_share_options_home_page_position" value="both"
|
2396 |
Both before and after content
|
2397 |
</td>
|
2398 |
</tr>
|
2399 |
<tr>
|
2400 |
<td>
|
2401 |
-
<input type="checkbox" id="mo_apps_posts" name="mo_share_options_post" value="1"
|
2402 |
Blog Post
|
2403 |
<br/>
|
2404 |
-
<input type="radio" id="mo_apps_posts_options" name="mo_share_options_enable_post_position" value="before"
|
2405 |
Before content
|
2406 |
<br/>
|
2407 |
-
<input type="radio" id="mo_apps_posts_options" name="mo_share_options_enable_post_position" value="after"
|
2408 |
After content
|
2409 |
<br/>
|
2410 |
-
<input type="radio" id="mo_apps_posts_options" name="mo_share_options_enable_post_position" value="both"
|
2411 |
Both before and after content
|
2412 |
</td>
|
2413 |
</tr>
|
2414 |
<tr>
|
2415 |
<td>
|
2416 |
-
<input type="checkbox" id="mo_apps_static_page" name="mo_share_options_static_pages" value="1"
|
2417 |
Static Pages
|
2418 |
<br/>
|
2419 |
-
<input type="radio" id="mo_apps_posts_options" name="mo_share_options_static_pages_position" value="before"
|
2420 |
Before content
|
2421 |
<br/>
|
2422 |
-
<input type="radio" id="mo_apps_posts_options" name="mo_share_options_static_pages_position" value="after"
|
2423 |
After content
|
2424 |
<br/>
|
2425 |
-
<input type="radio" id="mo_apps_posts_options" name="mo_share_options_static_pages_position" value="both"
|
2426 |
Both before and after content
|
2427 |
</td>
|
2428 |
</tr>
|
2429 |
<tr>
|
2430 |
<td>
|
2431 |
-
<input type="checkbox" id="mo_apps_wc_sp_page_top" name="mo_share_options_wc_sp_summary_top" value="1"
|
2432 |
WooCommerce Individual Product Page(Top)
|
2433 |
</td>
|
2434 |
</tr>
|
2435 |
<tr>
|
2436 |
<td>
|
2437 |
-
<input type="checkbox" id="mo_apps_wc_sp_page" name="mo_share_options_wc_sp_summary" value="1"
|
2438 |
WooCommerce Individual Product Page
|
2439 |
</td>
|
2440 |
</tr>
|
2441 |
<tr>
|
2442 |
<td>
|
2443 |
-
<input type="checkbox" id="mo_apps_bb_forum" name="mo_share_options_bb_forum" value="1"
|
2444 |
BBPress Forums Page
|
2445 |
<br/>
|
2446 |
-
<input type="radio" id="mo_apps_posts_options" name="mo_share_options_bb_forum_position" value="before"
|
2447 |
Before content
|
2448 |
<br/>
|
2449 |
-
<input type="radio" id="mo_apps_posts_options" name="mo_share_options_bb_forum_position" value="after" <?php
|
2450 |
After content
|
2451 |
<br/>
|
2452 |
-
<input type="radio" id="mo_apps_posts_options" name="mo_share_options_bb_forum_position" value="both"
|
2453 |
Both before and after content
|
2454 |
</td>
|
2455 |
</tr>
|
2456 |
<tr>
|
2457 |
<td>
|
2458 |
-
<input type="checkbox" id="mo_apps_bb_topic" name="mo_share_options_bb_topic" value="1"
|
2459 |
BBPress Topic Page
|
2460 |
<br/>
|
2461 |
-
<input type="radio" id="mo_apps_posts_options" name="mo_share_options_bb_topic_position" value="before"
|
2462 |
Before content
|
2463 |
<br/>
|
2464 |
-
<input type="radio" id="mo_apps_posts_options" name="mo_share_options_bb_topic_position" value="after"
|
2465 |
After content
|
2466 |
<br/>
|
2467 |
-
<input type="radio" id="mo_apps_posts_options" name="mo_share_options_bb_topic_position" value="both"
|
2468 |
Both before and after content
|
2469 |
</td>
|
2470 |
</tr>
|
2471 |
<tr>
|
2472 |
<td>
|
2473 |
-
<input type="checkbox" id="mo_apps_bb_reply" name="mo_share_options_bb_reply" value="1"
|
2474 |
BBPress Reply Page
|
2475 |
<br/>
|
2476 |
-
<input type="radio" id="mo_apps_posts_options" name="mo_share_options_bb_reply_position" value="before"
|
2477 |
Before content
|
2478 |
<br/>
|
2479 |
-
<input type="radio" id="mo_apps_posts_options" name="mo_share_options_bb_reply_position" value="after"
|
2480 |
After content
|
2481 |
<br/>
|
2482 |
-
<input type="radio" id="mo_apps_posts_options" name="mo_share_options_bb_reply_position" value="both"
|
2483 |
Both before and after content
|
2484 |
</td>
|
2485 |
</tr>
|
@@ -2503,7 +2658,7 @@ function mo_openid_other_settings(){
|
|
2503 |
</tr>
|
2504 |
<tr>
|
2505 |
<td>
|
2506 |
-
<input type="checkbox" id="mo_share_vertical_hide_mobile" name="mo_share_vertical_hide_mobile" value="1"
|
2507 |
Hide Floating Vertical Share icons on mobile
|
2508 |
</td>
|
2509 |
</tr>
|
@@ -2512,7 +2667,7 @@ function mo_openid_other_settings(){
|
|
2512 |
<td>
|
2513 |
<br />
|
2514 |
<input type="submit" name="submit" value="Save" style="width:100px;"
|
2515 |
-
class="button button-primary button-large"
|
2516 |
</td>
|
2517 |
</tr>
|
2518 |
|
@@ -2559,12 +2714,6 @@ function mo_openid_shortcode_info(){
|
|
2559 |
?>
|
2560 |
<td style="vertical-align:top;width:65%;">
|
2561 |
<div class="mo_openid_table_layout">
|
2562 |
-
|
2563 |
-
<?php if(!mo_openid_is_customer_registered()) { ?>
|
2564 |
-
<div style="display:block;margin-top:10px;color:red;background-color:rgba(251, 232, 0, 0.15);padding:5px;border:solid 1px rgba(255, 0, 9, 0.36);">
|
2565 |
-
Please <a href="<?php echo add_query_arg( array('tab' => 'register'), $_SERVER['REQUEST_URI'] ); ?>">Register or Login with miniOrange</a> to enable Social Login and Social Sharing. miniOrange takes care of creating applications for you so that you don't have to worry about creating applications in each social network.
|
2566 |
-
</div>
|
2567 |
-
<?php } ?>
|
2568 |
|
2569 |
<table>
|
2570 |
<tr>
|
@@ -2688,7 +2837,7 @@ function mo_openid_pricing_info(){
|
|
2688 |
|
2689 |
<h2>Licensing Plans For Social Login
|
2690 |
<?php if(get_option('mo_openid_oauth')!='1') {?>
|
2691 |
-
<span style="float:right">
|
2692 |
<input type="button" name="ok_btn" id="ok_btn" class="button button-primary button-large" value="OK, Got It" onclick="window.location.href='admin.php?page=mo_openid_settings&tab=login'" />
|
2693 |
<input type="button" name="check_plan" id="check_plan" <?php if(!mo_openid_is_customer_registered()) echo 'disabled'?> class="button button-primary button-large" value="Check License" onclick="checkLicense();"/>
|
2694 |
</span>
|
@@ -2719,16 +2868,18 @@ function mo_openid_pricing_info(){
|
|
2719 |
|
2720 |
<tbody class="mo_align-center mo-fa-icon">
|
2721 |
<tr>
|
2722 |
-
<td>Pre-configured Social Login Apps
|
2723 |
-
<td>All 9 Apps
|
2724 |
-
<td>All 9 Apps
|
2725 |
-
<td>All 9 Apps
|
|
|
2726 |
</tr>
|
2727 |
<tr>
|
2728 |
-
<td>Custom Social Login Apps
|
2729 |
-
<td>Facebook,
|
2730 |
-
<td>All 9 Apps
|
2731 |
-
<td>All 9 Apps
|
|
|
2732 |
</tr>
|
2733 |
<tr>
|
2734 |
<td>Beautiful Icon Customisations</td>
|
@@ -2760,12 +2911,7 @@ function mo_openid_pricing_info(){
|
|
2760 |
<td><i class="fa fa-check"></i></td>
|
2761 |
<td><i class="fa fa-check"></i></td>
|
2762 |
</tr>
|
2763 |
-
|
2764 |
-
<td>Account Linking</td>
|
2765 |
-
<td><i class="fa fa-check"></i></td>
|
2766 |
-
<td><i class="fa fa-check"></i></td>
|
2767 |
-
<td><i class="fa fa-check"></i></td>
|
2768 |
-
</tr>
|
2769 |
<tr>
|
2770 |
<td>Profile completion (username, email)</td>
|
2771 |
<td><i class="fa fa-check"></i></td>
|
@@ -2802,22 +2948,33 @@ function mo_openid_pricing_info(){
|
|
2802 |
<td><i class="fa fa-check"></i></td>
|
2803 |
<td><i class="fa fa-check"></i></td>
|
2804 |
</tr>
|
2805 |
-
|
2806 |
-
|
|
|
2807 |
<td><i class="fa fa-check"></i></td>
|
2808 |
<td><i class="fa fa-check"></i></td>
|
2809 |
<td><i class="fa fa-check"></i></td>
|
2810 |
</tr>
|
2811 |
<tr>
|
2812 |
-
<td>
|
2813 |
-
<td><i class="fa fa-check"></i></td>
|
|
|
2814 |
<td><i class="fa fa-check"></i></td>
|
2815 |
<td><i class="fa fa-check"></i></td>
|
2816 |
</tr>
|
2817 |
<tr>
|
2818 |
-
<td>
|
|
|
|
|
2819 |
<td><i class="fa fa-check"></i></td>
|
2820 |
<td><i class="fa fa-check"></i></td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2821 |
<td><i class="fa fa-check"></i></td>
|
2822 |
</tr>
|
2823 |
<tr>
|
@@ -2844,6 +3001,12 @@ function mo_openid_pricing_info(){
|
|
2844 |
<td><i class="fa fa-check"></i></td>
|
2845 |
<td><i class="fa fa-check"></i></td>
|
2846 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
2847 |
<tr>
|
2848 |
<td>Social Login Opens in a New Window</td>
|
2849 |
<td></td>
|
@@ -2855,27 +3018,34 @@ function mo_openid_pricing_info(){
|
|
2855 |
<td></td>
|
2856 |
<td><i class="fa fa-check"></i></td>
|
2857 |
<td><i class="fa fa-check"></i></td>
|
|
|
|
|
|
|
|
|
|
|
|
|
2858 |
</tr>
|
2859 |
<tr>
|
2860 |
-
<td>Woocommerce Integration
|
2861 |
<td></td>
|
2862 |
<td></td>
|
2863 |
<td><i class="fa fa-check"></i></td>
|
2864 |
</tr>
|
|
|
2865 |
<tr>
|
2866 |
-
<td>BuddyPress Integration
|
2867 |
<td></td>
|
2868 |
<td></td>
|
2869 |
<td><i class="fa fa-check"></i></td>
|
2870 |
</tr>
|
2871 |
<tr>
|
2872 |
-
<td>MailChimp Integration
|
2873 |
<td></td>
|
2874 |
<td></td>
|
2875 |
<td><i class="fa fa-check"></i></td>
|
2876 |
</tr>
|
2877 |
<tr>
|
2878 |
-
<td>Extended Profile Data
|
2879 |
<td></td>
|
2880 |
<td></td>
|
2881 |
<td><i class="fa fa-check"></i></td>
|
@@ -2887,7 +3057,7 @@ function mo_openid_pricing_info(){
|
|
2887 |
<td><i class="fa fa-check"></i></td>
|
2888 |
</tr>
|
2889 |
<tr>
|
2890 |
-
<td>Custom Integration
|
2891 |
<td><a target="_blank" href="<?php echo get_site_url() . "/wp-admin/admin.php?page=mo_openid_settings&tab=login";?> ">Contact Us using Support Form</a></td>
|
2892 |
<td><a target="_blank" href="<?php echo get_site_url() . "/wp-admin/admin.php?page=mo_openid_settings&tab=login";?> ">Contact Us using Support Form</a></td>
|
2893 |
<td><a target="_blank" href="<?php echo get_site_url() . "/wp-admin/admin.php?page=mo_openid_settings&tab=login";?> ">Contact Us using Support Form</a></td>
|
@@ -2916,57 +3086,8 @@ function mo_openid_pricing_info(){
|
|
2916 |
jQuery("#checkLicenseForm").submit();
|
2917 |
}
|
2918 |
</script>
|
2919 |
-
<p><b><span style="color:#da7587;font-weight:bold;">*Apps</span></b></p>
|
2920 |
-
<ol>
|
2921 |
-
<table border-spacing: 5px;>
|
2922 |
-
<tr>
|
2923 |
-
<td width="17%"><b>All 9 Apps :</b></td>
|
2924 |
-
<td>Facebook, Google, Twitter, Vkontakte, LinkedIn, Windows Live, Amazon, Instagram & Salesforce(on request)</td>
|
2925 |
-
</tr>
|
2926 |
-
<tr>
|
2927 |
-
<td width="17%"><b>Pre-configured Apps :</b></td>
|
2928 |
-
<td>Pre-configured apps are already configured by miniOrange. Login flow will go from plugin to miniOrange and then back to plugin.</td>
|
2929 |
-
</tr>
|
2930 |
-
<tr>
|
2931 |
-
<td><b>Custom Social Login Apps :</b></td>
|
2932 |
-
<td>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. </td>
|
2933 |
-
</tr>
|
2934 |
-
</table>
|
2935 |
-
</ol>
|
2936 |
-
<hr>
|
2937 |
-
<p><b><span style="color:#da7587;font-weight:bold;">** Integration with other plugins</span></b></p>
|
2938 |
-
<ol>
|
2939 |
-
<table border-spacing: 5px;>
|
2940 |
-
<tr>
|
2941 |
-
<td width="17%"><b>BuddyPress Integration :</b></td>
|
2942 |
-
<td>Extended attributes returned from social app are mapped to Custom BuddyPress fields.</td>
|
2943 |
-
</tr>
|
2944 |
-
<tr>
|
2945 |
-
<td><b>Woocommerce Integration :</b></td>
|
2946 |
-
<td>First name, last name and email are pre-filled in billing details of a user.</td>
|
2947 |
-
</tr>
|
2948 |
-
<tr>
|
2949 |
-
<td><b>MailChimp Integration :</b></td>
|
2950 |
-
<td>A user is added as a subscriber to a mailing list in MailChimp when that user registers using Social Login. First name, last name and email are also captured for that user in the Mailing List. Option is available to download csv file that has list of emails of all users in WordPress. </td>
|
2951 |
-
</tr>
|
2952 |
-
</table>
|
2953 |
-
</ol>
|
2954 |
-
<hr>
|
2955 |
-
<table>
|
2956 |
-
<tr>
|
2957 |
-
<td width="17%"><span style="color:#da7587;font-weight:bold;">*** Extended Profile Data</span><b>:</b></td>
|
2958 |
-
<td>Extended profile data feature requires additional configuration. You need to have your own social media app and permissions from social media providers to collect extended user data.</td>
|
2959 |
-
</tr>
|
2960 |
|
2961 |
-
|
2962 |
-
<hr>
|
2963 |
-
<table>
|
2964 |
-
<tr>
|
2965 |
-
<td width="17%"><span style="color:#da7587;font-weight:bold;">**** Custom Integration</span><b>:</b></td>
|
2966 |
-
<td>If you have a specific custom requirement in the Social Login Plugin, we can implement and integrate it in the Plugin fo you. This includes all those custom features that come under the scope of Social Login/ Sharing/ Comments. These features are chargeable. Please send us a query through the support forum to get in touch with us about your custom requirements.</td>
|
2967 |
-
</tr>
|
2968 |
-
</table>
|
2969 |
-
<h3>Refund Policy -</h3>
|
2970 |
<p><b>At miniOrange, we want to ensure you are 100% happy with your purchase. If the premium plugin you purchased is not working as advertised and you've attempted to resolve any issues with our support team, which couldn't get resolved then we will refund the whole amount within 10 days of the purchase. Please email us at <a href="mailto:info@miniorange.com"><i>info@miniorange.com</i></a> for any queries regarding the return policy.</b></p>
|
2971 |
<b>Not applicable for -</b>
|
2972 |
<ol>
|
@@ -2986,11 +3107,7 @@ function mo_openid_troubleshoot_info(){ ?>
|
|
2986 |
<td style="vertical-align:top;width:65%;">
|
2987 |
<div class="mo_openid_table_layout">
|
2988 |
|
2989 |
-
|
2990 |
-
<div style="display:block;margin-top:10px;color:red;background-color:rgba(251, 232, 0, 0.15);padding:5px;border:solid 1px rgba(255, 0, 9, 0.36);">
|
2991 |
-
Please <a href="<?php echo add_query_arg( array('tab' => 'register'), $_SERVER['REQUEST_URI'] ); ?>">Register or Login with miniOrange</a> to enable Social Login and Social Sharing. miniOrange takes care of creating applications for you so that you don't have to worry about creating applications in each social network.
|
2992 |
-
</div>
|
2993 |
-
<?php } ?>
|
2994 |
<table width="100%">
|
2995 |
<tbody>
|
2996 |
|
@@ -3128,7 +3245,7 @@ function mo_openid_troubleshoot_info(){ ?>
|
|
3128 |
|
3129 |
<?php if(get_option('mo_openid_oauth')!='1'){?>
|
3130 |
<h4><a id="openid_question7" >I am not able to fetch extended attributes. How do I access extended attributes? </a></h4>
|
3131 |
-
<div id="openid_question7_desc">Check the option of Extended Attributes in the Social Login tab. Then in the miniOrange dashboard, go to Social analytics-> Social Applications Usage Summary, click on Search and then click on View under Additional Information to see extended attributes of users who login using your app. You can also download it as a
|
3132 |
</div>
|
3133 |
<hr>
|
3134 |
<?php }?>
|
@@ -3278,7 +3395,7 @@ function mo_openid_privacy_policy(){ ?>
|
|
3278 |
<li>as necessary to enforce our User Agreement or protect the rights, property, or safety of miniOrange, its Customers and End users,
|
3279 |
and the public. </li>
|
3280 |
</ol>
|
3281 |
-
</div
|
3282 |
</div>
|
3283 |
<hr>
|
3284 |
</td></tr>
|
@@ -3503,9 +3620,9 @@ function add_custom_app(){
|
|
3503 |
var appname = document.getElementById("mo_oauth_app").value;
|
3504 |
document.getElementById("instructions").innerHTML = "";
|
3505 |
if(appname=="google"){
|
3506 |
-
document.getElementById("instructions").innerHTML = '<br><strong>Instructions to configure Google :</strong><ol><li>Visit the Google website for developers <a href="https://console.developers.google.com/project"target="_blank">console.developers.google.com</a>.</li><li>Open the Google API Console Credentials page and go to API Manager -> Credentials</li><li>From the project drop-down, click on + to Create a new project, enter a name for the project, and optionally, edit the provided Project ID. Click Create.</li><li>On the Credentials menu, select Create credentials, then select OAuth client ID.</li><li>You may be prompted to set a product name on the Consent screen. If so, click Configure consent screen, supply the requested information, and click Save to return to the Credentials screen.</li><li>Select Web Application for the Application Type. Enter <b><?php echo site_url()."/openidcallback"
|
3507 |
} else if(appname=="facebook"){
|
3508 |
-
document.getElementById("instructions").innerHTML = '<br><strong>Instructions to configure Facebook : </strong><ol><li>Go to Facebook developers console <a href="https://developers.facebook.com/apps/" target="_blank">https://developers.facebook.com/apps/</a>. Login with your facebook developer account</li><li>Click on Create a New App/Add new App button</li><li>Enter <b>Display Name</b> and click on Create App ID</li><li>In Add Product select Facebook Login and click on Setup</li><li>Click on Web. Enter your Site URL. From the left pane, select <b>Facebook Login -> Settings</b>.</li><li>Under <b>Client OAuth Settings</b>, enter <b><?php echo site_url()."/openidcallback"
|
3509 |
} else if(appname=="twitter"){
|
3510 |
document.getElementById("instructions").innerHTML = '<br><strong>Instructions to configure Twitter : </strong><ol><li>Go to <a href="https://apps.twitter.com/" target="_blank">https://apps.twitter.com/</a> and sign in with your twitter account.</li><li>Click on <b>Create New App</b>.</li> <li>Enter Name, description, website name and callback URL.</li><li><b>Callback URL</b> <br><u>Example of public website, </u><br>if your website URL is =><?php echo site_url();?><br> then your callback URL should be => <?php echo site_url();?>/openidcallback<br><u>Example of localhost,</u><br> Twitter may not accept local IPs so try using 127.0.0.1 instead of localhost.<br> Also make sure your Callback URL is prefixed with the website. <br> Go to Settings-> General and replace "localhost" with "127.0.0.1" in <b>WordPress Address (URL)</b> and <b>Site Address (URL)</b> <br>if your website URL is => http://127.0.0.1/wordpress <br> then your callback URL should be => http://127.0.0.1/wordpress/openidcallback</li><li>Twitter might ask you to add your phone number to your profile while creating the app.</li><li>Check the developer agreement checkbox and click on <b>Create your Twitter Application</b>.Under <b>Keys and Access Token</b> Tab, you will find your <b>API Key/Secret</b>.Paste them into the fields above.</li><li>Leave the scope field blank.</li><li><u>Instructions to request email address of a user</u>: The “Request email addresses from users” checkbox is available under the app permissions on apps.twitter.com. Privacy Policy URL and Terms of Service URL fields must be completed in the app settings in order for email address access to function. If enabled, users will be informed via the oauth/authorize dialog that your app can access their email address.If the user does not have an email address on their account, or if the email address is not verified, email will not be returned.</li><li>Go to Permissions tab -> Access. Select <b>Read Only</b> type of access.</li><li>Click on the Update settings button.</li><li>Go to Social Login tab to configure the display as well as other login settings.</li></ol>';
|
3511 |
}
|
@@ -3524,7 +3641,7 @@ function add_custom_app(){
|
|
3524 |
<td>
|
3525 |
<select class="mo_table_textbox" style="width:500px;" required="true" name="mo_oauth_app_name" id="mo_oauth_app" onchange="selectapp()">
|
3526 |
<option value="">Select Application</option>
|
3527 |
-
|
3528 |
<option value="facebook">Facebook</option>
|
3529 |
<option value="twitter">Twitter</option>
|
3530 |
</select>
|
@@ -3638,12 +3755,22 @@ function delete_custom_app($appname){
|
|
3638 |
}
|
3639 |
|
3640 |
function mo_custom_app_instructions($appname){
|
3641 |
-
if(
|
3642 |
-
|
3643 |
-
|
3644 |
-
|
3645 |
-
|
3646 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3647 |
}
|
3648 |
|
3649 |
}
|
@@ -3753,4 +3880,12 @@ function mo_openid_is_curl_installed() {
|
|
3753 |
} else
|
3754 |
return 0;
|
3755 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3756 |
?>
|
1 |
<?php
|
2 |
function mo_register_openid() {
|
3 |
+
|
4 |
+
|
5 |
if( isset( $_GET[ 'tab' ]) && $_GET[ 'tab' ] !== 'register' ) {
|
6 |
$active_tab = $_GET[ 'tab' ];
|
7 |
} else if(mo_openid_is_customer_registered()) {
|
8 |
$active_tab = 'login';
|
9 |
+
} else if(!isset($_GET[ 'tab' ])) {
|
10 |
+
$active_tab = 'login';
|
11 |
}
|
12 |
+
else{
|
13 |
+
$active_tab = $_GET[ 'tab' ];
|
14 |
+
}
|
15 |
+
|
16 |
if(mo_openid_is_curl_installed()==0){ ?>
|
17 |
<p style="color:red;">(Warning: <a href="http://php.net/manual/en/curl.installation.php" target="_blank">PHP CURL extension</a> is not installed or disabled) Please go to Troubleshooting for steps to enable curl.</p>
|
18 |
<?php
|
19 |
}?>
|
20 |
+
<div >
|
21 |
+
<table>
|
22 |
+
<tr><td>
|
23 |
+
|
24 |
+
<img style="margin-top: 25px" src="<?php echo plugin_dir_url(__FILE__);?>includes/images/logo.png">
|
25 |
+
</td> <td> <a style="text-decoration:none" href="https://www.miniorange.com/social-login-social-sharing/" target="_blank"><h1 style="color: #c9302c">miniOrange Social Login</h1></a></td>
|
26 |
+
|
27 |
+
<td> <a style="margin-top: 23px" class="button"<?php echo $active_tab == 'pricing' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'pricing'), $_SERVER['REQUEST_URI'] ); ?>">Licensing Plans</a>
|
28 |
+
</td> <td> <a style="margin-top: 23px" class="button" <?php echo $active_tab == 'help' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'privacy_policy'), $_SERVER['REQUEST_URI'] ); ?>">Privacy Policy</a>
|
29 |
+
</td> <td> <a style="margin-top: 23px" class="button" <?php echo $active_tab == 'help' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'help'), $_SERVER['REQUEST_URI'] ); ?>">FAQ</a>
|
30 |
+
</td> </tr> </table>
|
31 |
+
|
32 |
+
</div>
|
33 |
<div id="tab">
|
34 |
<h2 class="nav-tab-wrapper">
|
|
|
|
|
|
|
35 |
<a class="nav-tab <?php echo $active_tab == 'login' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'login'), $_SERVER['REQUEST_URI'] ); ?>">Social Login</a>
|
36 |
<a class="nav-tab <?php echo $active_tab == 'custom_app' ? 'nav-tab-active' : ''; ?>" href="admin.php?page=mo_openid_settings&tab=custom_app">Custom App</a>
|
37 |
<a class="nav-tab <?php echo $active_tab == 'email_notif' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'email_notif'), $_SERVER['REQUEST_URI'] ); ?>">Email Notification</a>
|
38 |
+
<a class="nav-tab <?php echo $active_tab == 'integrations' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'integrations'), $_SERVER['REQUEST_URI'] ); ?>">Advanced Settings</a>
|
39 |
<a class="nav-tab <?php echo $active_tab == 'share' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'share'), $_SERVER['REQUEST_URI'] ); ?>">Social Sharing</a>
|
40 |
<a class="nav-tab <?php echo $active_tab == 'comment' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'comment'), $_SERVER['REQUEST_URI'] ); ?>">Social Comments</a>
|
41 |
<a class="nav-tab <?php echo $active_tab == 'shortcode' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'shortcode'), $_SERVER['REQUEST_URI'] ); ?>">Shortcode</a>
|
42 |
+
<?php if(!mo_openid_is_customer_registered()) { ?>
|
43 |
+
<a class="nav-tab <?php echo $active_tab == 'register' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'register'), $_SERVER['REQUEST_URI'] ); ?>">Account Setup</a>
|
44 |
+
<?php } ?>
|
45 |
+
</h2>
|
46 |
</div>
|
47 |
|
48 |
<script>
|
134 |
|
135 |
|
136 |
<div class="mo_openid_table_layout">
|
137 |
+
<h3>Register with miniOrange</h3>
|
|
|
|
|
|
|
|
|
|
|
|
|
138 |
|
139 |
<p>Please enter a valid email that you have access to. You will be able to move forward after verifying an OTP that we will be sending to this email. <b>OR</b> Login using your miniOrange credentials.
|
140 |
</p>
|
151 |
required placeholder="Enter website or company name"
|
152 |
value="<?php echo $_SERVER['SERVER_NAME']; ?>"/></td>
|
153 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
154 |
<tr>
|
155 |
<td><b><font color="#FF0000">*</font>Password:</b></td>
|
156 |
<td><input class="mo_openid_table_textbox" required type="password"
|
198 |
<form name="f" method="post" action="">
|
199 |
<input type="hidden" name="option" value="mo_openid_connect_verify_customer" />
|
200 |
<div class="mo_openid_table_layout">
|
201 |
+
<h3>Login with miniOrange</h3>
|
|
|
|
|
|
|
|
|
|
|
|
|
202 |
<p><b>It seems you already have an account with miniOrange. Please enter your miniOrange email and password. <a href="#forgot_password">Click here if you forgot your password?</a></b></p>
|
203 |
<table class="mo_openid_settings_table">
|
204 |
<tr>
|
246 |
}
|
247 |
|
248 |
function mo_openid_apps_config() {
|
249 |
+
|
250 |
?>
|
251 |
<td style="vertical-align:top;width:65%;">
|
252 |
<!-- Google configurations -->
|
256 |
|
257 |
<div class="mo_openid_table_layout">
|
258 |
|
259 |
+
|
|
|
|
|
|
|
|
|
260 |
|
261 |
<table>
|
262 |
<tr>
|
263 |
<td colspan="2">
|
264 |
<h3>Social Login
|
265 |
+
<input type="submit" name="submit" value="Save" style="float:right; margin-right:2%; margin-top: -3px;width:100px;" class="button button-primary button-large" />
|
|
|
266 |
</h3>
|
267 |
|
268 |
+
<b>Select applications to enable login for your users. Customize your login icons using a range of shapes, themes and sizes. You can choose different places to display these icons and also customize redirect URL after login.</b>
|
269 |
</td>
|
270 |
|
271 |
</tr>
|
285 |
<input type="checkbox" id="facebook_enable" class="app_enable tooltip" name="mo_openid_facebook_enable" value="1" onchange="previewLoginIcons();"
|
286 |
<?php checked( get_option('mo_openid_facebook_enable') == 1 );?> /><strong> Facebook <i class="fa fa-exclamation" aria-hidden="true"> </i> </strong>
|
287 |
|
288 |
+
<span class="tooltiptext" style="width: 235px;transition: visibility 0.5s; "> There is an issue with Facebook default app which is provided by us as a result of a change in Facebook Policies. Please configure <a class="mo-tomato" href='<?php echo admin_url() ?>admin.php?page=mo_openid_settings&tab=custom_app&action=add'>custom app</a> for Facebook. </span>
|
289 |
</div>
|
290 |
</td>
|
291 |
|
418 |
</span>
|
419 |
|
420 |
|
421 |
+
<span style="margin-left:228px" class="longbuttontheme">Curve:
|
422 |
<input style="width:50px" id="mo_login_icon_custom_boundary" onkeyup="moLoginBoundaryValidate(this)" name="mo_login_icon_custom_boundary" type="text" value=
|
423 |
"<?php echo get_option('mo_login_icon_custom_boundary')?>" />
|
424 |
+
<span style="margin-left:4px;">
|
425 |
|
426 |
<input id="mo_login_boundary_plus" type="button" value="+" onmouseup="moLoginPreview(document.getElementById('mo_login_icon_width').value,setLoginTheme(),setLoginCustomTheme(),document.getElementById('mo_login_icon_custom_color').value,document.getElementById('mo_login_icon_space').value,document.getElementById('mo_login_icon_height').value,document.getElementById('mo_login_icon_custom_boundary').value)" />
|
427 |
<input id="mo_login_boundary_minus" type="button" value="-" onmouseup="moLoginPreview(document.getElementById('mo_login_icon_width').value,setLoginTheme(),setLoginCustomTheme(),document.getElementById('mo_login_icon_custom_color').value,document.getElementById('mo_login_icon_space').value,document.getElementById('mo_login_icon_height').value,document.getElementById('mo_login_icon_custom_boundary').value)" />
|
521 |
<tr>
|
522 |
<td>
|
523 |
<b>Select color for customize text:</b>
|
524 |
+
<span style="margin-left:15px;">
|
525 |
<input id="mo_openid_table_textbox" style="width:135px;" name="mo_login_openid_login_widget_customize_textcolor" class="color" value="<?php echo get_option('mo_login_openid_login_widget_customize_textcolor')?>" > </td>
|
526 |
</span>
|
527 |
</td>
|
528 |
</tr>
|
529 |
|
530 |
<tr>
|
531 |
+
<td><b>Enter text to show above login widget:</b>
|
532 |
|
533 |
+
<input class="mo_openid_table_textbox" style="margin-left:12px;width:50%" type="text" name="mo_openid_login_widget_customize_text" value="<?php echo get_option('mo_openid_login_widget_customize_text'); ?>" /></td>
|
534 |
</tr>
|
535 |
<tr>
|
536 |
<td><b>Enter text to show on your login buttons (If you have</b>
|
537 |
<br/><b> selected shape 4 from 'Customize Login Icons' section):</b>
|
538 |
+
<input class="mo_openid_table_textbox" style="width:50%" type="text" name="mo_openid_login_button_customize_text"
|
539 |
value="<?php echo get_option('mo_openid_login_button_customize_text'); ?>" /></td>
|
540 |
</tr>
|
541 |
+
|
542 |
<?php if(get_option('mo_openid_oauth')!='1') {?>
|
543 |
<tr>
|
544 |
<td>
|
581 |
<?php checked( get_option('mo_openid_default_comment_enable') == 1 );?> />Comment Form</td>
|
582 |
</tr>
|
583 |
|
|
|
|
|
|
|
|
|
584 |
|
585 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
586 |
|
587 |
<tr><td>
|
588 |
<br>
|
589 |
+
<?php echo"NOTE: BuddyPress and Woocomerce display options are available in <a href=" . site_url() ."/wp-admin/admin.php?page=mo_openid_settings&tab=integrations>Advanced Settings</a>.";?>
|
590 |
<hr>
|
591 |
</td>
|
592 |
</tr>
|
620 |
<input type="radio" id="login_redirect_customurl" name="mo_openid_login_redirect" value="custom"
|
621 |
<?php checked( get_option('mo_openid_login_redirect') == 'custom' );?> />Custom URL
|
622 |
|
623 |
+
<input type="url" id="login_redirect_url" style="width:50%;margin-left: 12px;" name="mo_openid_login_redirect_url" value="<?php echo get_option('mo_openid_login_redirect_url')?>" />
|
624 |
</td>
|
625 |
</tr>
|
626 |
<tr>
|
627 |
<td>
|
628 |
+
<input type="radio" id="login_redirect_relativeurl" name="mo_openid_login_redirect" value="relative" <?php checked( get_option('mo_openid_login_redirect') == 'relative' );?> />Relative URL
|
629 |
+
<?php echo site_url();?>
|
|
|
630 |
<input type="text" id="login_redirect_url" style="width:50%" name="mo_openid_relative_login_redirect_url" value="<?php echo get_option('mo_openid_relative_login_redirect_url')?>" <?php if(!mo_openid_is_customer_registered()) echo 'disabled'?>/>
|
631 |
</td>
|
632 |
</tr>
|
661 |
<td>
|
662 |
<input type="radio" id="logout_redirect_customurl" name="mo_openid_logout_redirect" value="custom"
|
663 |
<?php checked( get_option('mo_openid_logout_redirect') == 'custom' );?> />Relative URL
|
664 |
+
|
665 |
<?php echo site_url();?>
|
666 |
<input type="text" id="logout_redirect_url" style="width:50%" name="mo_openid_logout_redirect_url" value="<?php echo get_option('mo_openid_logout_redirect_url')?>" />
|
667 |
</td>
|
710 |
</select>
|
711 |
</td>
|
712 |
</tr>
|
713 |
+
<?php if(!mo_openid_restrict_user()){ ?>
|
714 |
+
<tr>
|
715 |
+
<td>
|
716 |
+
<br>
|
717 |
+
<hr>
|
718 |
+
<h3>GDPR Settings</h3>
|
719 |
+
</td>
|
720 |
+
</tr>
|
721 |
+
|
722 |
+
<tr>
|
723 |
+
<td>
|
724 |
+
If GDPR check is enabled, users will be asked to give consent before using Social Login. Users who will not give consent will not be able to log in. This setting stands true only when users are registering using Social Login. This will not interfere with users registering through the regular WordPress. (Click <a target="_blank" href="<?php echo add_query_arg( array('tab' => 'privacy_policy'), $_SERVER['REQUEST_URI'] ); ?>"> here </a> to read miniOrange Social Login Privacy Policy. Please update your website's privacy policy accordingly and enter the URL to your privacy policy below.)
|
725 |
+
<br/><br/>
|
726 |
+
<input type="checkbox" name="mo_openid_gdpr_consent_enable" value="1"
|
727 |
+
<?php checked( get_option('mo_openid_gdpr_consent_enable') == 1 );?> /><b>Take consent from users</b>
|
728 |
+
<br/><br/>
|
729 |
+
<b>Enter the Consent message: </b><br>
|
730 |
+
<textarea style="width:80%" name="mo_openid_gdpr_consent_message"><?php echo get_option('mo_openid_gdpr_consent_message')?></textarea>
|
731 |
+
<br><br>
|
732 |
+
<b>Enter the text that redirects to Privacy Policy URL: </b><br>
|
733 |
+
<input type="text" style="width:90%" name="mo_openid_privacy_policy_text" value="<?php echo get_option('mo_openid_privacy_policy_text')?>" <?php if(!mo_openid_is_customer_registered()) echo 'disabled';?>/>
|
734 |
+
<br><br>
|
735 |
+
<b>Enter Privacy Policy URL: </b><br>
|
736 |
+
<input type="text" style="width:90%" name="mo_openid_privacy_policy_url" value="<?php echo get_option('mo_openid_privacy_policy_url')?>" <?php if(!mo_openid_is_customer_registered()) echo 'disabled';?> />
|
737 |
+
</td>
|
738 |
+
</tr>
|
739 |
+
<td>
|
740 |
<br>
|
741 |
+
<hr>
|
742 |
<h3>Account Linking</h3>
|
743 |
+
</td>
|
744 |
<tr>
|
745 |
<td>
|
746 |
Enable account linking to let your users link their Social accounts with existing WordPress account. Users will be prompted with the option to either link to any existing account using WordPress login page or register as a new user.<br><br>
|
747 |
<input type="checkbox" id="account_linking_enable" name="mo_openid_account_linking_enable" value="1"
|
748 |
+
<?php checked( get_option('mo_openid_account_linking_enable') == 1 );?> onclick="customize_account_linking()" /><b>Enable Account-Linking</b>
|
749 |
+
</td>
|
750 |
+
|
751 |
</tr>
|
752 |
+
|
753 |
+
<?php if(get_option('mo_openid_account_linking_enable')){?>
|
754 |
+
<tr id="account_link_customized_text"><td><h3 style="float: left">Customize Text for Account Linking</h3><a style="float: right;margin-right: 325px;margin-top: 20px" onclick="customize_account_linking_img()">View Dialogue Box</a></td></tr>
|
755 |
+
<tr id="acc_link_img"><td></td></tr>
|
756 |
+
<tr id="account_link_customized_text"><td><b>1. Enter title of Account linking form:</b><input class="mo_openid_table_textbox" style="width:50%;margin-left:135px;" type="text" name="mo_account_linking_title" value="<?php echo get_option('mo_account_linking_title'); ?>" /></td></tr>
|
757 |
+
<tr id="account_link_customized_text"><td><b>2. Enter button text for create new user:</b><input class="mo_openid_table_textbox" style="width:50%;margin-left: 115px" type="text" name="mo_account_linking_new_user_button" value="<?php echo get_option('mo_account_linking_new_user_button'); ?>"/></td></tr>
|
758 |
+
<tr id="account_link_customized_text">
|
759 |
+
<td>
|
760 |
+
<b>3. Enter button text for Link to existing user:</b><input class="mo_openid_table_textbox" style="width:50%;margin-left:89px" type="text" name="mo_account_linking_existing_user_button" value="<?php echo get_option('mo_account_linking_existing_user_button'); ?>"/></td></tr>
|
761 |
+
<tr id="account_link_customized_text"><td ><b>4. Enter instruction to Create New Account :</b> <input class="mo_openid_table_textbox" style="width:98%;margin-left: 0px" type="text" name="mo_account_linking_new_user_instruction" value="<?php echo get_option('mo_account_linking_new_user_instruction'); ?>"/>
|
762 |
+
</td>
|
763 |
+
</tr>
|
764 |
+
<tr id="account_link_customized_text">
|
765 |
+
<td>
|
766 |
+
<b>5. Enter instructions to link to an existing account :</b><input class="mo_openid_table_textbox" style="width:98%;margin-left: 0px" type="text" name="mo_account_linking_existing_user_instruction" value="<?php echo get_option('mo_account_linking_existing_user_instruction'); ?>"/></td></tr><tr id="account_link_customized_text"><td><b>5. Enter extra instructions for account linking :</b><input class="mo_openid_table_textbox" style="width:98%;margin-left: 0px;" type="text" name="mo_account_linking_extra_instruction" value="<?php echo get_option('mo_account_linking_extra_instruction'); ?>"/>
|
767 |
+
</td>
|
768 |
+
</tr>
|
769 |
+
<?php }?><?php ;} ?>
|
770 |
+
<tr id="acc_link"><td> </td></tr>
|
771 |
+
|
772 |
+
<tr>
|
773 |
+
<td>
|
774 |
+
<br>
|
775 |
+
<hr>
|
776 |
+
<h3>Profile Completion</h3>
|
777 |
+
|
778 |
+
<input type="checkbox" id="profile_completion_enable" name="mo_openid_enable_profile_completion" value="1" <?php checked( get_option('mo_openid_enable_profile_completion') == '1' );?> onclick="customize_profile_completion()"><b>Prompt users for username & email when unavailable (profile completion)</b>
|
779 |
+
<br>In case of unavailability of username or email from the social media application, user is prompted to input the same.
|
780 |
+
<p style="color:#000000;">
|
781 |
+
<b>*NOTE:</b><br> Disabling profile completion is not recommended. Instagram and Twitter don't return email address. Please keep this enabled if you are using Instagram or Twitter. This feature requires SMTP to be setup.</p>
|
782 |
+
|
783 |
+
|
784 |
+
</td>
|
785 |
+
</tr>
|
786 |
+
</tr>
|
787 |
+
|
788 |
+
<?php if(get_option('mo_openid_enable_profile_completion')){?>
|
789 |
+
<tr id="profile_completion_customized_text"><td><h3 style="float: left">Customize Text for Profile Completion</h3><a style="float: right;margin-right: 300px;margin-top: 20px" onclick="customize_profile_completion_img()">View Dialogue Box</a></td></tr>
|
790 |
+
<tr id="profile_completion_img"><td></td></tr>
|
791 |
+
<tr id="profile_completion_customized_text"><td><b>1. Enter title of Profle Completion:</b><input class="mo_openid_table_textbox" style="width:50%;margin-left: 150px" type="text" name="mo_profile_complete_title" value="<?php echo get_option('mo_profile_complete_title'); ?>" /></td></tr>
|
792 |
+
<tr id="profile_completion_customized_text"><td><b>2. Enter Username Label text:</b><input class="mo_openid_table_textbox" style="width:50%;margin-left: 177px" type="text" name="mo_profile_complete_username_label" value="<?php echo get_option('mo_profile_complete_username_label'); ?>"/></td></tr>
|
793 |
+
<tr id="profile_completion_customized_text"><td><b>3. Enter Email Label text:</b><input class="mo_openid_table_textbox" style="width:50%;margin-left: 205px" type="text" name="mo_profile_complete_email_label" value="<?php echo get_option('mo_profile_complete_email_label'); ?>"/></td></tr>
|
794 |
+
<tr id="profile_completion_customized_text"><td><b>4. Enter Submit button text:</b><input class="mo_openid_table_textbox" style="width:50%;margin-left: 184px" type="text" name="mo_profile_complete_submit_button" value="<?php echo get_option('mo_profile_complete_submit_button'); ?>"/></td></tr>
|
795 |
+
<tr id="profile_completion_customized_text"><td><b style="margin-top:20px">5. Enter instruction for Profile Completion :</b> <input class="mo_openid_table_textbox" style="width:98%;margin-left: 0px;margin-bottom:5px" type="text" name="mo_profile_complete_instruction" value="<?php echo get_option('mo_profile_complete_instruction'); ?>"/></td></tr>
|
796 |
+
<tr id="profile_completion_customized_text"><td><b>6. Enter extra instruction for Profile Completion :</b><input class="mo_openid_table_textbox" style="width:98%;margin-left: 0px" type="text" name="mo_profile_complete_extra_instruction" value="<?php echo get_option('mo_profile_complete_extra_instruction'); ?>"/></td></tr>
|
797 |
+
<tr id="profile_completion_customized_text"><td><b>Enter username already exists warning message text :</b><input class="mo_openid_table_textbox" style="width:98%;margin-left: 0px" type="text" name="mo_profile_complete_uname_exist" value="<?php echo get_option('mo_profile_complete_uname_exist'); ?>"/></td></tr>
|
798 |
+
<tr id="profile_completion_customized_text"><td><h3 style="float: left">Customize Text for Email Verification</h3><a style="float: right;margin-right: 300px;margin-top: 20px" onclick="customize_email_verify_img()">View Dialogue Box
|
799 |
+
</a></td></tr> <tr id="email_verify"><td></td></tr><tr id="profile_completion_customized_text"><td><b>1. Enter title of Email Verification form:</b><input class="mo_openid_table_textbox" style="width:50%;margin-left: 125px" type="text" name="mo_email_verify_title" value="<?php echo get_option('mo_email_verify_title'); ?>"/></td></tr><tr id="profile_completion_customized_text"><td><b>2. Enter Resend OTP button text:</b><input class="mo_openid_table_textbox" style="width:50%;margin-left: 160px" type="text" name="mo_email_verify_resend_otp_button" value="<?php echo get_option('mo_email_verify_resend_otp_button'); ?>"/></td></tr><tr id="profile_completion_customized_text"><td><b>3. Enter Back button text:</b><input class="mo_openid_table_textbox" style="width:50%;margin-left: 202px" type="text" name="mo_email_verify_back_button" value="<?php echo get_option('mo_email_verify_back_button'); ?>"/></td></tr><tr id="profile_completion_customized_text"><td><b>4. Enter instruction for Email Verification form:</b><input class="mo_openid_table_textbox" style="width:98%;margin-left: 0px" type="text" name="mo_email_verify_message" value="<?php echo get_option('mo_email_verify_message'); ?>"/></td></tr><tr id="profile_completion_customized_text"><td><b>5. Enter verification code in Email Verification form:</b><input class="mo_openid_table_textbox" style="width:98%;margin-left: 0px" type="text" name="mo_email_verify_verification_code_instruction" value="<?php echo get_option('mo_email_verify_verification_code_instruction'); ?>"/></td></tr>
|
800 |
+
<tr id="profile_completion_customized_text"><td><b> Enter Message for wrong OTP :</b><input class="mo_openid_table_textbox" style="width:98%;margin-left: 0px" type="text" name="mo_email_verify_wrong_otp" value="<?php echo get_option('mo_email_verify_wrong_otp'); ?>"/></td></tr>
|
801 |
+
<?php } ?>
|
802 |
+
<tr id="prof_completion"><td> </td></tr>
|
803 |
+
|
804 |
+
<tr>
|
805 |
+
<script>
|
806 |
+
|
807 |
+
var custom_link;
|
808 |
+
var custom_prof_completion;
|
809 |
+
var custom_link_img;
|
810 |
+
var custom_profile_img;
|
811 |
+
var custom_email_verify_img;
|
812 |
+
var checkbox1 = document.getElementById('account_linking_enable');
|
813 |
+
var checkbox2 = document.getElementById('profile_completion_enable');
|
814 |
+
function customize_account_linking(){
|
815 |
+
if (checkbox1.checked == true){
|
816 |
+
if(custom_link==1){
|
817 |
+
jQuery("<tr id=\"account_link_customized_text\"><td><h3 style=\"float: left\">Customize Text for Account Linking</h3><a style=\"float: right;margin-right: 302px;margin-top: 20px\" onclick=\"customize_account_linking_img()\">View Dialogue Box</a></td></tr><tr id=\"acc_link_img\"><td></td></tr><tr id=\"account_link_customized_text\"><td><b>1. Enter title of Account linking form:</b>\n"+
|
818 |
+
"\n"+"\t\t\t<input class=\"mo_openid_table_textbox\" style=\"width:50%;margin-left: 132px;margin-bottom:0px\" type=\"text\" name=\"mo_account_linking_title\" value=\"<?php echo get_option('mo_account_linking_title'); ?>\" /></td>\n"+"\t</tr><tr id=\"account_link_customized_text\"><td><b>2. Enter button text for create new user:</b><input class=\"mo_openid_table_textbox\" style=\"width:50%;margin-left: 115px;margin-bottom:0px\" type=\"text\" name=\"mo_account_linking_new_user_button\" value=\"<?php echo get_option('mo_account_linking_new_user_button'); ?>\"/></td></tr><tr id=\"account_link_customized_text\"><td><b>3. Enter button text for Link to existing user:</b><input class=\"mo_openid_table_textbox\" style=\"width:50%;margin-left: 89px;margin-bottom:0px\" type=\"text\" name=\"mo_account_linking_existing_user_button\" value=\"<?php echo get_option('mo_account_linking_existing_user_button'); ?>\"/></td></tr><tr id=\"account_link_customized_text\">\n"+"\t\t<td ><b style=\"margin-top:20px\">4. Enter instruction to Create New Account :</b> \n"+
|
819 |
+
" <input class=\"mo_openid_table_textbox\" style=\"width:98%;margin-left: 0px;margin-bottom:0px\" type=\"text\" name=\"mo_account_linking_new_user_instruction\" value=\"<?php echo get_option('mo_account_linking_new_user_instruction'); ?>\"/></td>\n"+
|
820 |
+
"\t</tr><tr id=\"account_link_customized_text\"><td><b>5. Enter instructions to link to an existing account :</b><input class=\"mo_openid_table_textbox\" style=\"width:98%;margin-left: 0px;margin-bottom:0px\" type=\"text\" name=\"mo_account_linking_existing_user_instruction\" value=\"<?php echo get_option('mo_account_linking_existing_user_instruction'); ?>\"/></td></tr><tr id=\"account_link_customized_text\"><td><b>5. Enter extra instructions for account linking :</b><input class=\"mo_openid_table_textbox\" style=\"width:98%;margin-left: 0px;margin-bottom:0px\" type=\"text\" name=\"mo_account_linking_extra_instruction\" value=\"<?php echo get_option('mo_account_linking_extra_instruction'); ?>\"/></td></tr>").insertBefore(jQuery("#acc_link"));
|
821 |
+
custom_link=2;
|
822 |
+
}
|
823 |
+
}
|
824 |
+
if(checkbox1.checked != true){
|
825 |
+
jQuery("tr[id*=account_link_customized_text]").remove();
|
826 |
+
jQuery("tr[id*=acc_link_img]").remove();
|
827 |
+
custom_link=1;
|
828 |
+
|
829 |
+
}
|
830 |
+
}
|
831 |
+
|
832 |
+
function customize_profile_completion(){
|
833 |
+
if (checkbox2.checked == true){
|
834 |
+
if(custom_prof_completion==1) {
|
835 |
+
jQuery("<tr id=\"profile_completion_customized_text\"><td><h3 style=\"float: left\">Customize Text for Profile Completion</h3><a style=\"float: right;margin-right: 300px;margin-top: 20px\" onclick=\"customize_profile_completion_img()\">View Dialogue Box</a></td></tr><tr id=\"profile_completion_img\"><td></td></tr><tr id=\"profile_completion_customized_text\"><td><b>1. Enter title of Profle Completion:</b>\n"+
|
836 |
+
"\n"+"\t\t\t<input class=\"mo_openid_table_textbox\" style=\"width:50%;margin-left: 145px;margin-bottom:5px\" type=\"text\" name=\"mo_profile_complete_title\" value=\"<?php echo get_option('mo_profile_complete_title'); ?>\" /></td>\n"+"\t</tr><tr id=\"profile_completion_customized_text\"><td><b>2. Enter Username Label text:</b><input class=\"mo_openid_table_textbox\" style=\"width:50%;margin-left: 175px;margin-bottom:5px\" type=\"text\" name=\"mo_profile_complete_username_label\" value=\"<?php echo get_option('mo_profile_complete_username_label'); ?>\"/></td></tr><tr id=\"profile_completion_customized_text\"><td><b>3. Enter Email Label text:</b><input class=\"mo_openid_table_textbox\" style=\"width:50%;margin-left: 202px;margin-bottom:5px\" type=\"text\" name=\"mo_profile_complete_email_label\" value=\"<?php echo get_option('mo_profile_complete_email_label'); ?>\"/></td></tr><tr id=\"profile_completion_customized_text\"><td><b>4. Enter Submit button text:</b><input class=\"mo_openid_table_textbox\" style=\"width:50%;margin-left: 182px;margin-bottom:5px\" type=\"text\" name=\"mo_profile_complete_submit_button\" value=\"<?php echo get_option('mo_profile_complete_submit_button'); ?>\"/></td></tr><tr id=\"profile_completion_customized_text\">\n"+"\t\t<td ><b style=\"margin-top:20px\">5. Enter instruction for Profile Completion :</b> \n"+
|
837 |
+
" <input class=\"mo_openid_table_textbox\" style=\"width:98%;margin-left: 0px;margin-bottom:5px\" type=\"text\" name=\"mo_profile_complete_instruction\" value=\"<?php echo get_option('mo_profile_complete_instruction'); ?>\"/></td>\n"+
|
838 |
+
"\t</tr><tr id=\"profile_completion_customized_text\"><td><b>6. Enter extra instruction for Profile Completion :</b><input class=\"mo_openid_table_textbox\" style=\"width:98%;margin-left: 0px;margin-bottom:5px\" type=\"text\" name=\"mo_profile_complete_extra_instruction\" value=\"<?php echo get_option('mo_profile_complete_extra_instruction'); ?>\"/></td></tr><tr id=\"profile_completion_customized_text\"><td><b>Enter username already exists warning message text :</b><input class=\"mo_openid_table_textbox\" style=\"width:98%;margin-left: 0px;margin-bottom:5px\" type=\"text\" name=\"mo_profile_complete_uname_exist\" value=\"<?php echo get_option('mo_profile_complete_uname_exist');?>\"/></td></tr><tr id=\"profile_completion_customized_text\"><td><h3 style=\"float: left\">Customize Text for Email Verification</h3><a style=\"float: right;margin-right: 300px;margin-top: 20px\" onclick=\"customize_email_verify_img();\">View Dialogue Box</a></td></tr><tr id=\"email_verify\"><td></td></tr><tr id=\"profile_completion_customized_text\"><td><b>1. Enter title of Email Verification form:</b><input class=\"mo_openid_table_textbox\" style=\"width:50%;margin-left: 125px\" type=\"text\" name=\"mo_email_verify_title\" value=\"<?php echo get_option('mo_email_verify_title'); ?>\"/></td></tr><tr id=\"profile_completion_customized_text\"><td><b>2. Enter Resend OTP button text:</b><input class=\"mo_openid_table_textbox\" style=\"width:50%;margin-left: 160px\" type=\"text\" name=\"mo_email_verify_resend_otp_button\" value=\"<?php echo get_option('mo_email_verify_resend_otp_button'); ?>\"/></td></tr><tr id=\"profile_completion_customized_text\"><td><b>3. Enter Back button text:</b><input class=\"mo_openid_table_textbox\" style=\"width:50%;margin-left: 201px\" type=\"text\" name=\"mo_email_verify_back_button\" value=\"<?php echo get_option('mo_email_verify_back_button'); ?>\"/></td></tr><tr id=\"profile_completion_customized_text\"><td><b>4. Enter instruction for Email Verification form:</b><input class=\"mo_openid_table_textbox\" style=\"width:98%;margin-left: 0px\" type=\"text\" name=\"mo_email_verify_message\" value=\"<?php echo get_option('mo_email_verify_message'); ?>\"/></td></tr><tr id=\"profile_completion_customized_text\"><td><b>5. Enter verification code in Email Verification form:</b><input class=\"mo_openid_table_textbox\" style=\"width:98%;margin-left: 0px\" type=\"text\" name=\"mo_email_verify_verification_code_instruction\" value=\"<?php echo get_option('mo_email_verify_verification_code_instruction'); ?>\"/></td></tr><tr id=\"profile_completion_customized_text\"><td><b> Enter Message for wrong OTP :</b><input class=\"mo_openid_table_textbox\" style=\"width:98%;margin-left: 0px\" type=\"text\" name=\"mo_email_verify_wrong_otp\" value=\"<?php echo get_option('mo_email_verify_wrong_otp'); ?>\"/></td></tr>").insertBefore(jQuery("#prof_completion"));
|
839 |
+
custom_prof_completion=2;
|
840 |
+
}
|
841 |
+
}
|
842 |
+
if(checkbox2.checked != true){
|
843 |
+
jQuery("tr[id*=profile_completion_customized_text]").remove();
|
844 |
+
jQuery("tr[id*=email_verify]").remove();
|
845 |
+
jQuery("tr[id*=profile_completion_img]").remove();
|
846 |
+
custom_prof_completion=1;
|
847 |
+
|
848 |
+
}
|
849 |
+
}
|
850 |
+
|
851 |
+
|
852 |
+
jQuery(document).ready(function(){
|
853 |
+
custom_link= 1;
|
854 |
+
custom_prof_completion=1;
|
855 |
+
custom_link_img=1;
|
856 |
+
custom_profile_img=1;
|
857 |
+
custom_email_verify_img=1;
|
858 |
+
}
|
859 |
+
);
|
860 |
+
|
861 |
+
function customize_account_linking_img(){
|
862 |
+
if(custom_link_img==1){
|
863 |
+
jQuery("<tr id=\"account_linking_img\"><td><img style=\"margin-top: 15px;margin-left: 15px;\" src=\"<?php echo plugin_dir_url(__FILE__);?>includes/images/account_linking.png\"></td></tr>").insertBefore(jQuery("#acc_link_img"));
|
864 |
+
custom_link_img=2;
|
865 |
+
}else{
|
866 |
+
jQuery("#account_linking_img").remove();
|
867 |
+
custom_link_img=1;
|
868 |
+
}
|
869 |
+
}
|
870 |
+
function customize_profile_completion_img(){
|
871 |
+
if(custom_profile_img==1){
|
872 |
+
jQuery("<tr id=\"profile_completion_img\"><td><img style=\"margin-top: 15px;margin-left: 85px;\" src=\"<?php echo plugin_dir_url(__FILE__);?>includes/images/profile_completion.png\" height=\"400\" width=\"550\"></td></tr>").insertBefore(jQuery("#profile_completion_img"));
|
873 |
+
custom_profile_img=2;
|
874 |
+
}else{
|
875 |
+
jQuery("#profile_completion_img").remove();
|
876 |
+
custom_profile_img=1;
|
877 |
+
}
|
878 |
+
}
|
879 |
+
function customize_email_verify_img(){
|
880 |
+
if(custom_email_verify_img==1){
|
881 |
+
jQuery("<tr id=\"email_verify_img\"><td><img style=\"margin-top: 15px;margin-left: 85px;\" src=\"<?php echo plugin_dir_url(__FILE__);?>includes/images/email_verify.png\" height=\"350\" width=\"550\"></td></tr>").insertBefore(jQuery("#email_verify"));
|
882 |
+
custom_email_verify_img=2;
|
883 |
+
}else{
|
884 |
+
jQuery("#email_verify_img").remove();
|
885 |
+
custom_email_verify_img=1;
|
886 |
+
}
|
887 |
+
}
|
888 |
+
|
889 |
+
|
890 |
+
|
891 |
+
|
892 |
+
</script>
|
893 |
+
|
894 |
+
|
895 |
+
|
896 |
+
|
897 |
+
|
898 |
<script>
|
899 |
var tempHorSize = '<?php echo get_option('mo_login_icon_custom_size') ?>';
|
900 |
var tempHorTheme = '<?php echo get_option('mo_openid_login_theme') ?>';
|
1221 |
</script>
|
1222 |
<tr>
|
1223 |
<td>
|
|
|
1224 |
<hr>
|
1225 |
<h3>Advanced Settings</h3>
|
1226 |
</td>
|
1239 |
[ <b>Notice:</b> SMTP should be configured. ]
|
1240 |
</td>
|
1241 |
</tr>
|
1242 |
+
|
1243 |
<tr >
|
1244 |
<td>
|
1245 |
<div ><br>
|
1247 |
</div>
|
1248 |
</td>
|
1249 |
</tr>
|
1250 |
+
|
|
|
|
|
|
|
1251 |
|
|
|
|
|
|
|
|
|
1252 |
|
1253 |
|
|
|
|
|
|
|
|
|
1254 |
|
1255 |
<?php if(mo_openid_is_customer_valid() && !mo_openid_get_customer_plan('Do It Yourself')) { ?>
|
1256 |
<tr><td> </td></tr>
|
1261 |
<?php } else {
|
1262 |
if(get_option('moopenid_user_attributes')) update_option('moopenid_user_attributes', 0);
|
1263 |
} ?>
|
1264 |
+
<tr>
|
1265 |
+
<td><br /><input type="submit" name="submit" value="Save" style="width:100px;" class="button button-primary button-large" />
|
1266 |
+
</td>
|
1267 |
+
</tr> <?php if(mo_openid_restrict_user()){ ?>
|
1268 |
+
<tr>
|
1269 |
+
<td>
|
1270 |
+
<br>
|
1271 |
+
<hr><br>
|
1272 |
+
<div style="margin-left: 55px; max-width: 600px;background:#f0f8f5 no-repeat 20px 40px;border-radius: 5px;border: 2px solid #FA9444;">
|
1273 |
+
|
1274 |
+
<h3><table>
|
1275 |
+
<tr><td><img src="<?php echo plugin_dir_url(__FILE__);?>includes/images/lock1.png"></td>
|
1276 |
+
<td> Get Standard or Premium plugin to unlock following features</h3> <br> <a style="margin-top: 25px;margin-left: 140px" class="button button-primary button-large" href="https://plugins.miniorange.com/knowledgebase/social-login-social-sharing/" target="_blank">Upgrade Now</a></td>
|
1277 |
+
</tr>
|
1278 |
+
</table>
|
1279 |
+
</div>
|
1280 |
+
</td></tr>
|
1281 |
+
<tr>
|
1282 |
+
<td>
|
1283 |
+
<br>
|
1284 |
+
|
1285 |
+
<h3><span style="color:red;">* </span>Account Linking</h3>
|
1286 |
+
</td>
|
1287 |
+
</tr>
|
1288 |
+
<tr>
|
1289 |
+
<td>
|
1290 |
+
Enable account linking to let your users link their Social accounts with existing WordPress account. Users will be prompted with the option to either link to any existing account using WordPress login page or register as a new user.<br><br>
|
1291 |
+
<input type="checkbox" disabled="disabled" /><b>Enable Account-Linking</b>
|
1292 |
+
</td>
|
1293 |
+
</tr>
|
1294 |
+
<tr>
|
1295 |
+
<td>
|
1296 |
+
<br>
|
1297 |
+
<hr>
|
1298 |
+
<h3><span style="color:red;">* </span>GDPR Settings</h3>
|
1299 |
+
</td>
|
1300 |
+
</tr>
|
1301 |
+
<tr>
|
1302 |
+
<td>
|
1303 |
+
If GDPR check is enabled, users will be asked to give consent before using Social Login. Users who will not give consent will not be able to log in. This setting stands true only when users are registering using Social Login. This will not interfere with users registering through the regular WordPress. (Click <a target="_blank" href="<?php echo add_query_arg( array('tab' => 'privacy_policy'), $_SERVER['REQUEST_URI'] ); ?>"> here </a> to read miniOrange Social Login Privacy Policy. Please update your website's privacy policy accordingly and enter the URL to your privacy policy below.)
|
1304 |
+
<br/><br/>
|
1305 |
+
<input type="checkbox" disabled="disabled" /><b>Take consent from users</b>
|
1306 |
+
<br/><br/>
|
1307 |
+
<b>Enter the Consent message: </b><br>
|
1308 |
+
<textarea style="width:80%" disabled="disabled"><?php echo get_option('mo_openid_gdpr_consent_message')?></textarea>
|
1309 |
+
<br><br>
|
1310 |
+
<b>Enter the text that redirects to Privacy Policy URL: </b><br>
|
1311 |
+
<input type="text" style="width:90%" disabled="disabled"/>
|
1312 |
+
<br><br>
|
1313 |
+
<b>Enter Privacy Policy URL: </b><br>
|
1314 |
+
<input type="text" style="width:90%" disabled="disabled" />
|
1315 |
+
</td>
|
1316 |
+
</tr> <?php ;} ?>
|
1317 |
</table>
|
1318 |
<table class="mo_openid_display_table">
|
1319 |
+
|
|
|
|
|
|
|
1320 |
<tr>
|
1321 |
<td colspan="2">
|
1322 |
<hr>
|
1376 |
|
1377 |
.tableborder tr:nth-child(even){background-color: #f2f2f2}
|
1378 |
</style>
|
1379 |
+
<!--<?php if(!mo_openid_is_customer_registered()) { ?>
|
1380 |
<div style="display:block;margin-top:10px;color:red;background-color:rgba(251, 232, 0, 0.15);padding:5px;border:solid 1px rgba(255, 0, 9, 0.36);">
|
1381 |
Please <a href="<?php echo add_query_arg( array('tab' => 'register'), $_SERVER['REQUEST_URI'] ); ?>">Register or Login with miniOrange</a> to enable Social Login and Social Sharing.
|
1382 |
</div>
|
1383 |
+
<?php }?>-->
|
1384 |
|
1385 |
<div style="display:block;">
|
1386 |
+
<b><span style="display:block;margin-top:10px;background-color:aliceblue;padding:5px;border:solid 1px deepskyblue;">*NOTE: These features are available in the <a target="_blank" href="<?php echo add_query_arg( array('tab' => 'pricing'), $_SERVER['REQUEST_URI'] ); ?>">premium</a> version of the plugin.</span>
|
1387 |
</b>
|
1388 |
</div>
|
1389 |
|
1390 |
+
|
1391 |
+
|
1392 |
+
<h3><span style='color:red;'>*</span>BuddyPress</h3>
|
1393 |
+
|
1394 |
+
<form name="mo_openid_mailchimp_form" method="post" id="mo_openid_mailchimp_form">
|
1395 |
+
<input type="hidden" name="option" value="mo_openid_save_buddypress_field"/>
|
1396 |
+
<table>
|
1397 |
+
<tr><td>
|
1398 |
+
<b>BuddyPress display options</b>
|
1399 |
+
<input style="margin-left: 400px;" type="submit" value="Save " <?php if(!mo_openid_is_customer_registered()) echo 'disabled';if(mo_openid_restrict_user()) echo "disabled=\"disabled\"";?> class="button button-primary button-large" />
|
1400 |
+
</td></tr>
|
1401 |
+
<tr>
|
1402 |
+
<td class="mo_openid_table_td_checkbox">
|
1403 |
+
<input type="checkbox" id="bp_before_register_page" name="mo_openid_bp_before_register_page" value="1"
|
1404 |
+
<?php checked( get_option('mo_openid_bp_before_register_page') == 1 ); if(mo_openid_restrict_user()) echo "disabled=\"disabled\"";?> />Before BuddyPress Registration Form</td>
|
1405 |
+
</tr>
|
1406 |
+
<tr>
|
1407 |
+
<td class="mo_openid_table_td_checkbox">
|
1408 |
+
<input type="checkbox" id="bp_before_account_details_fields" name="mo_openid_bp_before_account_details_fields" value="1"
|
1409 |
+
<?php checked( get_option('mo_openid_bp_before_account_details_fields') == 1 );if(mo_openid_restrict_user()) echo "disabled=\"disabled\"";?> />Before BuddyPress Account Details</td>
|
1410 |
+
</tr>
|
1411 |
+
<tr>
|
1412 |
+
<td class="mo_openid_table_td_checkbox">
|
1413 |
+
<input type="checkbox" id="bp_after_register_page" name="mo_openid_bp_after_register_page" value="1"
|
1414 |
+
<?php checked( get_option('mo_openid_bp_after_register_page') == 1 );if(mo_openid_restrict_user()) echo "disabled=\"disabled\"";?> />After BuddyPress Registration Form</td>
|
1415 |
+
</tr></table>
|
1416 |
+
</form>
|
1417 |
+
<h3>BuddyPress Integration</h3>
|
1418 |
+
<h4>BuddyPress Extended Attributes Mapping</h4>
|
1419 |
<?php
|
1420 |
echo "<div style='text-align: center'><p>You have not setup attribute mapping for any apps yet. Please click on <b>Add Application</b> to configure mapping for each app.</p>";
|
1421 |
echo "</div>";
|
1449 |
<input type="hidden" name="option" value="mo_openid_save_woocommerce_field"/>
|
1450 |
<br>
|
1451 |
<hr>
|
1452 |
+
<h3><span style="color:red;">*</span>Woocommerce</h3>
|
1453 |
+
|
1454 |
+
<table><td>
|
1455 |
+
<b>Woocommerce display options</b>
|
1456 |
+
</td>
|
1457 |
+
|
1458 |
+
|
1459 |
+
<tr>
|
1460 |
+
<td class="mo_openid_table_td_checkbox">
|
1461 |
+
<input type="checkbox" id="woocommerce_before_login_form" name="mo_openid_woocommerce_before_login_form" value="1"
|
1462 |
+
<?php checked( get_option('mo_openid_woocommerce_before_login_form') == 1 ); if(mo_openid_restrict_user()) echo "disabled=\"disabled\"";?> />Before WooCommerce Login Form</td>
|
1463 |
+
</tr>
|
1464 |
+
<tr>
|
1465 |
+
<td class="mo_openid_table_td_checkbox">
|
1466 |
+
<input type="checkbox" id="woocommerce_center_login_form" name="mo_openid_woocommerce_center_login_form" value="1"
|
1467 |
+
<?php checked( get_option('mo_openid_woocommerce_center_login_form') == 1 );if(mo_openid_restrict_user()) echo "disabled=\"disabled\"";?> />Before 'Remember Me' of WooCommerce Login Form</td>
|
1468 |
+
</tr>
|
1469 |
+
<tr>
|
1470 |
+
<td class="mo_openid_table_td_checkbox">
|
1471 |
+
<input type="checkbox" id="woocommerce_login_form" name="mo_openid_woocommerce_login_form" value="1"
|
1472 |
+
<?php checked( get_option('mo_openid_woocommerce_login_form') == 1 );if(mo_openid_restrict_user()) echo "disabled=\"disabled\"";?> />After WooCommerce Login Form</td>
|
1473 |
+
</tr>
|
1474 |
+
<tr>
|
1475 |
+
<td class="mo_openid_table_td_checkbox">
|
1476 |
+
<input type="checkbox" id="woocommerce_register_form_start" name="mo_openid_woocommerce_register_form_start" value="1"
|
1477 |
+
<?php checked( get_option('mo_openid_woocommerce_register_form_start') == 1 );if(mo_openid_restrict_user()) echo "disabled=\"disabled\"";?> />Before WooCommerce Registration Form</td>
|
1478 |
+
</tr>
|
1479 |
+
<tr>
|
1480 |
+
<td class="mo_openid_table_td_checkbox">
|
1481 |
+
<input type="checkbox" id="woocommerce_center_register_form" name="mo_openid_woocommerce_center_register_form" value="1"
|
1482 |
+
<?php checked( get_option('mo_openid_woocommerce_center_register_form') == 1 );if(mo_openid_restrict_user()) echo "disabled=\"disabled\"";?> />Before 'Register button' of WooCommerce Registration Form</td>
|
1483 |
+
</tr>
|
1484 |
+
|
1485 |
+
<tr>
|
1486 |
+
<td class="mo_openid_table_td_checkbox">
|
1487 |
+
<input type="checkbox" id="woocommerce_register_form_end" name="mo_openid_woocommerce_register_form_end" value="1"
|
1488 |
+
<?php checked( get_option('mo_openid_woocommerce_register_form_end') == 1 );if(mo_openid_restrict_user()) echo "disabled=\"disabled\"";?> />After WooCommerce Registration Form</td>
|
1489 |
+
</tr>
|
1490 |
+
<tr>
|
1491 |
+
<td class="mo_openid_table_td_checkbox">
|
1492 |
+
<input type="checkbox" id="woocommerce_before_checkout_billing_form" name="mo_openid_woocommerce_before_checkout_billing_form" value="1"
|
1493 |
+
<?php checked( get_option('mo_openid_woocommerce_before_checkout_billing_form') == 1 );if(mo_openid_restrict_user()) echo "disabled=\"disabled\"";?> />Before WooCommerce Checkout Form</td>
|
1494 |
+
</tr>
|
1495 |
+
<tr>
|
1496 |
+
<td class="mo_openid_table_td_checkbox">
|
1497 |
+
<input type="checkbox" id="woocommerce_after_checkout_billing_form" name="mo_openid_woocommerce_after_checkout_billing_form" value="1"
|
1498 |
+
<?php checked( get_option('mo_openid_woocommerce_after_checkout_billing_form') == 1 );if(mo_openid_restrict_user()) echo "disabled=\"disabled\"";?> />After WooCommerce Checkout Form</td>
|
1499 |
+
</tr>
|
1500 |
+
|
1501 |
+
</table>
|
1502 |
+
|
1503 |
+
<h3>Woocommerce Integration</h3>
|
1504 |
<p><b>If enabled, first name, last name and email are pre-filled in billing details of a user and on the Woocommerce checkout page.</b></p>
|
1505 |
<input disabled type="checkbox" name="mo_openid_save_woocommerce_field" value="1" <?php if(!mo_openid_is_customer_registered()) echo 'disabled'?> <?php checked( get_option('mo_openid_enable_woocommerce_sync') == 1 );?> /><strong>Sync Woocommerce checkout fields</strong>
|
1506 |
<br><br>
|
1507 |
+
<input type="submit" value="Save " <?php if(!mo_openid_is_customer_registered()) echo 'disabled';if(mo_openid_restrict_user()) echo "disabled=\"disabled\"";?> class="button button-primary button-large" />
|
1508 |
<br>
|
1509 |
</form><br><br>
|
1510 |
|
1526 |
<input type="hidden" name="option" value="mo_openid_mail_configuration" />
|
1527 |
<div class="mo_openid_table_layout">
|
1528 |
|
1529 |
+
<!--<?php if(!mo_openid_is_customer_registered()) { ?>
|
1530 |
<div style="display:block;margin-top:10px;color:red;background-color:rgba(251, 232, 0, 0.15);padding:5px;border:solid 1px rgba(255, 0, 9, 0.36);">
|
1531 |
Please <a href="<?php echo add_query_arg( array('tab' => 'register'), $_SERVER['REQUEST_URI'] ); ?>">Login with miniOrange</a> to enable Social Login and Social Sharing.
|
1532 |
</div>
|
1533 |
+
<?php } ?>-->
|
1534 |
|
1535 |
<div style="display:block;">
|
1536 |
+
<b><span style="display:block;margin-top:10px;background-color:aliceblue;padding:5px;border:solid 1px deepskyblue;">*NOTE: These features are available in the <a target="_blank" href="<?php echo add_query_arg( array('tab' => 'pricing'), $_SERVER['REQUEST_URI'] ); ?>">standard and premium</a> version of the plugin.</span>
|
1537 |
</b>
|
1538 |
</div>
|
1539 |
|
1642 |
|
1643 |
</table>
|
1644 |
|
1645 |
+
<br><b>*NOTE: These features require SMTP to be setup.</b>
|
1646 |
|
1647 |
</div>
|
1648 |
</form>
|
1666 |
<input type="hidden" name="option" value="mo_openid_save_comment_settings" />
|
1667 |
<div class="mo_openid_table_layout">
|
1668 |
|
|
|
|
|
|
|
|
|
|
|
|
|
1669 |
<table class="mo_openid_display_table">
|
1670 |
<tr>
|
1671 |
<td colspan="2">
|
1672 |
<h3>Social Comments
|
1673 |
<input type="submit" name="submit" value="Save" style="width:100px;float:right;margin-right:2%"
|
1674 |
+
class="button button-primary button-large" />
|
1675 |
</h3>
|
1676 |
<b>Select applications to add Social Comments. These commenting applications will be added to your blog post pages at the location of your comments.</b>
|
1677 |
</td>
|
1688 |
</tr>
|
1689 |
<tr><td> </td></tr>
|
1690 |
</tr>
|
1691 |
+
<td><input type="checkbox" id="mo_openid_social_comment_default" name="mo_openid_social_comment_default" value="1" <?php checked( get_option('mo_openid_social_comment_default') == 1 );?> /><b>Default WordPress Comments</b>
|
1692 |
</td>
|
1693 |
</tr>
|
1694 |
<tr>
|
1695 |
+
<td><input type="checkbox" id="mo_openid_social_comment_fb" name="mo_openid_social_comment_fb" value="1" <?php checked( get_option('mo_openid_social_comment_fb') == 1 );?> /><b>Facebook Comments</b>
|
1696 |
</td>
|
1697 |
</tr>
|
1698 |
<tr>
|
1699 |
+
<td><input type="checkbox" id="mo_openid_social_comment_google" name="mo_openid_social_comment_google" value="1" <?php checked( get_option('mo_openid_social_comment_google') == 1 );?> /><b>Google+ Comments</b>
|
1700 |
</td>
|
1701 |
<tr>
|
1702 |
</table>
|
1711 |
</tr>
|
1712 |
<tr><td> </td></tr>
|
1713 |
<tr>
|
1714 |
+
<td><input type="checkbox" id="mo_openid_social_comment_blogpost" name="mo_openid_social_comment_blogpost" value="1" <?php checked( get_option('mo_openid_social_comment_blogpost') == 1 );?> /><b>Blog Post</b>
|
1715 |
</td>
|
1716 |
</tr>
|
1717 |
<tr>
|
1718 |
+
<td><input type="checkbox" id="mo_openid_social_comment_static" name="mo_openid_social_comment_static" value="1" <?php checked( get_option('mo_openid_social_comment_static') == 1 );?> /><b>Static Pages</b>
|
1719 |
</td>
|
1720 |
<tr>
|
1721 |
</table>
|
1729 |
</tr>
|
1730 |
<tr>
|
1731 |
<td><b>Comment Section Heading:</b></td>
|
1732 |
+
<td><input class="mo_openid_table_textbox" type="text" name="mo_openid_social_comment_heading_label" value="<?php echo get_option('mo_openid_social_comment_heading_label'); ?>" /></td>
|
1733 |
</tr>
|
1734 |
<tr>
|
1735 |
<td><b>Comments - Default Label:</b></td>
|
1736 |
+
<td><input class="mo_openid_table_textbox" type="text" name="mo_openid_social_comment_default_label" value="<?php echo get_option('mo_openid_social_comment_default_label'); ?>" /></td>
|
1737 |
</tr>
|
1738 |
<tr>
|
1739 |
<td><b>Comments - Facebook Label:</b></td>
|
1740 |
+
<td><input class="mo_openid_table_textbox" type="text" name="mo_openid_social_comment_fb_label" value="<?php echo get_option('mo_openid_social_comment_fb_label'); ?>" /></td>
|
1741 |
</tr>
|
1742 |
<tr>
|
1743 |
<td><b>Comments - Google Label:</b></td>
|
1744 |
+
<td><input class="mo_openid_table_textbox" type="text" name="mo_openid_social_comment_google_label" value="<?php echo get_option('mo_openid_social_comment_google_label'); ?>" /></td>
|
1745 |
</tr>
|
1746 |
|
1747 |
<tr>
|
1748 |
+
<td><br /><input type="submit" name="submit" value="Save" style="width:100px;" class="button button-primary button-large" />
|
1749 |
</td>
|
1750 |
</tr>
|
1751 |
<tr>
|
1856 |
<form name="f" method="post" id="settings_form" action="">
|
1857 |
<input type="hidden" name="option" value="mo_openid_save_other_settings" />
|
1858 |
<div class="mo_openid_table_layout">
|
1859 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
1860 |
<table>
|
1861 |
<tr>
|
1862 |
<td colspan="2">
|
1863 |
<h3>Social Sharing
|
1864 |
<input type="submit" name="submit" value="Save" style="width:100px;float:right;margin-right:2%"
|
1865 |
+
class="button button-primary button-large" />
|
1866 |
</h3>
|
1867 |
<b>Select applications to add share icons. Customize sharing icons by using a range of shapes, themes and sizes to suit to your website. You can also choose different places to display these icons. Additionally, place vertical floating icons on your pages.</b>
|
1868 |
</td>
|
1879 |
<tr>
|
1880 |
<td style="width:20%">
|
1881 |
<input type="checkbox" id="facebook_share_enable" class="app_enable" name="mo_openid_facebook_share_enable" value="1"
|
1882 |
+
onclick="addSelectedApps();" <?php checked( get_option('mo_openid_facebook_share_enable') == 1 );?> />
|
1883 |
<strong>Facebook</strong>
|
1884 |
</td>
|
1885 |
<td style="width:20%">
|
1886 |
+
<input type="checkbox"
|
1887 |
id="twitter_share_enable" class="app_enable" name="mo_openid_twitter_share_enable" value="1" onclick="addSelectedApps();"
|
1888 |
<?php checked( get_option('mo_openid_twitter_share_enable') == 1 );?> />
|
1889 |
<strong>Twitter </strong>
|
1890 |
</td>
|
1891 |
<td style="width:20%">
|
1892 |
<input type="checkbox" id="google_share_enable" class="app_enable" name="mo_openid_google_share_enable" value="1" onclick="addSelectedApps();"
|
1893 |
+
<?php checked( get_option('mo_openid_google_share_enable') == 1 );?> />
|
1894 |
<strong>Google</strong>
|
1895 |
</td>
|
1896 |
|
1897 |
<td style="width:20%">
|
1898 |
+
<input type="checkbox" id="vkontakte_share_enable" class="app_enable" name="mo_openid_vkontakte_share_enable" value="1"
|
1899 |
+
onclick="addSelectedApps();" <?php checked( get_option('mo_openid_vkontakte_share_enable') == 1 );?> />
|
1900 |
+
<strong>Vkontakte</strong>
|
1901 |
</td>
|
1902 |
<td style="width:20%">
|
1903 |
+
<input type="checkbox"
|
1904 |
id="tumblr_share_enable" class="app_enable" name="mo_openid_tumblr_share_enable" value="1" onclick="addSelectedApps();"
|
1905 |
<?php checked( get_option('mo_openid_tumblr_share_enable') == 1 );?> />
|
1906 |
<strong>Tumblr </strong>
|
1908 |
</tr>
|
1909 |
<tr>
|
1910 |
<td style="width:20%">
|
1911 |
+
<input type="checkbox" id="stumble_share_enable" class="app_enable" name="mo_openid_stumble_share_enable" value="1" onclick="addSelectedApps();" <?php checked( get_option('mo_openid_stumble_share_enable') == 1 );?> />
|
1912 |
<strong>StumbleUpon</strong>
|
1913 |
</td>
|
1914 |
<td style="width:20%">
|
1915 |
+
<input type="checkbox" id="linkedin_share_enable" class="app_enable" name="mo_openid_linkedin_share_enable" value="1" onclick="addSelectedApps();"
|
1916 |
<?php checked( get_option('mo_openid_linkedin_share_enable') == 1 );?> />
|
1917 |
<strong>LinkedIn</strong>
|
1918 |
</td>
|
1919 |
<td style="width:20%">
|
1920 |
+
<input type="checkbox"
|
1921 |
id="reddit_share_enable" class="app_enable" name="mo_openid_reddit_share_enable" value="1" onclick="addSelectedApps();"
|
1922 |
<?php checked( get_option('mo_openid_reddit_share_enable') == 1 );?> />
|
1923 |
<strong>Reddit </strong>
|
1924 |
</td>
|
1925 |
<td style="width:20%">
|
1926 |
<input type="checkbox" id="pinterest_share_enable" class="app_enable" name="mo_openid_pinterest_share_enable" value="1" onclick="addSelectedApps();"
|
1927 |
+
|
1928 |
<?php checked( get_option('mo_openid_pinterest_share_enable') == 1 );?> />
|
1929 |
<strong>Pinterest </strong>
|
1930 |
</td>
|
1931 |
<td style="width:20%">
|
1932 |
+
<input type="checkbox" id="pocket_share_enable" class="app_enable" name="mo_openid_pocket_share_enable" value="1" onclick="addSelectedApps();" <?php checked( get_option('mo_openid_pocket_share_enable') == 1 );?> />
|
1933 |
<strong>Pocket</strong>
|
1934 |
</td>
|
1935 |
</tr>
|
1936 |
<tr>
|
1937 |
<td style="width:20%">
|
1938 |
<input type="checkbox" id="digg_share_enable" class="app_enable" name="mo_openid_digg_share_enable" value="1"
|
1939 |
+
onclick="addSelectedApps();" <?php checked( get_option('mo_openid_digg_share_enable') == 1 );?> />
|
1940 |
<strong>Digg</strong>
|
1941 |
</td>
|
1942 |
<td style="width:20%">
|
1943 |
<input type="checkbox" id="delicious_share_enable" class="app_enable" name="mo_openid_delicious_share_enable" value="1"
|
1944 |
+
onclick="addSelectedApps();" <?php checked( get_option('mo_openid_delicious_share_enable') == 1 );?> />
|
1945 |
<strong>Delicious</strong></td>
|
1946 |
<td style="width:20%">
|
1947 |
<input type="checkbox" id="odnoklassniki_share_enable" class="app_enable" name="mo_openid_odnoklassniki_share_enable" value="1"
|
1948 |
+
onclick="addSelectedApps();" <?php checked( get_option('mo_openid_odnoklassniki_share_enable') == 1 );?> />
|
1949 |
<strong>Odnoklassniki</strong>
|
1950 |
</td>
|
1951 |
<td style="width:20%">
|
1952 |
<input type="checkbox" id="mail_share_enable" class="app_enable" name="mo_openid_mail_share_enable" value="1"
|
1953 |
+
onclick="addSelectedApps();moSharingPreview();" <?php checked( get_option('mo_openid_mail_share_enable') == 1 );?> />
|
1954 |
<strong>Email</strong>
|
1955 |
</td>
|
1956 |
<td style="width:20%">
|
1957 |
<input type="checkbox" id="print_share_enable" class="app_enable" name="mo_openid_print_share_enable" value="1"
|
1958 |
+
onclick="addSelectedApps();moSharingPreview();" <?php checked( get_option('mo_openid_print_share_enable') == 1 );?> />
|
1959 |
<strong>Print</strong>
|
1960 |
</td>
|
1961 |
</tr>
|
1962 |
<tr>
|
1963 |
<td style="width:20%">
|
1964 |
<input type="checkbox" id="whatsapp_share_enable" class="app_enable" name="mo_openid_whatsapp_share_enable" value="1"
|
1965 |
+
onclick="addSelectedApps();moSharingPreview();" <?php checked( get_option('mo_openid_whatsapp_share_enable') == 1 );?> />
|
1966 |
<strong>Whatsapp</strong>
|
1967 |
</td>
|
1968 |
</tr>
|
1994 |
<tr>
|
1995 |
<td style="width:inherit;"> <!-- Shape radio buttons -->
|
1996 |
<!-- Round -->
|
1997 |
+
<input type="radio" id="mo_openid_share_theme_circle" name="mo_openid_share_theme" value="circle" onclick="tempHorShape = 'circle';moSharingPreview('horizontal', document.getElementById('mo_sharing_icon_size').value, 'circle', setCustomTheme(), document.getElementById('mo_sharing_icon_custom_color').value, document.getElementById('mo_sharing_icon_space').value, document.getElementById('mo_sharing_icon_custom_font').value)" <?php checked( get_option('mo_openid_share_theme') == 'circle' );?> />Round
|
1998 |
|
1999 |
</td>
|
2000 |
<td><!-- Theme radio buttons -->
|
2001 |
<!-- Default -->
|
2002 |
<input type="radio" id="mo_openid_default_background_radio" name="mo_openid_share_custom_theme" value="default" onclick="tempHorTheme = 'default';moSharingPreview('horizontal', document.getElementById('mo_sharing_icon_size').value, setTheme(), 'default', document.getElementById('mo_sharing_icon_custom_color').value, document.getElementById('mo_sharing_icon_space').value, document.getElementById('mo_sharing_icon_custom_font').value)"
|
2003 |
+
<?php checked( get_option('mo_openid_share_custom_theme') == 'default' );?> />Default
|
2004 |
</td>
|
2005 |
<td> <!-- Size between icons buttons-->
|
2006 |
+
<input style="width:50px" onkeyup="moSharingSpaceValidate(this)" id="mo_sharing_icon_space" name="mo_sharing_icon_space" type="text" value="<?php echo get_option('mo_sharing_icon_space')?>" />
|
2007 |
+
<input id="mo_sharing_space_plus" type="button" value="+" onmouseup="moSharingPreview('horizontal',document.getElementById('mo_sharing_icon_size').value ,setTheme(),setCustomTheme(),document.getElementById('mo_sharing_icon_custom_color').value,document.getElementById('mo_sharing_icon_space').value)"/>
|
2008 |
+
<input id="mo_sharing_space_minus" type="button" value="-" onmouseup="moSharingPreview('horizontal',document.getElementById('mo_sharing_icon_size').value ,setTheme(),setCustomTheme(),document.getElementById('mo_sharing_icon_custom_color').value,document.getElementById('mo_sharing_icon_space').value)" />
|
2009 |
</td>
|
2010 |
<td> <!-- Size buttons-->
|
2011 |
+
<input style="width:50px" id="mo_sharing_icon_size" onkeyup="moSharingSizeValidate(this)" name="mo_sharing_icon_custom_size" type="text" value="<?php echo get_option('mo_sharing_icon_custom_size')?>" >
|
2012 |
|
2013 |
+
<input id="mo_sharing_size_plus" type="button" value="+" onmouseup="tempHorSize = document.getElementById('mo_sharing_icon_size').value;moSharingPreview('horizontal',document.getElementById('mo_sharing_icon_size').value , setTheme(), setCustomTheme(), document.getElementById('mo_sharing_icon_custom_color').value, document.getElementById('mo_sharing_icon_space').value,document.getElementById('mo_sharing_icon_custom_font').value)" >
|
2014 |
|
2015 |
+
<input id="mo_sharing_size_minus" type="button" value="-" onmouseup="tempHorSize = document.getElementById('mo_sharing_icon_size').value;moSharingPreview('horizontal',document.getElementById('mo_sharing_icon_size').value ,setTheme(), setCustomTheme(), document.getElementById('mo_sharing_icon_custom_color').value, document.getElementById('mo_sharing_icon_space').value, document.getElementById('mo_sharing_icon_custom_font').value)" >
|
2016 |
</td>
|
2017 |
</tr>
|
2018 |
<tr>
|
2019 |
<td> <!-- Shape radio buttons -->
|
2020 |
<!-- Rounded Edges -->
|
2021 |
+
<input type="radio" name="mo_openid_share_theme" value="oval" onclick="tempHorShape = 'circle';moSharingPreview('horizontal', document.getElementById('mo_sharing_icon_size').value, 'oval', setCustomTheme(), document.getElementById('mo_sharing_icon_custom_color').value, document.getElementById('mo_sharing_icon_space').value)" <?php checked( get_option('mo_openid_share_theme') == 'oval' );?> />Rounded Edges
|
2022 |
</td>
|
2023 |
<td> <!-- Theme radio buttons -->
|
2024 |
<!-- Custom background -->
|
2025 |
|
2026 |
+
<input type="radio" id="mo_openid_custom_background_radio" name="mo_openid_share_custom_theme" value="custom" onclick="tempHorTheme = 'custom';moSharingPreview('horizontal', document.getElementById('mo_sharing_icon_size').value, setTheme(),'custom',document.getElementById('mo_sharing_icon_custom_color').value,document.getElementById('mo_sharing_icon_space').value)"
|
2027 |
<?php checked( get_option('mo_openid_share_custom_theme') == 'custom' );?> />Custom background*
|
2028 |
</td>
|
2029 |
<td></td>
|
2032 |
<tr>
|
2033 |
<td> <!-- Shape radio buttons -->
|
2034 |
<!-- Square -->
|
2035 |
+
<input type="radio" name="mo_openid_share_theme" value="square" onclick="tempHorShape = 'square';moSharingPreview('horizontal', document.getElementById('mo_sharing_icon_size').value, setTheme(), setCustomTheme(), document.getElementById('mo_sharing_icon_custom_color').value, document.getElementById('mo_sharing_icon_space').value)" <?php checked( get_option('mo_openid_share_theme') == 'square' );?> />Square
|
2036 |
</td>
|
2037 |
<td> <!-- Theme radio buttons -->
|
2038 |
<!-- Custom background textbox -->
|
2039 |
|
2040 |
+
<input id="mo_sharing_icon_custom_color" name="mo_sharing_icon_custom_color" class="color" value="<?php echo get_option('mo_sharing_icon_custom_color')?>" onchange="moSharingPreview('horizontal', document.getElementById('mo_sharing_icon_size').value, setTheme(),setCustomTheme(),document.getElementById('mo_sharing_icon_custom_color').value,document.getElementById('mo_sharing_icon_space').value,document.getElementById('mo_sharing_icon_custom_font').value)" >
|
2041 |
</td>
|
2042 |
<td></td>
|
2043 |
<td></td>
|
2046 |
<td></td>
|
2047 |
<td> <!-- Theme radio buttons -->
|
2048 |
<!-- No background -->
|
2049 |
+
<input type="radio" id="mo_openid_no_background_radio" name="mo_openid_share_custom_theme" value="customFont" onclick="tempHorTheme = 'custom';moSharingPreview('horizontal', document.getElementById('mo_sharing_icon_size').value, setTheme(),'customFont',document.getElementById('mo_sharing_icon_custom_color').value,document.getElementById('mo_sharing_icon_space').value,document.getElementById('mo_sharing_icon_custom_font').value)" <?php checked( get_option('mo_openid_share_custom_theme') == 'customFont' );?> />No background*
|
2050 |
</td>
|
2051 |
<td></td>
|
2052 |
<td></td>
|
2055 |
<td></td>
|
2056 |
<td> <!-- Theme radio buttons -->
|
2057 |
<!-- No background textbox-->
|
2058 |
+
<input id="mo_sharing_icon_custom_font" name="mo_sharing_icon_custom_font" class="color" value="<?php echo get_option('mo_sharing_icon_custom_font')?>" onchange="moSharingPreview('horizontal', document.getElementById('mo_sharing_icon_size').value, setTheme(),setCustomTheme(),document.getElementById('mo_sharing_icon_custom_color').value,document.getElementById('mo_sharing_icon_space').value,document.getElementById('mo_sharing_icon_custom_font').value,document.getElementById('mo_sharing_icon_custom_font').value)" />
|
2059 |
</td>
|
2060 |
<td></td>
|
2061 |
<td></td>
|
2492 |
|
2493 |
<tr>
|
2494 |
<td><b>Select color for share heading:</b>
|
2495 |
+
<input id="mo_openid_table_textbox" style="width:135px;" name="mo_openid_share_widget_customize_text_color" class="color" value="<?php echo get_option('mo_openid_share_widget_customize_text_color')?>" > </td>
|
2496 |
</tr>
|
2497 |
<tr>
|
2498 |
<td>
|
2499 |
<b>Enter text to show above share widget:</b>
|
2500 |
|
2501 |
<input class="mo_openid_table_textbox" style="width:50%;" type="text" name="mo_openid_share_widget_customize_text"
|
2502 |
+
value="<?php echo get_option('mo_openid_share_widget_customize_text'); ?>" />
|
2503 |
</td>
|
2504 |
</tr>
|
2505 |
<tr>
|
2507 |
<b>Enter your twitter Username (without @):</b>
|
2508 |
|
2509 |
<input class="mo_openid_table_textbox" style="width:50%;" type="text" name="mo_openid_share_twitter_username"
|
2510 |
+
value="<?php echo get_option('mo_openid_share_twitter_username'); ?>" />
|
2511 |
</td>
|
2512 |
</tr>
|
2513 |
<tr>
|
2516 |
|
2517 |
|
2518 |
<input class="mo_openid_table_textbox" style="width:50%;" type="text" name="mo_openid_share_email_subject"
|
2519 |
+
value="<?php echo get_option('mo_openid_share_email_subject'); ?>" />
|
2520 |
</td>
|
2521 |
</tr>
|
2522 |
<tr>
|
2524 |
<b>Enter the Email body (add ##url## to place the URL):</b>
|
2525 |
|
2526 |
<input class="mo_openid_table_textbox" style="width:50%;" type="text" name="mo_openid_share_email_body"
|
2527 |
+
value="<?php echo get_option('mo_openid_share_email_body'); ?>" />
|
2528 |
</td>
|
2529 |
</tr>
|
2530 |
<tr>
|
2538 |
|
2539 |
<tr>
|
2540 |
<td>
|
2541 |
+
<input type="checkbox" id="mo_apps_home_page" name="mo_share_options_home_page" value="1" <?php checked( get_option('mo_share_options_enable_home_page') == 1 );?>>
|
2542 |
Home Page
|
2543 |
<br/>
|
2544 |
+
<input type="radio" id="mo_apps_posts_options" name="mo_share_options_home_page_position" value="before" <?php checked( get_option('mo_share_options_home_page_position') == 'before' );?>>
|
2545 |
Before content
|
2546 |
<br/>
|
2547 |
+
<input type="radio" id="mo_apps_posts_options" name="mo_share_options_home_page_position" value="after" <?php checked( get_option('mo_share_options_home_page_position') == 'after' );?>>
|
2548 |
After content
|
2549 |
<br/>
|
2550 |
+
<input type="radio" id="mo_apps_posts_options" name="mo_share_options_home_page_position" value="both" <?php checked( get_option('mo_share_options_home_page_position') == 'both' );?>>
|
2551 |
Both before and after content
|
2552 |
</td>
|
2553 |
</tr>
|
2554 |
<tr>
|
2555 |
<td>
|
2556 |
+
<input type="checkbox" id="mo_apps_posts" name="mo_share_options_post" value="1" <?php checked( get_option('mo_share_options_enable_post') == '1' );?>>
|
2557 |
Blog Post
|
2558 |
<br/>
|
2559 |
+
<input type="radio" id="mo_apps_posts_options" name="mo_share_options_enable_post_position" value="before" <?php checked( get_option('mo_share_options_enable_post_position') == 'before' );?>>
|
2560 |
Before content
|
2561 |
<br/>
|
2562 |
+
<input type="radio" id="mo_apps_posts_options" name="mo_share_options_enable_post_position" value="after" <?php checked( get_option('mo_share_options_enable_post_position') == 'after' );?>>
|
2563 |
After content
|
2564 |
<br/>
|
2565 |
+
<input type="radio" id="mo_apps_posts_options" name="mo_share_options_enable_post_position" value="both" <?php checked( get_option('mo_share_options_enable_post_position') == 'both' );?>>
|
2566 |
Both before and after content
|
2567 |
</td>
|
2568 |
</tr>
|
2569 |
<tr>
|
2570 |
<td>
|
2571 |
+
<input type="checkbox" id="mo_apps_static_page" name="mo_share_options_static_pages" value="1" <?php checked( get_option('mo_share_options_enable_static_pages') == 1 );?>>
|
2572 |
Static Pages
|
2573 |
<br/>
|
2574 |
+
<input type="radio" id="mo_apps_posts_options" name="mo_share_options_static_pages_position" value="before" <?php checked( get_option('mo_share_options_static_pages_position') == 'before' );?>>
|
2575 |
Before content
|
2576 |
<br/>
|
2577 |
+
<input type="radio" id="mo_apps_posts_options" name="mo_share_options_static_pages_position" value="after" <?php checked( get_option('mo_share_options_static_pages_position') == 'after' );?>>
|
2578 |
After content
|
2579 |
<br/>
|
2580 |
+
<input type="radio" id="mo_apps_posts_options" name="mo_share_options_static_pages_position" value="both" <?php checked( get_option('mo_share_options_static_pages_position') == 'both' );?>>
|
2581 |
Both before and after content
|
2582 |
</td>
|
2583 |
</tr>
|
2584 |
<tr>
|
2585 |
<td>
|
2586 |
+
<input type="checkbox" id="mo_apps_wc_sp_page_top" name="mo_share_options_wc_sp_summary_top" value="1" <?php checked( get_option('mo_share_options_wc_sp_summary_top') == 1 );?>>
|
2587 |
WooCommerce Individual Product Page(Top)
|
2588 |
</td>
|
2589 |
</tr>
|
2590 |
<tr>
|
2591 |
<td>
|
2592 |
+
<input type="checkbox" id="mo_apps_wc_sp_page" name="mo_share_options_wc_sp_summary" value="1" <?php checked( get_option('mo_share_options_wc_sp_summary') == 1 );?>>
|
2593 |
WooCommerce Individual Product Page
|
2594 |
</td>
|
2595 |
</tr>
|
2596 |
<tr>
|
2597 |
<td>
|
2598 |
+
<input type="checkbox" id="mo_apps_bb_forum" name="mo_share_options_bb_forum" value="1" <?php checked( get_option('mo_share_options_bb_forum') == 1 );?>>
|
2599 |
BBPress Forums Page
|
2600 |
<br/>
|
2601 |
+
<input type="radio" id="mo_apps_posts_options" name="mo_share_options_bb_forum_position" value="before" <?php checked( get_option('mo_share_options_bb_forum_position') == 'before' );?>>
|
2602 |
Before content
|
2603 |
<br/>
|
2604 |
+
<input type="radio" id="mo_apps_posts_options" name="mo_share_options_bb_forum_position" value="after" <?php checked( get_option('mo_share_options_bb_forum_position') == 'after' );?>>
|
2605 |
After content
|
2606 |
<br/>
|
2607 |
+
<input type="radio" id="mo_apps_posts_options" name="mo_share_options_bb_forum_position" value="both" <?php checked( get_option('mo_share_options_bb_forum_position') == 'both' );?>>
|
2608 |
Both before and after content
|
2609 |
</td>
|
2610 |
</tr>
|
2611 |
<tr>
|
2612 |
<td>
|
2613 |
+
<input type="checkbox" id="mo_apps_bb_topic" name="mo_share_options_bb_topic" value="1" <?php checked( get_option('mo_share_options_bb_topic') == 1 );?>>
|
2614 |
BBPress Topic Page
|
2615 |
<br/>
|
2616 |
+
<input type="radio" id="mo_apps_posts_options" name="mo_share_options_bb_topic_position" value="before" <?php checked( get_option('mo_share_options_bb_topic_position') == 'before' );?>>
|
2617 |
Before content
|
2618 |
<br/>
|
2619 |
+
<input type="radio" id="mo_apps_posts_options" name="mo_share_options_bb_topic_position" value="after" <?php checked( get_option('mo_share_options_bb_topic_position') == 'after' );?>>
|
2620 |
After content
|
2621 |
<br/>
|
2622 |
+
<input type="radio" id="mo_apps_posts_options" name="mo_share_options_bb_topic_position" value="both" <?php checked( get_option('mo_share_options_bb_topic_position') == 'both' );?>>
|
2623 |
Both before and after content
|
2624 |
</td>
|
2625 |
</tr>
|
2626 |
<tr>
|
2627 |
<td>
|
2628 |
+
<input type="checkbox" id="mo_apps_bb_reply" name="mo_share_options_bb_reply" value="1" <?php checked( get_option('mo_share_options_bb_reply') == 1 );?>>
|
2629 |
BBPress Reply Page
|
2630 |
<br/>
|
2631 |
+
<input type="radio" id="mo_apps_posts_options" name="mo_share_options_bb_reply_position" value="before" <?php checked( get_option('mo_share_options_bb_reply_position') == 'before' );?>>
|
2632 |
Before content
|
2633 |
<br/>
|
2634 |
+
<input type="radio" id="mo_apps_posts_options" name="mo_share_options_bb_reply_position" value="after" <?php checked( get_option('mo_share_options_bb_reply_position') == 'after' );?>>
|
2635 |
After content
|
2636 |
<br/>
|
2637 |
+
<input type="radio" id="mo_apps_posts_options" name="mo_share_options_bb_reply_position" value="both" <?php checked( get_option('mo_share_options_bb_reply_position') == 'both' );?>>
|
2638 |
Both before and after content
|
2639 |
</td>
|
2640 |
</tr>
|
2658 |
</tr>
|
2659 |
<tr>
|
2660 |
<td>
|
2661 |
+
<input type="checkbox" id="mo_share_vertical_hide_mobile" name="mo_share_vertical_hide_mobile" value="1" <?php checked( get_option('mo_share_vertical_hide_mobile') == 1 );?>>
|
2662 |
Hide Floating Vertical Share icons on mobile
|
2663 |
</td>
|
2664 |
</tr>
|
2667 |
<td>
|
2668 |
<br />
|
2669 |
<input type="submit" name="submit" value="Save" style="width:100px;"
|
2670 |
+
class="button button-primary button-large" />
|
2671 |
</td>
|
2672 |
</tr>
|
2673 |
|
2714 |
?>
|
2715 |
<td style="vertical-align:top;width:65%;">
|
2716 |
<div class="mo_openid_table_layout">
|
|
|
|
|
|
|
|
|
|
|
|
|
2717 |
|
2718 |
<table>
|
2719 |
<tr>
|
2837 |
|
2838 |
<h2>Licensing Plans For Social Login
|
2839 |
<?php if(get_option('mo_openid_oauth')!='1') {?>
|
2840 |
+
<span style="float:right; margin-right: 40px;">
|
2841 |
<input type="button" name="ok_btn" id="ok_btn" class="button button-primary button-large" value="OK, Got It" onclick="window.location.href='admin.php?page=mo_openid_settings&tab=login'" />
|
2842 |
<input type="button" name="check_plan" id="check_plan" <?php if(!mo_openid_is_customer_registered()) echo 'disabled'?> class="button button-primary button-large" value="Check License" onclick="checkLicense();"/>
|
2843 |
</span>
|
2868 |
|
2869 |
<tbody class="mo_align-center mo-fa-icon">
|
2870 |
<tr>
|
2871 |
+
<td><div class="tooltip">Pre-configured Social Login Apps <i class="fa fa-commenting " style="font-size:18px;color:#85929E"></i><span class="tooltiptext"style="width:350px;">Pre-configured apps are already configured by miniOrange. Login flow will go from plugin to miniOrange service and then to the Social Application and then back to plugin through miniOrange service.</span></div></td>
|
2872 |
+
<td><div class="tooltip">All 9 Apps  <i class="fa fa-bookmark " style="font-size:18px;color:#85929E"></i><span class="tooltiptext1" style="width:83px;"> Facebook Google Twitter Vkontakte LinkedIn Windows Live Amazon Instagram Salesforce</span></div></td>
|
2873 |
+
<td><div class="tooltip">All 9 Apps  <i class="fa fa-bookmark " style="font-size:18px;color:#85929E"></i><span class="tooltiptext1" style="width:83px;"> Facebook Google Twitter Vkontakte LinkedIn Windows Live Amazon Instagram Salesforce</span></div></td>
|
2874 |
+
<td><div class="tooltip">All 9 Apps  <i class="fa fa-bookmark " style="font-size:18px;color:#85929E"></i><span class="tooltiptext1" style="width:83px;"> Facebook Google Twitter Vkontakte LinkedIn Windows Live Amazon Instagram Salesforce</span></div></td>
|
2875 |
+
|
2876 |
</tr>
|
2877 |
<tr>
|
2878 |
+
<td><div class="tooltip">Custom Social Login Apps <i class="fa fa-commenting " style="font-size:18px;color:#85929E"></i><span class="tooltiptext"style="width:350px;"> 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.</span></div></td>
|
2879 |
+
<td>Facebook, Twitter</td>
|
2880 |
+
<td><div class="tooltip">All 9 Apps  <i class="fa fa-bookmark " style="font-size:18px;color:#85929E"></i><span class="tooltiptext1" style="width:83px;"> Facebook Google Twitter Vkontakte LinkedIn Windows Live Amazon Instagram Salesforce</span></div></td>
|
2881 |
+
<td><div class="tooltip">All 9 Apps  <i class="fa fa-bookmark " style="font-size:18px;color:#85929E"></i><span class="tooltiptext1" style="width:83px;"> Facebook Google Twitter Vkontakte LinkedIn Windows Live Amazon Instagram Salesforce</span></div></td>
|
2882 |
+
|
2883 |
</tr>
|
2884 |
<tr>
|
2885 |
<td>Beautiful Icon Customisations</td>
|
2911 |
<td><i class="fa fa-check"></i></td>
|
2912 |
<td><i class="fa fa-check"></i></td>
|
2913 |
</tr>
|
2914 |
+
|
|
|
|
|
|
|
|
|
|
|
2915 |
<tr>
|
2916 |
<td>Profile completion (username, email)</td>
|
2917 |
<td><i class="fa fa-check"></i></td>
|
2948 |
<td><i class="fa fa-check"></i></td>
|
2949 |
<td><i class="fa fa-check"></i></td>
|
2950 |
</tr>
|
2951 |
+
|
2952 |
+
<tr>
|
2953 |
+
<td>BBPress Display Options</td>
|
2954 |
<td><i class="fa fa-check"></i></td>
|
2955 |
<td><i class="fa fa-check"></i></td>
|
2956 |
<td><i class="fa fa-check"></i></td>
|
2957 |
</tr>
|
2958 |
<tr>
|
2959 |
+
<td>Woocommerce Display Options</td>
|
2960 |
+
<?php if(!mo_openid_restrict_user()){?> <td><i class="fa fa-check"></i></td>
|
2961 |
+
<?php } else{?><td></td> <?php }?>
|
2962 |
<td><i class="fa fa-check"></i></td>
|
2963 |
<td><i class="fa fa-check"></i></td>
|
2964 |
</tr>
|
2965 |
<tr>
|
2966 |
+
<td>BuddyPress Display Options</td>
|
2967 |
+
<?php if(!mo_openid_restrict_user()){?> <td><i class="fa fa-check"></i></td>
|
2968 |
+
<?php } else{?><td></td> <?php }?>
|
2969 |
<td><i class="fa fa-check"></i></td>
|
2970 |
<td><i class="fa fa-check"></i></td>
|
2971 |
+
</tr>
|
2972 |
+
<tr>
|
2973 |
+
<td>Account Linking</td>
|
2974 |
+
<?php if(!mo_openid_restrict_user()){?> <td><i class="fa fa-check"></i></td>
|
2975 |
+
<?php } else{?><td></td> <?php }?>
|
2976 |
+
|
2977 |
+
<td><i class="fa fa-check"></i></td>
|
2978 |
<td><i class="fa fa-check"></i></td>
|
2979 |
</tr>
|
2980 |
<tr>
|
3001 |
<td><i class="fa fa-check"></i></td>
|
3002 |
<td><i class="fa fa-check"></i></td>
|
3003 |
</tr>
|
3004 |
+
<tr>
|
3005 |
+
<td>Send username and password reset link</td>
|
3006 |
+
<td></td>
|
3007 |
+
<td><i class="fa fa-check"></i></td>
|
3008 |
+
<td><i class="fa fa-check"></i></td>
|
3009 |
+
</tr>
|
3010 |
<tr>
|
3011 |
<td>Social Login Opens in a New Window</td>
|
3012 |
<td></td>
|
3018 |
<td></td>
|
3019 |
<td><i class="fa fa-check"></i></td>
|
3020 |
<td><i class="fa fa-check"></i></td>
|
3021 |
+
</tr>
|
3022 |
+
<tr>
|
3023 |
+
<td><span class="tooltip">Custom attribute mapping <i class="fa fa-commenting" style="font-size:18px;color:#85929E"></i> <span class="tooltiptext"style="width:350px;">Extended attributes returned from social app are mapped to Custom attributes created by admin. These Attributes get stored in user_meta table.</span></div></td>
|
3024 |
+
<td></td>
|
3025 |
+
<td></td>
|
3026 |
+
<td><i class="fa fa-check"></i></td>
|
3027 |
</tr>
|
3028 |
<tr>
|
3029 |
+
<td><div class="tooltip">Woocommerce Integration <i class="fa fa-commenting" style="font-size:18px;color:#85929E"></i> <span class="tooltiptext"style="width:350px;"> First name, last name and email are pre-filled in billing details of a user and on the Woocommerce checkout page. Social Login icons are displayed on the Woocommerce checkout page.</span></div></td>
|
3030 |
<td></td>
|
3031 |
<td></td>
|
3032 |
<td><i class="fa fa-check"></i></td>
|
3033 |
</tr>
|
3034 |
+
|
3035 |
<tr>
|
3036 |
+
<td><div class="tooltip">BuddyPress Integration <i class="fa fa-commenting " style="font-size:18px;color:#85929E"> </i><span class="tooltiptext" style="width:350px;"> Extended attributes returned from social app are mapped to Custom BuddyPress fields. Profile picture from social media is mapped to Buddypress avatar.</span></div></td>
|
3037 |
<td></td>
|
3038 |
<td></td>
|
3039 |
<td><i class="fa fa-check"></i></td>
|
3040 |
</tr>
|
3041 |
<tr>
|
3042 |
+
<td><div class="tooltip">MailChimp Integration <i class="fa fa-commenting " style="font-size:18px;color:#85929E"> </i><span class="tooltiptext" style="width:350px;">A user is added as a subscriber to a mailing list in MailChimp when that user registers using Social Login. First name, last name and email are also captured for that user in the Mailing List. Option is available to download csv file that has list of emails of all users in WordPress.</span></div></td>
|
3043 |
<td></td>
|
3044 |
<td></td>
|
3045 |
<td><i class="fa fa-check"></i></td>
|
3046 |
</tr>
|
3047 |
<tr>
|
3048 |
+
<td><div class="tooltip">Extended Profile Data <i class="fa fa-commenting " style="font-size:18px;color:#85929E"> </i><span class="tooltiptext" style="width:350px;">Extended profile data feature requires additional configuration. You need to have your own social media app and permissions from social media providers to collect extended user data.</span></div></td>
|
3049 |
<td></td>
|
3050 |
<td></td>
|
3051 |
<td><i class="fa fa-check"></i></td>
|
3057 |
<td><i class="fa fa-check"></i></td>
|
3058 |
</tr>
|
3059 |
<tr>
|
3060 |
+
<td><div class="tooltip">Custom Integration <i class="fa fa-commenting " style="font-size:18px;color:#85929E"> </i><span class="tooltiptext" style="width:350px;"> If you have a specific custom requirement in the Social Login plugin, we can implement and integrate it in the plugin for you. This includes all those custom features that come under the scope of Social Login/ Sharing/ Comments and impart additional value to the plugin. These features are chargeable. Please send us a query through the support forum to get in touch with us about your custom requirements.</span></div></td>
|
3061 |
<td><a target="_blank" href="<?php echo get_site_url() . "/wp-admin/admin.php?page=mo_openid_settings&tab=login";?> ">Contact Us using Support Form</a></td>
|
3062 |
<td><a target="_blank" href="<?php echo get_site_url() . "/wp-admin/admin.php?page=mo_openid_settings&tab=login";?> ">Contact Us using Support Form</a></td>
|
3063 |
<td><a target="_blank" href="<?php echo get_site_url() . "/wp-admin/admin.php?page=mo_openid_settings&tab=login";?> ">Contact Us using Support Form</a></td>
|
3086 |
jQuery("#checkLicenseForm").submit();
|
3087 |
}
|
3088 |
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3089 |
|
3090 |
+
<h3><b><span style="color:#da7587;font-weight:bold;">Refund Policy -</h3>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3091 |
<p><b>At miniOrange, we want to ensure you are 100% happy with your purchase. If the premium plugin you purchased is not working as advertised and you've attempted to resolve any issues with our support team, which couldn't get resolved then we will refund the whole amount within 10 days of the purchase. Please email us at <a href="mailto:info@miniorange.com"><i>info@miniorange.com</i></a> for any queries regarding the return policy.</b></p>
|
3092 |
<b>Not applicable for -</b>
|
3093 |
<ol>
|
3107 |
<td style="vertical-align:top;width:65%;">
|
3108 |
<div class="mo_openid_table_layout">
|
3109 |
|
3110 |
+
|
|
|
|
|
|
|
|
|
3111 |
<table width="100%">
|
3112 |
<tbody>
|
3113 |
|
3245 |
|
3246 |
<?php if(get_option('mo_openid_oauth')!='1'){?>
|
3247 |
<h4><a id="openid_question7" >I am not able to fetch extended attributes. How do I access extended attributes? </a></h4>
|
3248 |
+
<div id="openid_question7_desc">Check the option of Extended Attributes in the Social Login tab. Then in the miniOrange dashboard, go to Social analytics-> Social Applications Usage Summary, click on Search and then click on View under Additional Information to see extended attributes of users who login using your app. You can also download it as a CSV there.<br> <strong >Note:</strong> Your app needs to have permission from users to collect extended attributes.
|
3249 |
</div>
|
3250 |
<hr>
|
3251 |
<?php }?>
|
3395 |
<li>as necessary to enforce our User Agreement or protect the rights, property, or safety of miniOrange, its Customers and End users,
|
3396 |
and the public. </li>
|
3397 |
</ol>
|
3398 |
+
</div>
|
3399 |
</div>
|
3400 |
<hr>
|
3401 |
</td></tr>
|
3620 |
var appname = document.getElementById("mo_oauth_app").value;
|
3621 |
document.getElementById("instructions").innerHTML = "";
|
3622 |
if(appname=="google"){
|
3623 |
+
document.getElementById("instructions").innerHTML = '<br><strong>Instructions to configure Google :</strong><ol><li>Visit the Google website for developers <a href="https://console.developers.google.com/project"target="_blank">console.developers.google.com</a>.</li><li>Open the Google API Console Credentials page and go to API Manager -> Credentials</li><li>From the project drop-down, click on + to Create a new project, enter a name for the project, and optionally, edit the provided Project ID. Click Create.</li><li>On the Credentials menu, select Create credentials, then select OAuth client ID.</li><li>You may be prompted to set a product name on the Consent screen. If so, click Configure consent screen, supply the requested information, and click Save to return to the Credentials screen.</li><li>Select Web Application for the Application Type. Enter <b><?php if(get_option('mo_openid_malform_error')){ echo site_url()."/openidcallback/google";} else {echo site_url()."/openidcallback";}?></b> in Authorized redirect URIs.</li><li>Click Create.</li><li>On the page that appears, copy the client ID and client secret to your clipboard, as you will need them to configure above.</li><li>Enable the Google+ API.<ul><li>In the Dashboard menu, click on ENABLE APIS AND SERVICES.</li><li>Type Google+ in search box, select Google+ API and click on Enable.</li></ul></li><li>Input scope as <b>https://www.googleapis.com/auth/userinfo.profile+ https://www.googleapis.com/auth/user.birthday.read+ https://www.googleapis.com/auth/plus.login+ https://www.googleapis.com/auth/plus.profile.emails.read+ https://www.googleapis.com/auth/userinfo.email+ https://www.googleapis.com/auth/plus.me </b></li><li>Go to Social Login tab to configure the display as well as other login settings.</li></ol>';
|
3624 |
} else if(appname=="facebook"){
|
3625 |
+
document.getElementById("instructions").innerHTML = '<br><strong>Instructions to configure Facebook : </strong><ol><li>Go to Facebook developers console <a href="https://developers.facebook.com/apps/" target="_blank">https://developers.facebook.com/apps/</a>. Login with your facebook developer account</li><li>Click on Create a New App/Add new App button</li><li>Enter <b>Display Name</b> and click on Create App ID</li><li>In Add Product select Facebook Login and click on Setup</li><li>Click on Web. Enter your Site URL. From the left pane, select <b>Facebook Login -> Settings</b>.</li><li>Under <b>Client OAuth Settings</b>, enter <b><?php if(get_option('mo_openid_malform_error')){echo site_url()."/openidcallback/facebook";} else{echo site_url()."/openidcallback";}?></b> in Valid OAuth redirect URIs and click <b>Save Changes</b>.</li><li>Go to <b>Settings -> Basic</b>. Enter <b><?php $str=str_replace('https://','',site_url()); echo $str; ?></b> in <b>App Domain</b>, <b><?php echo site_url(); ?></b> in <b>Website URL </b>, your privacy policy URL in <b>Privacy Policy URL</b> and select <b>Category</b> of your website .</li><li>Go to <b>App Review </b>make your app public. After making app public you will see on right top corner your app status changes from <b>In Development</b> to <b>Live</b>.</li><li>Go to Settings > Basic. Paste your App ID and App Secret provided by Facebook into the fields above.</li><li>Input <b> email, public_profile </b>as scope.</li><li> If you want to access the <b>user_birthday, user_hometown, user_location</b> of a Facebook user, you need to send your app for review to Facebook. For submitting an app for review, click <a target="_blank" href="https://developers.facebook.com/docs/facebook-login/review/how-to-submit ">here</a>. After your app is reviewed, you can add the scopes you have sent for review in the scope above. If your app is not approved or is in the process of getting approved, let the scope be <b>email, public_profile, user_friends</b> </li><li>Click on the Save settings button.</li><li>Go to Social Login tab to configure the display as well as other login settings.</li></ol>';
|
3626 |
} else if(appname=="twitter"){
|
3627 |
document.getElementById("instructions").innerHTML = '<br><strong>Instructions to configure Twitter : </strong><ol><li>Go to <a href="https://apps.twitter.com/" target="_blank">https://apps.twitter.com/</a> and sign in with your twitter account.</li><li>Click on <b>Create New App</b>.</li> <li>Enter Name, description, website name and callback URL.</li><li><b>Callback URL</b> <br><u>Example of public website, </u><br>if your website URL is =><?php echo site_url();?><br> then your callback URL should be => <?php echo site_url();?>/openidcallback<br><u>Example of localhost,</u><br> Twitter may not accept local IPs so try using 127.0.0.1 instead of localhost.<br> Also make sure your Callback URL is prefixed with the website. <br> Go to Settings-> General and replace "localhost" with "127.0.0.1" in <b>WordPress Address (URL)</b> and <b>Site Address (URL)</b> <br>if your website URL is => http://127.0.0.1/wordpress <br> then your callback URL should be => http://127.0.0.1/wordpress/openidcallback</li><li>Twitter might ask you to add your phone number to your profile while creating the app.</li><li>Check the developer agreement checkbox and click on <b>Create your Twitter Application</b>.Under <b>Keys and Access Token</b> Tab, you will find your <b>API Key/Secret</b>.Paste them into the fields above.</li><li>Leave the scope field blank.</li><li><u>Instructions to request email address of a user</u>: The “Request email addresses from users” checkbox is available under the app permissions on apps.twitter.com. Privacy Policy URL and Terms of Service URL fields must be completed in the app settings in order for email address access to function. If enabled, users will be informed via the oauth/authorize dialog that your app can access their email address.If the user does not have an email address on their account, or if the email address is not verified, email will not be returned.</li><li>Go to Permissions tab -> Access. Select <b>Read Only</b> type of access.</li><li>Click on the Update settings button.</li><li>Go to Social Login tab to configure the display as well as other login settings.</li></ol>';
|
3628 |
}
|
3641 |
<td>
|
3642 |
<select class="mo_table_textbox" style="width:500px;" required="true" name="mo_oauth_app_name" id="mo_oauth_app" onchange="selectapp()">
|
3643 |
<option value="">Select Application</option>
|
3644 |
+
<?php if(!mo_openid_restrict_user())echo "<option value=\"google\">Google</option>";?>
|
3645 |
<option value="facebook">Facebook</option>
|
3646 |
<option value="twitter">Twitter</option>
|
3647 |
</select>
|
3755 |
}
|
3756 |
|
3757 |
function mo_custom_app_instructions($appname){
|
3758 |
+
if(get_option('mo_openid_malform_error')){
|
3759 |
+
if ($appname == "google") {
|
3760 |
+
echo '<br><strong>Instructions to configure Google :</strong><ol><li>Visit the Google website for developers <a href="https://console.developers.google.com/project"target="_blank">console.developers.google.com</a>.</li><li>Open the Google API Console Credentials page and go to API Manager -> Credentials</li><li>From the project drop-down, choose Create a new project, enter a name for the project, and optionally, edit the provided Project ID. Click Create.</li><li>On the Credentials page, select Create credentials, then select OAuth client ID.</li><li>You may be prompted to set a product name on the Consent screen. If so, click Configure consent screen, supply the requested information, and click Save to return to the Credentials screen.</li><li>Select Web Application for the Application Type. Follow the instructions to enter JavaScript origins, redirect URIs, or both. provide <b>' . site_url() . '/openidcallback/google</b> for the Redirect URI.</li><li>Click Create.</li><li>On the page that appears, copy the client ID and client secret to your clipboard, as you will need them to configure above.</li><li>Enable the Google+ API.<ul><li>In the Dashboard menu, click on ENABLE APIS AND SERVICES.</li><li>Type Google+ in search box, select Google+ API and click on Enable.</li></ul></li></li><li>Input scope as <b>https://www.googleapis.com/auth/plus.login+https://www.googleapis.com/auth/plus.profile.emails.read </b></li><li>Go to Social Login tab and configure the icons.</li></ol>';
|
3761 |
+
} else if ($appname == "facebook") {
|
3762 |
+
echo '<br><strong>Instructions to configure Facebook : </strong><ol><li>Go to Facebook developers console <a href="https://developers.facebook.com/apps/" target="_blank">https://developers.facebook.com/apps/</a>. Login with your facebook developer account</li><li>Click on Create a New App/Add new App button</li><li>Enter <b>Display Name</b> and click on Create App ID</li><li>In Add Product select Facebook Login and click on Setup</li><li>Click on Web. Enter your Site URL. From the left pane, select <b>Facebook Login -> Settings</b>.</li><li>Under <b>Client OAuth Settings</b>, enter <b>' . site_url() . '/openidcallback/facebook</b> in Valid OAuth redirect URIs and click <b>Save Changes</b>.</li><li>Go to <b>Settings -> Basic</b>. Enter <b>' . str_replace('https://', '', site_url()) . '</b> in <b>App Domain</b>, <b>' . site_url() . '</b> in <b>Website URL </b>, your privacy policy in <b>Privacy Policy URL</b> and select <b>Category</b> of your website .</li><li>Go to <b>App Review </b>make your app public. After making app public you will see on right top corner your app status changes from <b>In Development</b> to <b>Live</b>.</li></li><li>Go to Settings > Basic. Paste your App ID and App Secret provided by Facebook into the fields above.</li><li>Input <b> email, public_profile </b>as scope.</li><li> If you want to access the <b>user_birthday, user_hometown, user_location</b> of a Facebook user, you need to send your app for review to Facebook. For submitting an app for review, click <a target="_blank" href="https://developers.facebook.com/docs/facebook-login/review/how-to-submit ">here</a>. After your app is reviewed, you can add the scopes you have sent for review in the scope above. If your app is not approved or is in the process of getting approved, let the scope be <b>email, public_profile, user_friends</b> </li><li>Click on the Save settings button.</li><li>Go to Social Login tab to configure the display as well as other login settings.</li></ol>';
|
3763 |
+
} else if ($appname == "twitter") {
|
3764 |
+
echo '<br><strong>Instructions to configure Twitter : </strong><ol><li>Go to <a href="https://apps.twitter.com/" target="_blank">https://apps.twitter.com/</a> and sign in with your twitter account.</li><li>Click on <b>Create New App</b>.</li> <li>Enter Name, description, website name and callback URL.</li><li><b>Callback URL</b> <br><u>Example of public website, </u><br>if your website URL is =>' . site_url() . '<br> then your callback URL should be => ' . site_url() . '/openidcallback' . '<br><u>Example of localhost,</u><br> Twitter may not accept local IPs so try using 127.0.0.1 instead of localhost.<br> Also make sure your Callback URL is prefixed with the website. <br> Go to Settings-> General and replace "localhost" with "127.0.0.1" in <b>WordPress Address (URL)</b> and <b>Site Address (URL)</b> <br>if your website URL is => http://127.0.0.1/wordpress <br> then your callback URL should be => http://127.0.0.1/wordpress/openidcallback </li><li>Twitter might ask you to add your phone number to your profile while creating the app.</li><li>Check the developer agreement checkbox and click on <b>Create your Twitter Application</b>. Under <b>Keys and Access Token</b> Tab, you will find your <b>API Key/Secret</b>. Paste them into the fields above.</li><li>Leave the scope field blank.</li><li><u>Instructions to request email address of a user</u>: The “Request email addresses from users” checkbox is available under the app permissions on apps.twitter.com. Privacy Policy URL and Terms of Service URL fields must be completed in the app settings in order for email address access to function. If enabled, users will be informed via the oauth/authorize dialog that your app can access their email address.If the user does not have an email address on their account, or if the email address is not verified, email will not be returned.</li><li>Click on the Save settings button.</li><li>Go to Social Login tab to configure the display as well as other login settings.</li></ol>';
|
3765 |
+
}
|
3766 |
+
}else {
|
3767 |
+
if ($appname == "google") {
|
3768 |
+
echo '<br><strong>Instructions to configure Google :</strong><ol><li>Visit the Google website for developers <a href="https://console.developers.google.com/project"target="_blank">console.developers.google.com</a>.</li><li>Open the Google API Console Credentials page and go to API Manager -> Credentials</li><li>From the project drop-down, choose Create a new project, enter a name for the project, and optionally, edit the provided Project ID. Click Create.</li><li>On the Credentials page, select Create credentials, then select OAuth client ID.</li><li>You may be prompted to set a product name on the Consent screen. If so, click Configure consent screen, supply the requested information, and click Save to return to the Credentials screen.</li><li>Select Web Application for the Application Type. Follow the instructions to enter JavaScript origins, redirect URIs, or both. provide <b>' . site_url() . '/openidcallback</b> for the Redirect URI.</li><li>Click Create.</li><li>On the page that appears, copy the client ID and client secret to your clipboard, as you will need them to configure above.</li><li>Enable the Google+ API.<ul><li>In the Dashboard menu, click on ENABLE APIS AND SERVICES.</li><li>Type Google+ in search box, select Google+ API and click on Enable.</li></ul></li></li><li>Input scope as <b>https://www.googleapis.com/auth/plus.login+https://www.googleapis.com/auth/plus.profile.emails.read </b></li><li>Go to Social Login tab and configure the icons.</li></ol>';
|
3769 |
+
} else if ($appname == "facebook") {
|
3770 |
+
echo '<br><strong>Instructions to configure Facebook : </strong><ol><li>Go to Facebook developers console <a href="https://developers.facebook.com/apps/" target="_blank">https://developers.facebook.com/apps/</a>. Login with your facebook developer account</li><li>Click on Create a New App/Add new App button</li><li>Enter <b>Display Name</b> and click on Create App ID</li><li>In Add Product select Facebook Login and click on Setup</li><li>Click on Web. Enter your Site URL. From the left pane, select <b>Facebook Login -> Settings</b>.</li><li>Under <b>Client OAuth Settings</b>, enter <b>' . site_url() . '/openidcallback</b> in Valid OAuth redirect URIs and click <b>Save Changes</b>.</li><li>Go to <b>Settings -> Basic</b>. Enter <b>' . str_replace('https://', '', site_url()) . '</b> in <b>App Domain</b>, <b>' . site_url() . '</b> in <b>Website URL </b>, your privacy policy in <b>Privacy Policy URL</b> and select <b>Category</b> of your website .</li><li>Go to <b>App Review </b>make your app public. After making app public you will see on right top corner your app status changes from <b>In Development</b> to <b>Live</b>.</li></li><li>Go to Settings > Basic. Paste your App ID and App Secret provided by Facebook into the fields above.</li><li>Input <b> email, public_profile </b>as scope.</li><li> If you want to access the <b>user_birthday, user_hometown, user_location</b> of a Facebook user, you need to send your app for review to Facebook. For submitting an app for review, click <a target="_blank" href="https://developers.facebook.com/docs/facebook-login/review/how-to-submit ">here</a>. After your app is reviewed, you can add the scopes you have sent for review in the scope above. If your app is not approved or is in the process of getting approved, let the scope be <b>email, public_profile, user_friends</b> </li><li>Click on the Save settings button.</li><li>Go to Social Login tab to configure the display as well as other login settings.</li></ol>';
|
3771 |
+
} else if ($appname == "twitter") {
|
3772 |
+
echo '<br><strong>Instructions to configure Twitter : </strong><ol><li>Go to <a href="https://apps.twitter.com/" target="_blank">https://apps.twitter.com/</a> and sign in with your twitter account.</li><li>Click on <b>Create New App</b>.</li> <li>Enter Name, description, website name and callback URL.</li><li><b>Callback URL</b> <br><u>Example of public website, </u><br>if your website URL is =>' . site_url() . '<br> then your callback URL should be => ' . site_url() . '/openidcallback' . '<br><u>Example of localhost,</u><br> Twitter may not accept local IPs so try using 127.0.0.1 instead of localhost.<br> Also make sure your Callback URL is prefixed with the website. <br> Go to Settings-> General and replace "localhost" with "127.0.0.1" in <b>WordPress Address (URL)</b> and <b>Site Address (URL)</b> <br>if your website URL is => http://127.0.0.1/wordpress <br> then your callback URL should be => http://127.0.0.1/wordpress/openidcallback </li><li>Twitter might ask you to add your phone number to your profile while creating the app.</li><li>Check the developer agreement checkbox and click on <b>Create your Twitter Application</b>. Under <b>Keys and Access Token</b> Tab, you will find your <b>API Key/Secret</b>. Paste them into the fields above.</li><li>Leave the scope field blank.</li><li><u>Instructions to request email address of a user</u>: The “Request email addresses from users” checkbox is available under the app permissions on apps.twitter.com. Privacy Policy URL and Terms of Service URL fields must be completed in the app settings in order for email address access to function. If enabled, users will be informed via the oauth/authorize dialog that your app can access their email address.If the user does not have an email address on their account, or if the email address is not verified, email will not be returned.</li><li>Click on the Save settings button.</li><li>Go to Social Login tab to configure the display as well as other login settings.</li></ol>';
|
3773 |
+
}
|
3774 |
}
|
3775 |
|
3776 |
}
|
3880 |
} else
|
3881 |
return 0;
|
3882 |
}
|
3883 |
+
function mo_openid_restrict_user() {
|
3884 |
+
if((get_option('mo_openid_admin_customer_key')>151617) || (get_option('mo_openid_new_user')==1)|| !mo_openid_is_customer_registered()) {
|
3885 |
+
return true;
|
3886 |
+
} else {
|
3887 |
+
return false;
|
3888 |
+
}
|
3889 |
+
}
|
3890 |
+
|
3891 |
?>
|
mo_openid_feedback_form.php
CHANGED
@@ -34,12 +34,11 @@
|
|
34 |
"Other Reasons:"
|
35 |
);
|
36 |
|
37 |
-
|
38 |
foreach ( $deactivate_reasons as $deactivate_reasons ) {?>
|
39 |
|
40 |
<div class="radio" style="padding:1px;margin-left:2%">
|
41 |
<label style="font-weight:normal;font-size:14.6px" for="<?php echo $deactivate_reasons; ?>">
|
42 |
-
<input type="radio" name="deactivate_plugin" value="<?php echo $deactivate_reasons;?>" required>
|
43 |
<?php echo $deactivate_reasons;?></label>
|
44 |
</div>
|
45 |
|
@@ -51,6 +50,7 @@
|
|
51 |
<br><br>
|
52 |
<div class="mo_openid_modal-footer" >
|
53 |
<input type="submit" name="mo_openid_feedback_submit" class="button button-primary button-large" value="Submit" />
|
|
|
54 |
</div>
|
55 |
</div>
|
56 |
</form>
|
@@ -63,6 +63,9 @@
|
|
63 |
</div>
|
64 |
|
65 |
<script>
|
|
|
|
|
|
|
66 |
jQuery('a[aria-label="Deactivate Social Login, Social Sharing by miniOrange"]').click(function(){
|
67 |
// Get the mo_openid_modal
|
68 |
<?php if(!get_option('mo_openid_feedback_form')){ ?>
|
34 |
"Other Reasons:"
|
35 |
);
|
36 |
|
|
|
37 |
foreach ( $deactivate_reasons as $deactivate_reasons ) {?>
|
38 |
|
39 |
<div class="radio" style="padding:1px;margin-left:2%">
|
40 |
<label style="font-weight:normal;font-size:14.6px" for="<?php echo $deactivate_reasons; ?>">
|
41 |
+
<input type="radio" name="deactivate_plugin" value="<?php echo $deactivate_reasons;?>" required >
|
42 |
<?php echo $deactivate_reasons;?></label>
|
43 |
</div>
|
44 |
|
50 |
<br><br>
|
51 |
<div class="mo_openid_modal-footer" >
|
52 |
<input type="submit" name="mo_openid_feedback_submit" class="button button-primary button-large" value="Submit" />
|
53 |
+
<a name="mo_openid_option" value="mo_openid_skip_feedback" style="float:right" onclick="mo_openid_skip_feedback()">Skip Now</a>
|
54 |
</div>
|
55 |
</div>
|
56 |
</form>
|
63 |
</div>
|
64 |
|
65 |
<script>
|
66 |
+
function mo_openid_skip_feedback(){
|
67 |
+
jQuery('#mo_openid_feedback_form_close').submit();
|
68 |
+
}
|
69 |
jQuery('a[aria-label="Deactivate Social Login, Social Sharing by miniOrange"]').click(function(){
|
70 |
// Get the mo_openid_modal
|
71 |
<?php if(!get_option('mo_openid_feedback_form')){ ?>
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: miniOrange, vkontakte
|
|
3 |
Donate link: https://www.miniorange.com
|
4 |
Tags: social login, social, facebook, twitter, google, login, facebook login, google login, google, twitter login, social connect, social network login, social plugin, Vkontakte, LinkedIn
|
5 |
Requires at least: 2.0.2
|
6 |
-
Tested up to: 4.9.
|
7 |
-
Stable tag: 7.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -98,7 +98,7 @@ Single Sign-On using Social Login creates a single authentication system for mul
|
|
98 |
All other Social Login and Social Sharing applications are supported through a simple email to info@miniorange.com.
|
99 |
|
100 |
= Website - =
|
101 |
-
These additional features are available upon request. Send an email to info@miniorange.com if you need any of these features.
|
102 |
|
103 |
User Profile Data, integration with external softwares like salesforce, box, office 365 etc, and Social Analytics.
|
104 |
This can also captures users’ profile data, with their permission, and automatically creates a profile in miniOrange database and you can download it using a CSV file or a PDF file.
|
@@ -166,8 +166,14 @@ Please email us at info@miniorange.com. You can also submit your query from the
|
|
166 |
|
167 |
|
168 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
169 |
= 7.0.2 =
|
170 |
-
* Slider Issue fixed.
|
171 |
* CSS Issue Fixed
|
172 |
* Minor bug fixes.
|
173 |
|
@@ -215,7 +221,7 @@ Please email us at info@miniorange.com. You can also submit your query from the
|
|
215 |
* Removed rows in account linking table that have empty field values
|
216 |
|
217 |
= 6.6.0 =
|
218 |
-
* Added resend otp in Profile Completion
|
219 |
* Added column timestamp in account linking table
|
220 |
* Added option to disable custom app
|
221 |
* Added include_email parameter in for twitter custom app
|
@@ -292,10 +298,10 @@ Please email us at info@miniorange.com. You can also submit your query from the
|
|
292 |
* Compatibility with PHP 7.2.1
|
293 |
|
294 |
= 5.5.2 =
|
295 |
-
* Compatibility with International characters.
|
296 |
|
297 |
= 5.5.1 =
|
298 |
-
* Major Security Fix in login flow. Mandatory Update is required.
|
299 |
|
300 |
= 5.5 =
|
301 |
* Bug Fix in login flow
|
@@ -336,7 +342,7 @@ Please email us at info@miniorange.com. You can also submit your query from the
|
|
336 |
= 5.1.4 =
|
337 |
* Bug fix in Facebook share
|
338 |
* Bug fix in sending OTP
|
339 |
-
* Fix for URL indexing
|
340 |
|
341 |
= 5.1.3 =
|
342 |
* Improved Social Login for non-English characters
|
@@ -495,7 +501,7 @@ Please email us at info@miniorange.com. You can also submit your query from the
|
|
495 |
= 4.2.2 =
|
496 |
* Fix - minimum width of Social Login long button reduced
|
497 |
|
498 |
-
= 4.2.1 =
|
499 |
* Minor bug fix
|
500 |
|
501 |
= 4.2 =
|
@@ -513,7 +519,7 @@ Please email us at info@miniorange.com. You can also submit your query from the
|
|
513 |
* Added Troubleshooting section in plugin
|
514 |
* Social Sharing icons can be added before and after content
|
515 |
* Updated API for Facebook sharing
|
516 |
-
* Updated reset password API to send email
|
517 |
* Bug fixes for Social Sharing icons
|
518 |
* Improved theme compatibility
|
519 |
|
@@ -536,11 +542,11 @@ Please email us at info@miniorange.com. You can also submit your query from the
|
|
536 |
|
537 |
= 3.0.3 =
|
538 |
* Added social media applications Instagram, Windows Live, Amazon to social login widgets
|
539 |
-
* Added social media applications like Twitter, Pinterest and Reddit on social sharing.
|
540 |
* Added more theme options to select Social Login and Social Sharing icons.
|
541 |
|
542 |
= 3.0.2 =
|
543 |
-
* Added Social login for social media applications Facebook, Linkedin.
|
544 |
* Added new social sharing buttons for social media applications - Facebook, Google, LinkedIn.
|
545 |
|
546 |
= 3.0.1 =
|
@@ -560,8 +566,14 @@ Please email us at info@miniorange.com. You can also submit your query from the
|
|
560 |
* First version of Social Login, Social Sharing plugin.
|
561 |
|
562 |
== Upgrade Notice ==
|
|
|
|
|
|
|
|
|
|
|
|
|
563 |
= 7.0.2 =
|
564 |
-
* Slider Issue fixed.
|
565 |
* CSS Issue Fixed
|
566 |
* Minor bug fixes.
|
567 |
|
3 |
Donate link: https://www.miniorange.com
|
4 |
Tags: social login, social, facebook, twitter, google, login, facebook login, google login, google, twitter login, social connect, social network login, social plugin, Vkontakte, LinkedIn
|
5 |
Requires at least: 2.0.2
|
6 |
+
Tested up to: 4.9.8
|
7 |
+
Stable tag: 7.0.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
98 |
All other Social Login and Social Sharing applications are supported through a simple email to info@miniorange.com.
|
99 |
|
100 |
= Website - =
|
101 |
+
These additional features are available upon request. Send an email to info@miniorange.com if you need any of these features.
|
102 |
|
103 |
User Profile Data, integration with external softwares like salesforce, box, office 365 etc, and Social Analytics.
|
104 |
This can also captures users’ profile data, with their permission, and automatically creates a profile in miniOrange database and you can download it using a CSV file or a PDF file.
|
166 |
|
167 |
|
168 |
== Changelog ==
|
169 |
+
= 7.0.3 =
|
170 |
+
* "Malformed URL" issue fixed for custom apps
|
171 |
+
* Added Customizable text for account linking, profile completion and OTP verification form.
|
172 |
+
* Allow non-English characters for page and post title.(Removed sanitize_title in the filter)
|
173 |
+
* minor UI changes.
|
174 |
+
|
175 |
= 7.0.2 =
|
176 |
+
* Slider Issue fixed.
|
177 |
* CSS Issue Fixed
|
178 |
* Minor bug fixes.
|
179 |
|
221 |
* Removed rows in account linking table that have empty field values
|
222 |
|
223 |
= 6.6.0 =
|
224 |
+
* Added resend otp in Profile Completion
|
225 |
* Added column timestamp in account linking table
|
226 |
* Added option to disable custom app
|
227 |
* Added include_email parameter in for twitter custom app
|
298 |
* Compatibility with PHP 7.2.1
|
299 |
|
300 |
= 5.5.2 =
|
301 |
+
* Compatibility with International characters.
|
302 |
|
303 |
= 5.5.1 =
|
304 |
+
* Major Security Fix in login flow. Mandatory Update is required.
|
305 |
|
306 |
= 5.5 =
|
307 |
* Bug Fix in login flow
|
342 |
= 5.1.4 =
|
343 |
* Bug fix in Facebook share
|
344 |
* Bug fix in sending OTP
|
345 |
+
* Fix for URL indexing
|
346 |
|
347 |
= 5.1.3 =
|
348 |
* Improved Social Login for non-English characters
|
501 |
= 4.2.2 =
|
502 |
* Fix - minimum width of Social Login long button reduced
|
503 |
|
504 |
+
= 4.2.1 =
|
505 |
* Minor bug fix
|
506 |
|
507 |
= 4.2 =
|
519 |
* Added Troubleshooting section in plugin
|
520 |
* Social Sharing icons can be added before and after content
|
521 |
* Updated API for Facebook sharing
|
522 |
+
* Updated reset password API to send email
|
523 |
* Bug fixes for Social Sharing icons
|
524 |
* Improved theme compatibility
|
525 |
|
542 |
|
543 |
= 3.0.3 =
|
544 |
* Added social media applications Instagram, Windows Live, Amazon to social login widgets
|
545 |
+
* Added social media applications like Twitter, Pinterest and Reddit on social sharing.
|
546 |
* Added more theme options to select Social Login and Social Sharing icons.
|
547 |
|
548 |
= 3.0.2 =
|
549 |
+
* Added Social login for social media applications Facebook, Linkedin.
|
550 |
* Added new social sharing buttons for social media applications - Facebook, Google, LinkedIn.
|
551 |
|
552 |
= 3.0.1 =
|
566 |
* First version of Social Login, Social Sharing plugin.
|
567 |
|
568 |
== Upgrade Notice ==
|
569 |
+
= 7.0.3 =
|
570 |
+
* "Malformed URL" issue fixed for custom apps
|
571 |
+
* Added Customizable text for account linking, profile completion and OTP verification form.
|
572 |
+
* Allow non-English characters for page and post title.(Removed sanitize_title in the filter)
|
573 |
+
* minor UI changes.
|
574 |
+
|
575 |
= 7.0.2 =
|
576 |
+
* Slider Issue fixed.
|
577 |
* CSS Issue Fixed
|
578 |
* Minor bug fixes.
|
579 |
|
uninstall.php
CHANGED
@@ -119,6 +119,8 @@
|
|
119 |
delete_option( 'mo_openid_login_widget_customize_logout_text');
|
120 |
delete_option( 'mo_login_openid_login_widget_customize_textcolor');
|
121 |
delete_option('mo_openid_oauth');
|
|
|
|
|
122 |
delete_option('mo_openid_apps_list');
|
123 |
delete_option('mo_openid_enable_profile_completion');
|
124 |
|
@@ -158,5 +160,29 @@
|
|
158 |
delete_option('mo_delete_user_error_message');
|
159 |
delete_option('mo_account_linking_message');
|
160 |
|
161 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
162 |
?>
|
119 |
delete_option( 'mo_openid_login_widget_customize_logout_text');
|
120 |
delete_option( 'mo_login_openid_login_widget_customize_textcolor');
|
121 |
delete_option('mo_openid_oauth');
|
122 |
+
delete_option('mo_openid_new_user');
|
123 |
+
delete_option('mo_openid_malform_error');
|
124 |
delete_option('mo_openid_apps_list');
|
125 |
delete_option('mo_openid_enable_profile_completion');
|
126 |
|
160 |
delete_option('mo_delete_user_error_message');
|
161 |
delete_option('mo_account_linking_message');
|
162 |
|
163 |
+
//profile completion
|
164 |
+
delete_option( 'mo_profile_complete_title');
|
165 |
+
delete_option( 'mo_profile_complete_username_label');
|
166 |
+
delete_option( 'mo_profile_complete_email_label');
|
167 |
+
delete_option( 'mo_profile_complete_submit_button');
|
168 |
+
delete_option( 'mo_profile_complete_instruction');
|
169 |
+
delete_option( 'mo_profile_complete_extra_instruction');
|
170 |
+
delete_option( 'mo_profile_complete_uname_exist');
|
171 |
+
delete_option('mo_email_verify_resend_otp_button');
|
172 |
+
delete_option('mo_email_verify_back_button');
|
173 |
+
delete_option('mo_email_verify_title');
|
174 |
+
delete_option('mo_email_verify_message');
|
175 |
+
delete_option('mo_email_verify_verification_code_instruction');
|
176 |
+
delete_option('mo_email_verify_wrong_otp');
|
177 |
+
|
178 |
+
//account linking
|
179 |
+
delete_option( 'mo_account_linking_title');
|
180 |
+
delete_option( 'mo_account_linking_new_user_button');
|
181 |
+
delete_option( 'mo_account_linking_existing_user_button');
|
182 |
+
delete_option( 'mo_account_linking_new_user_instruction');
|
183 |
+
delete_option( 'mo_account_linking_existing_user_instruction');
|
184 |
+
delete_option( 'mo_account_linking_extra_instruction');
|
185 |
+
|
186 |
+
|
187 |
+
delete_option( 'mo_openid_feedback_form' );
|
188 |
?>
|