Version Description
- Added copy to clipboard option.
- Added redirect URL option after registration.
- Fixed GDPR issue.
Download this release
Release Info
Developer | cyberlord92 |
Plugin | Social Login |
Version | 7.2.7 |
Comparing to | |
See all releases |
Code changes from version 7.2.6 to 7.2.7
- class-mo-openid-login-widget.php +21 -8
- class-mo-openid-social-login-functions.php +6 -0
- includes/css/bootstrap-social.css +1 -1
- includes/css/mo_openid_style.css +81 -22
- includes/images/icons/odnoklassniki.png +0 -0
- includes/js/jquery.cookie.min.js +1 -0
- miniorange_openid_sso_settings.php +8 -2
- miniorange_openid_sso_settings_page.php +227 -148
- mo_openid_feedback_form.php +1 -1
- readme.txt +10 -1
- uninstall.php +4 -0
class-mo-openid-login-widget.php
CHANGED
@@ -61,7 +61,7 @@ include_once dirname(__FILE__) . '/miniorange_openid_sso_encryption.php';
|
|
61 |
$customLogoutLink = (get_option('mo_openid_login_widget_customize_logout_text'));
|
62 |
$customTextColor= esc_attr(get_option('mo_login_openid_login_widget_customize_textcolor'));
|
63 |
$customText = esc_html(get_option('mo_openid_login_widget_customize_text'));
|
64 |
-
|
65 |
$facebook_custom_app = esc_attr($this->if_custom_app_exists('facebook'));
|
66 |
$google_custom_app = esc_attr($this->if_custom_app_exists('google'));
|
67 |
$twitter_custom_app = esc_attr($this->if_custom_app_exists('twitter'));
|
@@ -1509,6 +1509,11 @@ include_once dirname(__FILE__) . '/miniorange_openid_sso_encryption.php';
|
|
1509 |
jQuery(".login-button").removeClass("dis");
|
1510 |
}
|
1511 |
}
|
|
|
|
|
|
|
|
|
|
|
1512 |
|
1513 |
function moOpenIdLogin(app_name,is_custom_app) {
|
1514 |
var current_url = window.location.href;
|
@@ -1845,12 +1850,12 @@ include_once dirname(__FILE__) . '/miniorange_openid_sso_encryption.php';
|
|
1845 |
}
|
1846 |
exit;
|
1847 |
}
|
1848 |
-
|
1849 |
else if ((isset($_POST['appname'])) && (isset($_POST['test_configuration']))){
|
1850 |
update_option( 'mo_openid_test_configuration', 1);
|
1851 |
exit;
|
1852 |
}
|
1853 |
-
|
1854 |
else if( isset($_POST['mo_openid_show_profile_form_nonce']) and isset( $_POST['option'] ) and strpos( $_POST['option'], 'mo_openid_show_profile_form' ) !== false ){
|
1855 |
$nonce = $_POST['mo_openid_show_profile_form_nonce'];
|
1856 |
if ( ! wp_verify_nonce( $nonce, 'mo-openid-user-show-profile-form-nonce' ) ) {
|
@@ -1859,9 +1864,9 @@ include_once dirname(__FILE__) . '/miniorange_openid_sso_encryption.php';
|
|
1859 |
$last_name = sanitize_text_field($_POST["last_name"]);
|
1860 |
$first_name = sanitize_text_field($_POST["first_name"]);
|
1861 |
$full_name = sanitize_text_field($_POST["user_full_name"]);
|
1862 |
-
$url = sanitize_text_field($_POST["user_url"]);
|
1863 |
-
$user_picture = sanitize_text_field($_POST["user_picture"]);
|
1864 |
-
$username_field = sanitize_text_field($_POST['username_field']);
|
1865 |
$email_field = sanitize_email($_POST['email_field']);
|
1866 |
$decrypted_app_name = sanitize_text_field($_POST["decrypted_app_name"]);
|
1867 |
$decrypted_user_id = sanitize_text_field($_POST["decrypted_user_id"]);
|
@@ -1998,6 +2003,7 @@ include_once dirname(__FILE__) . '/miniorange_openid_sso_encryption.php';
|
|
1998 |
update_user_meta($user_id, 'moopenid_user_avatar', $user_picture);
|
1999 |
}
|
2000 |
$_SESSION['mo_login'] = true;
|
|
|
2001 |
do_action( 'mo_user_register', $user_id,$user_profile_url);
|
2002 |
do_action( 'miniorange_collect_attributes_for_authenticated_user', $user, mo_openid_get_redirect_url());
|
2003 |
do_action( 'wp_login', $user->user_login, $user );
|
@@ -2084,7 +2090,7 @@ include_once dirname(__FILE__) . '/miniorange_openid_sso_encryption.php';
|
|
2084 |
|
2085 |
else if( strpos( $_SERVER['REQUEST_URI'], "openidcallback") !== false ||((strpos( $_SERVER['REQUEST_URI'], "oauth_token")!== false)&&(strpos( $_SERVER['REQUEST_URI'], "oauth_verifier") ) )) {
|
2086 |
mo_openid_process_custom_app_callback();
|
2087 |
-
}
|
2088 |
}
|
2089 |
|
2090 |
function mo_openid_json_to_htmltable($arr) {
|
@@ -2519,7 +2525,14 @@ function mo_openid_account_linking_form($username,$user_email,$first_name,$last_
|
|
2519 |
if(is_string($username) && $username && is_object($user) && !empty($user->ID) && ($user_id = $user->ID) && isset($_SESSION['mo_login']) && $_SESSION['mo_login']){
|
2520 |
$_SESSION['mo_login'] = false;
|
2521 |
wp_set_auth_cookie( $user_id, true );
|
2522 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2523 |
|
2524 |
wp_redirect($redirect_url);
|
2525 |
exit;
|
61 |
$customLogoutLink = (get_option('mo_openid_login_widget_customize_logout_text'));
|
62 |
$customTextColor= esc_attr(get_option('mo_login_openid_login_widget_customize_textcolor'));
|
63 |
$customText = esc_html(get_option('mo_openid_login_widget_customize_text'));
|
64 |
+
|
65 |
$facebook_custom_app = esc_attr($this->if_custom_app_exists('facebook'));
|
66 |
$google_custom_app = esc_attr($this->if_custom_app_exists('google'));
|
67 |
$twitter_custom_app = esc_attr($this->if_custom_app_exists('twitter'));
|
1509 |
jQuery(".login-button").removeClass("dis");
|
1510 |
}
|
1511 |
}
|
1512 |
+
var perfEntries = performance.getEntriesByType("navigation");
|
1513 |
+
|
1514 |
+
if (perfEntries[0].type === "back_forward") {
|
1515 |
+
location.reload(true);
|
1516 |
+
}
|
1517 |
|
1518 |
function moOpenIdLogin(app_name,is_custom_app) {
|
1519 |
var current_url = window.location.href;
|
1850 |
}
|
1851 |
exit;
|
1852 |
}
|
1853 |
+
|
1854 |
else if ((isset($_POST['appname'])) && (isset($_POST['test_configuration']))){
|
1855 |
update_option( 'mo_openid_test_configuration', 1);
|
1856 |
exit;
|
1857 |
}
|
1858 |
+
|
1859 |
else if( isset($_POST['mo_openid_show_profile_form_nonce']) and isset( $_POST['option'] ) and strpos( $_POST['option'], 'mo_openid_show_profile_form' ) !== false ){
|
1860 |
$nonce = $_POST['mo_openid_show_profile_form_nonce'];
|
1861 |
if ( ! wp_verify_nonce( $nonce, 'mo-openid-user-show-profile-form-nonce' ) ) {
|
1864 |
$last_name = sanitize_text_field($_POST["last_name"]);
|
1865 |
$first_name = sanitize_text_field($_POST["first_name"]);
|
1866 |
$full_name = sanitize_text_field($_POST["user_full_name"]);
|
1867 |
+
$url = sanitize_text_field($_POST["user_url"]);
|
1868 |
+
$user_picture = sanitize_text_field($_POST["user_picture"]);
|
1869 |
+
$username_field = sanitize_text_field($_POST['username_field']);
|
1870 |
$email_field = sanitize_email($_POST['email_field']);
|
1871 |
$decrypted_app_name = sanitize_text_field($_POST["decrypted_app_name"]);
|
1872 |
$decrypted_user_id = sanitize_text_field($_POST["decrypted_user_id"]);
|
2003 |
update_user_meta($user_id, 'moopenid_user_avatar', $user_picture);
|
2004 |
}
|
2005 |
$_SESSION['mo_login'] = true;
|
2006 |
+
$_SESSION['registered_user'] = '1';
|
2007 |
do_action( 'mo_user_register', $user_id,$user_profile_url);
|
2008 |
do_action( 'miniorange_collect_attributes_for_authenticated_user', $user, mo_openid_get_redirect_url());
|
2009 |
do_action( 'wp_login', $user->user_login, $user );
|
2090 |
|
2091 |
else if( strpos( $_SERVER['REQUEST_URI'], "openidcallback") !== false ||((strpos( $_SERVER['REQUEST_URI'], "oauth_token")!== false)&&(strpos( $_SERVER['REQUEST_URI'], "oauth_verifier") ) )) {
|
2092 |
mo_openid_process_custom_app_callback();
|
2093 |
+
}
|
2094 |
}
|
2095 |
|
2096 |
function mo_openid_json_to_htmltable($arr) {
|
2525 |
if(is_string($username) && $username && is_object($user) && !empty($user->ID) && ($user_id = $user->ID) && isset($_SESSION['mo_login']) && $_SESSION['mo_login']){
|
2526 |
$_SESSION['mo_login'] = false;
|
2527 |
wp_set_auth_cookie( $user_id, true );
|
2528 |
+
if($_SESSION['registered_user'] =='1' && get_option("mo_openid_registration_redirection_enable")=='1')
|
2529 |
+
{
|
2530 |
+
$redirect_url =get_option("mo_openid_relative_register_redirect_url");
|
2531 |
+
}
|
2532 |
+
else{
|
2533 |
+
$redirect_url = mo_openid_get_redirect_url();
|
2534 |
+
|
2535 |
+
}
|
2536 |
|
2537 |
wp_redirect($redirect_url);
|
2538 |
exit;
|
class-mo-openid-social-login-functions.php
CHANGED
@@ -148,6 +148,7 @@ function mo_openid_process_account_linking($username, $user_email, $first_name,
|
|
148 |
mo_openid_start_session();
|
149 |
|
150 |
$_SESSION['mo_login'] = true;
|
|
|
151 |
do_action( 'mo_user_register', $user_id,$meta_user_url);
|
152 |
do_action( 'miniorange_collect_attributes_for_authenticated_user', $user, mo_openid_get_redirect_url());
|
153 |
do_action( 'wp_login', $user->user_login, $user );
|
@@ -410,6 +411,7 @@ function mo_openid_social_login_validate_otp($username, $user_email, $first_name
|
|
410 |
$_SESSION['social_app_name'] = $decrypted_app_name;
|
411 |
$_SESSION['user_email'] = $user_email;
|
412 |
$_SESSION['social_user_id'] = $decrypted_user_id;
|
|
|
413 |
|
414 |
$user = get_user_by('email', $user_email );
|
415 |
|
@@ -656,6 +658,7 @@ function mo_openid_process_social_login(){
|
|
656 |
$_SESSION['social_app_name'] = $decrypted_app_name;
|
657 |
$_SESSION['user_email'] = $user_email;
|
658 |
$_SESSION['social_user_id'] = $decrypted_user_id;
|
|
|
659 |
|
660 |
$user = get_user_by('id', $user_id );
|
661 |
|
@@ -870,6 +873,7 @@ function mo_openid_process_social_login(){
|
|
870 |
$_SESSION['social_app_name'] = $decrypted_app_name;
|
871 |
$_SESSION['user_email'] = $user_email;
|
872 |
$_SESSION['social_user_id'] = $decrypted_user_id;
|
|
|
873 |
|
874 |
$user = get_user_by('email', $user_email );
|
875 |
|
@@ -1387,6 +1391,7 @@ background-color: #dff0d8; padding:2%;margin-bottom:20px;text-align:center; bord
|
|
1387 |
$_SESSION['social_app_name'] = $social_app_name;
|
1388 |
$_SESSION['user_email'] = $user_email;
|
1389 |
$_SESSION['social_user_id'] = $social_user_id;
|
|
|
1390 |
|
1391 |
$user = get_user_by('email', $user_email );
|
1392 |
|
@@ -1616,6 +1621,7 @@ background-color: #dff0d8; padding:2%;margin-bottom:20px;text-align:center; bord
|
|
1616 |
update_user_meta($user_id, 'moopenid_user_avatar', $user_picture);
|
1617 |
}
|
1618 |
$_SESSION['mo_login'] = true;
|
|
|
1619 |
|
1620 |
//registration hook
|
1621 |
do_action( 'mo_user_register', $user_id, $user_profile_url);
|
148 |
mo_openid_start_session();
|
149 |
|
150 |
$_SESSION['mo_login'] = true;
|
151 |
+
$_SESSION['registered_user'] = '1';
|
152 |
do_action( 'mo_user_register', $user_id,$meta_user_url);
|
153 |
do_action( 'miniorange_collect_attributes_for_authenticated_user', $user, mo_openid_get_redirect_url());
|
154 |
do_action( 'wp_login', $user->user_login, $user );
|
411 |
$_SESSION['social_app_name'] = $decrypted_app_name;
|
412 |
$_SESSION['user_email'] = $user_email;
|
413 |
$_SESSION['social_user_id'] = $decrypted_user_id;
|
414 |
+
$_SESSION['registered_user'] = '1';
|
415 |
|
416 |
$user = get_user_by('email', $user_email );
|
417 |
|
658 |
$_SESSION['social_app_name'] = $decrypted_app_name;
|
659 |
$_SESSION['user_email'] = $user_email;
|
660 |
$_SESSION['social_user_id'] = $decrypted_user_id;
|
661 |
+
$_SESSION['registered_user'] = '1';
|
662 |
|
663 |
$user = get_user_by('id', $user_id );
|
664 |
|
873 |
$_SESSION['social_app_name'] = $decrypted_app_name;
|
874 |
$_SESSION['user_email'] = $user_email;
|
875 |
$_SESSION['social_user_id'] = $decrypted_user_id;
|
876 |
+
$_SESSION['registered_user'] = '1';
|
877 |
|
878 |
$user = get_user_by('email', $user_email );
|
879 |
|
1391 |
$_SESSION['social_app_name'] = $social_app_name;
|
1392 |
$_SESSION['user_email'] = $user_email;
|
1393 |
$_SESSION['social_user_id'] = $social_user_id;
|
1394 |
+
$_SESSION['registered_user'] = '1';
|
1395 |
|
1396 |
$user = get_user_by('email', $user_email );
|
1397 |
|
1621 |
update_user_meta($user_id, 'moopenid_user_avatar', $user_picture);
|
1622 |
}
|
1623 |
$_SESSION['mo_login'] = true;
|
1624 |
+
$_SESSION['registered_user'] = '1';
|
1625 |
|
1626 |
//registration hook
|
1627 |
do_action( 'mo_user_register', $user_id, $user_profile_url);
|
includes/css/bootstrap-social.css
CHANGED
@@ -98,4 +98,4 @@
|
|
98 |
.btn-yahoo{color:#fff !important;background-color:#720e9e;border-color:rgba(0,0,0,0.2);background-image: linear-gradient(to bottom,#720e9e,#720e9e) !important;}.btn-yahoo:hover,.btn-yahoo:focus,.btn-yahoo:active,.btn-yahoo.active,.open>.dropdown-toggle.btn-yahoo{color:#fff;background-color:#500a6f;border-color:rgba(0,0,0,0.2);background-image: linear-gradient(to bottom,#500a6f,#500a6f) !important;}
|
99 |
.btn-yahoo:active,.btn-yahoo.active,.open>.dropdown-toggle.btn-yahoo{background-image:none}
|
100 |
.btn-yahoo.disabled,.btn-yahoo[disabled],fieldset[disabled] .btn-yahoo,.btn-yahoo.disabled:hover,.btn-yahoo[disabled]:hover,fieldset[disabled] .btn-yahoo:hover,.btn-yahoo.disabled:focus,.btn-yahoo[disabled]:focus,fieldset[disabled] .btn-yahoo:focus,.btn-yahoo.disabled:active,.btn-yahoo[disabled]:active,fieldset[disabled] .btn-yahoo:active,.btn-yahoo.disabled.active,.btn-yahoo[disabled].active,fieldset[disabled] .btn-yahoo.active{background-color:#720e9e;border-color:rgba(0,0,0,0.2);background-image: linear-gradient(to bottom,#720e9e,#720e9e) !important;}
|
101 |
-
.btn-yahoo .badge{color:#720e9e;background-color:#fff}
|
98 |
.btn-yahoo{color:#fff !important;background-color:#720e9e;border-color:rgba(0,0,0,0.2);background-image: linear-gradient(to bottom,#720e9e,#720e9e) !important;}.btn-yahoo:hover,.btn-yahoo:focus,.btn-yahoo:active,.btn-yahoo.active,.open>.dropdown-toggle.btn-yahoo{color:#fff;background-color:#500a6f;border-color:rgba(0,0,0,0.2);background-image: linear-gradient(to bottom,#500a6f,#500a6f) !important;}
|
99 |
.btn-yahoo:active,.btn-yahoo.active,.open>.dropdown-toggle.btn-yahoo{background-image:none}
|
100 |
.btn-yahoo.disabled,.btn-yahoo[disabled],fieldset[disabled] .btn-yahoo,.btn-yahoo.disabled:hover,.btn-yahoo[disabled]:hover,fieldset[disabled] .btn-yahoo:hover,.btn-yahoo.disabled:focus,.btn-yahoo[disabled]:focus,fieldset[disabled] .btn-yahoo:focus,.btn-yahoo.disabled:active,.btn-yahoo[disabled]:active,fieldset[disabled] .btn-yahoo:active,.btn-yahoo.disabled.active,.btn-yahoo[disabled].active,fieldset[disabled] .btn-yahoo.active{background-color:#720e9e;border-color:rgba(0,0,0,0.2);background-image: linear-gradient(to bottom,#720e9e,#720e9e) !important;}
|
101 |
+
.btn-yahoo .badge{color:#720e9e;background-color:#fff}
|
includes/css/mo_openid_style.css
CHANGED
@@ -221,8 +221,8 @@ a.mo-pugin-add-comp-link-sl {
|
|
221 |
|
222 |
|
223 |
.mo_table_layout {
|
224 |
-
background-color:#FFFFFF;
|
225 |
-
border:1px solid #CCCCCC;
|
226 |
padding:0px 10px 10px 10px;
|
227 |
margin-bottom: 10px;
|
228 |
}
|
@@ -235,15 +235,15 @@ a.mo-pugin-add-comp-link-sl {
|
|
235 |
}
|
236 |
.mo_openid_support_layout{
|
237 |
width: 93%;
|
238 |
-
background-color:#FFFFFF;
|
239 |
-
border:1px solid #CCCCCC;
|
240 |
-
padding-left:20px;
|
241 |
height:409px;
|
242 |
-
|
243 |
}
|
244 |
.mo_openid_table_layout {
|
245 |
-
background-color:#FFFFFF;
|
246 |
-
border:1px solid #CCCCCC;
|
247 |
padding:0px 10px 10px 10px;
|
248 |
margin-bottom: 10px;
|
249 |
height:auto;
|
@@ -283,14 +283,14 @@ a.mo-pugin-add-comp-link-sl {
|
|
283 |
}
|
284 |
|
285 |
.mo-openid-app-icons>a>img{
|
286 |
-
width:35px !important;
|
287 |
height:35px !important;
|
288 |
margin:8px 0px;
|
289 |
display: inline !important;
|
290 |
}
|
291 |
|
292 |
.mo-openid-app-share-icons{
|
293 |
-
width:35px !important;
|
294 |
height:35px !important;
|
295 |
display:inline !important;
|
296 |
}
|
@@ -316,7 +316,7 @@ div.mo_image_id>a>img.mo_openid_image {
|
|
316 |
}
|
317 |
|
318 |
.circle{
|
319 |
-
|
320 |
border-radius: 999px !important;
|
321 |
|
322 |
}
|
@@ -326,7 +326,7 @@ border-radius: 4px !important;
|
|
326 |
}
|
327 |
|
328 |
.round{
|
329 |
-
|
330 |
border-radius: 999px !important;
|
331 |
}
|
332 |
|
@@ -346,11 +346,11 @@ margin:0px !important;
|
|
346 |
|
347 |
.theme-checkbox{
|
348 |
vertical-align :super !important;
|
349 |
-
}
|
350 |
|
351 |
a{
|
352 |
cursor:pointer;
|
353 |
-
|
354 |
}
|
355 |
|
356 |
.mo_openid_display_interface{
|
@@ -384,7 +384,7 @@ a{
|
|
384 |
}
|
385 |
|
386 |
.btn-custom-dec{
|
387 |
-
text-decoration:none !important;
|
388 |
}
|
389 |
|
390 |
.mo-custom-share-icon{
|
@@ -403,7 +403,7 @@ text-decoration:none !important;
|
|
403 |
cursor: pointer;
|
404 |
font-weight: bold;
|
405 |
}
|
406 |
-
|
407 |
#TB_window, #TB_window #TB_ajaxContent {
|
408 |
width:500px!important;
|
409 |
}
|
@@ -514,7 +514,7 @@ text-decoration:none !important;
|
|
514 |
}
|
515 |
|
516 |
.mo_openid_license_select_option option {
|
517 |
-
text-align:center;
|
518 |
}
|
519 |
.mo-openid-app-icons>a{
|
520 |
box-shadow: inset 0 -1px 0 rgba(15, 15, 15, 0) !important;
|
@@ -536,33 +536,33 @@ box-shadow: inset 0 -1px 0 rgba(15, 15, 15, 0)!important;}
|
|
536 |
|
537 |
.mo-openid-app-icons>div>a.mo-openid-share-link>img.mo-openid-app-share-icons
|
538 |
{
|
539 |
-
|
540 |
box-shadow:0 0 0 0px #fff !important;
|
541 |
}
|
542 |
|
543 |
|
544 |
.mo-openid-app-icons>div>a.mo-openid-share-link
|
545 |
{ box-shadow: inset 0 -1px 0 rgba(15, 15, 15, 0) !important;
|
546 |
-
|
547 |
}
|
548 |
|
549 |
|
550 |
p>a.mo-openid-share-link>img.mo-openid-app-share-icons
|
551 |
{
|
552 |
-
|
553 |
box-shadow:0 0 0 0px #fff !important;
|
554 |
}
|
555 |
|
556 |
p>a.mo-openid-share-link
|
557 |
{ box-shadow: inset 0 -1px 0 rgba(15, 15, 15, 0)!important;
|
558 |
|
559 |
-
|
560 |
}
|
561 |
|
562 |
aside.widget-area>section.widget_mo_openid_sharing_hor_wid>div.mo-openid-app-icons>div
|
563 |
{
|
564 |
font-size:0 !important;
|
565 |
-
|
566 |
}
|
567 |
|
568 |
.mo-switch {
|
@@ -634,3 +634,62 @@ aside.widget-area>section.widget_mo_openid_sharing_hor_wid>div.mo-openid-app-ico
|
|
634 |
.mo-tomato {
|
635 |
color: tomato;
|
636 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
221 |
|
222 |
|
223 |
.mo_table_layout {
|
224 |
+
background-color:#FFFFFF;
|
225 |
+
border:1px solid #CCCCCC;
|
226 |
padding:0px 10px 10px 10px;
|
227 |
margin-bottom: 10px;
|
228 |
}
|
235 |
}
|
236 |
.mo_openid_support_layout{
|
237 |
width: 93%;
|
238 |
+
background-color:#FFFFFF;
|
239 |
+
border:1px solid #CCCCCC;
|
240 |
+
padding-left:20px;
|
241 |
height:409px;
|
242 |
+
|
243 |
}
|
244 |
.mo_openid_table_layout {
|
245 |
+
background-color:#FFFFFF;
|
246 |
+
border:1px solid #CCCCCC;
|
247 |
padding:0px 10px 10px 10px;
|
248 |
margin-bottom: 10px;
|
249 |
height:auto;
|
283 |
}
|
284 |
|
285 |
.mo-openid-app-icons>a>img{
|
286 |
+
width:35px !important;
|
287 |
height:35px !important;
|
288 |
margin:8px 0px;
|
289 |
display: inline !important;
|
290 |
}
|
291 |
|
292 |
.mo-openid-app-share-icons{
|
293 |
+
width:35px !important;
|
294 |
height:35px !important;
|
295 |
display:inline !important;
|
296 |
}
|
316 |
}
|
317 |
|
318 |
.circle{
|
319 |
+
|
320 |
border-radius: 999px !important;
|
321 |
|
322 |
}
|
326 |
}
|
327 |
|
328 |
.round{
|
329 |
+
|
330 |
border-radius: 999px !important;
|
331 |
}
|
332 |
|
346 |
|
347 |
.theme-checkbox{
|
348 |
vertical-align :super !important;
|
349 |
+
}
|
350 |
|
351 |
a{
|
352 |
cursor:pointer;
|
353 |
+
|
354 |
}
|
355 |
|
356 |
.mo_openid_display_interface{
|
384 |
}
|
385 |
|
386 |
.btn-custom-dec{
|
387 |
+
text-decoration:none !important;
|
388 |
}
|
389 |
|
390 |
.mo-custom-share-icon{
|
403 |
cursor: pointer;
|
404 |
font-weight: bold;
|
405 |
}
|
406 |
+
|
407 |
#TB_window, #TB_window #TB_ajaxContent {
|
408 |
width:500px!important;
|
409 |
}
|
514 |
}
|
515 |
|
516 |
.mo_openid_license_select_option option {
|
517 |
+
text-align:center;
|
518 |
}
|
519 |
.mo-openid-app-icons>a{
|
520 |
box-shadow: inset 0 -1px 0 rgba(15, 15, 15, 0) !important;
|
536 |
|
537 |
.mo-openid-app-icons>div>a.mo-openid-share-link>img.mo-openid-app-share-icons
|
538 |
{
|
539 |
+
|
540 |
box-shadow:0 0 0 0px #fff !important;
|
541 |
}
|
542 |
|
543 |
|
544 |
.mo-openid-app-icons>div>a.mo-openid-share-link
|
545 |
{ box-shadow: inset 0 -1px 0 rgba(15, 15, 15, 0) !important;
|
546 |
+
|
547 |
}
|
548 |
|
549 |
|
550 |
p>a.mo-openid-share-link>img.mo-openid-app-share-icons
|
551 |
{
|
552 |
+
|
553 |
box-shadow:0 0 0 0px #fff !important;
|
554 |
}
|
555 |
|
556 |
p>a.mo-openid-share-link
|
557 |
{ box-shadow: inset 0 -1px 0 rgba(15, 15, 15, 0)!important;
|
558 |
|
559 |
+
|
560 |
}
|
561 |
|
562 |
aside.widget-area>section.widget_mo_openid_sharing_hor_wid>div.mo-openid-app-icons>div
|
563 |
{
|
564 |
font-size:0 !important;
|
565 |
+
|
566 |
}
|
567 |
|
568 |
.mo-switch {
|
634 |
.mo-tomato {
|
635 |
color: tomato;
|
636 |
}
|
637 |
+
.mo_copy{
|
638 |
+
border: 1px solid #CCCCCC;
|
639 |
+
padding:8px;
|
640 |
+
background-color:#FBFBFB;
|
641 |
+
cursor: pointer;
|
642 |
+
}
|
643 |
+
|
644 |
+
.mo_copy:active{
|
645 |
+
background-color:#CCCCCC;
|
646 |
+
}
|
647 |
+
|
648 |
+
/* Tooltip container */
|
649 |
+
.copytooltip {
|
650 |
+
position: relative;
|
651 |
+
display: inline-block;
|
652 |
+
size: letter;
|
653 |
+
/* If you want dots under the hoverable text */
|
654 |
+
}
|
655 |
+
|
656 |
+
/* Tooltip text */
|
657 |
+
.copytooltip .copytooltiptext {
|
658 |
+
visibility: hidden;
|
659 |
+
width: 120px;
|
660 |
+
|
661 |
+
background-color:grey;
|
662 |
+
color: white;
|
663 |
+
text-align: center;
|
664 |
+
padding: 5px 0;
|
665 |
+
border-radius: 6px;
|
666 |
+
font-size: 12px;
|
667 |
+
/* Position the tooltip text */
|
668 |
+
position: absolute;
|
669 |
+
z-index: 1;
|
670 |
+
bottom: 125%;
|
671 |
+
left: 50%;
|
672 |
+
margin-left: -60px;
|
673 |
+
font-size: small;
|
674 |
+
/* Fade in tooltip */
|
675 |
+
opacity: 50;
|
676 |
+
transition: opacity 0.3s;
|
677 |
+
}
|
678 |
+
|
679 |
+
/* Tooltip arrow */
|
680 |
+
.copytooltip .copytooltiptext::after {
|
681 |
+
content: "";
|
682 |
+
position: absolute;
|
683 |
+
top: 100%;
|
684 |
+
left: 50%;
|
685 |
+
margin-left: -5px;
|
686 |
+
border-width: 5px;
|
687 |
+
border-style: solid;
|
688 |
+
border-color: #555 transparent transparent transparent;
|
689 |
+
}
|
690 |
+
|
691 |
+
/* Show the tooltip text when you mouse over the tooltip container */
|
692 |
+
.copytooltip:hover .copytooltiptext {
|
693 |
+
visibility: visible;
|
694 |
+
opacity: 1;
|
695 |
+
}
|
includes/images/icons/odnoklassniki.png
CHANGED
Binary file
|
includes/js/jquery.cookie.min.js
CHANGED
@@ -8,4 +8,5 @@
|
|
8 |
if (window.location.hash && window.location.hash == '#_=_') {
|
9 |
window.location.href = window.location.href.split('#_=_')[0];
|
10 |
}
|
|
|
11 |
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a){function b(a){return h.raw?a:encodeURIComponent(a)}function c(a){return h.raw?a:decodeURIComponent(a)}function d(a){return b(h.json?JSON.stringify(a):String(a))}function e(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return a=decodeURIComponent(a.replace(g," ")),h.json?JSON.parse(a):a}catch(b){}}function f(b,c){var d=h.raw?b:e(b);return a.isFunction(c)?c(d):d}var g=/\+/g,h=a.cookie=function(e,g,i){if(void 0!==g&&!a.isFunction(g)){if(i=a.extend({},h.defaults,i),"number"==typeof i.expires){var j=i.expires,k=i.expires=new Date;k.setTime(+k+864e5*j)}return document.cookie=[b(e),"=",d(g),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}for(var l=e?void 0:{},m=document.cookie?document.cookie.split("; "):[],n=0,o=m.length;o>n;n++){var p=m[n].split("="),q=c(p.shift()),r=p.join("=");if(e&&e===q){l=f(r,g);break}e||void 0===(r=f(r))||(l[q]=r)}return l};h.defaults={},a.removeCookie=function(b,c){return void 0===a.cookie(b)?!1:(a.cookie(b,"",a.extend({},c,{expires:-1})),!a.cookie(b))}});
|
8 |
if (window.location.hash && window.location.hash == '#_=_') {
|
9 |
window.location.href = window.location.href.split('#_=_')[0];
|
10 |
}
|
11 |
+
|
12 |
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a){function b(a){return h.raw?a:encodeURIComponent(a)}function c(a){return h.raw?a:decodeURIComponent(a)}function d(a){return b(h.json?JSON.stringify(a):String(a))}function e(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return a=decodeURIComponent(a.replace(g," ")),h.json?JSON.parse(a):a}catch(b){}}function f(b,c){var d=h.raw?b:e(b);return a.isFunction(c)?c(d):d}var g=/\+/g,h=a.cookie=function(e,g,i){if(void 0!==g&&!a.isFunction(g)){if(i=a.extend({},h.defaults,i),"number"==typeof i.expires){var j=i.expires,k=i.expires=new Date;k.setTime(+k+864e5*j)}return document.cookie=[b(e),"=",d(g),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}for(var l=e?void 0:{},m=document.cookie?document.cookie.split("; "):[],n=0,o=m.length;o>n;n++){var p=m[n].split("="),q=c(p.shift()),r=p.join("=");if(e&&e===q){l=f(r,g);break}e||void 0===(r=f(r))||(l[q]=r)}return l};h.defaults={},a.removeCookie=function(b,c){return void 0===a.cookie(b)?!1:(a.cookie(b,"",a.extend({},c,{expires:-1})),!a.cookie(b))}});
|
miniorange_openid_sso_settings.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Social Login, Social Sharing by miniOrange
|
4 |
* Plugin URI: https://plugins.miniorange.com/social-login-social-sharing
|
5 |
* Description: Allow your users to login, comment and share with social login apps like Facebook, Google, Twitter, LinkedIn etc using customizable buttons.
|
6 |
-
* Version: 7.2.
|
7 |
* Author: social login (miniOrange)
|
8 |
* License URI: http://miniorange.com/usecases/miniOrange_User_Agreement.pdf
|
9 |
*/
|
@@ -13,7 +13,7 @@ include_once dirname( __FILE__ ) . '/class-mo-openid-login-widget.php';
|
|
13 |
require('class-mo-openid-sso-customer.php');
|
14 |
require('class-mo-openid-sso-shortcode-buttons.php');
|
15 |
require('class-mo-openid-social-comment.php');
|
16 |
-
define('MO_OPENID_SOCIAL_LOGIN_VERSION', '7.2.
|
17 |
include dirname( __FILE__ ) . '/mo_openid_feedback_form.php';
|
18 |
class Miniorange_OpenID_SSO {
|
19 |
|
@@ -169,6 +169,8 @@ class Miniorange_OpenID_SSO {
|
|
169 |
|
170 |
//set default values
|
171 |
add_option( 'mo_openid_login_redirect', 'same' );
|
|
|
|
|
172 |
add_option( 'mo_openid_login_theme', 'longbutton' );
|
173 |
add_option( 'mo_openid_oauth','0');
|
174 |
add_option('mo_openid_new_user','0');
|
@@ -982,6 +984,10 @@ Thank you.';
|
|
982 |
update_option( 'mo_openid_login_redirect_url', sanitize_text_field($_POST['mo_openid_login_redirect_url'] ));
|
983 |
update_option( 'mo_openid_relative_login_redirect_url', isset( $_POST['mo_openid_relative_login_redirect_url']) ? sanitize_text_field($_POST['mo_openid_relative_login_redirect_url']) : "" );
|
984 |
|
|
|
|
|
|
|
|
|
985 |
//Logout Url
|
986 |
update_option( 'mo_openid_logout_redirection_enable', isset( $_POST['mo_openid_logout_redirection_enable']) ? sanitize_text_field($_POST['mo_openid_logout_redirection_enable']) : 0);
|
987 |
update_option( 'mo_openid_logout_redirect', sanitize_text_field($_POST['mo_openid_logout_redirect']));
|
3 |
* Plugin Name: Social Login, Social Sharing by miniOrange
|
4 |
* Plugin URI: https://plugins.miniorange.com/social-login-social-sharing
|
5 |
* Description: Allow your users to login, comment and share with social login apps like Facebook, Google, Twitter, LinkedIn etc using customizable buttons.
|
6 |
+
* Version: 7.2.7
|
7 |
* Author: social login (miniOrange)
|
8 |
* License URI: http://miniorange.com/usecases/miniOrange_User_Agreement.pdf
|
9 |
*/
|
13 |
require('class-mo-openid-sso-customer.php');
|
14 |
require('class-mo-openid-sso-shortcode-buttons.php');
|
15 |
require('class-mo-openid-social-comment.php');
|
16 |
+
define('MO_OPENID_SOCIAL_LOGIN_VERSION', '7.2.7');
|
17 |
include dirname( __FILE__ ) . '/mo_openid_feedback_form.php';
|
18 |
class Miniorange_OpenID_SSO {
|
19 |
|
169 |
|
170 |
//set default values
|
171 |
add_option( 'mo_openid_login_redirect', 'same' );
|
172 |
+
add_option( 'mo_openid_registration_redirection_enable', '0');
|
173 |
+
add_option( 'mo_openid_relative_register_redirect_url', site_url());
|
174 |
add_option( 'mo_openid_login_theme', 'longbutton' );
|
175 |
add_option( 'mo_openid_oauth','0');
|
176 |
add_option('mo_openid_new_user','0');
|
984 |
update_option( 'mo_openid_login_redirect_url', sanitize_text_field($_POST['mo_openid_login_redirect_url'] ));
|
985 |
update_option( 'mo_openid_relative_login_redirect_url', isset( $_POST['mo_openid_relative_login_redirect_url']) ? sanitize_text_field($_POST['mo_openid_relative_login_redirect_url']) : "" );
|
986 |
|
987 |
+
//Redirect URL after registration
|
988 |
+
update_option('mo_openid_registration_redirection_enable', isset($_POST['mo_openid_registration_redirection_enable']) ? sanitize_text_field($_POST['mo_openid_registration_redirection_enable']) : '0');
|
989 |
+
update_option('mo_openid_relative_register_redirect_url', isset($_POST['mo_openid_relative_register_redirect_url']) ? sanitize_text_field($_POST['mo_openid_relative_register_redirect_url']) : site_url());
|
990 |
+
|
991 |
//Logout Url
|
992 |
update_option( 'mo_openid_logout_redirection_enable', isset( $_POST['mo_openid_logout_redirection_enable']) ? sanitize_text_field($_POST['mo_openid_logout_redirection_enable']) : 0);
|
993 |
update_option( 'mo_openid_logout_redirect', sanitize_text_field($_POST['mo_openid_logout_redirect']));
|
miniorange_openid_sso_settings_page.php
CHANGED
@@ -241,14 +241,14 @@ function mo_register_openid() {
|
|
241 |
<td style="vertical-align:top;width:65%;">
|
242 |
<?php mo_openid_custom_app_config();?>
|
243 |
</td>
|
244 |
-
|
245 |
<td style="vertical-align:top;padding-left:1%;">
|
246 |
<?php echo miniorange_openid_support(); ?>
|
247 |
</td></tr></table></div></div>
|
248 |
<?php
|
249 |
}
|
250 |
-
|
251 |
-
|
252 |
|
253 |
?>
|
254 |
</table>
|
@@ -337,8 +337,8 @@ function mo_openid_show_new_registration_page() {
|
|
337 |
<input type="hidden" name="option" value="mo_openid_connect_register_customer" />
|
338 |
<input type="hidden" name="mo_openid_connect_register_nonce"
|
339 |
value="<?php echo wp_create_nonce( 'mo-openid-connect-register-nonce' ); ?>"/>
|
340 |
-
|
341 |
-
|
342 |
<div class="mo_openid_table_layout">
|
343 |
<h3>Register with miniOrange</h3>
|
344 |
|
@@ -528,22 +528,37 @@ function mo_openid_apps_config() {
|
|
528 |
</table>
|
529 |
</td>
|
530 |
</tr>
|
531 |
-
|
532 |
-
|
533 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
534 |
<td>
|
535 |
-
<div>
|
536 |
-
<input type="checkbox" id="facebook_enable" class="app_enable tooltip" name="mo_openid_facebook_enable" value="1" <?php $x=is_custom_app('facebook');echo "onchange='previewLoginIcons(),redirectto_custom_tab(".$x.")'";?>
|
537 |
-
<?php checked( get_option('mo_openid_facebook_enable') == 1 );?> /><strong> Facebook </strong>
|
538 |
-
               <input type="checkbox" class="app_enable" disabled="disabled" /><strong><span style="color: red">*</span>Disqus</strong>
|
539 |
-
            <input type="checkbox" class="app_enable" disabled="disabled" /><strong><span style="color: red">*</span>Vimeo</strong>
|
540 |
-
            <input type="checkbox" class="app_enable" disabled="disabled" /><strong><span style="color: red">*</span>Kakao</strong>
|
541 |
-
</div>
|
542 |
-
</td>
|
543 |
-
</tr>
|
544 |
-
</table></td></tr>
|
545 |
-
<tr>
|
546 |
-
<td>
|
547 |
|
548 |
<br>
|
549 |
<strong><span style="color: red">*</span>Available in standard and premium plugins.</strong><br/>
|
@@ -881,8 +896,18 @@ function mo_openid_apps_config() {
|
|
881 |
</tr>
|
882 |
|
883 |
<tr><td> </td></tr>
|
884 |
-
|
885 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
886 |
<input type="checkbox" id="logout_redirection_enable" name="mo_openid_logout_redirection_enable" value="1"
|
887 |
<?php checked( get_option('mo_openid_logout_redirection_enable') == 1 );?> />
|
888 |
<b>Enable Logout Redirection</b>
|
@@ -1588,18 +1613,18 @@ function customize_email_verify_img(){
|
|
1588 |
</div>
|
1589 |
</td>
|
1590 |
</tr>
|
1591 |
-
|
1592 |
|
1593 |
|
1594 |
|
1595 |
-
|
|
|
1596 |
<?php if(mo_openid_is_customer_valid() && !mo_openid_get_customer_plan('Do It Yourself')) { ?>
|
1597 |
<tr><td> </td></tr>
|
1598 |
<tr>
|
1599 |
<td><input type="checkbox" id="moopenid_user_attributes" name="moopenid_user_attributes" value="1" <?php checked( get_option('moopenid_user_attributes') == 1 );?> /><b>Extended User Attributes</b>
|
1600 |
</td>
|
1601 |
</tr>
|
1602 |
-
<?php } else {
|
1603 |
if(get_option('moopenid_user_attributes')) update_option('moopenid_user_attributes', 0);
|
1604 |
} ?>
|
1605 |
<tr>
|
@@ -2012,7 +2037,7 @@ function mo_openid_app_comment() {
|
|
2012 |
<input type="hidden" name="mo_openid_comment_settings_nonce"
|
2013 |
value="<?php echo wp_create_nonce( 'mo-openid-comment-settings-nonce' ); ?>"/>
|
2014 |
<div class="mo_openid_table_layout">
|
2015 |
-
|
2016 |
<table class="mo_openid_display_table">
|
2017 |
|
2018 |
<tr>
|
@@ -2090,7 +2115,7 @@ function mo_openid_app_comment() {
|
|
2090 |
<td><b>Comments - Google Label:</b></td>
|
2091 |
<td><input class="mo_openid_table_textbox" type="text" name="mo_openid_social_comment_google_label" value="<?php echo esc_attr(get_option('mo_openid_social_comment_google_label')); ?>" /></td>
|
2092 |
</tr></table></td></tr>
|
2093 |
-
|
2094 |
<tr>
|
2095 |
<td><br /><input type="submit" name="submit" value="Save" style="width:100px;" class="button button-primary button-large" />
|
2096 |
</td>
|
@@ -2176,7 +2201,7 @@ function mo_openid_app_comment() {
|
|
2176 |
}
|
2177 |
|
2178 |
function mo_openid_other_settings(){
|
2179 |
-
|
2180 |
?>
|
2181 |
<td style="vertical-align:top;width:65%;">
|
2182 |
<form name="f" method="post" id="settings_form" action="">
|
@@ -2192,10 +2217,10 @@ function mo_openid_other_settings(){
|
|
2192 |
</h3>
|
2193 |
<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>
|
2194 |
</td>
|
2195 |
-
|
2196 |
</tr>
|
2197 |
</table>
|
2198 |
-
|
2199 |
<table class="mo_openid_settings_table">
|
2200 |
<tr id="sel_apps"><td><table><h3>Select Social Apps</h3>
|
2201 |
<p>Select applications to enable social sharing</p>
|
@@ -2204,7 +2229,7 @@ function mo_openid_other_settings(){
|
|
2204 |
|
2205 |
<tr>
|
2206 |
<td style="width:20%">
|
2207 |
-
<input type="checkbox" id="facebook_share_enable" class="app_enable" name="mo_openid_facebook_share_enable" value="1"
|
2208 |
onclick="addSelectedApps();" <?php checked( get_option('mo_openid_facebook_share_enable') == 1 );?> />
|
2209 |
<strong>Facebook</strong>
|
2210 |
</td>
|
@@ -2219,7 +2244,7 @@ function mo_openid_other_settings(){
|
|
2219 |
<?php checked( get_option('mo_openid_google_share_enable') == 1 );?> />
|
2220 |
<strong>Google</strong>
|
2221 |
</td>
|
2222 |
-
|
2223 |
<td style="width:20%">
|
2224 |
<input type="checkbox" id="vkontakte_share_enable" class="app_enable" name="mo_openid_vkontakte_share_enable" value="1"
|
2225 |
onclick="addSelectedApps();" <?php checked( get_option('mo_openid_vkontakte_share_enable') == 1 );?> />
|
@@ -2261,33 +2286,33 @@ function mo_openid_other_settings(){
|
|
2261 |
</tr>
|
2262 |
<tr>
|
2263 |
<td style="width:20%">
|
2264 |
-
<input type="checkbox" id="digg_share_enable" class="app_enable" name="mo_openid_digg_share_enable" value="1"
|
2265 |
onclick="addSelectedApps();" <?php checked( get_option('mo_openid_digg_share_enable') == 1 );?> />
|
2266 |
<strong>Digg</strong>
|
2267 |
</td>
|
2268 |
<td style="width:20%">
|
2269 |
-
<input type="checkbox" id="delicious_share_enable" class="app_enable" name="mo_openid_delicious_share_enable" value="1"
|
2270 |
onclick="addSelectedApps();" <?php checked( get_option('mo_openid_delicious_share_enable') == 1 );?> />
|
2271 |
<strong>Delicious</strong></td>
|
2272 |
<td style="width:20%">
|
2273 |
-
<input type="checkbox" id="odnoklassniki_share_enable" class="app_enable" name="mo_openid_odnoklassniki_share_enable" value="1"
|
2274 |
onclick="addSelectedApps();" <?php checked( get_option('mo_openid_odnoklassniki_share_enable') == 1 );?> />
|
2275 |
<strong>Odnoklassniki</strong>
|
2276 |
</td>
|
2277 |
<td style="width:20%">
|
2278 |
-
<input type="checkbox" id="mail_share_enable" class="app_enable" name="mo_openid_mail_share_enable" value="1"
|
2279 |
onclick="addSelectedApps();moSharingPreview();" <?php checked( get_option('mo_openid_mail_share_enable') == 1 );?> />
|
2280 |
<strong>Email</strong>
|
2281 |
</td>
|
2282 |
<td style="width:20%">
|
2283 |
-
<input type="checkbox" id="print_share_enable" class="app_enable" name="mo_openid_print_share_enable" value="1"
|
2284 |
onclick="addSelectedApps();moSharingPreview();" <?php checked( get_option('mo_openid_print_share_enable') == 1 );?> />
|
2285 |
<strong>Print</strong>
|
2286 |
</td>
|
2287 |
</tr>
|
2288 |
<tr>
|
2289 |
<td style="width:20%">
|
2290 |
-
<input type="checkbox" id="whatsapp_share_enable" class="app_enable" name="mo_openid_whatsapp_share_enable" value="1"
|
2291 |
onclick="addSelectedApps();moSharingPreview();" <?php checked( get_option('mo_openid_whatsapp_share_enable') == 1 );?> />
|
2292 |
<strong>Whatsapp</strong>
|
2293 |
</td>
|
@@ -2298,10 +2323,10 @@ function mo_openid_other_settings(){
|
|
2298 |
</table>
|
2299 |
</td>
|
2300 |
</tr>
|
2301 |
-
|
2302 |
|
2303 |
-
|
2304 |
-
|
|
|
2305 |
<tr id="cust_icon"><td><table><tr>
|
2306 |
<td>
|
2307 |
<br>
|
@@ -2323,7 +2348,7 @@ function mo_openid_other_settings(){
|
|
2323 |
<td style="width:inherit;"> <!-- Shape radio buttons -->
|
2324 |
<!-- Round -->
|
2325 |
<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
|
2326 |
-
|
2327 |
</td>
|
2328 |
<td><!-- Theme radio buttons -->
|
2329 |
<!-- Default -->
|
@@ -2337,9 +2362,9 @@ function mo_openid_other_settings(){
|
|
2337 |
</td>
|
2338 |
<td> <!-- Size buttons-->
|
2339 |
<input style="width:50px" id="mo_sharing_icon_size" onkeyup="moSharingSizeValidate(this)" name="mo_sharing_icon_custom_size" type="text" value="<?php echo esc_attr(get_option('mo_sharing_icon_custom_size'))?>" >
|
2340 |
-
|
2341 |
<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)" >
|
2342 |
-
|
2343 |
<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)" >
|
2344 |
</td>
|
2345 |
</tr>
|
@@ -2350,7 +2375,7 @@ function mo_openid_other_settings(){
|
|
2350 |
</td>
|
2351 |
<td> <!-- Theme radio buttons -->
|
2352 |
<!-- Custom background -->
|
2353 |
-
|
2354 |
<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)"
|
2355 |
<?php checked( get_option('mo_openid_share_custom_theme') == 'custom' );?> />Custom background*
|
2356 |
</td>
|
@@ -2364,7 +2389,7 @@ function mo_openid_other_settings(){
|
|
2364 |
</td>
|
2365 |
<td> <!-- Theme radio buttons -->
|
2366 |
<!-- Custom background textbox -->
|
2367 |
-
|
2368 |
<input id="mo_sharing_icon_custom_color" name="mo_sharing_icon_custom_color" class="color" value="<?php echo esc_attr(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)" >
|
2369 |
</td>
|
2370 |
<td></td>
|
@@ -2390,17 +2415,17 @@ function mo_openid_other_settings(){
|
|
2390 |
</tr>
|
2391 |
</table>
|
2392 |
</td>
|
2393 |
-
</tr>
|
2394 |
-
|
2395 |
-
<tr><td> </td></tr>
|
2396 |
-
|
2397 |
<tr>
|
2398 |
<td><b>Preview: </b><br/><span hidden id="no_apps_text">No apps selected</span></td>
|
2399 |
</tr>
|
2400 |
-
|
2401 |
<tr>
|
2402 |
<td>
|
2403 |
-
|
2404 |
<div>
|
2405 |
<img class="mo_sharing_icon_preview" id="mo_sharing_icon_preview_facebook" src="<?php echo plugins_url( 'includes/images/icons/facebook.png', __FILE__ )?>" />
|
2406 |
<img class="mo_sharing_icon_preview" id="mo_sharing_icon_preview_twitter" src="<?php echo plugins_url( 'includes/images/icons/twitter.png', __FILE__ )?>" />
|
@@ -2419,7 +2444,7 @@ function mo_openid_other_settings(){
|
|
2419 |
<img class="mo_sharing_icon_preview" id="mo_sharing_icon_preview_print" src="<?php echo plugins_url( 'includes/images/icons/print.png', __FILE__ )?>"/>
|
2420 |
<img class="mo_sharing_icon_preview" id="mo_sharing_icon_preview_whatsapp" src="<?php echo plugins_url( 'includes/images/icons/whatsapp.png', __FILE__ )?>"/>
|
2421 |
</div>
|
2422 |
-
|
2423 |
<div>
|
2424 |
<i class="mo_custom_sharing_icon_preview fa fa-facebook" id="mo_custom_sharing_icon_preview_facebook" style="color:#ffffff;text-align:center;margin-top:5px;"></i>
|
2425 |
<i class="mo_custom_sharing_icon_preview fa fa-twitter" id="mo_custom_sharing_icon_preview_twitter" style="color:#ffffff;text-align:center;margin-top:5px;" ></i>
|
@@ -2438,7 +2463,7 @@ function mo_openid_other_settings(){
|
|
2438 |
<i class="mo_custom_sharing_icon_preview fa fa-print" id="mo_custom_sharing_icon_preview_print" style="color:#ffffff;text-align:center; "></i>
|
2439 |
<i class="mo_custom_sharing_icon_preview fa fa-whatsapp" id="mo_custom_sharing_icon_preview_whatsapp" style="color:#ffffff;text-align:center; "></i>
|
2440 |
</div>
|
2441 |
-
|
2442 |
<div>
|
2443 |
<i class="mo_custom_sharing_icon_font_preview fa fa-facebook" id="mo_custom_sharing_icon_font_preview_facebook" style="text-align:center;margin-top:5px;"></i>
|
2444 |
<i class="mo_custom_sharing_icon_font_preview fa fa-twitter" id="mo_custom_sharing_icon_font_preview_twitter" style="text-align:center;margin-top:5px;" ></i>
|
@@ -2457,7 +2482,7 @@ function mo_openid_other_settings(){
|
|
2457 |
<i class="mo_custom_sharing_icon_font_preview fa fa-print" id="mo_custom_sharing_icon_font_preview_print" style="text-align:center; "></i>
|
2458 |
<i class="mo_custom_sharing_icon_font_preview fa fa-whatsapp" id="mo_custom_sharing_icon_font_preview_whatsapp" style="text-align:center; "></i>
|
2459 |
</div>
|
2460 |
-
|
2461 |
</td>
|
2462 |
</tr>
|
2463 |
</table>
|
@@ -2518,7 +2543,7 @@ function mo_openid_other_settings(){
|
|
2518 |
</table>
|
2519 |
</td>
|
2520 |
</tr>
|
2521 |
-
|
2522 |
<script>
|
2523 |
var tempHorSize = '<?php echo esc_attr(get_option('mo_sharing_icon_custom_size')) ?>';
|
2524 |
var tempHorShape = '<?php echo esc_attr(get_option('mo_openid_share_theme')) ?>';
|
@@ -2529,31 +2554,31 @@ function mo_openid_other_settings(){
|
|
2529 |
function moSharingIncrement(e,t,r,a,i){
|
2530 |
var h,s,c=!1,_=a;s=function(){
|
2531 |
"add"==t&&r.value<60?r.value++:"subtract"==t&&r.value>10&&r.value--,h=setTimeout(s,_),_>20&&(_*=i),c||(document.onmouseup=function(){clearTimeout(h),document.onmouseup=null,c=!1,_=a},c=!0)},e.onmousedown=s}
|
2532 |
-
|
2533 |
moSharingIncrement(document.getElementById('mo_sharing_size_plus'), "add", document.getElementById('mo_sharing_icon_size'), 300, 0.7);
|
2534 |
moSharingIncrement(document.getElementById('mo_sharing_size_minus'), "subtract", document.getElementById('mo_sharing_icon_size'), 300, 0.7);
|
2535 |
-
|
2536 |
function moSharingSpaceIncrement(e,t,r,a,i){
|
2537 |
var h,s,c=!1,_=a;s=function(){
|
2538 |
"add"==t&&r.value<50?r.value++:"subtract"==t&&r.value>0&&r.value--,h=setTimeout(s,_),_>20&&(_*=i),c||(document.onmouseup=function(){clearTimeout(h),document.onmouseup=null,c=!1,_=a},c=!0)},e.onmousedown=s}
|
2539 |
moSharingSpaceIncrement(document.getElementById('mo_sharing_space_plus'), "add", document.getElementById('mo_sharing_icon_space'), 300, 0.7);
|
2540 |
moSharingSpaceIncrement(document.getElementById('mo_sharing_space_minus'), "subtract", document.getElementById('mo_sharing_icon_space'), 300, 0.7);
|
2541 |
-
|
2542 |
-
|
2543 |
function setTheme(){return jQuery('input[name=mo_openid_share_theme]:checked', '#settings_form').val();}
|
2544 |
function setCustomTheme(){return jQuery('input[name=mo_openid_share_custom_theme]:checked', '#settings_form').val();}
|
2545 |
-
</script>
|
2546 |
-
|
2547 |
-
|
2548 |
|
2549 |
<script type="text/javascript">
|
2550 |
-
|
2551 |
var selectedApps = [];
|
2552 |
-
|
2553 |
-
|
2554 |
-
|
2555 |
function moSharingPreview(e,t,r,w,h,n,x){
|
2556 |
-
|
2557 |
if("default"==w){
|
2558 |
var a="mo_sharing_icon_preview";
|
2559 |
jQuery('.mo_sharing_icon_preview').show();
|
@@ -2562,7 +2587,7 @@ function mo_openid_other_settings(){
|
|
2562 |
jQuery("."+a).css({height:t,width:t});
|
2563 |
jQuery("."+a).css("font-size",(t-10)+"px");
|
2564 |
jQuery("."+a).css("margin-left",(n-4)+"px");
|
2565 |
-
|
2566 |
if(r=="circle"){
|
2567 |
jQuery("."+a).css("borderRadius","999px");
|
2568 |
}else if(r=="oval"){
|
@@ -2570,7 +2595,7 @@ function mo_openid_other_settings(){
|
|
2570 |
}else if(r=="square"){
|
2571 |
jQuery("."+a).css("borderRadius","0px");
|
2572 |
}
|
2573 |
-
|
2574 |
}
|
2575 |
else if(w == "custom"){
|
2576 |
var a="mo_custom_sharing_icon_preview";
|
@@ -2581,7 +2606,7 @@ function mo_openid_other_settings(){
|
|
2581 |
jQuery("."+a).css("padding-top","8px");
|
2582 |
jQuery("."+a).css({height:t-8,width:t});
|
2583 |
jQuery("."+a).css("font-size",(t-16)+"px");
|
2584 |
-
|
2585 |
if(r=="circle"){
|
2586 |
jQuery("."+a).css("borderRadius","999px");
|
2587 |
}else if(r=="oval"){
|
@@ -2589,10 +2614,10 @@ function mo_openid_other_settings(){
|
|
2589 |
}else if(r=="square"){
|
2590 |
jQuery("."+a).css("borderRadius","0px");
|
2591 |
}
|
2592 |
-
|
2593 |
jQuery("."+a).css("margin-left",(n-4)+"px");
|
2594 |
}
|
2595 |
-
|
2596 |
else if("customFont"==w){
|
2597 |
var a="mo_custom_sharing_icon_font_preview";
|
2598 |
jQuery('.mo_sharing_icon_preview').hide();
|
@@ -2601,24 +2626,24 @@ function mo_openid_other_settings(){
|
|
2601 |
jQuery("."+a).css("font-size",t+"px");
|
2602 |
jQuery('.mo_custom_sharing_icon_font_preview').css("color","#"+x);
|
2603 |
jQuery("."+a).css("margin-left",(n-4)+"px");
|
2604 |
-
|
2605 |
if(r=="circle"){
|
2606 |
jQuery("."+a).css("borderRadius","999px");
|
2607 |
-
|
2608 |
}else if(r=="oval"){
|
2609 |
jQuery("."+a).css("borderRadius","5px");
|
2610 |
}else if(r=="square"){
|
2611 |
jQuery("."+a).css("borderRadius","0px");
|
2612 |
}
|
2613 |
-
|
2614 |
}
|
2615 |
addSelectedApps();
|
2616 |
-
|
2617 |
-
|
2618 |
-
|
2619 |
}
|
2620 |
moSharingPreview('horizontal',tempHorSize,tempHorShape,tempHorTheme,tempbackColor,tempHorSpace,tempHorFontColor);
|
2621 |
-
|
2622 |
function addSelectedApps() {
|
2623 |
var flag = 0;
|
2624 |
if (document.getElementById('google_share_enable').checked) {
|
@@ -2633,9 +2658,9 @@ function mo_openid_other_settings(){
|
|
2633 |
jQuery("#mo_sharing_icon_preview_google").hide();
|
2634 |
jQuery("#mo_custom_sharing_icon_preview_google").hide();
|
2635 |
jQuery("#mo_custom_sharing_icon_font_preview_google").hide();
|
2636 |
-
|
2637 |
}
|
2638 |
-
|
2639 |
if (document.getElementById('facebook_share_enable').checked) {
|
2640 |
flag = 1;
|
2641 |
if(document.getElementById('mo_openid_default_background_radio').checked)
|
@@ -2649,21 +2674,21 @@ function mo_openid_other_settings(){
|
|
2649 |
jQuery("#mo_custom_sharing_icon_preview_facebook").hide();
|
2650 |
jQuery("#mo_custom_sharing_icon_font_preview_facebook").hide();
|
2651 |
}
|
2652 |
-
|
2653 |
if (document.getElementById('linkedin_share_enable').checked) {
|
2654 |
flag = 1;
|
2655 |
if(document.getElementById('mo_openid_default_background_radio').checked)
|
2656 |
jQuery("#mo_sharing_icon_preview_linkedin").show();
|
2657 |
if(document.getElementById('mo_openid_custom_background_radio').checked)
|
2658 |
jQuery("#mo_custom_sharing_icon_preview_linkedin").show();
|
2659 |
-
if(document.getElementById('mo_openid_no_background_radio').checked)
|
2660 |
jQuery("#mo_custom_sharing_icon_font_preview_linkedin").show();
|
2661 |
} else if(!document.getElementById('linkedin_share_enable').checked){
|
2662 |
jQuery("#mo_sharing_icon_preview_linkedin").hide();
|
2663 |
jQuery("#mo_custom_sharing_icon_preview_linkedin").hide();
|
2664 |
jQuery("#mo_custom_sharing_icon_font_preview_linkedin").hide();
|
2665 |
}
|
2666 |
-
|
2667 |
if (document.getElementById('twitter_share_enable').checked) {
|
2668 |
flag = 1;
|
2669 |
if(document.getElementById('mo_openid_default_background_radio').checked)
|
@@ -2677,7 +2702,7 @@ function mo_openid_other_settings(){
|
|
2677 |
jQuery("#mo_custom_sharing_icon_preview_twitter").hide();
|
2678 |
jQuery("#mo_custom_sharing_icon_font_preview_twitter").hide();
|
2679 |
}
|
2680 |
-
|
2681 |
if (document.getElementById('pinterest_share_enable').checked) {
|
2682 |
flag = 1;
|
2683 |
if(document.getElementById('mo_openid_default_background_radio').checked)
|
@@ -2691,7 +2716,7 @@ function mo_openid_other_settings(){
|
|
2691 |
jQuery("#mo_custom_sharing_icon_preview_pinterest").hide();
|
2692 |
jQuery("#mo_custom_sharing_icon_font_preview_pinterest").hide();
|
2693 |
}
|
2694 |
-
|
2695 |
if (document.getElementById('reddit_share_enable').checked) {
|
2696 |
flag = 1;
|
2697 |
if(document.getElementById('mo_openid_default_background_radio').checked)
|
@@ -2706,7 +2731,7 @@ function mo_openid_other_settings(){
|
|
2706 |
jQuery("#mo_custom_sharing_icon_preview_reddit").hide();
|
2707 |
jQuery("#mo_custom_sharing_icon_font_preview_reddit").hide();
|
2708 |
}
|
2709 |
-
|
2710 |
if (document.getElementById('vkontakte_share_enable').checked) {
|
2711 |
flag = 1;
|
2712 |
if(document.getElementById('mo_openid_default_background_radio').checked)
|
@@ -2721,7 +2746,7 @@ function mo_openid_other_settings(){
|
|
2721 |
jQuery("#mo_custom_sharing_icon_preview_vk").hide();
|
2722 |
jQuery("#mo_custom_sharing_icon_font_preview_vk").hide();
|
2723 |
}
|
2724 |
-
|
2725 |
if (document.getElementById('stumble_share_enable').checked) {
|
2726 |
flag = 1;
|
2727 |
if(document.getElementById('mo_openid_default_background_radio').checked)
|
@@ -2736,7 +2761,7 @@ function mo_openid_other_settings(){
|
|
2736 |
jQuery("#mo_custom_sharing_icon_preview_stumble").hide();
|
2737 |
jQuery("#mo_custom_sharing_icon_font_preview_stumble").hide();
|
2738 |
}
|
2739 |
-
|
2740 |
if (document.getElementById('tumblr_share_enable').checked) {
|
2741 |
flag = 1;
|
2742 |
if(document.getElementById('mo_openid_default_background_radio').checked)
|
@@ -2751,7 +2776,7 @@ function mo_openid_other_settings(){
|
|
2751 |
jQuery("#mo_custom_sharing_icon_preview_tumblr").hide();
|
2752 |
jQuery("#mo_custom_sharing_icon_font_preview_tumblr").hide();
|
2753 |
}
|
2754 |
-
|
2755 |
if (document.getElementById('pocket_share_enable').checked) {
|
2756 |
flag = 1;
|
2757 |
if(document.getElementById('mo_openid_default_background_radio').checked)
|
@@ -2843,22 +2868,22 @@ function mo_openid_other_settings(){
|
|
2843 |
jQuery("#mo_sharing_button_preview_custom_whatsapp").show();
|
2844 |
if(document.getElementById('mo_openid_no_background_radio').checked)
|
2845 |
jQuery("#mo_custom_sharing_icon_font_preview_whatsapp").show();
|
2846 |
-
|
2847 |
} else if(!document.getElementById('whatsapp_share_enable').checked){
|
2848 |
jQuery("#mo_sharing_icon_preview_whatsapp").hide();
|
2849 |
jQuery("#mo_custom_sharing_icon_preview_whatsapp").hide();
|
2850 |
jQuery("#mo_custom_sharing_icon_font_preview_whatsapp").hide();
|
2851 |
}
|
2852 |
-
|
2853 |
if(flag) {
|
2854 |
jQuery("#no_apps_text").hide();
|
2855 |
} else {
|
2856 |
jQuery("#no_apps_text").show();
|
2857 |
}
|
2858 |
}
|
2859 |
-
|
2860 |
jQuery( document ).ready(function() {
|
2861 |
-
addSelectedApps();
|
2862 |
});
|
2863 |
</script>
|
2864 |
<script>
|
@@ -2984,7 +3009,7 @@ function mo_openid_other_settings(){
|
|
2984 |
<p><strong>Select the options where you want to display social share icons</strong></p>
|
2985 |
</td>
|
2986 |
</tr>
|
2987 |
-
|
2988 |
<tr>
|
2989 |
<td>
|
2990 |
<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 );?>>
|
@@ -3014,7 +3039,7 @@ function mo_openid_other_settings(){
|
|
3014 |
<br/>
|
3015 |
<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' );?>>
|
3016 |
Both before and after content
|
3017 |
-
</td>
|
3018 |
</tr>
|
3019 |
<tr>
|
3020 |
<td>
|
@@ -3113,7 +3138,7 @@ function mo_openid_other_settings(){
|
|
3113 |
</td>
|
3114 |
</tr>
|
3115 |
<tr>
|
3116 |
-
|
3117 |
<td>
|
3118 |
<br />
|
3119 |
<input type="submit" name="submit" value="Save" style="width:100px;"
|
@@ -3141,8 +3166,8 @@ function mo_openid_other_settings(){
|
|
3141 |
</ol>
|
3142 |
</p>
|
3143 |
</td>
|
3144 |
-
</tr>
|
3145 |
-
</table>
|
3146 |
</div>
|
3147 |
|
3148 |
</form>
|
@@ -3150,7 +3175,7 @@ function mo_openid_other_settings(){
|
|
3150 |
jQuery(function() {
|
3151 |
jQuery('#tab1').removeClass("nav-tab-active");
|
3152 |
jQuery('#tab2').addClass("nav-tab-active");
|
3153 |
-
|
3154 |
});
|
3155 |
</script>
|
3156 |
</td>
|
@@ -3162,6 +3187,7 @@ jQuery(function() {
|
|
3162 |
|
3163 |
function mo_openid_shortcode_info(){
|
3164 |
?>
|
|
|
3165 |
<td style="vertical-align:top;width:65%;">
|
3166 |
<div class="mo_openid_table_layout">
|
3167 |
|
@@ -3181,18 +3207,21 @@ function mo_openid_shortcode_info(){
|
|
3181 |
Use social login Shortcode in the content of required page/post where you want to display Social Login Icons.<br/>
|
3182 |
<h3>Default Social Login Shortcode</h3>
|
3183 |
This will display Social Login Icons with same default settings<br/>
|
3184 |
-
<b>Example:</b> <code>[miniorange_social_login]</code
|
|
|
|
|
3185 |
|
3186 |
<h3>For Icons</h3>
|
3187 |
You can use different attribute to customize social login icons. All attributes are optional except view.<br/><br/>
|
3188 |
-
<b>Square Shape Example:</b> <code>[miniorange_social_login
|
|
|
3189 |
<a class=" login-button" rel="nofollow" title=" Login with Facebook"><img alt="Facebook" style="width:35px !important;height: 35px !important;margin-left: 4px !important" src="<?php echo plugins_url( 'includes/images/icons/facebook.png', __FILE__ )?>" class=" login-button square"></a>
|
3190 |
<a class=" login-button" rel="nofollow" title=" Login with Google"><img alt="Google" style="width:35px !important;height: 35px !important;margin-left: 4px !important" src="<?php echo plugins_url( 'includes/images/icons/google.png', __FILE__ )?>" class=" login-button square"></a>
|
3191 |
<a class=" login-button" rel="nofollow" title=" Login with Vkontakte"><img alt="Vkontakte" style="width:35px !important;height: 35px !important;margin-left: 4px !important" src="<?php echo plugins_url( 'includes/images/icons/vk.png', __FILE__ )?>" class=" login-button square"></a>
|
3192 |
<a class=" login-button" rel="nofollow" title=" Login with LinkedIn"><img alt="LinkedIn" style="width:35px !important;height: 35px !important;margin-left: 4px !important" src="<?php echo plugins_url( 'includes/images/icons/linkedin.png', __FILE__ )?>" class=" login-button square"></a>
|
3193 |
<a class=" login-button" rel="nofollow" title=" Login with instagram"><img alt="Instagram" style="width:35px !important;height: 35px !important;margin-left: 4px !important" src="<?php echo plugins_url( 'includes/images/icons/instagram.png', __FILE__ )?>" class=" login-button square"></a><br/><br/>
|
3194 |
|
3195 |
-
<b>Round Shape Example:</b> <code>[miniorange_social_login shape="round" theme="default" space="4" size="35"]</code><br/><br/>
|
3196 |
<a class=" login-button" rel="nofollow" title=" Login with Facebook"><img alt="Facebook" style="width:35px !important;height: 35px !important;margin-left: 4px !important" src="<?php echo plugins_url( 'includes/images/icons/facebook.png', __FILE__ )?>" class=" login-button round"></a>
|
3197 |
<a class=" login-button" rel="nofollow" title=" Login with Google"><img alt="Google" style="width:35px !important;height: 35px !important;margin-left: 4px !important" src="<?php echo plugins_url( 'includes/images/icons/google.png', __FILE__ )?>" class=" login-button round"></a>
|
3198 |
<a class=" login-button" rel="nofollow" title=" Login with Vkontakte"><img alt="Vkontakte" style="width:35px !important;height: 35px !important;margin-left: 4px !important" src="<?php echo plugins_url( 'includes/images/icons/vk.png', __FILE__ )?>" class=" login-button round"></a>
|
@@ -3202,12 +3231,12 @@ function mo_openid_shortcode_info(){
|
|
3202 |
<hr>
|
3203 |
<h3>For Long-Buttons</h3>
|
3204 |
You can use different attribute to customize social login buttons. All attributes are optional.<br/><br/>
|
3205 |
-
<b>Vertical View Example:</b><code>[miniorange_social_login shape="longbuttonwithtext" theme="default" space="8" width="180" height="35" color="000000"]</code><br/><br/>
|
3206 |
<a rel="nofollow" style="margin-left: 8px !important;width: 180px !important;padding-top:6px !important;padding-bottom:6px !important;margin-bottom: 3px !important;border-radius: 4px !important;" class="btn btn-mo btn-block btn-social btn-facebook btn-custom-dec login-button"> <svg xmlns="http://www.w3.org/2000/svg" style="padding-top:5px;border-right:none;margin-left: 2%;"><path fill="#fff" d="M22.688 0H1.323C.589 0 0 .589 0 1.322v21.356C0 23.41.59 24 1.323 24h11.505v-9.289H9.693V11.09h3.124V8.422c0-3.1 1.89-4.789 4.658-4.789 1.322 0 2.467.1 2.8.145v3.244h-1.922c-1.5 0-1.801.711-1.801 1.767V11.1h3.59l-.466 3.622h-3.113V24h6.114c.734 0 1.323-.589 1.323-1.322V1.322A1.302 1.302 0 0 0 22.688 0z"></path></svg>Login with Facebook</a>
|
3207 |
<a rel="nofollow" style="margin-left: 8px !important;background: rgb(255,255,255)!important; background:linear-gradient(90deg, rgba(255,255,255,1) 38px, rgb(79, 113, 232) 5%) !important;width: 180px !important;padding-top:6px !important;padding-bottom:6px !important;margin-bottom: 3px !important;border-radius: 4px !important;border-color: rgba(79, 113, 232, 1);border-bottom-width: thin;" class="btn btn-mo btn-block btn-social btn-google btn-custom-dec login-button"> <i style="padding-top:6px !important;border-right:none;" class="fa"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 70 70" style="padding-left: 8%;"><defs><path id="a" d="M44.5 20H24v8.5h11.8C34.7 33.9 30.1 37 24 37c-7.2 0-13-5.8-13-13s5.8-13 13-13c3.1 0 5.9 1.1 8.1 2.9l6.4-6.4C34.6 4.1 29.6 2 24 2 11.8 2 2 11.8 2 24s9.8 22 22 22c11 0 21-8 21-22 0-1.3-.2-2.7-.5-4z"></path></defs><clipPath id="b"><use xlink:href="#a" overflow="visible"></use></clipPath><path clip-path="url(#b)" fill="#FBBC05" d="M0 37V11l17 13z"></path><path clip-path="url(#b)" fill="#EA4335" d="M0 11l17 13 7-6.1L48 14V0H0z"></path><path clip-path="url(#b)" fill="#34A853" d="M0 37l30-23 7.9 1L48 0v48H0z"></path><path clip-path="url(#b)" fill="#4285F4" d="M48 48L17 24l-4-3 35-10z"></path></svg></i><span style="color:#ffffff;">Login with Google</span></a>
|
3208 |
<a rel="nofollow" style="margin-left: 8px !important;width: 180px !important;padding-top:6px !important;padding-bottom:6px !important;margin-bottom: 3px !important;border-radius: 4px !important;" class="btn btn-mo btn-block btn-social btn-vk btn-custom-dec login-button"> <i style="padding-top:0px !important" class="fa fa-vk"></i>Login with Vkontakte</a><br/>
|
3209 |
|
3210 |
-
<b>Horizontal View Example:</b><code>[miniorange_social_login shape="longbuttonwithtext" view="horizontal" appcnt="3" theme="default" space="35" width="180" height="35" color="000000"]</code><br/><br/>
|
3211 |
<a rel="nofollow" style="margin-left: 35px !important;width: 180px !important;padding-top:6px !important;padding-bottom:6px !important;margin-bottom: 30px !important;border-radius: 4px !important;" class="btn btn-mo btn-block-inline btn-social btn-facebook btn-custom-dec login-button"> <svg xmlns="http://www.w3.org/2000/svg" style="padding-top:5px;border-right:none;margin-left: 2%;"><path fill="#fff" d="M22.688 0H1.323C.589 0 0 .589 0 1.322v21.356C0 23.41.59 24 1.323 24h11.505v-9.289H9.693V11.09h3.124V8.422c0-3.1 1.89-4.789 4.658-4.789 1.322 0 2.467.1 2.8.145v3.244h-1.922c-1.5 0-1.801.711-1.801 1.767V11.1h3.59l-.466 3.622h-3.113V24h6.114c.734 0 1.323-.589 1.323-1.322V1.322A1.302 1.302 0 0 0 22.688 0z"></path></svg>Login with Facebook</a>
|
3212 |
<a rel="nofollow" style="margin-left: 35px !important;background: rgb(255,255,255)!important; background:linear-gradient(90deg, rgba(255,255,255,1) 38px, rgb(79, 113, 232) 5%) !important;width: 180px !important;padding-top:6px !important;padding-bottom:6px !important;margin-bottom: 30px !important;border-radius: 4px !important;border-color: rgba(79, 113, 232, 1);border-bottom-width: thin;" class="btn btn-mo btn-block-inline btn-social btn-google btn-custom-dec login-button"> <i style="padding-top:6px !important;border-right:none;" class="fa"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 70 70" style="padding-left: 8%;"><defs><path id="a" d="M44.5 20H24v8.5h11.8C34.7 33.9 30.1 37 24 37c-7.2 0-13-5.8-13-13s5.8-13 13-13c3.1 0 5.9 1.1 8.1 2.9l6.4-6.4C34.6 4.1 29.6 2 24 2 11.8 2 2 11.8 2 24s9.8 22 22 22c11 0 21-8 21-22 0-1.3-.2-2.7-.5-4z"></path></defs><clipPath id="b"><use xlink:href="#a" overflow="visible"></use></clipPath><path clip-path="url(#b)" fill="#FBBC05" d="M0 37V11l17 13z"></path><path clip-path="url(#b)" fill="#EA4335" d="M0 11l17 13 7-6.1L48 14V0H0z"></path><path clip-path="url(#b)" fill="#34A853" d="M0 37l30-23 7.9 1L48 0v48H0z"></path><path clip-path="url(#b)" fill="#4285F4" d="M48 48L17 24l-4-3 35-10z"></path></svg></i><span style="color:#ffffff;">Login with Google</span></a>
|
3213 |
<a rel="nofollow" style="margin-left: 35px !important;width: 180px !important;padding-top:6px !important;padding-bottom:6px !important;margin-bottom: 30px !important;border-radius: 4px !important;" class="btn btn-mo btn-block-inline btn-social btn-vk btn-custom-dec login-button"> <i style="padding-top:0px !important" class="fa fa-vk"></i>Login with Vkontakte</a><br/>
|
@@ -3215,7 +3244,7 @@ function mo_openid_shortcode_info(){
|
|
3215 |
|
3216 |
<h3>For Selected Applications</h3>
|
3217 |
If you want to show selected applications without setting up default settings then use this shortcode. You can use different attribute to customize social login buttons. All attributes are optional.<br/><br/>
|
3218 |
-
<b>Example:</b><code>[miniorange_social_login apps="vk,google,fb" shape="longbuttonwithtext" view="horizontal" theme="default" space="10" width="200" height="35" color="000000"]</code><br/><br/>
|
3219 |
<a rel="nofollow" style="margin-left: 10px !important;width: 200px !important;padding-top:6px !important;padding-bottom:6px !important;margin-bottom: 5px !important;border-radius: 4px !important;" class="btn btn-mo btn-block-inline btn-social btn-vk btn-custom-dec login-button"> <i style="padding-top:0px !important" class="fa fa-vk"></i>Login with Vkontakte</a>
|
3220 |
<a rel="nofollow" style="margin-left: 10px !important;background: rgb(255,255,255)!important; background:linear-gradient(90deg, rgba(255,255,255,1) 38px, rgb(79, 113, 232) 5%) !important;width: 200px !important;padding-top:6px !important;padding-bottom:6px !important;margin-bottom: 5px !important;border-radius: 4px !important;border-color: rgba(79, 113, 232, 1);border-bottom-width: thin;" class="btn btn-mo btn-block-inline btn-social btn-google btn-custom-dec login-button"> <i style="padding-top:6px !important;border-right:none;" class="fa"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 70 70" style="padding-left: 8%;"><defs><path id="a" d="M44.5 20H24v8.5h11.8C34.7 33.9 30.1 37 24 37c-7.2 0-13-5.8-13-13s5.8-13 13-13c3.1 0 5.9 1.1 8.1 2.9l6.4-6.4C34.6 4.1 29.6 2 24 2 11.8 2 2 11.8 2 24s9.8 22 22 22c11 0 21-8 21-22 0-1.3-.2-2.7-.5-4z"></path></defs><clipPath id="b"><use xlink:href="#a" overflow="visible"></use></clipPath><path clip-path="url(#b)" fill="#FBBC05" d="M0 37V11l17 13z"></path><path clip-path="url(#b)" fill="#EA4335" d="M0 11l17 13 7-6.1L48 14V0H0z"></path><path clip-path="url(#b)" fill="#34A853" d="M0 37l30-23 7.9 1L48 0v48H0z"></path><path clip-path="url(#b)" fill="#4285F4" d="M48 48L17 24l-4-3 35-10z"></path></svg></i><span style="color:#ffffff;">Login with Google</span></a>
|
3221 |
<a rel="nofollow" style="margin-left: 10px !important;width: 200px !important;padding-top:6px !important;padding-bottom:6px !important;margin-bottom: 5px !important;border-radius: 4px !important;" class="btn btn-mo btn-block-inline btn-social btn-facebook btn-custom-dec login-button""> <svg xmlns="http://www.w3.org/2000/svg" style="padding-top:5px;border-right:none;margin-left: 2%;"><path fill="#fff" d="M22.688 0H1.323C.589 0 0 .589 0 1.322v21.356C0 23.41.59 24 1.323 24h11.505v-9.289H9.693V11.09h3.124V8.422c0-3.1 1.89-4.789 4.658-4.789 1.322 0 2.467.1 2.8.145v3.244h-1.922c-1.5 0-1.801.711-1.801 1.767V11.1h3.59l-.466 3.622h-3.113V24h6.114c.734 0 1.323-.589 1.323-1.322V1.322A1.302 1.302 0 0 0 22.688 0z"></path></svg>Login with Facebook</a>
|
@@ -3295,14 +3324,14 @@ function mo_openid_shortcode_info(){
|
|
3295 |
<td>
|
3296 |
<h3><a id="openid_sharing_shortcode_title" >Social Sharing Shortcode</a></h3>
|
3297 |
<div hidden="" id="openid_sharing_shortcode" style="font-size:13px !important">
|
3298 |
-
<b>Horizontal</b> --> <code>[miniorange_social_sharing]</code><br>
|
3299 |
-
<b>Vertical</b> --> <code>[miniorange_social_sharing_vertical]</code>
|
3300 |
<!--Use [miniorange_social_sharing] Shortcode in the content of required page/post where you want to display horizontal Social Sharing Icons. Use [miniorange_social_sharing_vertical] shortcode for vertical Social Sharing Icons.--><br>
|
3301 |
|
3302 |
|
3303 |
<h4>For Sharing Icons</h4>
|
3304 |
You can use different attribute to customize social sharing icons. All attributes are optional.<br>
|
3305 |
-
<b>Example:</b> <code> [miniorange_social_sharing shape="square" heading="Share with" color="#000000" fontcolor="blue" theme="nobackground" space="4" size="30" url="https://www.miniorange.com"]</code>
|
3306 |
<br>
|
3307 |
|
3308 |
<h4 style="margin-bottom:0 !important">Common attributes - Horizontal and Vertical</h4>
|
@@ -3330,7 +3359,7 @@ function mo_openid_shortcode_info(){
|
|
3330 |
<td>
|
3331 |
<h3><a id="openid_comments_shortcode_title" >Social Comments Shortcode</a></h3>
|
3332 |
<div hidden="" id="openid_comments_shortcode" style="font-size:13px !important">
|
3333 |
-
<code>[miniorange_social_comments]</code><br> <br>
|
3334 |
1. Configure Social Comments in the Social Comments tab of the plugin.<br>
|
3335 |
2. Keep both the display options checked and Save.<br>
|
3336 |
3. Enable Comments for the post/page you want to add <br>
|
@@ -3347,11 +3376,13 @@ function mo_openid_shortcode_info(){
|
|
3347 |
<div hidden="" id = "openid_shortcode_inphp" style="font-size:13px !important">
|
3348 |
You can use shortcode in PHP file as following:
|
3349 |
|
3350 |
-
<code><?php echo do_shortcode(‘SHORTCODE’) /?></code>
|
|
|
3351 |
<br>
|
3352 |
Replace SHORTCODE in above code with the required shortcode like [miniorange_social_login theme="default"], so the final code looks like following :
|
3353 |
<br>
|
3354 |
-
<code><?php echo do_shortcode('[miniorange_social_login theme="default"]') ?></code></
|
|
|
3355 |
<hr>
|
3356 |
|
3357 |
</td>
|
@@ -3363,7 +3394,21 @@ function mo_openid_shortcode_info(){
|
|
3363 |
<td style="vertical-align:top;padding-left:1%;">
|
3364 |
<?php echo miniorange_openid_support(); ?>
|
3365 |
</td>
|
3366 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3367 |
}
|
3368 |
|
3369 |
function mo_openid_pricing_info(){
|
@@ -3681,7 +3726,7 @@ function mo_openid_pricing_info(){
|
|
3681 |
function mo_openid_troubleshoot_info(){ ?>
|
3682 |
<td style="vertical-align:top;width:65%;">
|
3683 |
<div class="mo_openid_table_layout">
|
3684 |
-
|
3685 |
|
3686 |
<table width="100%">
|
3687 |
<tbody>
|
@@ -3929,8 +3974,8 @@ function mo_openid_troubleshoot_info(){ ?>
|
|
3929 |
<td style="vertical-align:top;padding-left:1%;">
|
3930 |
<?php echo miniorange_openid_support(); ?>
|
3931 |
</td>
|
3932 |
-
|
3933 |
-
<?php
|
3934 |
}
|
3935 |
|
3936 |
function mo_openid_privacy_policy(){ ?>
|
@@ -4111,7 +4156,7 @@ function mo_openid_custom_app_config(){?>
|
|
4111 |
</style>
|
4112 |
<div class="mo_table_layout" style="min-height: 400px;">
|
4113 |
<?php
|
4114 |
-
|
4115 |
if(isset($_GET['action']) && $_GET['action']=='delete'){
|
4116 |
if(isset($_GET['wp_nonce'])){
|
4117 |
$nonce = $_GET['wp_nonce'];
|
@@ -4130,7 +4175,7 @@ function mo_openid_custom_app_config(){?>
|
|
4130 |
mo_custom_app_instructions($_GET['app']);
|
4131 |
}
|
4132 |
}
|
4133 |
-
|
4134 |
if(isset($_GET['action']) && $_GET['action']=='add'){
|
4135 |
if(isset($_GET['wp_nonce'])){
|
4136 |
$nonce = $_GET['wp_nonce'];
|
@@ -4140,7 +4185,7 @@ function mo_openid_custom_app_config(){?>
|
|
4140 |
add_custom_app();
|
4141 |
}
|
4142 |
}
|
4143 |
-
}
|
4144 |
else if(isset($_GET['action']) && $_GET['action']=='update'){
|
4145 |
if(isset($_GET['wp_nonce'])){
|
4146 |
$nonce = $_GET['wp_nonce'];
|
@@ -4196,7 +4241,7 @@ function mo_openid_custom_app_config(){?>
|
|
4196 |
echo "<br><br><br><br><br><br><br><br>";
|
4197 |
echo "<div style='text-align: center'><p><u>Please Note :</u><br>Enable custom app overrides the default app miniOrange uses. If you want to use the default app miniOrange uses, please disable the custom app here.<br>
|
4198 |
</p></div>";
|
4199 |
-
|
4200 |
}elseif (get_option('mo_openid_apps_list')==null){
|
4201 |
$nonce = wp_create_nonce( 'mo-openid-add-selected-app-nonce' );
|
4202 |
echo "<div style='text-align: center'><p>You have not configured any custom apps yet. Please click on <b>Add Application</b> to configure your own app.</p>";
|
@@ -4247,7 +4292,19 @@ function add_custom_app(){
|
|
4247 |
if(strpos( $_SERVER['REQUEST_URI'], "facebook")!== false){?><div id="upgrade_notice" class="notice notice-success is-dismissible" style="width: 92.5%;margin-left: 0%;"><p><strong>Please configure the Facebook custom app and test your configuration.</strong></p></div>
|
4248 |
<?php }
|
4249 |
?>
|
4250 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4251 |
<script>
|
4252 |
|
4253 |
function selectapp(app_name) {
|
@@ -4260,20 +4317,25 @@ function add_custom_app(){
|
|
4260 |
appname = document.getElementById("mo_oauth_app").value;
|
4261 |
}
|
4262 |
document.getElementById("instructions").innerHTML = "";
|
4263 |
-
|
4264 |
-
|
4265 |
-
|
4266 |
-
|
4267 |
-
|
4268 |
-
|
4269 |
-
|
4270 |
-
|
4271 |
-
|
4272 |
-
|
4273 |
-
|
|
|
4274 |
}
|
4275 |
|
4276 |
-
|
|
|
|
|
|
|
|
|
4277 |
<div id="toggle2" class="panel_toggle">
|
4278 |
<h3>Add Application</h3>
|
4279 |
</div>
|
@@ -4329,7 +4391,7 @@ function add_custom_app(){
|
|
4329 |
<?php
|
4330 |
}
|
4331 |
function update_custom_app($appname){
|
4332 |
-
|
4333 |
$appslist = maybe_unserialize(get_option('mo_openid_apps_list'));
|
4334 |
foreach($appslist as $key => $app){
|
4335 |
if($appname == $key){
|
@@ -4338,11 +4400,11 @@ function update_custom_app($appname){
|
|
4338 |
break;
|
4339 |
}
|
4340 |
}
|
4341 |
-
|
4342 |
if(!$currentapp)
|
4343 |
return;
|
4344 |
?>
|
4345 |
-
|
4346 |
<div id="toggle2" class="panel_toggle">
|
4347 |
<h3>Update Application</h3>
|
4348 |
</div>
|
@@ -4398,7 +4460,7 @@ function delete_custom_app($appname){
|
|
4398 |
unset($appslist[$key]);
|
4399 |
}
|
4400 |
}
|
4401 |
-
if($appname=="facebook")
|
4402 |
{
|
4403 |
update_option('mo_openid_facebook_enable',0);
|
4404 |
}
|
@@ -4426,13 +4488,30 @@ function mo_custom_app_instructions($appname){
|
|
4426 |
}
|
4427 |
|
4428 |
if ($appname == "google") {
|
4429 |
-
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>' . $oauth_redirect_url . '</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>email+profile </b></li><li>Go to Social Login tab and configure the icons.</li></ol>';
|
4430 |
} else if ($appname == "facebook") {
|
4431 |
-
echo '<br><br><strong>Facebook custom application setup video : </strong><br><br><iframe width="450" height="250" src="https://www.youtube.com/embed/hHx-oR7XiZo" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen style="margin-left: 17%;"></iframe><br><br><strong>Instructions to configure Facebook : </strong><br><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>Click on <b>Products</b> from left pane of the page and select <b>Facebook Login</b> and click on <b>Set Up</b> button.</li><li>Click on <b>Web</b>. Enter <b>' . site_url() . '</b> into <b>Site URL</b> than click on <b> Save</b>.</li><li>Goto <b>Settings -> Basic</b> from left pane of the page, Enter <b>' . str_replace('https://', '', site_url()) . '</b> in <b>App Domain</b>, your privacy policy URL in <b>Privacy Policy URL</b> and select <b>Category</b> of your website. Then click on <b>Save Changes</b>.</li><li>From the left pane, select <b>Facebook Login -> Settings</b>.</li><li>Under Client OAuth Settings section, Enter <b>' . $oauth_redirect_url . '</b> in <b>Valid OAuth Redirect URIs</b> and click on <b>Save Changes</b> button.</li><li>Change your app status from In Development to Live by clicking on OFF (sliding button) beside Status option of the top right corner. Then, click on Confirm button.</li><li>Go to Settings > Basic. Paste your <b>App ID</b> and <b>App Secret</b> 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</b></li><li>Click on the <b>Save settings</b> button.</li><li>Go to Social Login tab to configure the display as well as other login settings.</li></ol>';
|
4432 |
} else if ($appname == "twitter") {
|
4433 |
-
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() . '
|
4434 |
}
|
4435 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4436 |
}
|
4437 |
|
4438 |
function mo_openid_addon()
|
@@ -4818,7 +4897,7 @@ function miniorange_openid_support(){
|
|
4818 |
!(/^[a-zA-Z?,.\(\)\/@ 0-9]*$/).test(f.value) ? f.value = f.value.replace(
|
4819 |
/[^a-zA-Z?,.\(\)\/@ 0-9]/, '') : null;
|
4820 |
}
|
4821 |
-
|
4822 |
function moSharingSizeValidate(e){
|
4823 |
var t=parseInt(e.value.trim());t>60?e.value=60:10>t&&(e.value=10)
|
4824 |
}
|
@@ -4931,21 +5010,21 @@ function mo_openid_registeration_modal(){
|
|
4931 |
|
4932 |
<tbody><tr>
|
4933 |
<td><b><font color="#FF0000">*</font>Email:</b></td>
|
4934 |
-
<td><input class="mo_openid_table_textbox" name="email" style="width: 100%"
|
4935 |
-
required placeholder="person@example.com"
|
4936 |
value="<?php echo $current_user->user_email;?>" type="email" />
|
4937 |
</td>
|
4938 |
</tr>
|
4939 |
|
4940 |
<tr>
|
4941 |
<td><b><font color="#FF0000">*</font>Password:</b></td>
|
4942 |
-
<td><input class="mo_openid_table_textbox" required name="password"
|
4943 |
-
style="width: 100%" placeholder="Choose your password (Min. length 6)"
|
4944 |
type="password" /></td>
|
4945 |
</tr>
|
4946 |
<tr id="pop_register" >
|
4947 |
<td><b><font color="#FF0000">*</font>Confirm Password:</b></td>
|
4948 |
-
<td><input class="mo_openid_table_textbox" required name="confirmPassword"
|
4949 |
style="width: 100%" placeholder="Confirm your password"
|
4950 |
type="password" /></td>
|
4951 |
</tr>
|
241 |
<td style="vertical-align:top;width:65%;">
|
242 |
<?php mo_openid_custom_app_config();?>
|
243 |
</td>
|
244 |
+
|
245 |
<td style="vertical-align:top;padding-left:1%;">
|
246 |
<?php echo miniorange_openid_support(); ?>
|
247 |
</td></tr></table></div></div>
|
248 |
<?php
|
249 |
}
|
250 |
+
|
251 |
+
|
252 |
|
253 |
?>
|
254 |
</table>
|
337 |
<input type="hidden" name="option" value="mo_openid_connect_register_customer" />
|
338 |
<input type="hidden" name="mo_openid_connect_register_nonce"
|
339 |
value="<?php echo wp_create_nonce( 'mo-openid-connect-register-nonce' ); ?>"/>
|
340 |
+
|
341 |
+
|
342 |
<div class="mo_openid_table_layout">
|
343 |
<h3>Register with miniOrange</h3>
|
344 |
|
528 |
</table>
|
529 |
</td>
|
530 |
</tr>
|
531 |
+
<tr><td><h4>Setup Custom Apps:</h4></td>
|
532 |
+
</tr>
|
533 |
+
<tr>
|
534 |
+
<td>
|
535 |
+
<div>
|
536 |
+
<input type="checkbox" id="facebook_enable" class="app_enable tooltip" name="mo_openid_facebook_enable" value="1" <?php $x=is_custom_app('facebook');echo "onchange='previewLoginIcons(),redirectto_custom_tab(".$x.")'";?>
|
537 |
+
<?php checked( get_option('mo_openid_facebook_enable') == 1 );?> /><strong> Facebook </strong>
|
538 |
+
            <input type="checkbox" class="app_enable" disabled="disabled" /><strong><span style="color: red">*</span>Apple</strong>
|
539 |
+
               <input type="checkbox" class="app_enable" disabled="disabled" /><strong><span style="color: red">*</span>Disqus</strong>
|
540 |
+
            <input type="checkbox" class="app_enable" disabled="disabled" /><strong><span style="color: red">*</span>Vimeo</strong>
|
541 |
+
            <input type="checkbox" class="app_enable" disabled="disabled" /><strong><span style="color: red">*</span>Kakao</strong>
|
542 |
+
            <input type="checkbox" class="app_enable" disabled="disabled" /><strong><span style="color: red">*</span>Line</strong>
|
543 |
+
            <input type="checkbox" class="app_enable" disabled="disabled" /><strong><span style="color: red">*</span>Dribble</strong><br/><br/>
|
544 |
+
<input type="checkbox" class="app_enable" disabled="disabled" /><strong><span style="color: red">*</span>Meetup</strong>
|
545 |
+
              <input type="checkbox" class="app_enable" disabled="disabled" /><strong><span style="color: red">*</span>Tumblr</strong>
|
546 |
+
            <input type="checkbox" class="app_enable" disabled="disabled" /><strong><span style="color: red">*</span>Discord</strong>
|
547 |
+
            <input type="checkbox" class="app_enable" disabled="disabled" /><strong><span style="color: red">*</span>Flicker</strong>
|
548 |
+
            <input type="checkbox" class="app_enable" disabled="disabled" /><strong><span style="color: red">*</span>Spotify</strong>
|
549 |
+
          <input type="checkbox" class="app_enable" disabled="disabled" /><strong><span style="color: red">*</span>Stack Exchange</strong>
|
550 |
+
|
551 |
+
|
552 |
+
|
553 |
+
|
554 |
+
|
555 |
+
|
556 |
+
</div>
|
557 |
+
</td>
|
558 |
+
</tr>
|
559 |
+
</table></td></tr>
|
560 |
+
<tr>
|
561 |
<td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
562 |
|
563 |
<br>
|
564 |
<strong><span style="color: red">*</span>Available in standard and premium plugins.</strong><br/>
|
896 |
</tr>
|
897 |
|
898 |
<tr><td> </td></tr>
|
899 |
+
<tr>
|
900 |
+
<td>
|
901 |
+
<input type="checkbox" name="mo_openid_registration_redirection_enable" value="1"
|
902 |
+
<?php checked( get_option('mo_openid_registration_redirection_enable') == 1 );?> />
|
903 |
+
<b>Redirect URL after Registration:</b>
|
904 |
+
</td><tr><td>
|
905 |
+
<b>Enter complete redirect URL :</b> <input type="text" style="width:50%" name="mo_openid_relative_register_redirect_url" value="<?php echo esc_url(get_option('mo_openid_relative_register_redirect_url'))?>" <?php if(!mo_openid_is_customer_registered()) echo 'disabled'?>/>
|
906 |
+
</td>
|
907 |
+
</tr>
|
908 |
+
|
909 |
+
<tr>
|
910 |
+
<td><br>
|
911 |
<input type="checkbox" id="logout_redirection_enable" name="mo_openid_logout_redirection_enable" value="1"
|
912 |
<?php checked( get_option('mo_openid_logout_redirection_enable') == 1 );?> />
|
913 |
<b>Enable Logout Redirection</b>
|
1613 |
</div>
|
1614 |
</td>
|
1615 |
</tr>
|
|
|
1616 |
|
1617 |
|
1618 |
|
1619 |
+
|
1620 |
+
|
1621 |
<?php if(mo_openid_is_customer_valid() && !mo_openid_get_customer_plan('Do It Yourself')) { ?>
|
1622 |
<tr><td> </td></tr>
|
1623 |
<tr>
|
1624 |
<td><input type="checkbox" id="moopenid_user_attributes" name="moopenid_user_attributes" value="1" <?php checked( get_option('moopenid_user_attributes') == 1 );?> /><b>Extended User Attributes</b>
|
1625 |
</td>
|
1626 |
</tr>
|
1627 |
+
<?php } else {
|
1628 |
if(get_option('moopenid_user_attributes')) update_option('moopenid_user_attributes', 0);
|
1629 |
} ?>
|
1630 |
<tr>
|
2037 |
<input type="hidden" name="mo_openid_comment_settings_nonce"
|
2038 |
value="<?php echo wp_create_nonce( 'mo-openid-comment-settings-nonce' ); ?>"/>
|
2039 |
<div class="mo_openid_table_layout">
|
2040 |
+
|
2041 |
<table class="mo_openid_display_table">
|
2042 |
|
2043 |
<tr>
|
2115 |
<td><b>Comments - Google Label:</b></td>
|
2116 |
<td><input class="mo_openid_table_textbox" type="text" name="mo_openid_social_comment_google_label" value="<?php echo esc_attr(get_option('mo_openid_social_comment_google_label')); ?>" /></td>
|
2117 |
</tr></table></td></tr>
|
2118 |
+
|
2119 |
<tr>
|
2120 |
<td><br /><input type="submit" name="submit" value="Save" style="width:100px;" class="button button-primary button-large" />
|
2121 |
</td>
|
2201 |
}
|
2202 |
|
2203 |
function mo_openid_other_settings(){
|
2204 |
+
|
2205 |
?>
|
2206 |
<td style="vertical-align:top;width:65%;">
|
2207 |
<form name="f" method="post" id="settings_form" action="">
|
2217 |
</h3>
|
2218 |
<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>
|
2219 |
</td>
|
2220 |
+
|
2221 |
</tr>
|
2222 |
</table>
|
2223 |
+
|
2224 |
<table class="mo_openid_settings_table">
|
2225 |
<tr id="sel_apps"><td><table><h3>Select Social Apps</h3>
|
2226 |
<p>Select applications to enable social sharing</p>
|
2229 |
|
2230 |
<tr>
|
2231 |
<td style="width:20%">
|
2232 |
+
<input type="checkbox" id="facebook_share_enable" class="app_enable" name="mo_openid_facebook_share_enable" value="1"
|
2233 |
onclick="addSelectedApps();" <?php checked( get_option('mo_openid_facebook_share_enable') == 1 );?> />
|
2234 |
<strong>Facebook</strong>
|
2235 |
</td>
|
2244 |
<?php checked( get_option('mo_openid_google_share_enable') == 1 );?> />
|
2245 |
<strong>Google</strong>
|
2246 |
</td>
|
2247 |
+
|
2248 |
<td style="width:20%">
|
2249 |
<input type="checkbox" id="vkontakte_share_enable" class="app_enable" name="mo_openid_vkontakte_share_enable" value="1"
|
2250 |
onclick="addSelectedApps();" <?php checked( get_option('mo_openid_vkontakte_share_enable') == 1 );?> />
|
2286 |
</tr>
|
2287 |
<tr>
|
2288 |
<td style="width:20%">
|
2289 |
+
<input type="checkbox" id="digg_share_enable" class="app_enable" name="mo_openid_digg_share_enable" value="1"
|
2290 |
onclick="addSelectedApps();" <?php checked( get_option('mo_openid_digg_share_enable') == 1 );?> />
|
2291 |
<strong>Digg</strong>
|
2292 |
</td>
|
2293 |
<td style="width:20%">
|
2294 |
+
<input type="checkbox" id="delicious_share_enable" class="app_enable" name="mo_openid_delicious_share_enable" value="1"
|
2295 |
onclick="addSelectedApps();" <?php checked( get_option('mo_openid_delicious_share_enable') == 1 );?> />
|
2296 |
<strong>Delicious</strong></td>
|
2297 |
<td style="width:20%">
|
2298 |
+
<input type="checkbox" id="odnoklassniki_share_enable" class="app_enable" name="mo_openid_odnoklassniki_share_enable" value="1"
|
2299 |
onclick="addSelectedApps();" <?php checked( get_option('mo_openid_odnoklassniki_share_enable') == 1 );?> />
|
2300 |
<strong>Odnoklassniki</strong>
|
2301 |
</td>
|
2302 |
<td style="width:20%">
|
2303 |
+
<input type="checkbox" id="mail_share_enable" class="app_enable" name="mo_openid_mail_share_enable" value="1"
|
2304 |
onclick="addSelectedApps();moSharingPreview();" <?php checked( get_option('mo_openid_mail_share_enable') == 1 );?> />
|
2305 |
<strong>Email</strong>
|
2306 |
</td>
|
2307 |
<td style="width:20%">
|
2308 |
+
<input type="checkbox" id="print_share_enable" class="app_enable" name="mo_openid_print_share_enable" value="1"
|
2309 |
onclick="addSelectedApps();moSharingPreview();" <?php checked( get_option('mo_openid_print_share_enable') == 1 );?> />
|
2310 |
<strong>Print</strong>
|
2311 |
</td>
|
2312 |
</tr>
|
2313 |
<tr>
|
2314 |
<td style="width:20%">
|
2315 |
+
<input type="checkbox" id="whatsapp_share_enable" class="app_enable" name="mo_openid_whatsapp_share_enable" value="1"
|
2316 |
onclick="addSelectedApps();moSharingPreview();" <?php checked( get_option('mo_openid_whatsapp_share_enable') == 1 );?> />
|
2317 |
<strong>Whatsapp</strong>
|
2318 |
</td>
|
2323 |
</table>
|
2324 |
</td>
|
2325 |
</tr>
|
|
|
2326 |
|
2327 |
+
|
2328 |
+
|
2329 |
+
|
2330 |
<tr id="cust_icon"><td><table><tr>
|
2331 |
<td>
|
2332 |
<br>
|
2348 |
<td style="width:inherit;"> <!-- Shape radio buttons -->
|
2349 |
<!-- Round -->
|
2350 |
<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
|
2351 |
+
|
2352 |
</td>
|
2353 |
<td><!-- Theme radio buttons -->
|
2354 |
<!-- Default -->
|
2362 |
</td>
|
2363 |
<td> <!-- Size buttons-->
|
2364 |
<input style="width:50px" id="mo_sharing_icon_size" onkeyup="moSharingSizeValidate(this)" name="mo_sharing_icon_custom_size" type="text" value="<?php echo esc_attr(get_option('mo_sharing_icon_custom_size'))?>" >
|
2365 |
+
|
2366 |
<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)" >
|
2367 |
+
|
2368 |
<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)" >
|
2369 |
</td>
|
2370 |
</tr>
|
2375 |
</td>
|
2376 |
<td> <!-- Theme radio buttons -->
|
2377 |
<!-- Custom background -->
|
2378 |
+
|
2379 |
<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)"
|
2380 |
<?php checked( get_option('mo_openid_share_custom_theme') == 'custom' );?> />Custom background*
|
2381 |
</td>
|
2389 |
</td>
|
2390 |
<td> <!-- Theme radio buttons -->
|
2391 |
<!-- Custom background textbox -->
|
2392 |
+
|
2393 |
<input id="mo_sharing_icon_custom_color" name="mo_sharing_icon_custom_color" class="color" value="<?php echo esc_attr(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)" >
|
2394 |
</td>
|
2395 |
<td></td>
|
2415 |
</tr>
|
2416 |
</table>
|
2417 |
</td>
|
2418 |
+
</tr>
|
2419 |
+
|
2420 |
+
<tr><td> </td></tr>
|
2421 |
+
|
2422 |
<tr>
|
2423 |
<td><b>Preview: </b><br/><span hidden id="no_apps_text">No apps selected</span></td>
|
2424 |
</tr>
|
2425 |
+
|
2426 |
<tr>
|
2427 |
<td>
|
2428 |
+
|
2429 |
<div>
|
2430 |
<img class="mo_sharing_icon_preview" id="mo_sharing_icon_preview_facebook" src="<?php echo plugins_url( 'includes/images/icons/facebook.png', __FILE__ )?>" />
|
2431 |
<img class="mo_sharing_icon_preview" id="mo_sharing_icon_preview_twitter" src="<?php echo plugins_url( 'includes/images/icons/twitter.png', __FILE__ )?>" />
|
2444 |
<img class="mo_sharing_icon_preview" id="mo_sharing_icon_preview_print" src="<?php echo plugins_url( 'includes/images/icons/print.png', __FILE__ )?>"/>
|
2445 |
<img class="mo_sharing_icon_preview" id="mo_sharing_icon_preview_whatsapp" src="<?php echo plugins_url( 'includes/images/icons/whatsapp.png', __FILE__ )?>"/>
|
2446 |
</div>
|
2447 |
+
|
2448 |
<div>
|
2449 |
<i class="mo_custom_sharing_icon_preview fa fa-facebook" id="mo_custom_sharing_icon_preview_facebook" style="color:#ffffff;text-align:center;margin-top:5px;"></i>
|
2450 |
<i class="mo_custom_sharing_icon_preview fa fa-twitter" id="mo_custom_sharing_icon_preview_twitter" style="color:#ffffff;text-align:center;margin-top:5px;" ></i>
|
2463 |
<i class="mo_custom_sharing_icon_preview fa fa-print" id="mo_custom_sharing_icon_preview_print" style="color:#ffffff;text-align:center; "></i>
|
2464 |
<i class="mo_custom_sharing_icon_preview fa fa-whatsapp" id="mo_custom_sharing_icon_preview_whatsapp" style="color:#ffffff;text-align:center; "></i>
|
2465 |
</div>
|
2466 |
+
|
2467 |
<div>
|
2468 |
<i class="mo_custom_sharing_icon_font_preview fa fa-facebook" id="mo_custom_sharing_icon_font_preview_facebook" style="text-align:center;margin-top:5px;"></i>
|
2469 |
<i class="mo_custom_sharing_icon_font_preview fa fa-twitter" id="mo_custom_sharing_icon_font_preview_twitter" style="text-align:center;margin-top:5px;" ></i>
|
2482 |
<i class="mo_custom_sharing_icon_font_preview fa fa-print" id="mo_custom_sharing_icon_font_preview_print" style="text-align:center; "></i>
|
2483 |
<i class="mo_custom_sharing_icon_font_preview fa fa-whatsapp" id="mo_custom_sharing_icon_font_preview_whatsapp" style="text-align:center; "></i>
|
2484 |
</div>
|
2485 |
+
|
2486 |
</td>
|
2487 |
</tr>
|
2488 |
</table>
|
2543 |
</table>
|
2544 |
</td>
|
2545 |
</tr>
|
2546 |
+
|
2547 |
<script>
|
2548 |
var tempHorSize = '<?php echo esc_attr(get_option('mo_sharing_icon_custom_size')) ?>';
|
2549 |
var tempHorShape = '<?php echo esc_attr(get_option('mo_openid_share_theme')) ?>';
|
2554 |
function moSharingIncrement(e,t,r,a,i){
|
2555 |
var h,s,c=!1,_=a;s=function(){
|
2556 |
"add"==t&&r.value<60?r.value++:"subtract"==t&&r.value>10&&r.value--,h=setTimeout(s,_),_>20&&(_*=i),c||(document.onmouseup=function(){clearTimeout(h),document.onmouseup=null,c=!1,_=a},c=!0)},e.onmousedown=s}
|
2557 |
+
|
2558 |
moSharingIncrement(document.getElementById('mo_sharing_size_plus'), "add", document.getElementById('mo_sharing_icon_size'), 300, 0.7);
|
2559 |
moSharingIncrement(document.getElementById('mo_sharing_size_minus'), "subtract", document.getElementById('mo_sharing_icon_size'), 300, 0.7);
|
2560 |
+
|
2561 |
function moSharingSpaceIncrement(e,t,r,a,i){
|
2562 |
var h,s,c=!1,_=a;s=function(){
|
2563 |
"add"==t&&r.value<50?r.value++:"subtract"==t&&r.value>0&&r.value--,h=setTimeout(s,_),_>20&&(_*=i),c||(document.onmouseup=function(){clearTimeout(h),document.onmouseup=null,c=!1,_=a},c=!0)},e.onmousedown=s}
|
2564 |
moSharingSpaceIncrement(document.getElementById('mo_sharing_space_plus'), "add", document.getElementById('mo_sharing_icon_space'), 300, 0.7);
|
2565 |
moSharingSpaceIncrement(document.getElementById('mo_sharing_space_minus'), "subtract", document.getElementById('mo_sharing_icon_space'), 300, 0.7);
|
2566 |
+
|
2567 |
+
|
2568 |
function setTheme(){return jQuery('input[name=mo_openid_share_theme]:checked', '#settings_form').val();}
|
2569 |
function setCustomTheme(){return jQuery('input[name=mo_openid_share_custom_theme]:checked', '#settings_form').val();}
|
2570 |
+
</script>
|
2571 |
+
|
2572 |
+
|
2573 |
|
2574 |
<script type="text/javascript">
|
2575 |
+
|
2576 |
var selectedApps = [];
|
2577 |
+
|
2578 |
+
|
2579 |
+
|
2580 |
function moSharingPreview(e,t,r,w,h,n,x){
|
2581 |
+
|
2582 |
if("default"==w){
|
2583 |
var a="mo_sharing_icon_preview";
|
2584 |
jQuery('.mo_sharing_icon_preview').show();
|
2587 |
jQuery("."+a).css({height:t,width:t});
|
2588 |
jQuery("."+a).css("font-size",(t-10)+"px");
|
2589 |
jQuery("."+a).css("margin-left",(n-4)+"px");
|
2590 |
+
|
2591 |
if(r=="circle"){
|
2592 |
jQuery("."+a).css("borderRadius","999px");
|
2593 |
}else if(r=="oval"){
|
2595 |
}else if(r=="square"){
|
2596 |
jQuery("."+a).css("borderRadius","0px");
|
2597 |
}
|
2598 |
+
|
2599 |
}
|
2600 |
else if(w == "custom"){
|
2601 |
var a="mo_custom_sharing_icon_preview";
|
2606 |
jQuery("."+a).css("padding-top","8px");
|
2607 |
jQuery("."+a).css({height:t-8,width:t});
|
2608 |
jQuery("."+a).css("font-size",(t-16)+"px");
|
2609 |
+
|
2610 |
if(r=="circle"){
|
2611 |
jQuery("."+a).css("borderRadius","999px");
|
2612 |
}else if(r=="oval"){
|
2614 |
}else if(r=="square"){
|
2615 |
jQuery("."+a).css("borderRadius","0px");
|
2616 |
}
|
2617 |
+
|
2618 |
jQuery("."+a).css("margin-left",(n-4)+"px");
|
2619 |
}
|
2620 |
+
|
2621 |
else if("customFont"==w){
|
2622 |
var a="mo_custom_sharing_icon_font_preview";
|
2623 |
jQuery('.mo_sharing_icon_preview').hide();
|
2626 |
jQuery("."+a).css("font-size",t+"px");
|
2627 |
jQuery('.mo_custom_sharing_icon_font_preview').css("color","#"+x);
|
2628 |
jQuery("."+a).css("margin-left",(n-4)+"px");
|
2629 |
+
|
2630 |
if(r=="circle"){
|
2631 |
jQuery("."+a).css("borderRadius","999px");
|
2632 |
+
|
2633 |
}else if(r=="oval"){
|
2634 |
jQuery("."+a).css("borderRadius","5px");
|
2635 |
}else if(r=="square"){
|
2636 |
jQuery("."+a).css("borderRadius","0px");
|
2637 |
}
|
2638 |
+
|
2639 |
}
|
2640 |
addSelectedApps();
|
2641 |
+
|
2642 |
+
|
2643 |
+
|
2644 |
}
|
2645 |
moSharingPreview('horizontal',tempHorSize,tempHorShape,tempHorTheme,tempbackColor,tempHorSpace,tempHorFontColor);
|
2646 |
+
|
2647 |
function addSelectedApps() {
|
2648 |
var flag = 0;
|
2649 |
if (document.getElementById('google_share_enable').checked) {
|
2658 |
jQuery("#mo_sharing_icon_preview_google").hide();
|
2659 |
jQuery("#mo_custom_sharing_icon_preview_google").hide();
|
2660 |
jQuery("#mo_custom_sharing_icon_font_preview_google").hide();
|
2661 |
+
|
2662 |
}
|
2663 |
+
|
2664 |
if (document.getElementById('facebook_share_enable').checked) {
|
2665 |
flag = 1;
|
2666 |
if(document.getElementById('mo_openid_default_background_radio').checked)
|
2674 |
jQuery("#mo_custom_sharing_icon_preview_facebook").hide();
|
2675 |
jQuery("#mo_custom_sharing_icon_font_preview_facebook").hide();
|
2676 |
}
|
2677 |
+
|
2678 |
if (document.getElementById('linkedin_share_enable').checked) {
|
2679 |
flag = 1;
|
2680 |
if(document.getElementById('mo_openid_default_background_radio').checked)
|
2681 |
jQuery("#mo_sharing_icon_preview_linkedin").show();
|
2682 |
if(document.getElementById('mo_openid_custom_background_radio').checked)
|
2683 |
jQuery("#mo_custom_sharing_icon_preview_linkedin").show();
|
2684 |
+
if(document.getElementById('mo_openid_no_background_radio').checked)
|
2685 |
jQuery("#mo_custom_sharing_icon_font_preview_linkedin").show();
|
2686 |
} else if(!document.getElementById('linkedin_share_enable').checked){
|
2687 |
jQuery("#mo_sharing_icon_preview_linkedin").hide();
|
2688 |
jQuery("#mo_custom_sharing_icon_preview_linkedin").hide();
|
2689 |
jQuery("#mo_custom_sharing_icon_font_preview_linkedin").hide();
|
2690 |
}
|
2691 |
+
|
2692 |
if (document.getElementById('twitter_share_enable').checked) {
|
2693 |
flag = 1;
|
2694 |
if(document.getElementById('mo_openid_default_background_radio').checked)
|
2702 |
jQuery("#mo_custom_sharing_icon_preview_twitter").hide();
|
2703 |
jQuery("#mo_custom_sharing_icon_font_preview_twitter").hide();
|
2704 |
}
|
2705 |
+
|
2706 |
if (document.getElementById('pinterest_share_enable').checked) {
|
2707 |
flag = 1;
|
2708 |
if(document.getElementById('mo_openid_default_background_radio').checked)
|
2716 |
jQuery("#mo_custom_sharing_icon_preview_pinterest").hide();
|
2717 |
jQuery("#mo_custom_sharing_icon_font_preview_pinterest").hide();
|
2718 |
}
|
2719 |
+
|
2720 |
if (document.getElementById('reddit_share_enable').checked) {
|
2721 |
flag = 1;
|
2722 |
if(document.getElementById('mo_openid_default_background_radio').checked)
|
2731 |
jQuery("#mo_custom_sharing_icon_preview_reddit").hide();
|
2732 |
jQuery("#mo_custom_sharing_icon_font_preview_reddit").hide();
|
2733 |
}
|
2734 |
+
|
2735 |
if (document.getElementById('vkontakte_share_enable').checked) {
|
2736 |
flag = 1;
|
2737 |
if(document.getElementById('mo_openid_default_background_radio').checked)
|
2746 |
jQuery("#mo_custom_sharing_icon_preview_vk").hide();
|
2747 |
jQuery("#mo_custom_sharing_icon_font_preview_vk").hide();
|
2748 |
}
|
2749 |
+
|
2750 |
if (document.getElementById('stumble_share_enable').checked) {
|
2751 |
flag = 1;
|
2752 |
if(document.getElementById('mo_openid_default_background_radio').checked)
|
2761 |
jQuery("#mo_custom_sharing_icon_preview_stumble").hide();
|
2762 |
jQuery("#mo_custom_sharing_icon_font_preview_stumble").hide();
|
2763 |
}
|
2764 |
+
|
2765 |
if (document.getElementById('tumblr_share_enable').checked) {
|
2766 |
flag = 1;
|
2767 |
if(document.getElementById('mo_openid_default_background_radio').checked)
|
2776 |
jQuery("#mo_custom_sharing_icon_preview_tumblr").hide();
|
2777 |
jQuery("#mo_custom_sharing_icon_font_preview_tumblr").hide();
|
2778 |
}
|
2779 |
+
|
2780 |
if (document.getElementById('pocket_share_enable').checked) {
|
2781 |
flag = 1;
|
2782 |
if(document.getElementById('mo_openid_default_background_radio').checked)
|
2868 |
jQuery("#mo_sharing_button_preview_custom_whatsapp").show();
|
2869 |
if(document.getElementById('mo_openid_no_background_radio').checked)
|
2870 |
jQuery("#mo_custom_sharing_icon_font_preview_whatsapp").show();
|
2871 |
+
|
2872 |
} else if(!document.getElementById('whatsapp_share_enable').checked){
|
2873 |
jQuery("#mo_sharing_icon_preview_whatsapp").hide();
|
2874 |
jQuery("#mo_custom_sharing_icon_preview_whatsapp").hide();
|
2875 |
jQuery("#mo_custom_sharing_icon_font_preview_whatsapp").hide();
|
2876 |
}
|
2877 |
+
|
2878 |
if(flag) {
|
2879 |
jQuery("#no_apps_text").hide();
|
2880 |
} else {
|
2881 |
jQuery("#no_apps_text").show();
|
2882 |
}
|
2883 |
}
|
2884 |
+
|
2885 |
jQuery( document ).ready(function() {
|
2886 |
+
addSelectedApps();
|
2887 |
});
|
2888 |
</script>
|
2889 |
<script>
|
3009 |
<p><strong>Select the options where you want to display social share icons</strong></p>
|
3010 |
</td>
|
3011 |
</tr>
|
3012 |
+
|
3013 |
<tr>
|
3014 |
<td>
|
3015 |
<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 );?>>
|
3039 |
<br/>
|
3040 |
<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' );?>>
|
3041 |
Both before and after content
|
3042 |
+
</td>
|
3043 |
</tr>
|
3044 |
<tr>
|
3045 |
<td>
|
3138 |
</td>
|
3139 |
</tr>
|
3140 |
<tr>
|
3141 |
+
|
3142 |
<td>
|
3143 |
<br />
|
3144 |
<input type="submit" name="submit" value="Save" style="width:100px;"
|
3166 |
</ol>
|
3167 |
</p>
|
3168 |
</td>
|
3169 |
+
</tr>
|
3170 |
+
</table>
|
3171 |
</div>
|
3172 |
|
3173 |
</form>
|
3175 |
jQuery(function() {
|
3176 |
jQuery('#tab1').removeClass("nav-tab-active");
|
3177 |
jQuery('#tab2').addClass("nav-tab-active");
|
3178 |
+
|
3179 |
});
|
3180 |
</script>
|
3181 |
</td>
|
3187 |
|
3188 |
function mo_openid_shortcode_info(){
|
3189 |
?>
|
3190 |
+
|
3191 |
<td style="vertical-align:top;width:65%;">
|
3192 |
<div class="mo_openid_table_layout">
|
3193 |
|
3207 |
Use social login Shortcode in the content of required page/post where you want to display Social Login Icons.<br/>
|
3208 |
<h3>Default Social Login Shortcode</h3>
|
3209 |
This will display Social Login Icons with same default settings<br/>
|
3210 |
+
<b>Example:</b> <code id="1">[miniorange_social_login]</code>
|
3211 |
+
<i style= "width: 11px;height: 9px;padding-left:2px;padding-top:3px" class="fa fa-fw fa-lg fa-copy mo_copy copytooltip" onclick="copyToClipboard(this, '#1', '#shortcode_url_copy')"><span id="shortcode_url_copy" class="copytooltiptext">Copy to Clipboard</span></i>
|
3212 |
+
<hr>
|
3213 |
|
3214 |
<h3>For Icons</h3>
|
3215 |
You can use different attribute to customize social login icons. All attributes are optional except view.<br/><br/>
|
3216 |
+
<b>Square Shape Example:</b> <code id="2">[miniorange_social_login shape="square" theme="default" space="4" size="35"]</code> <i style= "width: 11px;height: 9px;padding-left:2px;padding-top:3px" class="fa fa-fw fa-lg fa-copy mo_copy copytooltip" onclick="copyToClipboard(this, '#2', '#shortcode_url2_copy')"><span id="shortcode_url2_copy" class="copytooltiptext">Copy to Clipboard</span></i>
|
3217 |
+
<br/><br/>
|
3218 |
<a class=" login-button" rel="nofollow" title=" Login with Facebook"><img alt="Facebook" style="width:35px !important;height: 35px !important;margin-left: 4px !important" src="<?php echo plugins_url( 'includes/images/icons/facebook.png', __FILE__ )?>" class=" login-button square"></a>
|
3219 |
<a class=" login-button" rel="nofollow" title=" Login with Google"><img alt="Google" style="width:35px !important;height: 35px !important;margin-left: 4px !important" src="<?php echo plugins_url( 'includes/images/icons/google.png', __FILE__ )?>" class=" login-button square"></a>
|
3220 |
<a class=" login-button" rel="nofollow" title=" Login with Vkontakte"><img alt="Vkontakte" style="width:35px !important;height: 35px !important;margin-left: 4px !important" src="<?php echo plugins_url( 'includes/images/icons/vk.png', __FILE__ )?>" class=" login-button square"></a>
|
3221 |
<a class=" login-button" rel="nofollow" title=" Login with LinkedIn"><img alt="LinkedIn" style="width:35px !important;height: 35px !important;margin-left: 4px !important" src="<?php echo plugins_url( 'includes/images/icons/linkedin.png', __FILE__ )?>" class=" login-button square"></a>
|
3222 |
<a class=" login-button" rel="nofollow" title=" Login with instagram"><img alt="Instagram" style="width:35px !important;height: 35px !important;margin-left: 4px !important" src="<?php echo plugins_url( 'includes/images/icons/instagram.png', __FILE__ )?>" class=" login-button square"></a><br/><br/>
|
3223 |
|
3224 |
+
<b>Round Shape Example:</b> <code id="3">[miniorange_social_login shape="round" theme="default" space="4" size="35"]</code><i style= "width: 11px;height: 9px;padding-left:2px;padding-top:3px" class="fa fa-fw fa-lg fa-copy mo_copy copytooltip" onclick="copyToClipboard(this, '#3', '#shortcode_url3_copy')"><span id="shortcode_url3_copy" class="copytooltiptext">Copy to Clipboard</span></i><br/><br/>
|
3225 |
<a class=" login-button" rel="nofollow" title=" Login with Facebook"><img alt="Facebook" style="width:35px !important;height: 35px !important;margin-left: 4px !important" src="<?php echo plugins_url( 'includes/images/icons/facebook.png', __FILE__ )?>" class=" login-button round"></a>
|
3226 |
<a class=" login-button" rel="nofollow" title=" Login with Google"><img alt="Google" style="width:35px !important;height: 35px !important;margin-left: 4px !important" src="<?php echo plugins_url( 'includes/images/icons/google.png', __FILE__ )?>" class=" login-button round"></a>
|
3227 |
<a class=" login-button" rel="nofollow" title=" Login with Vkontakte"><img alt="Vkontakte" style="width:35px !important;height: 35px !important;margin-left: 4px !important" src="<?php echo plugins_url( 'includes/images/icons/vk.png', __FILE__ )?>" class=" login-button round"></a>
|
3231 |
<hr>
|
3232 |
<h3>For Long-Buttons</h3>
|
3233 |
You can use different attribute to customize social login buttons. All attributes are optional.<br/><br/>
|
3234 |
+
<b>Vertical View Example:</b><code id="4">[miniorange_social_login shape="longbuttonwithtext" theme="default" space="8" width="180" height="35" color="000000"]</code><i style= "width: 11px;height: 9px;padding-left:2px;padding-top:3px" class="fa fa-fw fa-lg fa-copy mo_copy copytooltip" onclick="copyToClipboard(this, '#4', '#shortcode_url4_copy')"><span id="shortcode_url4_copy" class="copytooltiptext">Copy to Clipboard</span></i><br/><br/>
|
3235 |
<a rel="nofollow" style="margin-left: 8px !important;width: 180px !important;padding-top:6px !important;padding-bottom:6px !important;margin-bottom: 3px !important;border-radius: 4px !important;" class="btn btn-mo btn-block btn-social btn-facebook btn-custom-dec login-button"> <svg xmlns="http://www.w3.org/2000/svg" style="padding-top:5px;border-right:none;margin-left: 2%;"><path fill="#fff" d="M22.688 0H1.323C.589 0 0 .589 0 1.322v21.356C0 23.41.59 24 1.323 24h11.505v-9.289H9.693V11.09h3.124V8.422c0-3.1 1.89-4.789 4.658-4.789 1.322 0 2.467.1 2.8.145v3.244h-1.922c-1.5 0-1.801.711-1.801 1.767V11.1h3.59l-.466 3.622h-3.113V24h6.114c.734 0 1.323-.589 1.323-1.322V1.322A1.302 1.302 0 0 0 22.688 0z"></path></svg>Login with Facebook</a>
|
3236 |
<a rel="nofollow" style="margin-left: 8px !important;background: rgb(255,255,255)!important; background:linear-gradient(90deg, rgba(255,255,255,1) 38px, rgb(79, 113, 232) 5%) !important;width: 180px !important;padding-top:6px !important;padding-bottom:6px !important;margin-bottom: 3px !important;border-radius: 4px !important;border-color: rgba(79, 113, 232, 1);border-bottom-width: thin;" class="btn btn-mo btn-block btn-social btn-google btn-custom-dec login-button"> <i style="padding-top:6px !important;border-right:none;" class="fa"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 70 70" style="padding-left: 8%;"><defs><path id="a" d="M44.5 20H24v8.5h11.8C34.7 33.9 30.1 37 24 37c-7.2 0-13-5.8-13-13s5.8-13 13-13c3.1 0 5.9 1.1 8.1 2.9l6.4-6.4C34.6 4.1 29.6 2 24 2 11.8 2 2 11.8 2 24s9.8 22 22 22c11 0 21-8 21-22 0-1.3-.2-2.7-.5-4z"></path></defs><clipPath id="b"><use xlink:href="#a" overflow="visible"></use></clipPath><path clip-path="url(#b)" fill="#FBBC05" d="M0 37V11l17 13z"></path><path clip-path="url(#b)" fill="#EA4335" d="M0 11l17 13 7-6.1L48 14V0H0z"></path><path clip-path="url(#b)" fill="#34A853" d="M0 37l30-23 7.9 1L48 0v48H0z"></path><path clip-path="url(#b)" fill="#4285F4" d="M48 48L17 24l-4-3 35-10z"></path></svg></i><span style="color:#ffffff;">Login with Google</span></a>
|
3237 |
<a rel="nofollow" style="margin-left: 8px !important;width: 180px !important;padding-top:6px !important;padding-bottom:6px !important;margin-bottom: 3px !important;border-radius: 4px !important;" class="btn btn-mo btn-block btn-social btn-vk btn-custom-dec login-button"> <i style="padding-top:0px !important" class="fa fa-vk"></i>Login with Vkontakte</a><br/>
|
3238 |
|
3239 |
+
<b>Horizontal View Example:</b><code id="5">[miniorange_social_login shape="longbuttonwithtext" view="horizontal" appcnt="3" theme="default" space="35" width="180" height="35" color="000000"]</code><i style= "width: 11px;height: 9px;padding-left:2px;padding-top:3px" class="fa fa-fw fa-lg fa-copy mo_copy copytooltip" onclick="copyToClipboard(this, '#5', '#shortcode_url5_copy')"><span id="shortcode_url5_copy" class="copytooltiptext">Copy to Clipboard</span></i><br/><br/>
|
3240 |
<a rel="nofollow" style="margin-left: 35px !important;width: 180px !important;padding-top:6px !important;padding-bottom:6px !important;margin-bottom: 30px !important;border-radius: 4px !important;" class="btn btn-mo btn-block-inline btn-social btn-facebook btn-custom-dec login-button"> <svg xmlns="http://www.w3.org/2000/svg" style="padding-top:5px;border-right:none;margin-left: 2%;"><path fill="#fff" d="M22.688 0H1.323C.589 0 0 .589 0 1.322v21.356C0 23.41.59 24 1.323 24h11.505v-9.289H9.693V11.09h3.124V8.422c0-3.1 1.89-4.789 4.658-4.789 1.322 0 2.467.1 2.8.145v3.244h-1.922c-1.5 0-1.801.711-1.801 1.767V11.1h3.59l-.466 3.622h-3.113V24h6.114c.734 0 1.323-.589 1.323-1.322V1.322A1.302 1.302 0 0 0 22.688 0z"></path></svg>Login with Facebook</a>
|
3241 |
<a rel="nofollow" style="margin-left: 35px !important;background: rgb(255,255,255)!important; background:linear-gradient(90deg, rgba(255,255,255,1) 38px, rgb(79, 113, 232) 5%) !important;width: 180px !important;padding-top:6px !important;padding-bottom:6px !important;margin-bottom: 30px !important;border-radius: 4px !important;border-color: rgba(79, 113, 232, 1);border-bottom-width: thin;" class="btn btn-mo btn-block-inline btn-social btn-google btn-custom-dec login-button"> <i style="padding-top:6px !important;border-right:none;" class="fa"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 70 70" style="padding-left: 8%;"><defs><path id="a" d="M44.5 20H24v8.5h11.8C34.7 33.9 30.1 37 24 37c-7.2 0-13-5.8-13-13s5.8-13 13-13c3.1 0 5.9 1.1 8.1 2.9l6.4-6.4C34.6 4.1 29.6 2 24 2 11.8 2 2 11.8 2 24s9.8 22 22 22c11 0 21-8 21-22 0-1.3-.2-2.7-.5-4z"></path></defs><clipPath id="b"><use xlink:href="#a" overflow="visible"></use></clipPath><path clip-path="url(#b)" fill="#FBBC05" d="M0 37V11l17 13z"></path><path clip-path="url(#b)" fill="#EA4335" d="M0 11l17 13 7-6.1L48 14V0H0z"></path><path clip-path="url(#b)" fill="#34A853" d="M0 37l30-23 7.9 1L48 0v48H0z"></path><path clip-path="url(#b)" fill="#4285F4" d="M48 48L17 24l-4-3 35-10z"></path></svg></i><span style="color:#ffffff;">Login with Google</span></a>
|
3242 |
<a rel="nofollow" style="margin-left: 35px !important;width: 180px !important;padding-top:6px !important;padding-bottom:6px !important;margin-bottom: 30px !important;border-radius: 4px !important;" class="btn btn-mo btn-block-inline btn-social btn-vk btn-custom-dec login-button"> <i style="padding-top:0px !important" class="fa fa-vk"></i>Login with Vkontakte</a><br/>
|
3244 |
|
3245 |
<h3>For Selected Applications</h3>
|
3246 |
If you want to show selected applications without setting up default settings then use this shortcode. You can use different attribute to customize social login buttons. All attributes are optional.<br/><br/>
|
3247 |
+
<b>Example:</b><code id="6">[miniorange_social_login apps="vk,google,fb" shape="longbuttonwithtext" view="horizontal" theme="default" space="10" width="200" height="35" color="000000"]</code><i style= "width: 11px;height: 9px;padding-left:2px;padding-top:3px" class="fa fa-fw fa-lg fa-copy mo_copy copytooltip" onclick="copyToClipboard(this, '#6', '#shortcode_url6_copy')"><span id="shortcode_url6_copy" class="copytooltiptext">Copy to Clipboard</span></i><br/><br/>
|
3248 |
<a rel="nofollow" style="margin-left: 10px !important;width: 200px !important;padding-top:6px !important;padding-bottom:6px !important;margin-bottom: 5px !important;border-radius: 4px !important;" class="btn btn-mo btn-block-inline btn-social btn-vk btn-custom-dec login-button"> <i style="padding-top:0px !important" class="fa fa-vk"></i>Login with Vkontakte</a>
|
3249 |
<a rel="nofollow" style="margin-left: 10px !important;background: rgb(255,255,255)!important; background:linear-gradient(90deg, rgba(255,255,255,1) 38px, rgb(79, 113, 232) 5%) !important;width: 200px !important;padding-top:6px !important;padding-bottom:6px !important;margin-bottom: 5px !important;border-radius: 4px !important;border-color: rgba(79, 113, 232, 1);border-bottom-width: thin;" class="btn btn-mo btn-block-inline btn-social btn-google btn-custom-dec login-button"> <i style="padding-top:6px !important;border-right:none;" class="fa"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 70 70" style="padding-left: 8%;"><defs><path id="a" d="M44.5 20H24v8.5h11.8C34.7 33.9 30.1 37 24 37c-7.2 0-13-5.8-13-13s5.8-13 13-13c3.1 0 5.9 1.1 8.1 2.9l6.4-6.4C34.6 4.1 29.6 2 24 2 11.8 2 2 11.8 2 24s9.8 22 22 22c11 0 21-8 21-22 0-1.3-.2-2.7-.5-4z"></path></defs><clipPath id="b"><use xlink:href="#a" overflow="visible"></use></clipPath><path clip-path="url(#b)" fill="#FBBC05" d="M0 37V11l17 13z"></path><path clip-path="url(#b)" fill="#EA4335" d="M0 11l17 13 7-6.1L48 14V0H0z"></path><path clip-path="url(#b)" fill="#34A853" d="M0 37l30-23 7.9 1L48 0v48H0z"></path><path clip-path="url(#b)" fill="#4285F4" d="M48 48L17 24l-4-3 35-10z"></path></svg></i><span style="color:#ffffff;">Login with Google</span></a>
|
3250 |
<a rel="nofollow" style="margin-left: 10px !important;width: 200px !important;padding-top:6px !important;padding-bottom:6px !important;margin-bottom: 5px !important;border-radius: 4px !important;" class="btn btn-mo btn-block-inline btn-social btn-facebook btn-custom-dec login-button""> <svg xmlns="http://www.w3.org/2000/svg" style="padding-top:5px;border-right:none;margin-left: 2%;"><path fill="#fff" d="M22.688 0H1.323C.589 0 0 .589 0 1.322v21.356C0 23.41.59 24 1.323 24h11.505v-9.289H9.693V11.09h3.124V8.422c0-3.1 1.89-4.789 4.658-4.789 1.322 0 2.467.1 2.8.145v3.244h-1.922c-1.5 0-1.801.711-1.801 1.767V11.1h3.59l-.466 3.622h-3.113V24h6.114c.734 0 1.323-.589 1.323-1.322V1.322A1.302 1.302 0 0 0 22.688 0z"></path></svg>Login with Facebook</a>
|
3324 |
<td>
|
3325 |
<h3><a id="openid_sharing_shortcode_title" >Social Sharing Shortcode</a></h3>
|
3326 |
<div hidden="" id="openid_sharing_shortcode" style="font-size:13px !important">
|
3327 |
+
<b>Horizontal</b> --> <code id="7">[miniorange_social_sharing]</code><i style= "width: 11px;height: 9px;padding-left:2px;padding-top:3px" class="fa fa-fw fa-lg fa-copy mo_copy copytooltip" onclick="copyToClipboard(this, '#7', '#shortcode_url7_copy')"><span id="shortcode_url7_copy" class="copytooltiptext">Copy to Clipboard</span></i><br>
|
3328 |
+
<b>Vertical</b> --> <code id="8">[miniorange_social_sharing_vertical]</code><i style= "width: 11px;height: 9px;padding-left:2px;padding-top:3px" class="fa fa-fw fa-lg fa-copy mo_copy copytooltip" onclick="copyToClipboard(this, '#8', '#shortcode_url8_copy')"><span id="shortcode_url8_copy" class="copytooltiptext">Copy to Clipboard</span></i>
|
3329 |
<!--Use [miniorange_social_sharing] Shortcode in the content of required page/post where you want to display horizontal Social Sharing Icons. Use [miniorange_social_sharing_vertical] shortcode for vertical Social Sharing Icons.--><br>
|
3330 |
|
3331 |
|
3332 |
<h4>For Sharing Icons</h4>
|
3333 |
You can use different attribute to customize social sharing icons. All attributes are optional.<br>
|
3334 |
+
<b>Example:</b> <code id="9"> [miniorange_social_sharing shape="square" heading="Share with" color="#000000" fontcolor="blue" theme="nobackground" space="4" size="30" url="https://www.miniorange.com"]</code><i style= "width: 11px;height: 9px;padding-left:2px;padding-top:3px" class="fa fa-fw fa-lg fa-copy mo_copy copytooltip" onclick="copyToClipboard(this, '#9', '#shortcode_url9_copy')"><span id="shortcode_url9_copy" class="copytooltiptext">Copy to Clipboard</span></i>
|
3335 |
<br>
|
3336 |
|
3337 |
<h4 style="margin-bottom:0 !important">Common attributes - Horizontal and Vertical</h4>
|
3359 |
<td>
|
3360 |
<h3><a id="openid_comments_shortcode_title" >Social Comments Shortcode</a></h3>
|
3361 |
<div hidden="" id="openid_comments_shortcode" style="font-size:13px !important">
|
3362 |
+
<code id="10">[miniorange_social_comments]</code><i style= "width: 11px;height: 9px;padding-left:2px;padding-top:3px" class="fa fa-fw fa-lg fa-copy mo_copy copytooltip" onclick="copyToClipboard(this, '#10', '#shortcode_url10_copy')"><span id="shortcode_url10_copy" class="copytooltiptext">Copy to Clipboard</span></i><br> <br>
|
3363 |
1. Configure Social Comments in the Social Comments tab of the plugin.<br>
|
3364 |
2. Keep both the display options checked and Save.<br>
|
3365 |
3. Enable Comments for the post/page you want to add <br>
|
3376 |
<div hidden="" id = "openid_shortcode_inphp" style="font-size:13px !important">
|
3377 |
You can use shortcode in PHP file as following:
|
3378 |
|
3379 |
+
<code id="11"><?php echo do_shortcode(‘SHORTCODE’) /?></code><i style= "width: 11px;height: 9px;padding-left:2px;padding-top:3px" class="fa fa-fw fa-lg fa-copy mo_copy copytooltip" onclick="copyToClipboard(this, '#11', '#shortcode_url11_copy')"><span id="shortcode_url11_copy" class="copytooltiptext">Copy to Clipboard</span></i>
|
3380 |
+
|
3381 |
<br>
|
3382 |
Replace SHORTCODE in above code with the required shortcode like [miniorange_social_login theme="default"], so the final code looks like following :
|
3383 |
<br>
|
3384 |
+
<code id="12"><?php echo do_shortcode('[miniorange_social_login theme="default"]') ?></code><i style= "width: 11px;height: 9px;padding-left:2px;padding-top:3px" class="fa fa-fw fa-lg fa-copy mo_copy copytooltip" onclick="copyToClipboard(this, '#12', '#shortcode_url12_copy')"><span id="shortcode_url12_copy" class="copytooltiptext">Copy to Clipboard</span></i>
|
3385 |
+
</div>
|
3386 |
<hr>
|
3387 |
|
3388 |
</td>
|
3394 |
<td style="vertical-align:top;padding-left:1%;">
|
3395 |
<?php echo miniorange_openid_support(); ?>
|
3396 |
</td>
|
3397 |
+
<script>
|
3398 |
+
function copyToClipboard(copyButton, element, copyelement) {
|
3399 |
+
var temp = jQuery("<input>");
|
3400 |
+
jQuery("body").append(temp);
|
3401 |
+
temp.val(jQuery(element).text()).select();
|
3402 |
+
document.execCommand("copy");
|
3403 |
+
temp.remove();
|
3404 |
+
jQuery(copyelement).text("Copied");
|
3405 |
+
jQuery(copyButton).mouseout(function(){
|
3406 |
+
jQuery(copyelement).text("Copy to Clipboard");
|
3407 |
+
});
|
3408 |
+
}
|
3409 |
+
</script>
|
3410 |
+
|
3411 |
+
<?php
|
3412 |
}
|
3413 |
|
3414 |
function mo_openid_pricing_info(){
|
3726 |
function mo_openid_troubleshoot_info(){ ?>
|
3727 |
<td style="vertical-align:top;width:65%;">
|
3728 |
<div class="mo_openid_table_layout">
|
3729 |
+
|
3730 |
|
3731 |
<table width="100%">
|
3732 |
<tbody>
|
3974 |
<td style="vertical-align:top;padding-left:1%;">
|
3975 |
<?php echo miniorange_openid_support(); ?>
|
3976 |
</td>
|
3977 |
+
|
3978 |
+
<?php
|
3979 |
}
|
3980 |
|
3981 |
function mo_openid_privacy_policy(){ ?>
|
4156 |
</style>
|
4157 |
<div class="mo_table_layout" style="min-height: 400px;">
|
4158 |
<?php
|
4159 |
+
|
4160 |
if(isset($_GET['action']) && $_GET['action']=='delete'){
|
4161 |
if(isset($_GET['wp_nonce'])){
|
4162 |
$nonce = $_GET['wp_nonce'];
|
4175 |
mo_custom_app_instructions($_GET['app']);
|
4176 |
}
|
4177 |
}
|
4178 |
+
|
4179 |
if(isset($_GET['action']) && $_GET['action']=='add'){
|
4180 |
if(isset($_GET['wp_nonce'])){
|
4181 |
$nonce = $_GET['wp_nonce'];
|
4185 |
add_custom_app();
|
4186 |
}
|
4187 |
}
|
4188 |
+
}
|
4189 |
else if(isset($_GET['action']) && $_GET['action']=='update'){
|
4190 |
if(isset($_GET['wp_nonce'])){
|
4191 |
$nonce = $_GET['wp_nonce'];
|
4241 |
echo "<br><br><br><br><br><br><br><br>";
|
4242 |
echo "<div style='text-align: center'><p><u>Please Note :</u><br>Enable custom app overrides the default app miniOrange uses. If you want to use the default app miniOrange uses, please disable the custom app here.<br>
|
4243 |
</p></div>";
|
4244 |
+
|
4245 |
}elseif (get_option('mo_openid_apps_list')==null){
|
4246 |
$nonce = wp_create_nonce( 'mo-openid-add-selected-app-nonce' );
|
4247 |
echo "<div style='text-align: center'><p>You have not configured any custom apps yet. Please click on <b>Add Application</b> to configure your own app.</p>";
|
4292 |
if(strpos( $_SERVER['REQUEST_URI'], "facebook")!== false){?><div id="upgrade_notice" class="notice notice-success is-dismissible" style="width: 92.5%;margin-left: 0%;"><p><strong>Please configure the Facebook custom app and test your configuration.</strong></p></div>
|
4293 |
<?php }
|
4294 |
?>
|
4295 |
+
<script>
|
4296 |
+
function copyToClipboard(copyButton, element, copyelement) {
|
4297 |
+
var temp = jQuery("<input>");
|
4298 |
+
jQuery("body").append(temp);
|
4299 |
+
temp.val(jQuery(element).text()).select();
|
4300 |
+
document.execCommand("copy");
|
4301 |
+
temp.remove();
|
4302 |
+
jQuery(copyelement).text("Copied");
|
4303 |
+
jQuery(copyButton).mouseout(function(){
|
4304 |
+
jQuery(copyelement).text("Copy to Clipboard");
|
4305 |
+
});
|
4306 |
+
}
|
4307 |
+
</script>
|
4308 |
<script>
|
4309 |
|
4310 |
function selectapp(app_name) {
|
4317 |
appname = document.getElementById("mo_oauth_app").value;
|
4318 |
}
|
4319 |
document.getElementById("instructions").innerHTML = "";
|
4320 |
+
if(appname=="google"){
|
4321 |
+
document.getElementById("mo_oauth_scope").value = "email+profile";
|
4322 |
+
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><code id="1"><?php if(get_option('mo_openid_malform_error')){if(get_option( 'permalink_structure' )){echo site_url()."/openidcallback/google";}else echo site_url()."/?openidcallback=google"; } else{if(get_option( 'permalink_structure' )){echo site_url()."/openidcallback";}else echo site_url()."/?openidcallback"; }?></code><i style= "width: 11px;height: 9px;padding-left:2px;padding-top:3px" class="fa fa-fw fa-lg fa-copy mo_copy copytooltip" onclick="copyToClipboard(this, \'#1\', \'#shortcode_url1_copy\')"><span id="shortcode_url1_copy" class="copytooltiptext">Copy to Clipboard</span></i></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>email+profile </b></li><li>Go to Social Login tab to configure the display as well as other login settings.</li></ol>';
|
4323 |
+
}
|
4324 |
+
else if(appname=="facebook"){
|
4325 |
+
document.getElementById("mo_oauth_scope").value = "email, public_profile";
|
4326 |
+
document.getElementById("instructions").innerHTML = '<br><br><strong>Facebook custom application setup video : </strong><br><br><iframe width="450" height="250" src="https://www.youtube.com/embed/hHx-oR7XiZo" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen style="margin-left: 17%;"></iframe><br><br><strong>Instructions to configure Facebook : </strong><br><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>Click on <b>Products</b> from left pane of the page and select <b>Facebook Login</b> and click on <b>Set Up</b> button.</li><li>Click on <b>Web</b>. Enter <b><code id="2"><?php echo site_url(); ?></code><i style= "width: 11px;height: 9px;padding-left:2px;padding-top:3px" class="fa fa-fw fa-lg fa-copy mo_copy copytooltip" onclick="copyToClipboard(this, \'#2\', \'#shortcode_url2_copy\')"><span id="shortcode_url2_copy" class="copytooltiptext">Copy to Clipboard</span></i>\n</b> into <b>Site URL</b> than click on <b> Save</b>.</li><li>Goto <b>Settings -> Basic</b> from left pane of the page, Enter <b><code id="3"><?php $str=str_replace('https://','',site_url()); echo $str; ?></code> <i style= "width: 11px;height: 9px;padding-left:2px;padding-top:3px" class="fa fa-fw fa-lg fa-copy mo_copy copytooltip" onclick="copyToClipboard(this, \'#3\', \'#shortcode_url3_copy\')"><span id="shortcode_url3_copy" class="copytooltiptext">Copy to Clipboard</span></i>\n</b> in <b>App Domain</b>, your privacy policy URL in <b>Privacy Policy URL</b> and select <b>Category</b> of your website. Then click on <b>Save Changes</b>.</li><li>From the left pane, select <b>Facebook Login -> Settings</b>.</li><li>Under Client OAuth Settings section, Enter <b><code id="4"><?php if(get_option('mo_openid_malform_error')){if(get_option( 'permalink_structure' )){echo site_url()."/openidcallback/facebook";}else echo site_url()."/?openidcallback=facebook"; } else{if(get_option( 'permalink_structure' )){echo site_url()."/openidcallback";}else echo site_url()."/?openidcallback"; }?></code> <i style= "width: 11px;height: 9px;padding-left:2px;padding-top:3px" class="fa fa-fw fa-lg fa-copy mo_copy copytooltip" onclick="copyToClipboard(this, \'#4\', \'#shortcode_url4_copy\')"><span id="shortcode_url4_copy" class="copytooltiptext">Copy to Clipboard</span></i>\n</b> in <b>Valid OAuth Redirect URIs</b> and click on <b>Save Changes</b> button.</li><li>Change your app status from In Development to Live by clicking on OFF (sliding button) beside Status option of the top right corner. Then, click on Confirm button.</li><li>Go to Settings > Basic. Paste your <b>App ID</b> and <b>App Secret</b> 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</b></li><li>Click on the <b>Save settings</b> button.</li><li>Go to Social Login tab to configure the display as well as other login settings.</li></ol>';
|
4327 |
+
} else if(appname=="twitter"){
|
4328 |
+
document.getElementById("mo_oauth_scope").value = "";
|
4329 |
+
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 =><code id="6"><?php echo site_url();?></code> <i style= "width: 11px;height: 9px;padding-left:2px;padding-top:3px" class="fa fa-fw fa-lg fa-copy mo_copy copytooltip" onclick="copyToClipboard(this, \'#6\', \'#shortcode_url6_copy\')"><span id="shortcode_url6_copy" class="copytooltiptext">Copy to Clipboard</span></i>\n<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 => <code id="7">http://127.0.0.1/wordpress/openidcallback</code> <i style= "width: 11px;height: 9px;padding-left:2px;padding-top:3px" class="fa fa-fw fa-lg fa-copy mo_copy copytooltip" onclick="copyToClipboard(this, \'#7\', \'#shortcode_url7_copy\')"><span id="shortcode_url7_copy" class="copytooltiptext">Copy to Clipboard</span></i>\n</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>';
|
4330 |
+
}
|
4331 |
+
|
4332 |
}
|
4333 |
|
4334 |
+
|
4335 |
+
|
4336 |
+
|
4337 |
+
|
4338 |
+
</script>
|
4339 |
<div id="toggle2" class="panel_toggle">
|
4340 |
<h3>Add Application</h3>
|
4341 |
</div>
|
4391 |
<?php
|
4392 |
}
|
4393 |
function update_custom_app($appname){
|
4394 |
+
|
4395 |
$appslist = maybe_unserialize(get_option('mo_openid_apps_list'));
|
4396 |
foreach($appslist as $key => $app){
|
4397 |
if($appname == $key){
|
4400 |
break;
|
4401 |
}
|
4402 |
}
|
4403 |
+
|
4404 |
if(!$currentapp)
|
4405 |
return;
|
4406 |
?>
|
4407 |
+
|
4408 |
<div id="toggle2" class="panel_toggle">
|
4409 |
<h3>Update Application</h3>
|
4410 |
</div>
|
4460 |
unset($appslist[$key]);
|
4461 |
}
|
4462 |
}
|
4463 |
+
if($appname=="facebook")
|
4464 |
{
|
4465 |
update_option('mo_openid_facebook_enable',0);
|
4466 |
}
|
4488 |
}
|
4489 |
|
4490 |
if ($appname == "google") {
|
4491 |
+
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><code id="1">' . $oauth_redirect_url . '</code><i style= "width: 11px;height: 9px;padding-left:2px;padding-top:3px" class="fa fa-fw fa-lg fa-copy mo_copy copytooltip" onclick="copyToClipboard(this, \'#1\', \'#shortcode_url1_copy\')"><span id="shortcode_url1_copy" class="copytooltiptext">Copy to Clipboard</span></i></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>email+profile </b></li><li>Go to Social Login tab and configure the icons.</li></ol>';
|
4492 |
} else if ($appname == "facebook") {
|
4493 |
+
echo '<br><br><strong>Facebook custom application setup video : </strong><br><br><iframe width="450" height="250" src="https://www.youtube.com/embed/hHx-oR7XiZo" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen style="margin-left: 17%;"></iframe><br><br><strong>Instructions to configure Facebook : </strong><br><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>Click on <b>Products</b> from left pane of the page and select <b>Facebook Login</b> and click on <b>Set Up</b> button.</li><li>Click on <b>Web</b>. Enter <b><code id="2">' . site_url() . '</code><i style= "width: 11px;height: 9px;padding-left:2px;padding-top:3px" class="fa fa-fw fa-lg fa-copy mo_copy copytooltip" onclick="copyToClipboard(this, \'#2\', \'#shortcode_url2_copy\')"><span id="shortcode_url2_copy" class="copytooltiptext">Copy to Clipboard</span></i></b> into <b>Site URL</b> than click on <b> Save</b>.</li><li>Goto <b>Settings -> Basic</b> from left pane of the page, Enter <b><code id="3">' . str_replace('https://', '', site_url()) . '</code><i style= "width: 11px;height: 9px;padding-left:2px;padding-top:3px" class="fa fa-fw fa-lg fa-copy mo_copy copytooltip" onclick="copyToClipboard(this, \'#3\', \'#shortcode_url3_copy\')"><span id="shortcode_url3_copy" class="copytooltiptext">Copy to Clipboard</span></i></b> in <b>App Domain</b>, your privacy policy URL in <b>Privacy Policy URL</b> and select <b>Category</b> of your website. Then click on <b>Save Changes</b>.</li><li>From the left pane, select <b>Facebook Login -> Settings</b>.</li><li>Under Client OAuth Settings section, Enter <b><code id="6">' . $oauth_redirect_url . '</code> <i style= "width: 11px;height: 9px;padding-left:2px;padding-top:3px" class="fa fa-fw fa-lg fa-copy mo_copy copytooltip" onclick="copyToClipboard(this, \'#6\', \'#shortcode_url6_copy\')"><span id="shortcode_url6_copy" class="copytooltiptext">Copy to Clipboard</span></i></b> in <b>Valid OAuth Redirect URIs</b> and click on <b>Save Changes</b> button.</li><li>Change your app status from In Development to Live by clicking on OFF (sliding button) beside Status option of the top right corner. Then, click on Confirm button.</li><li>Go to Settings > Basic. Paste your <b>App ID</b> and <b>App Secret</b> 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</b></li><li>Click on the <b>Save settings</b> button.</li><li>Go to Social Login tab to configure the display as well as other login settings.</li></ol>';
|
4494 |
} else if ($appname == "twitter") {
|
4495 |
+
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 => <code id="4">' . site_url() . '</code><i style= "width: 11px;height: 9px;padding-left:2px;padding-top:3px" class="fa fa-fw fa-lg fa-copy mo_copy copytooltip" onclick="copyToClipboard(this, \'#4\', \'#shortcode_url4_copy\')"><span id="shortcode_url4_copy" class="copytooltiptext">Copy to Clipboard</span></i><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 =><code id="5">http://127.0.0.1/wordpress/openidcallback</code><i style= "width: 11px;height: 9px;padding-left:2px;padding-top:3px" class="fa fa-fw fa-lg fa-copy mo_copy copytooltip" onclick="copyToClipboard(this, \'#5\', \'#shortcode_url5_copy\')"><span id="shortcode_url5_copy" class="copytooltiptext">Copy to Clipboard</span></i></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>';
|
4496 |
}
|
4497 |
+
|
4498 |
+
?>
|
4499 |
+
<script>
|
4500 |
+
function copyToClipboard(copyButton, element, copyelement) {
|
4501 |
+
var temp = jQuery("<input>");
|
4502 |
+
jQuery("body").append(temp);
|
4503 |
+
temp.val(jQuery(element).text()).select();
|
4504 |
+
document.execCommand("copy");
|
4505 |
+
temp.remove();
|
4506 |
+
jQuery(copyelement).text("Copied");
|
4507 |
+
jQuery(copyButton).mouseout(function(){
|
4508 |
+
jQuery(copyelement).text("Copy to Clipboard");
|
4509 |
+
});
|
4510 |
+
}
|
4511 |
+
</script>
|
4512 |
+
|
4513 |
+
<?php
|
4514 |
+
|
4515 |
}
|
4516 |
|
4517 |
function mo_openid_addon()
|
4897 |
!(/^[a-zA-Z?,.\(\)\/@ 0-9]*$/).test(f.value) ? f.value = f.value.replace(
|
4898 |
/[^a-zA-Z?,.\(\)\/@ 0-9]/, '') : null;
|
4899 |
}
|
4900 |
+
|
4901 |
function moSharingSizeValidate(e){
|
4902 |
var t=parseInt(e.value.trim());t>60?e.value=60:10>t&&(e.value=10)
|
4903 |
}
|
5010 |
|
5011 |
<tbody><tr>
|
5012 |
<td><b><font color="#FF0000">*</font>Email:</b></td>
|
5013 |
+
<td><input class="mo_openid_table_textbox" name="email" style="width: 100%"
|
5014 |
+
required placeholder="person@example.com"
|
5015 |
value="<?php echo $current_user->user_email;?>" type="email" />
|
5016 |
</td>
|
5017 |
</tr>
|
5018 |
|
5019 |
<tr>
|
5020 |
<td><b><font color="#FF0000">*</font>Password:</b></td>
|
5021 |
+
<td><input class="mo_openid_table_textbox" required name="password"
|
5022 |
+
style="width: 100%" placeholder="Choose your password (Min. length 6)"
|
5023 |
type="password" /></td>
|
5024 |
</tr>
|
5025 |
<tr id="pop_register" >
|
5026 |
<td><b><font color="#FF0000">*</font>Confirm Password:</b></td>
|
5027 |
+
<td><input class="mo_openid_table_textbox" required name="confirmPassword"
|
5028 |
style="width: 100%" placeholder="Confirm your password"
|
5029 |
type="password" /></td>
|
5030 |
</tr>
|
mo_openid_feedback_form.php
CHANGED
@@ -52,7 +52,7 @@
|
|
52 |
<br><br><br>
|
53 |
<div class="mo_openid_modal-footer" >
|
54 |
<input type="submit" name="mo_openid_feedback_submit" class="button button-primary button-large" value="Submit" />
|
55 |
-
|
56 |
</div>
|
57 |
</div>
|
58 |
</form>
|
52 |
<br><br><br>
|
53 |
<div class="mo_openid_modal-footer" >
|
54 |
<input type="submit" name="mo_openid_feedback_submit" class="button button-primary button-large" value="Submit" />
|
55 |
+
|
56 |
</div>
|
57 |
</div>
|
58 |
</form>
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.miniorange.com
|
|
4 |
Tags: social login, facebook login, google login, twitter login, Vkontakte login, social, facebook, twitter, google, login, google, social connect, social network login, social plugin, Vkontakte, LinkedIn
|
5 |
Requires at least: 2.0.2
|
6 |
Tested up to: 5.2
|
7 |
-
Stable tag: 7.2.
|
8 |
License URI: http://miniorange.com/usecases/miniOrange_User_Agreement.pdf
|
9 |
|
10 |
Social Login with Google, Facebook, Twitter, Vkontakte, LinkedIn and more. GDPR compliant. Social sharing and social comments. Quickest setup.
|
@@ -175,6 +175,10 @@ Please email us at info@miniorange.com. You can also submit your query from the
|
|
175 |
|
176 |
|
177 |
== Changelog ==
|
|
|
|
|
|
|
|
|
178 |
|
179 |
= 7.2.6 =
|
180 |
* Added Social Share count Feature.
|
@@ -654,6 +658,11 @@ SECURITY FIXES
|
|
654 |
* First version of Social Login, Social Sharing plugin.
|
655 |
|
656 |
== Upgrade Notice ==
|
|
|
|
|
|
|
|
|
|
|
657 |
= 7.2.6 =
|
658 |
* Added Social Share count Feature.
|
659 |
* Added Horizontal long buttons option in shortcode.
|
4 |
Tags: social login, facebook login, google login, twitter login, Vkontakte login, social, facebook, twitter, google, login, google, social connect, social network login, social plugin, Vkontakte, LinkedIn
|
5 |
Requires at least: 2.0.2
|
6 |
Tested up to: 5.2
|
7 |
+
Stable tag: 7.2.7
|
8 |
License URI: http://miniorange.com/usecases/miniOrange_User_Agreement.pdf
|
9 |
|
10 |
Social Login with Google, Facebook, Twitter, Vkontakte, LinkedIn and more. GDPR compliant. Social sharing and social comments. Quickest setup.
|
175 |
|
176 |
|
177 |
== Changelog ==
|
178 |
+
= 7.2.7 =
|
179 |
+
* Added copy to clipboard option.
|
180 |
+
* Added redirect URL option after registration.
|
181 |
+
* Fixed GDPR issue.
|
182 |
|
183 |
= 7.2.6 =
|
184 |
* Added Social Share count Feature.
|
658 |
* First version of Social Login, Social Sharing plugin.
|
659 |
|
660 |
== Upgrade Notice ==
|
661 |
+
= 7.2.7 =
|
662 |
+
* Added copy to clipboard option.
|
663 |
+
* Added redirect URL option after registration.
|
664 |
+
* Fixed GDPR issue.
|
665 |
+
|
666 |
= 7.2.6 =
|
667 |
* Added Social Share count Feature.
|
668 |
* Added Horizontal long buttons option in shortcode.
|
uninstall.php
CHANGED
@@ -193,4 +193,8 @@ delete_option( 'pop_regi_msg' );
|
|
193 |
delete_option( 'pop_login_msg' );
|
194 |
delete_option('mo_openid_tour');
|
195 |
delete_option( 'mo_openid_feedback_form' );
|
|
|
|
|
|
|
|
|
196 |
?>
|
193 |
delete_option( 'pop_login_msg' );
|
194 |
delete_option('mo_openid_tour');
|
195 |
delete_option( 'mo_openid_feedback_form' );
|
196 |
+
|
197 |
+
delete_option('mo_openid_registration_redirection_enable');
|
198 |
+
delete_option('mo_openid_relative_register_redirect_url');
|
199 |
+
|
200 |
?>
|