Version Description
- Added Social Share count Feature.
- Added Horizontal long buttons option in shortcode.
- Added more customizable options in Social Login shortcode.
- Minor UI fixes.
Download this release
Release Info
Developer | cyberlord92 |
Plugin | Social Login |
Version | 7.2.6 |
Comparing to | |
See all releases |
Code changes from version 7.2.5 to 7.2.6
- class-mo-openid-login-widget.php +721 -143
- class-mo-openid-social-login-functions.php +90 -11
- class-mo-openid-sso-shortcode-buttons.php +618 -442
- includes/css/mo_openid_style.css +46 -0
- includes/images/count.png +0 -0
- includes/images/miniOrange_logo.png +0 -0
- miniorange_openid_sso_settings.php +4 -2
- miniorange_openid_sso_settings_page.php +380 -150
- readme.txt +14 -1
- uninstall.php +2 -0
class-mo-openid-login-widget.php
CHANGED
@@ -664,8 +664,10 @@ include_once dirname(__FILE__) . '/miniorange_openid_sso_encryption.php';
|
|
664 |
if (mo_openid_is_customer_registered()) {
|
665 |
global $post;
|
666 |
$html = '';
|
|
|
667 |
$selected_theme = isset( $atts['shape'] )? esc_attr($atts['shape']) : esc_attr(get_option('mo_openid_login_theme'));
|
668 |
-
$
|
|
|
669 |
$spacebetweenicons = isset( $atts['space'] )? esc_attr(intval($atts['space'])) : esc_attr(intval(get_option('mo_login_icon_space')));
|
670 |
$customWidth = isset( $atts['width'] )? esc_attr(intval($atts['width'])) : esc_attr(intval(get_option('mo_login_icon_custom_width')));
|
671 |
$customHeight = isset( $atts['height'] )? esc_attr(intval($atts['height'])) : esc_attr(intval(get_option('mo_login_icon_custom_height')));
|
@@ -680,6 +682,8 @@ include_once dirname(__FILE__) . '/miniorange_openid_sso_encryption.php';
|
|
680 |
$customLogoutLink = (get_option('mo_openid_login_widget_customize_logout_text'));
|
681 |
$customTextColor= isset( $atts['color'] )? esc_attr($atts['color']) : esc_attr(get_option('mo_login_openid_login_widget_customize_textcolor'));
|
682 |
$customText=isset( $atts['heading'] )? esc_html($atts['heading']) :esc_html(get_option('mo_openid_login_widget_customize_text'));
|
|
|
|
|
683 |
|
684 |
$facebook_custom_app = esc_attr($this->if_custom_app_exists('facebook'));
|
685 |
$google_custom_app = esc_attr($this->if_custom_app_exists('google'));
|
@@ -695,6 +699,10 @@ include_once dirname(__FILE__) . '/miniorange_openid_sso_encryption.php';
|
|
695 |
if ($selected_theme == 'longbuttonwithtext') {
|
696 |
$selected_theme = 'longbutton';
|
697 |
}
|
|
|
|
|
|
|
|
|
698 |
if ($customTheme == 'custombackground') {
|
699 |
$customTheme = 'custom';
|
700 |
}
|
@@ -721,7 +729,7 @@ include_once dirname(__FILE__) . '/miniorange_openid_sso_encryption.php';
|
|
721 |
|
722 |
if (!is_user_logged_in()) {
|
723 |
|
724 |
-
if ($appsConfigured) {
|
725 |
$this->mo_openid_load_login_script();
|
726 |
$html .= "<div class='mo-openid-app-icons'>
|
727 |
|
@@ -732,180 +740,413 @@ include_once dirname(__FILE__) . '/miniorange_openid_sso_encryption.php';
|
|
732 |
$html .= $consent_message . '</label><br>';
|
733 |
}
|
734 |
|
735 |
-
|
736 |
-
|
737 |
-
|
738 |
-
|
739 |
-
|
740 |
-
|
741 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
742 |
}
|
743 |
-
|
744 |
}
|
745 |
|
746 |
-
|
747 |
-
if (
|
748 |
-
|
749 |
-
|
750 |
-
|
751 |
-
|
752 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
753 |
}
|
754 |
-
}
|
755 |
|
756 |
-
|
757 |
-
|
758 |
-
|
759 |
-
|
760 |
-
|
761 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
762 |
|
763 |
-
$html .= "<a class='" . $dis . " login-button' rel='nofollow' onClick=\"moOpenIdLogin('vkontakte','" .
|
764 |
-
$vkontakte_custom_app .
|
765 |
-
"');\" title= ' " . $customTextofTitle . " Vkontakte'><img alt='Vkontakte' style='width:" . $customSize . "px !important;height: " . $customSize . "px !important;margin-left: " . ($spacebetweenicons) . "px !important' src='" . plugins_url('includes/images/icons/vk.png', __FILE__) . "' class='" . $dis . " login-button " . $selected_theme . "' ></a>";
|
766 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
767 |
}
|
768 |
-
}
|
769 |
|
770 |
-
|
771 |
-
|
772 |
-
|
773 |
-
|
774 |
-
|
775 |
-
|
776 |
-
|
777 |
-
|
|
|
|
|
|
|
|
|
778 |
}
|
779 |
|
780 |
-
|
781 |
-
|
782 |
-
|
783 |
-
|
784 |
-
|
785 |
-
|
786 |
-
|
787 |
-
|
788 |
-
|
789 |
-
|
790 |
-
|
791 |
-
$html
|
792 |
-
} else {
|
793 |
-
$html .= "<a class='" . $dis . " login-button' rel='nofollow' " . $customTextofTitle . " Instagram' onClick=\"moOpenIdLogin('instagram','" . $instagram_custom_app . "');\" ><img alt='Instagram' style='width:" . $customSize . "px !important;height: " . $customSize . "px !important;margin-left: " . ($spacebetweenicons) . "px !important' src='" . plugins_url('includes/images/icons/instagram.png', __FILE__) . "' class='" . $dis . " login-button " . $selected_theme . "' ></a>";
|
794 |
}
|
795 |
-
|
796 |
-
|
797 |
-
|
798 |
-
|
799 |
-
|
800 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
801 |
}
|
802 |
-
|
803 |
-
|
804 |
-
|
805 |
-
|
806 |
-
|
807 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
808 |
}
|
809 |
-
|
810 |
-
|
811 |
-
|
812 |
-
|
813 |
-
|
814 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
815 |
}
|
816 |
-
|
817 |
-
|
818 |
-
|
819 |
-
|
820 |
-
|
821 |
-
|
822 |
-
|
|
|
|
|
|
|
|
|
|
|
823 |
}
|
|
|
824 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
825 |
}
|
826 |
}
|
827 |
|
828 |
-
|
829 |
-
|
830 |
-
if
|
831 |
-
|
832 |
-
|
833 |
-
|
834 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
835 |
}
|
836 |
-
|
837 |
}
|
838 |
-
|
839 |
-
|
840 |
-
if (
|
841 |
-
|
842 |
-
|
843 |
-
|
844 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
845 |
}
|
846 |
-
}
|
847 |
-
|
848 |
-
if (get_option('mo_openid_vkontakte_enable')) {
|
849 |
-
if ($selected_theme == 'longbutton') {
|
850 |
-
$html .= "<a rel='nofollow' " . $gdpr_setting . " onClick=\"moOpenIdLogin('vkontakte','" . $vkontakte_custom_app . "');\" style='width:" . ($customWidth) . "px !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom:" . ($spacebetweenicons - 5) . "px !important; background:#" . $customBackground . "!important;border-radius: " . $customBoundary . "px !important;' class='btn btn-mo btn-block btn-social btn-customtheme btn-custom-dec login-button' > <i style='padding-top:" . ($customHeight - 35) . "px !important' class='fa fa-vk'></i> " . $buttonText . " Vkontakte</a>";
|
851 |
-
} else {
|
852 |
-
$html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " Vkontakte' onClick=\"moOpenIdLogin('vkontakte','" . $vkontakte_custom_app . "');\" title= ' " . $customTextofTitle . " Vkontakte'><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize - 16) . "px !important;' class='fa btn-mo fa-vk custom-login-button " . $selected_theme . "' ></i></a>";
|
853 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
854 |
}
|
855 |
-
}
|
856 |
|
857 |
-
|
858 |
-
|
859 |
-
|
860 |
-
|
861 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
862 |
}
|
863 |
|
864 |
-
|
865 |
-
|
866 |
-
|
867 |
-
|
868 |
-
|
869 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
870 |
}
|
871 |
-
|
872 |
-
|
873 |
-
|
874 |
-
|
875 |
-
|
876 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
877 |
}
|
878 |
-
|
879 |
-
|
880 |
-
|
881 |
-
|
882 |
-
|
883 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
884 |
}
|
885 |
-
|
886 |
-
|
887 |
-
|
888 |
-
|
889 |
-
|
890 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
891 |
}
|
892 |
-
|
893 |
-
|
894 |
-
|
895 |
-
|
896 |
-
|
897 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
898 |
}
|
899 |
-
|
900 |
-
|
901 |
-
|
902 |
-
|
903 |
-
|
904 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
905 |
}
|
906 |
-
|
907 |
}
|
908 |
}
|
|
|
909 |
$html .= '</div> <br>';
|
910 |
|
911 |
} else {
|
@@ -934,6 +1175,317 @@ include_once dirname(__FILE__) . '/miniorange_openid_sso_encryption.php';
|
|
934 |
}
|
935 |
}
|
936 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
937 |
private function mo_openid_load_login_script() {
|
938 |
|
939 |
if(!get_option('mo_openid_gdpr_consent_enable')){?>
|
@@ -1196,6 +1748,7 @@ include_once dirname(__FILE__) . '/miniorange_openid_sso_encryption.php';
|
|
1196 |
function update_custom_data($user_id)
|
1197 |
{
|
1198 |
$set_cust_field = get_option('mo_openid_custom_field_mapping');
|
|
|
1199 |
foreach ($set_cust_field as $x) {
|
1200 |
$count = 0;
|
1201 |
$a = 1;
|
@@ -1229,7 +1782,10 @@ include_once dirname(__FILE__) . '/miniorange_openid_sso_encryption.php';
|
|
1229 |
}
|
1230 |
}
|
1231 |
if ($type != "checkbox") {
|
1232 |
-
|
|
|
|
|
|
|
1233 |
} else {
|
1234 |
$flag = 0;
|
1235 |
$str_res = explode(";", $add_field);
|
@@ -1242,9 +1798,13 @@ include_once dirname(__FILE__) . '/miniorange_openid_sso_encryption.php';
|
|
1242 |
}
|
1243 |
$a++;
|
1244 |
}
|
1245 |
-
|
|
|
|
|
|
|
1246 |
}
|
1247 |
}
|
|
|
1248 |
}
|
1249 |
|
1250 |
function encrypt_data($data, $key) {
|
@@ -1386,7 +1946,25 @@ include_once dirname(__FILE__) . '/miniorange_openid_sso_encryption.php';
|
|
1386 |
'last_name' => $last_name,
|
1387 |
'user_url' => $user_url,
|
1388 |
);
|
1389 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1390 |
$user_id = wp_insert_user( $userdata);
|
1391 |
if(is_wp_error( $user_id )) {
|
1392 |
print_r($user_id);
|
664 |
if (mo_openid_is_customer_registered()) {
|
665 |
global $post;
|
666 |
$html = '';
|
667 |
+
$apps="";
|
668 |
$selected_theme = isset( $atts['shape'] )? esc_attr($atts['shape']) : esc_attr(get_option('mo_openid_login_theme'));
|
669 |
+
$selected_apps = isset( $atts['apps'] )? esc_attr($atts['apps']) : "";
|
670 |
+
$appsConfigured = get_option('mo_openid_google_enable') | get_option('mo_openid_salesforce_enable') | get_option('mo_openid_facebook_enable') | get_option('mo_openid_linkedin_enable') | get_option('mo_openid_instagram_enable') | get_option('mo_openid_amazon_enable') | get_option('mo_openid_windowslive_enable') |get_option('mo_openid_twitter_enable') | get_option('mo_openid_vkontakte_enable') | get_option('mo_openid_yahoo_enable');
|
671 |
$spacebetweenicons = isset( $atts['space'] )? esc_attr(intval($atts['space'])) : esc_attr(intval(get_option('mo_login_icon_space')));
|
672 |
$customWidth = isset( $atts['width'] )? esc_attr(intval($atts['width'])) : esc_attr(intval(get_option('mo_login_icon_custom_width')));
|
673 |
$customHeight = isset( $atts['height'] )? esc_attr(intval($atts['height'])) : esc_attr(intval(get_option('mo_login_icon_custom_height')));
|
682 |
$customLogoutLink = (get_option('mo_openid_login_widget_customize_logout_text'));
|
683 |
$customTextColor= isset( $atts['color'] )? esc_attr($atts['color']) : esc_attr(get_option('mo_login_openid_login_widget_customize_textcolor'));
|
684 |
$customText=isset( $atts['heading'] )? esc_html($atts['heading']) :esc_html(get_option('mo_openid_login_widget_customize_text'));
|
685 |
+
$view=isset( $atts['view'] )? esc_attr($atts['view']) : "";
|
686 |
+
$appcnt=isset( $atts['appcnt'] )? esc_attr($atts['appcnt']) : "";
|
687 |
|
688 |
$facebook_custom_app = esc_attr($this->if_custom_app_exists('facebook'));
|
689 |
$google_custom_app = esc_attr($this->if_custom_app_exists('google'));
|
699 |
if ($selected_theme == 'longbuttonwithtext') {
|
700 |
$selected_theme = 'longbutton';
|
701 |
}
|
702 |
+
if($selected_apps!="")
|
703 |
+
{
|
704 |
+
$apps=explode(',', $selected_apps);
|
705 |
+
}
|
706 |
if ($customTheme == 'custombackground') {
|
707 |
$customTheme = 'custom';
|
708 |
}
|
729 |
|
730 |
if (!is_user_logged_in()) {
|
731 |
|
732 |
+
if ($appsConfigured|| $apps!="") {
|
733 |
$this->mo_openid_load_login_script();
|
734 |
$html .= "<div class='mo-openid-app-icons'>
|
735 |
|
740 |
$html .= $consent_message . '</label><br>';
|
741 |
}
|
742 |
|
743 |
+
$app_dis="";
|
744 |
+
if($customTheme == 'default')
|
745 |
+
{
|
746 |
+
$count = -1;
|
747 |
+
if($apps!="")
|
748 |
+
{
|
749 |
+
foreach ($apps as $select_apps)
|
750 |
+
{
|
751 |
+
$app_dis="";
|
752 |
+
if($selected_theme == 'longbutton')
|
753 |
+
{
|
754 |
+
if ($view == "horizontal" && isset($appcnt)) {
|
755 |
+
$count++;
|
756 |
+
if ($count == $appcnt) {
|
757 |
+
$html .= "<br/>";
|
758 |
+
$count = 0;
|
759 |
+
}
|
760 |
+
}
|
761 |
+
}
|
762 |
+
switch ($select_apps)
|
763 |
+
{
|
764 |
+
case 'fb':
|
765 |
+
$custom_app=$facebook_custom_app;
|
766 |
+
$custom_app=="false"?$app_dis="disable":$app_dis="";
|
767 |
+
$html = $this->add_apps("fb", "default", $gdpr_setting, $spacebetweenicons, $customWidth, $customHeight, $customBoundary, $buttonText, $dis, $customTextofTitle, $customSize, $selected_theme, $custom_app, $html, $view, $customBackground,$app_dis);
|
768 |
+
break;
|
769 |
+
case 'google':
|
770 |
+
$custom_app=$google_custom_app;
|
771 |
+
$html=$this->add_apps("google","default",$gdpr_setting,$spacebetweenicons,$customWidth,$customHeight,$customBoundary,$buttonText,$dis,$customTextofTitle,$customSize,$selected_theme,$custom_app,$html,$view, $customBackground,$app_dis);
|
772 |
+
break;
|
773 |
+
case 'vk':
|
774 |
+
$custom_app=$vkontakte_custom_app;
|
775 |
+
$html=$this->add_apps("vk","default",$gdpr_setting,$spacebetweenicons,$customWidth,$customHeight,$customBoundary,$buttonText,$dis,$customTextofTitle,$customSize,$selected_theme,$custom_app,$html,$view, $customBackground,$app_dis);
|
776 |
+
break;
|
777 |
+
case 'twitter':
|
778 |
+
$custom_app=$twitter_custom_app;
|
779 |
+
$html=$this->add_apps("twitter","default",$gdpr_setting,$spacebetweenicons,$customWidth,$customHeight,$customBoundary,$buttonText,$dis,$customTextofTitle,$customSize,$selected_theme,$custom_app,$html,$view, $customBackground,$app_dis);
|
780 |
+
break;
|
781 |
+
case 'linkin':
|
782 |
+
$custom_app=$linkedin_custom_app;
|
783 |
+
$html=$this->add_apps("linkin","default",$gdpr_setting,$spacebetweenicons,$customWidth,$customHeight,$customBoundary,$buttonText,$dis,$customTextofTitle,$customSize,$selected_theme,$custom_app,$html,$view, $customBackground,$app_dis);
|
784 |
+
break;
|
785 |
+
case 'insta':
|
786 |
+
$custom_app=$instagram_custom_app;
|
787 |
+
$html=$this->add_apps("insta","default",$gdpr_setting,$spacebetweenicons,$customWidth,$customHeight,$customBoundary,$buttonText,$dis,$customTextofTitle,$customSize,$selected_theme,$custom_app,$html,$view, $customBackground,$app_dis);
|
788 |
+
break;
|
789 |
+
case 'amazon':
|
790 |
+
$custom_app=$amazon_custom_app;
|
791 |
+
$html=$this->add_apps("amazon","default",$gdpr_setting,$spacebetweenicons,$customWidth,$customHeight,$customBoundary,$buttonText,$dis,$customTextofTitle,$customSize,$selected_theme,$custom_app,$html,$view, $customBackground,$app_dis);
|
792 |
+
break;
|
793 |
+
case 'sforce':
|
794 |
+
$custom_app=$salesforce_custom_app;
|
795 |
+
$html=$this->add_apps("sforce","default",$gdpr_setting,$spacebetweenicons,$customWidth,$customHeight,$customBoundary,$buttonText,$dis,$customTextofTitle,$customSize,$selected_theme,$custom_app,$html,$view, $customBackground,$app_dis);
|
796 |
+
break;
|
797 |
+
case 'wlive':
|
798 |
+
$custom_app=$windowslive_custom_app;
|
799 |
+
$html=$this->add_apps("wlive","default",$gdpr_setting,$spacebetweenicons,$customWidth,$customHeight,$customBoundary,$buttonText,$dis,$customTextofTitle,$customSize,$selected_theme,$custom_app,$html,$view, $customBackground,$app_dis);
|
800 |
+
break;
|
801 |
+
case 'yahoo':
|
802 |
+
$custom_app=$yahoo_custom_app;
|
803 |
+
$html=$this->add_apps("yahoo","default",$gdpr_setting,$spacebetweenicons,$customWidth,$customHeight,$customBoundary,$buttonText,$dis,$customTextofTitle,$customSize,$selected_theme,$custom_app,$html,$view, $customBackground,$app_dis);
|
804 |
+
break;
|
805 |
+
}
|
806 |
}
|
|
|
807 |
}
|
808 |
|
809 |
+
else {
|
810 |
+
if (get_option('mo_openid_facebook_enable')) {
|
811 |
+
if ($selected_theme == 'longbutton') {
|
812 |
+
if ($view == "horizontal" && isset($appcnt)) {
|
813 |
+
$count++;
|
814 |
+
if ($count == $appcnt) {
|
815 |
+
$html .= "<br/>";
|
816 |
+
$count = 0;
|
817 |
+
}
|
818 |
+
}
|
819 |
+
}
|
820 |
+
$custom_app = $facebook_custom_app;
|
821 |
+
$html = $this->add_apps("fb", "default", $gdpr_setting, $spacebetweenicons, $customWidth, $customHeight, $customBoundary, $buttonText, $dis, $customTextofTitle, $customSize, $selected_theme, $custom_app, $html, $view, $customBackground,$app_dis);
|
822 |
}
|
|
|
823 |
|
824 |
+
if (get_option('mo_openid_google_enable')) {
|
825 |
+
if ($selected_theme == 'longbutton') {
|
826 |
+
if ($view == "horizontal" && isset($appcnt)) {
|
827 |
+
$count++;
|
828 |
+
if ($count == $appcnt) {
|
829 |
+
$html .= "<br/>";
|
830 |
+
$count = 0;
|
831 |
+
}
|
832 |
+
}
|
833 |
+
}
|
834 |
+
$custom_app = $google_custom_app;
|
835 |
+
$html = $this->add_apps("google", "default", $gdpr_setting, $spacebetweenicons, $customWidth, $customHeight, $customBoundary, $buttonText, $dis, $customTextofTitle, $customSize, $selected_theme, $custom_app, $html, $view, $customBackground,$app_dis);
|
836 |
+
}
|
837 |
|
|
|
|
|
|
|
838 |
|
839 |
+
if (get_option('mo_openid_vkontakte_enable')) {
|
840 |
+
if ($selected_theme == 'longbutton') {
|
841 |
+
if ($view == "horizontal" && isset($appcnt)) {
|
842 |
+
$count++;
|
843 |
+
if ($count == $appcnt) {
|
844 |
+
$html .= "<br/>";
|
845 |
+
$count = 0;
|
846 |
+
}
|
847 |
+
}
|
848 |
+
}
|
849 |
+
$custom_app=$vkontakte_custom_app;
|
850 |
+
$html=$this->add_apps("vk","default",$gdpr_setting,$spacebetweenicons,$customWidth,$customHeight,$customBoundary,$buttonText,$dis,$customTextofTitle,$customSize,$selected_theme,$custom_app,$html,$view, $customBackground,$app_dis);
|
851 |
}
|
|
|
852 |
|
853 |
+
if (get_option('mo_openid_twitter_enable')) {
|
854 |
+
if ($selected_theme == 'longbutton') {
|
855 |
+
if ($view == "horizontal" && isset($appcnt)) {
|
856 |
+
$count++;
|
857 |
+
if ($count == $appcnt) {
|
858 |
+
$html .= "<br/>";
|
859 |
+
$count = 0;
|
860 |
+
}
|
861 |
+
}
|
862 |
+
}
|
863 |
+
$custom_app=$twitter_custom_app;
|
864 |
+
$html=$this->add_apps("twitter","default",$gdpr_setting,$spacebetweenicons,$customWidth,$customHeight,$customBoundary,$buttonText,$dis,$customTextofTitle,$customSize,$selected_theme,$custom_app,$html,$view, $customBackground,$app_dis);
|
865 |
}
|
866 |
|
867 |
+
if (get_option('mo_openid_linkedin_enable')) {
|
868 |
+
if ($selected_theme == 'longbutton') {
|
869 |
+
if ($view == "horizontal" && isset($appcnt)) {
|
870 |
+
$count++;
|
871 |
+
if ($count == $appcnt) {
|
872 |
+
$html .= "<br/>";
|
873 |
+
$count = 0;
|
874 |
+
}
|
875 |
+
}
|
876 |
+
}
|
877 |
+
$custom_app=$linkedin_custom_app;
|
878 |
+
$html=$this->add_apps("linkin","default",$gdpr_setting,$spacebetweenicons,$customWidth,$customHeight,$customBoundary,$buttonText,$dis,$customTextofTitle,$customSize,$selected_theme,$custom_app,$html,$view, $customBackground,$app_dis);
|
|
|
|
|
879 |
}
|
880 |
+
if (get_option('mo_openid_instagram_enable')) {
|
881 |
+
if ($selected_theme == 'longbutton') {
|
882 |
+
if ($view == "horizontal" && isset($appcnt)) {
|
883 |
+
$count++;
|
884 |
+
if ($count == $appcnt) {
|
885 |
+
$html .= "<br/>";
|
886 |
+
$count = 0;
|
887 |
+
}
|
888 |
+
}
|
889 |
+
}
|
890 |
+
$custom_app=$instagram_custom_app;
|
891 |
+
$html=$this->add_apps("insta","default",$gdpr_setting,$spacebetweenicons,$customWidth,$customHeight,$customBoundary,$buttonText,$dis,$customTextofTitle,$customSize,$selected_theme,$custom_app,$html,$view, $customBackground,$app_dis);
|
892 |
}
|
893 |
+
if (get_option('mo_openid_amazon_enable')) {
|
894 |
+
if ($selected_theme == 'longbutton') {
|
895 |
+
if ($view == "horizontal" && isset($appcnt)) {
|
896 |
+
$count++;
|
897 |
+
if ($count == $appcnt) {
|
898 |
+
$html .= "<br/>";
|
899 |
+
$count = 0;
|
900 |
+
}
|
901 |
+
}
|
902 |
+
}
|
903 |
+
$custom_app=$amazon_custom_app;
|
904 |
+
$html=$this->add_apps("amazon","default",$gdpr_setting,$spacebetweenicons,$customWidth,$customHeight,$customBoundary,$buttonText,$dis,$customTextofTitle,$customSize,$selected_theme,$custom_app,$html,$view, $customBackground,$app_dis);
|
905 |
}
|
906 |
+
if (get_option('mo_openid_salesforce_enable')) {
|
907 |
+
if ($selected_theme == 'longbutton') {
|
908 |
+
if ($view == "horizontal" && isset($appcnt)) {
|
909 |
+
$count++;
|
910 |
+
if ($count == $appcnt) {
|
911 |
+
$html .= "<br/>";
|
912 |
+
$count = 0;
|
913 |
+
}
|
914 |
+
}
|
915 |
+
}
|
916 |
+
$custom_app=$salesforce_custom_app;
|
917 |
+
$html=$this->add_apps("sforce","default",$gdpr_setting,$spacebetweenicons,$customWidth,$customHeight,$customBoundary,$buttonText,$dis,$customTextofTitle,$customSize,$selected_theme,$custom_app,$html,$view, $customBackground,$app_dis);
|
918 |
}
|
919 |
+
if (get_option('mo_openid_windowslive_enable')) {
|
920 |
+
if ($selected_theme == 'longbutton') {
|
921 |
+
if ($view == "horizontal" && isset($appcnt)) {
|
922 |
+
$count++;
|
923 |
+
if ($count == $appcnt) {
|
924 |
+
$html .= "<br/>";
|
925 |
+
$count = 0;
|
926 |
+
}
|
927 |
+
}
|
928 |
+
}
|
929 |
+
$custom_app=$windowslive_custom_app;
|
930 |
+
$html=$this->add_apps("wlive","default",$gdpr_setting,$spacebetweenicons,$customWidth,$customHeight,$customBoundary,$buttonText,$dis,$customTextofTitle,$customSize,$selected_theme,$custom_app,$html,$view, $customBackground,$app_dis);
|
931 |
}
|
932 |
+
if (get_option('mo_openid_yahoo_enable')) {
|
933 |
|
934 |
+
if ($selected_theme == 'longbutton') {
|
935 |
+
if ($view == "horizontal" && isset($appcnt)) {
|
936 |
+
$count++;
|
937 |
+
if ($count == $appcnt) {
|
938 |
+
$html .= "<br/>";
|
939 |
+
$count = 0;
|
940 |
+
}
|
941 |
+
}
|
942 |
+
}
|
943 |
+
$custom_app=$yahoo_custom_app;
|
944 |
+
$html=$this->add_apps("yahoo","default",$gdpr_setting,$spacebetweenicons,$customWidth,$customHeight,$customBoundary,$buttonText,$dis,$customTextofTitle,$customSize,$selected_theme,$custom_app,$html,$view, $customBackground,$app_dis);
|
945 |
+
}
|
946 |
}
|
947 |
}
|
948 |
|
949 |
+
if($customTheme == 'custom'){
|
950 |
+
$count=-1;
|
951 |
+
if($apps!="")
|
952 |
+
{
|
953 |
+
foreach ($apps as $select_apps)
|
954 |
+
{
|
955 |
+
$app_dis="";
|
956 |
+
if ($selected_theme == 'longbutton') {
|
957 |
+
if ($view == "horizontal" && isset($appcnt)) {
|
958 |
+
$count++;
|
959 |
+
if ($count == $appcnt) {
|
960 |
+
$html .= "<br/>";
|
961 |
+
$count = 0;
|
962 |
+
}
|
963 |
+
}
|
964 |
+
}
|
965 |
+
switch ($select_apps)
|
966 |
+
{
|
967 |
+
case 'fb':
|
968 |
+
$custom_app=$facebook_custom_app;
|
969 |
+
$custom_app=="false"?$app_dis="disable":$app_dis="";
|
970 |
+
$html=$this->add_apps("fb","custom",$gdpr_setting,$spacebetweenicons,$customWidth,$customHeight,$customBoundary,$buttonText,$dis,$customTextofTitle,$customSize,$selected_theme,$custom_app,$html,$view, $customBackground,$app_dis);
|
971 |
+
break;
|
972 |
+
|
973 |
+
case 'google':
|
974 |
+
$custom_app=$google_custom_app;
|
975 |
+
$html=$this->add_apps("google","custom",$gdpr_setting,$spacebetweenicons,$customWidth,$customHeight,$customBoundary,$buttonText,$dis,$customTextofTitle,$customSize,$selected_theme,$custom_app,$html,$view, $customBackground,$app_dis);
|
976 |
+
break;
|
977 |
+
case 'vk':
|
978 |
+
$custom_app=$vkontakte_custom_app;
|
979 |
+
$html=$this->add_apps("vk","custom",$gdpr_setting,$spacebetweenicons,$customWidth,$customHeight,$customBoundary,$buttonText,$dis,$customTextofTitle,$customSize,$selected_theme,$custom_app,$html,$view, $customBackground,$app_dis);
|
980 |
+
break;
|
981 |
+
case 'twitter':
|
982 |
+
$custom_app=$twitter_custom_app;
|
983 |
+
$html=$this->add_apps("twitter","custom",$gdpr_setting,$spacebetweenicons,$customWidth,$customHeight,$customBoundary,$buttonText,$dis,$customTextofTitle,$customSize,$selected_theme,$custom_app,$html,$view, $customBackground,$app_dis);
|
984 |
+
break;
|
985 |
+
case 'linkin':
|
986 |
+
$custom_app=$linkedin_custom_app;
|
987 |
+
$html=$this->add_apps("linkin","custom",$gdpr_setting,$spacebetweenicons,$customWidth,$customHeight,$customBoundary,$buttonText,$dis,$customTextofTitle,$customSize,$selected_theme,$custom_app,$html,$view, $customBackground,$app_dis);
|
988 |
+
break;
|
989 |
+
case 'insta':
|
990 |
+
$custom_app=$instagram_custom_app;
|
991 |
+
$html=$this->add_apps("insta","custom",$gdpr_setting,$spacebetweenicons,$customWidth,$customHeight,$customBoundary,$buttonText,$dis,$customTextofTitle,$customSize,$selected_theme,$custom_app,$html,$view, $customBackground,$app_dis);
|
992 |
+
break;
|
993 |
+
case 'amazon':
|
994 |
+
$custom_app=$amazon_custom_app;
|
995 |
+
$html=$this->add_apps("amazon","custom",$gdpr_setting,$spacebetweenicons,$customWidth,$customHeight,$customBoundary,$buttonText,$dis,$customTextofTitle,$customSize,$selected_theme,$custom_app,$html,$view, $customBackground,$app_dis);
|
996 |
+
break;
|
997 |
+
case 'sforce':
|
998 |
+
$custom_app=$salesforce_custom_app;
|
999 |
+
$html=$this->add_apps("sforce","custom",$gdpr_setting,$spacebetweenicons,$customWidth,$customHeight,$customBoundary,$buttonText,$dis,$customTextofTitle,$customSize,$selected_theme,$custom_app,$html,$view, $customBackground,$app_dis);
|
1000 |
+
break;
|
1001 |
+
case 'wlive':
|
1002 |
+
$custom_app=$windowslive_custom_app;
|
1003 |
+
$html=$this->add_apps("wlive","custom",$gdpr_setting,$spacebetweenicons,$customWidth,$customHeight,$customBoundary,$buttonText,$dis,$customTextofTitle,$customSize,$selected_theme,$custom_app,$html,$view, $customBackground,$app_dis);
|
1004 |
+
break;
|
1005 |
+
case 'yahoo':
|
1006 |
+
$custom_app=$yahoo_custom_app;
|
1007 |
+
$html=$this->add_apps("yahoo","custom",$gdpr_setting,$spacebetweenicons,$customWidth,$customHeight,$customBoundary,$buttonText,$dis,$customTextofTitle,$customSize,$selected_theme,$custom_app,$html,$view, $customBackground,$app_dis);
|
1008 |
+
break;
|
1009 |
+
}
|
1010 |
}
|
|
|
1011 |
}
|
1012 |
+
else
|
1013 |
+
{
|
1014 |
+
if (get_option('mo_openid_facebook_enable')) {
|
1015 |
+
if ($selected_theme == 'longbutton') {
|
1016 |
+
if ($view == "horizontal" && isset($appcnt)) {
|
1017 |
+
$count++;
|
1018 |
+
if ($count == $appcnt) {
|
1019 |
+
$html .= "<br/>";
|
1020 |
+
$count = 0;
|
1021 |
+
}
|
1022 |
+
}
|
1023 |
+
}
|
1024 |
+
$custom_app=$facebook_custom_app;
|
1025 |
+
$html=$this->add_apps("fb","custom",$gdpr_setting,$spacebetweenicons,$customWidth,$customHeight,$customBoundary,$buttonText,$dis,$customTextofTitle,$customSize,$selected_theme,$custom_app,$html,$view, $customBackground,$app_dis);
|
1026 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1027 |
|
1028 |
+
if (get_option('mo_openid_google_enable')) {
|
1029 |
+
if ($selected_theme == 'longbutton') {
|
1030 |
+
if ($view == "horizontal" && isset($appcnt)) {
|
1031 |
+
$count++;
|
1032 |
+
if ($count == $appcnt) {
|
1033 |
+
$html .= "<br/>";
|
1034 |
+
$count = 0;
|
1035 |
+
}
|
1036 |
+
}
|
1037 |
+
}
|
1038 |
+
$custom_app=$google_custom_app;
|
1039 |
+
$html=$this->add_apps("google","custom",$gdpr_setting,$spacebetweenicons,$customWidth,$customHeight,$customBoundary,$buttonText,$dis,$customTextofTitle,$customSize,$selected_theme,$custom_app,$html,$view, $customBackground,$app_dis);
|
1040 |
}
|
|
|
1041 |
|
1042 |
+
if (get_option('mo_openid_vkontakte_enable')) {
|
1043 |
+
if ($selected_theme == 'longbutton') {
|
1044 |
+
if ($view == "horizontal" && isset($appcnt)) {
|
1045 |
+
$count++;
|
1046 |
+
if ($count == $appcnt) {
|
1047 |
+
$html .= "<br/>";
|
1048 |
+
$count = 0;
|
1049 |
+
}
|
1050 |
+
}
|
1051 |
+
}
|
1052 |
+
$custom_app=$vkontakte_custom_app;
|
1053 |
+
$html=$this->add_apps("vk","custom",$gdpr_setting,$spacebetweenicons,$customWidth,$customHeight,$customBoundary,$buttonText,$dis,$customTextofTitle,$customSize,$selected_theme,$custom_app,$html,$view, $customBackground,$app_dis);
|
1054 |
}
|
1055 |
|
1056 |
+
if (get_option('mo_openid_twitter_enable')) {
|
1057 |
+
if ($selected_theme == 'longbutton') {
|
1058 |
+
if ($view == "horizontal" && isset($appcnt)) {
|
1059 |
+
$count++;
|
1060 |
+
if ($count == $appcnt) {
|
1061 |
+
$html .= "<br/>";
|
1062 |
+
$count = 0;
|
1063 |
+
}
|
1064 |
+
}
|
1065 |
+
}
|
1066 |
+
$custom_app=$twitter_custom_app;
|
1067 |
+
$html=$this->add_apps("twitter","custom",$gdpr_setting,$spacebetweenicons,$customWidth,$customHeight,$customBoundary,$buttonText,$dis,$customTextofTitle,$customSize,$selected_theme,$custom_app,$html,$view, $customBackground,$app_dis);
|
1068 |
}
|
1069 |
+
if (get_option('mo_openid_linkedin_enable')) {
|
1070 |
+
if ($selected_theme == 'longbutton') {
|
1071 |
+
if ($view == "horizontal" && isset($appcnt)) {
|
1072 |
+
$count++;
|
1073 |
+
if ($count == $appcnt) {
|
1074 |
+
$html .= "<br/>";
|
1075 |
+
$count = 0;
|
1076 |
+
}
|
1077 |
+
}
|
1078 |
+
}
|
1079 |
+
$custom_app=$linkedin_custom_app;
|
1080 |
+
$html=$this->add_apps("linkin","custom",$gdpr_setting,$spacebetweenicons,$customWidth,$customHeight,$customBoundary,$buttonText,$dis,$customTextofTitle,$customSize,$selected_theme,$custom_app,$html,$view, $customBackground,$app_dis);
|
1081 |
}
|
1082 |
+
if (get_option('mo_openid_instagram_enable')) {
|
1083 |
+
if ($selected_theme == 'longbutton') {
|
1084 |
+
if ($view == "horizontal" && isset($appcnt)) {
|
1085 |
+
$count++;
|
1086 |
+
if ($count == $appcnt) {
|
1087 |
+
$html .= "<br/>";
|
1088 |
+
$count = 0;
|
1089 |
+
}
|
1090 |
+
}
|
1091 |
+
}
|
1092 |
+
$custom_app=$instagram_custom_app;
|
1093 |
+
$html=$this->add_apps("insta","custom",$gdpr_setting,$spacebetweenicons,$customWidth,$customHeight,$customBoundary,$buttonText,$dis,$customTextofTitle,$customSize,$selected_theme,$custom_app,$html,$view, $customBackground,$app_dis);
|
1094 |
}
|
1095 |
+
if (get_option('mo_openid_amazon_enable')) {
|
1096 |
+
if ($selected_theme == 'longbutton') {
|
1097 |
+
if ($view == "horizontal" && isset($appcnt)) {
|
1098 |
+
$count++;
|
1099 |
+
if ($count == $appcnt) {
|
1100 |
+
$html .= "<br/>";
|
1101 |
+
$count = 0;
|
1102 |
+
}
|
1103 |
+
}
|
1104 |
+
}
|
1105 |
+
$custom_app=$amazon_custom_app;
|
1106 |
+
$html=$this->add_apps("amazon","custom",$gdpr_setting,$spacebetweenicons,$customWidth,$customHeight,$customBoundary,$buttonText,$dis,$customTextofTitle,$customSize,$selected_theme,$custom_app,$html,$view, $customBackground,$app_dis);
|
1107 |
}
|
1108 |
+
if (get_option('mo_openid_salesforce_enable')) {
|
1109 |
+
if ($selected_theme == 'longbutton') {
|
1110 |
+
if ($view == "horizontal" && isset($appcnt)) {
|
1111 |
+
$count++;
|
1112 |
+
if ($count == $appcnt) {
|
1113 |
+
$html .= "<br/>";
|
1114 |
+
$count = 0;
|
1115 |
+
}
|
1116 |
+
}
|
1117 |
+
}
|
1118 |
+
$custom_app=$salesforce_custom_app;
|
1119 |
+
$html=$this->add_apps("sforce","custom",$gdpr_setting,$spacebetweenicons,$customWidth,$customHeight,$customBoundary,$buttonText,$dis,$customTextofTitle,$customSize,$selected_theme,$custom_app,$html,$view, $customBackground,$app_dis);
|
1120 |
}
|
1121 |
+
if (get_option('mo_openid_windowslive_enable')) {
|
1122 |
+
if ($selected_theme == 'longbutton') {
|
1123 |
+
if ($view == "horizontal" && isset($appcnt)) {
|
1124 |
+
$count++;
|
1125 |
+
if ($count == $appcnt) {
|
1126 |
+
$html .= "<br/>";
|
1127 |
+
$count = 0;
|
1128 |
+
}
|
1129 |
+
}
|
1130 |
+
}
|
1131 |
+
$custom_app=$windowslive_custom_app;
|
1132 |
+
$html=$this->add_apps("wlive","custom",$gdpr_setting,$spacebetweenicons,$customWidth,$customHeight,$customBoundary,$buttonText,$dis,$customTextofTitle,$customSize,$selected_theme,$custom_app,$html,$view, $customBackground,$app_dis);
|
1133 |
+
}
|
1134 |
+
if (get_option('mo_openid_yahoo_enable')) {
|
1135 |
+
if ($selected_theme == 'longbutton') {
|
1136 |
+
if ($view == "horizontal" && isset($appcnt)) {
|
1137 |
+
$count++;
|
1138 |
+
if ($count == $appcnt) {
|
1139 |
+
$html .= "<br/>";
|
1140 |
+
$count = 0;
|
1141 |
+
}
|
1142 |
+
}
|
1143 |
+
}
|
1144 |
+
$custom_app=$yahoo_custom_app;
|
1145 |
+
$html=$this->add_apps("yahoo","custom",$gdpr_setting,$spacebetweenicons,$customWidth,$customHeight,$customBoundary,$buttonText,$dis,$customTextofTitle,$customSize,$selected_theme,$custom_app,$html,$view, $customBackground,$app_dis);
|
1146 |
}
|
|
|
1147 |
}
|
1148 |
}
|
1149 |
+
|
1150 |
$html .= '</div> <br>';
|
1151 |
|
1152 |
} else {
|
1175 |
}
|
1176 |
}
|
1177 |
|
1178 |
+
public function add_apps($app_name,$theme,$gdpr_setting,$spacebetweenicons,$customWidth,$customHeight,$customBoundary,$buttonText,$dis,$customTextofTitle,$customSize,$selected_theme,$custom_app,$html,$view,$customBackground,$app_dis)
|
1179 |
+
{
|
1180 |
+
if($theme=="default")
|
1181 |
+
{
|
1182 |
+
if($app_name=="fb")
|
1183 |
+
{
|
1184 |
+
if ($selected_theme == 'longbutton') {
|
1185 |
+
$html .= "<a rel='nofollow' " . $gdpr_setting . " style='margin-left: " . $spacebetweenicons . "px !important;width: " . $customWidth . "px !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom: " . ($spacebetweenicons - 5) . "px !important;border-radius: " . $customBoundary . "px !important;'";
|
1186 |
+
if ($view == "horizontal") {
|
1187 |
+
$html .= "class='btn btn-mo btn-block-inline btn-social btn-facebook btn-custom-dec login-button'";
|
1188 |
+
} else {
|
1189 |
+
$html .= "class='btn btn-mo btn-block btn-social btn-facebook btn-custom-dec login-button'";
|
1190 |
+
}
|
1191 |
+
if($app_dis!="disable")
|
1192 |
+
$html .= "onClick=\"moOpenIdLogin('facebook','" . $custom_app . "');\"";
|
1193 |
+
$html .= "> <svg xmlns=\"http://www.w3.org/2000/svg\" style=\"padding-top:" . ($customHeight - 30) . "px;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\"/></svg>" . $buttonText . " Facebook</a>";
|
1194 |
+
} else {
|
1195 |
+
$html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " Facebook'"; if($app_dis!="disable") $html.=" onClick=\"moOpenIdLogin('facebook','" . $custom_app . "');\""; $html.="><img alt='Facebook' style='width:" . $customSize . "px !important;height: " . $customSize . "px !important;margin-left: " . ($spacebetweenicons) . "px !important' src='" . plugins_url('includes/images/icons/facebook.png', __FILE__) . "' class='" . $dis . " login-button " . $selected_theme . "' ></a>";
|
1196 |
+
}
|
1197 |
+
return $html;
|
1198 |
+
}
|
1199 |
+
else if($app_name=="google")
|
1200 |
+
{
|
1201 |
+
if ($selected_theme == 'longbutton') {
|
1202 |
+
$html .= "<a rel='nofollow' " . $gdpr_setting . " style='margin-left: " . $spacebetweenicons . "px !important;background: rgb(255,255,255)!important; background:linear-gradient(90deg, rgba(255,255,255,1) 38px, rgb(79, 113, 232) 5%) !important;width: " . $customWidth . "px !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom: " . ($spacebetweenicons - 5) . "px !important;border-radius: " . $customBoundary . "px !important;border-color: rgba(79, 113, 232, 1);border-bottom-width: thin;'";
|
1203 |
+
if ($view == "horizontal") {
|
1204 |
+
$html .= "class='btn btn-mo btn-block-inline btn-social btn-google btn-custom-dec login-button'";
|
1205 |
+
} else {
|
1206 |
+
$html .= "class='btn btn-mo btn-block btn-social btn-google btn-custom-dec login-button'";
|
1207 |
+
}
|
1208 |
+
$html .= "onClick=\"moOpenIdLogin('google','" . $custom_app . "');\"> <i style='padding-top:" . ($customHeight - 29) . "px !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\"/></defs><clipPath id=\"b\"><use xlink:href=\"#a\" overflow=\"visible\"/></clipPath><path clip-path=\"url(#b)\" fill=\"#FBBC05\" d=\"M0 37V11l17 13z\"/><path clip-path=\"url(#b)\" fill=\"#EA4335\" d=\"M0 11l17 13 7-6.1L48 14V0H0z\"/><path clip-path=\"url(#b)\" fill=\"#34A853\" d=\"M0 37l30-23 7.9 1L48 0v48H0z\"/><path clip-path=\"url(#b)\" fill=\"#4285F4\" d=\"M48 48L17 24l-4-3 35-10z\"/></svg></i><span style=\"color:#ffffff;\">" . $buttonText . " Google</span></a>";
|
1209 |
+
} else {
|
1210 |
+
$html .= "<a class='" . $dis . " login-button' rel='nofollow' onClick=\"moOpenIdLogin('google','" . $custom_app . "');\" title= ' " . $customTextofTitle . " Google'><img alt='Google' style='width:" . $customSize . "px !important;height: " . $customSize . "px !important;margin-left: " . ($spacebetweenicons) . "px !important' src='" . plugins_url('includes/images/icons/google.png', __FILE__) . "' class='" . $dis . " login-button " . $selected_theme . "' ></a>";
|
1211 |
+
}
|
1212 |
+
return $html;
|
1213 |
+
}
|
1214 |
+
else if($app_name=="vk")
|
1215 |
+
{
|
1216 |
+
if ($selected_theme == 'longbutton') {
|
1217 |
+
$html .= "<a rel='nofollow' " . $gdpr_setting . " style='margin-left: " . $spacebetweenicons . "px !important;width: " . $customWidth . "px !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom: " . ($spacebetweenicons - 5) . "px !important;border-radius: " . $customBoundary . "px !important;'";
|
1218 |
+
if ($view == "horizontal") {
|
1219 |
+
$html .= "class='btn btn-mo btn-block-inline btn-social btn-vk btn-custom-dec login-button'";
|
1220 |
+
} else {
|
1221 |
+
$html .= "class='btn btn-mo btn-block btn-social btn-vk btn-custom-dec login-button'";
|
1222 |
+
}
|
1223 |
+
$html .= "onClick=\"moOpenIdLogin('vkontakte','" . $custom_app . "');\"> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='fa fa-vk'></i>" . $buttonText . " Vkontakte</a>";
|
1224 |
+
} else {
|
1225 |
+
$html .= "<a class='" . $dis . " login-button' rel='nofollow' onClick=\"moOpenIdLogin('vkontakte','" . $custom_app . "');\" title= ' " . $customTextofTitle . " Vkontakte'><img alt='Vkontakte' style='width:" . $customSize . "px !important;height: " . $customSize . "px !important;margin-left: " . ($spacebetweenicons) . "px !important' src='" . plugins_url('includes/images/icons/vk.png', __FILE__) . "' class='" . $dis . " login-button " . $selected_theme . "' ></a>";
|
1226 |
+
}
|
1227 |
+
return $html;
|
1228 |
+
}
|
1229 |
+
else if($app_name=="twitter")
|
1230 |
+
{
|
1231 |
+
if ($selected_theme == 'longbutton') {
|
1232 |
+
$html .= "<a rel='nofollow' " . $gdpr_setting . " style='margin-left: " . $spacebetweenicons . "px !important;width: " . $customWidth . "px !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom: " . ($spacebetweenicons - 5) . "px !important;border-radius: " . $customBoundary . "px !important;'";
|
1233 |
+
if ($view == "horizontal") {
|
1234 |
+
$html .= "class='btn btn-mo btn-block-inline btn-social btn-twitter btn-custom-dec login-button'";
|
1235 |
+
} else {
|
1236 |
+
$html .= "class='btn btn-mo btn-block btn-social btn-twitter btn-custom-dec login-button'";
|
1237 |
+
}
|
1238 |
+
$html .= "onClick=\"moOpenIdLogin('twitter','" . $custom_app . "');\"> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='fa fa-twitter'></i>" . $buttonText . " Twitter</a>";
|
1239 |
+
} else {
|
1240 |
+
$html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " Twitter' onClick=\"moOpenIdLogin('twitter','" . $custom_app . "');\" ><img alt='Twitter' style=' width:" . $customSize . "px !important;height: " . $customSize . "px !important;margin-left: " . ($spacebetweenicons) . "px !important' src='" . plugins_url('includes/images/icons/twitter.png', __FILE__) . "' class='" . $dis . " login-button " . $selected_theme . "' ></a>";
|
1241 |
+
}
|
1242 |
+
return $html;
|
1243 |
+
}
|
1244 |
+
else if($app_name=="linkin")
|
1245 |
+
{
|
1246 |
+
if ($selected_theme == 'longbutton') {
|
1247 |
+
$html .= "<a rel='nofollow' " . $gdpr_setting . "style='margin-left: " . $spacebetweenicons . "px !important;width: " . $customWidth . "px !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom: " . ($spacebetweenicons - 5) . "px !important;border-radius: " . $customBoundary . "px !important;'";
|
1248 |
+
if ($view == "horizontal") {
|
1249 |
+
$html .= "class='btn btn-mo btn-block-inline btn-social btn-linkedin btn-custom-dec login-button'";
|
1250 |
+
} else {
|
1251 |
+
$html .= "class='btn btn-mo btn-block btn-social btn-linkedin btn-custom-dec login-button'";
|
1252 |
+
}
|
1253 |
+
$html .= "onClick=\"moOpenIdLogin('linkedin','" . $custom_app . "');\"> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='fa fa-linkedin'></i>" . $buttonText . " LinkedIn</a>";
|
1254 |
+
} else {
|
1255 |
+
$html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " LinkedIn' onClick=\"moOpenIdLogin('linkedin','" . $custom_app . "');\" ><img alt='LinkedIn' style='width:" . $customSize . "px !important;height: " . $customSize . "px !important;margin-left: " . ($spacebetweenicons) . "px !important' src='" . plugins_url('includes/images/icons/linkedin.png', __FILE__) . "' class='" . $dis . " login-button " . $selected_theme . "' ></a>";
|
1256 |
+
}
|
1257 |
+
return $html;
|
1258 |
+
}
|
1259 |
+
else if($app_name=="insta")
|
1260 |
+
{
|
1261 |
+
if ($selected_theme == 'longbutton') {
|
1262 |
+
$html .= "<a rel='nofollow' " . $gdpr_setting . " style='margin-left: " . $spacebetweenicons . "px !important;width: " . $customWidth . "px !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom: " . ($spacebetweenicons - 5) . "px !important;border-radius: " . $customBoundary . "px !important;'";
|
1263 |
+
if ($view == "horizontal") {
|
1264 |
+
$html .= "class='btn btn-mo btn-block-inline btn-social btn-instagram btn-custom-dec login-button'";
|
1265 |
+
} else {
|
1266 |
+
$html .= "class='btn btn-mo btn-block btn-social btn-instagram btn-custom-dec login-button'";
|
1267 |
+
}
|
1268 |
+
$html .= "onClick=\"moOpenIdLogin('instagram','" . $custom_app . "');\"> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='fa fa-instagram'></i>" . $buttonText . " Instagram</a>";
|
1269 |
+
} else {
|
1270 |
+
$html .= "<a class='" . $dis . " login-button' rel='nofollow' " . $customTextofTitle . " Instagram' onClick=\"moOpenIdLogin('instagram','" . $custom_app . "');\" ><img alt='Instagram' style='width:" . $customSize . "px !important;height: " . $customSize . "px !important;margin-left: " . ($spacebetweenicons) . "px !important' src='" . plugins_url('includes/images/icons/instagram.png', __FILE__) . "' class='" . $dis . " login-button " . $selected_theme . "' ></a>";
|
1271 |
+
}
|
1272 |
+
return $html;
|
1273 |
+
}
|
1274 |
+
else if($app_name=="amazon")
|
1275 |
+
{
|
1276 |
+
if ($selected_theme == 'longbutton') {
|
1277 |
+
$html .= "<a rel='nofollow' " . $gdpr_setting . "style='margin-left: " . $spacebetweenicons . "px !important;width: " . $customWidth . "px !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom: " . ($spacebetweenicons - 5) . "px !important;border-radius: " . $customBoundary . "px !important;'";
|
1278 |
+
if ($view == "horizontal") {
|
1279 |
+
$html .= "class='btn btn-mo btn-block-inline btn-social btn-soundcloud btn-custom-dec login-button'";
|
1280 |
+
} else {
|
1281 |
+
$html .= "class='btn btn-mo btn-block btn-social btn-soundcloud btn-custom-dec login-button'";
|
1282 |
+
}
|
1283 |
+
$html .= "onClick=\"moOpenIdLogin('amazon','" . $custom_app . "');\"> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='fa fa-amazon'></i>" . $buttonText . " Amazon</a>";
|
1284 |
+
} else {
|
1285 |
+
$html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " Amazon' onClick=\"moOpenIdLogin('amazon','" . $custom_app . "');\" ><img alt='Amazon' style='width:" . $customSize . "px !important;height: " . $customSize . "px !important;margin-left: " . ($spacebetweenicons) . "px !important' src='" . plugins_url('includes/images/icons/amazon.png', __FILE__) . "' class='" . $dis . " login-button " . $selected_theme . "' ></a>";
|
1286 |
+
}
|
1287 |
+
return $html;
|
1288 |
+
}
|
1289 |
+
else if($app_name=="sforce")
|
1290 |
+
{
|
1291 |
+
if ($selected_theme == 'longbutton') {
|
1292 |
+
$html .= "<a rel='nofollow' " . $gdpr_setting . "style='margin-left: " . $spacebetweenicons . "px !important;width: " . $customWidth . "px !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom: " . ($spacebetweenicons - 5) . "px !important;border-radius: " . $customBoundary . "px !important;'";
|
1293 |
+
if ($view == "horizontal") {
|
1294 |
+
$html .= "class='btn btn-mo btn-block-inline btn-social btn-vimeo btn-custom-dec login-button' ";
|
1295 |
+
} else {
|
1296 |
+
$html .= "class='btn btn-mo btn-block btn-social btn-vimeo btn-custom-dec login-button' ";
|
1297 |
+
}
|
1298 |
+
$html .= "onClick=\"moOpenIdLogin('salesforce','" . $custom_app . "');\"> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='fa fa-cloud'></i>" . $buttonText . " Salesforce</a>";
|
1299 |
+
} else {
|
1300 |
+
$html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " Salesforce' onClick=\"moOpenIdLogin('salesforce','" . $custom_app . "');\" ><img alt='Salesforce' style='width:" . $customSize . "px !important;height: " . $customSize . "px !important;margin-left: " . ($spacebetweenicons) . "px !important' src='" . plugins_url('includes/images/icons/salesforce.png', __FILE__) . "' class='" . $dis . " login-button " . $selected_theme . "' ></a>";
|
1301 |
+
}
|
1302 |
+
return $html;
|
1303 |
+
}
|
1304 |
+
else if($app_name=="wlive")
|
1305 |
+
{
|
1306 |
+
if ($selected_theme == 'longbutton') {
|
1307 |
+
$html .= "<a rel='nofollow' " . $gdpr_setting . "style='margin-left: " . $spacebetweenicons . "px !important;width: " . $customWidth . "px !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom: " . ($spacebetweenicons - 5) . "px !important;border-radius: " . $customBoundary . "px !important;'";
|
1308 |
+
if ($view == "horizontal") {
|
1309 |
+
$html .= "class='btn btn-mo btn-block-inline btn-social btn-microsoft btn-custom-dec login-button'";
|
1310 |
+
} else {
|
1311 |
+
$html .= "class='btn btn-mo btn-block btn-social btn-microsoft btn-custom-dec login-button'";
|
1312 |
+
}
|
1313 |
+
$html .= " onClick=\"moOpenIdLogin('windowslive','" . $custom_app . "');\"> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='fa fa-windows'></i>" . $buttonText . " Microsoft</a>";
|
1314 |
+
} else {
|
1315 |
+
$html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " Microsoft' onClick=\"moOpenIdLogin('windowslive','" . $custom_app . "');\" ><img alt='Windowslive' style='width:" . $customSize . "px !important;height: " . $customSize . "px !important;margin-left: " . ($spacebetweenicons) . "px !important' src='" . plugins_url('includes/images/icons/windowslive.png', __FILE__) . "' class='" . $dis . " login-button " . $selected_theme . "' ></a>";
|
1316 |
+
}
|
1317 |
+
return $html;
|
1318 |
+
}
|
1319 |
+
else if($app_name=="yahoo")
|
1320 |
+
{
|
1321 |
+
if ($selected_theme == 'longbutton') {
|
1322 |
+
$html .= "<a rel='nofollow' " . $gdpr_setting . " style='margin-left: " . $spacebetweenicons . "px !important;width: " . $customWidth . "px !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom: " . ($spacebetweenicons - 5) . "px !important;border-radius: " . $customBoundary . "px !important;'";
|
1323 |
+
if ($view == "horizontal") {
|
1324 |
+
$html .= "class='btn btn-mo btn-block-inline btn-social btn-yahoo btn-custom-dec login-button'";
|
1325 |
+
} else {
|
1326 |
+
$html .= "class='btn btn-mo btn-block btn-social btn-yahoo btn-custom-dec login-button'";
|
1327 |
+
}
|
1328 |
+
$html .= "onClick=\"moOpenIdLogin('yaahoo','" . $custom_app . "');\"> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='fa fa-yahoo'></i>" . $buttonText . " Yahoo</a>";
|
1329 |
+
} else {
|
1330 |
+
$html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " .
|
1331 |
+
$customTextofTitle . " Yahoo' onClick=\"moOpenIdLogin('yaahoo','" . $custom_app . "');\" ><img alt='Yahoo' style='width:" . $customSize . "px !important;height: " . $customSize . "px !important;margin-left: " . ($spacebetweenicons) . "px !important' src='" . plugins_url('includes/images/icons/yahoo.png', __FILE__) . "' class='login-button " . $selected_theme . "' ></a>";
|
1332 |
+
}
|
1333 |
+
return $html;
|
1334 |
+
}
|
1335 |
+
}
|
1336 |
+
|
1337 |
+
else if($theme=="custom"){
|
1338 |
+
if($app_name=="fb")
|
1339 |
+
{
|
1340 |
+
if ($selected_theme == 'longbutton') {
|
1341 |
+
$html .= "<a rel='nofollow' " . $gdpr_setting . ""; if($app_dis!="disable") $html.=" onClick=\"moOpenIdLogin('facebook','" . $custom_app . "');\"";$html.=" style='margin-left: " . $spacebetweenicons . "px !important;width:" . ($customWidth) . "px !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom:" . ($spacebetweenicons - 5) . "px !important; background:#" . $customBackground . "!important;border-radius: " . $customBoundary . "px !important;'";
|
1342 |
+
if ($view == "horizontal") {
|
1343 |
+
$html .= "class='btn btn-mo btn-block-inline btn-social btn-customtheme btn-custom-dec login-button'";
|
1344 |
+
} else {
|
1345 |
+
$html .= "class='btn btn-mo btn-block btn-social btn-customtheme btn-custom-dec login-button'";
|
1346 |
+
}
|
1347 |
+
$html .= "> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='fa fa-facebook'></i> " . $buttonText . " Facebook</a>";
|
1348 |
+
} else {
|
1349 |
+
$html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " Facebook'"; if($app_dis!="disable") $html.=" onClick=\"moOpenIdLogin('facebook','" . $custom_app . "');\"";$html.=" ><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize - 16) . "px !important;' class='fa btn-mo fa-facebook custom-login-button " . $selected_theme . "' ></i></a>";
|
1350 |
+
}
|
1351 |
+
return $html;
|
1352 |
+
}
|
1353 |
+
else if($app_name=="google") {
|
1354 |
+
if ($selected_theme == 'longbutton') {
|
1355 |
+
$html .= "<a rel='nofollow' " . $gdpr_setting . " onClick=\"moOpenIdLogin('google','" . $custom_app . "');\" style='margin-left: " . $spacebetweenicons . "px !important;width:" . ($customWidth) . "px !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom:" . ($spacebetweenicons - 5) . "px !important; background:#" . $customBackground . "!important;border-radius: " . $customBoundary . "px !important;'";
|
1356 |
+
if ($view == "horizontal") {
|
1357 |
+
$html .= "class='btn btn-mo btn-block-inline btn-social btn-customtheme btn-custom-dec login-button'";
|
1358 |
+
} else {
|
1359 |
+
$html .= "class='btn btn-mo btn-block btn-social btn-customtheme btn-custom-dec login-button'";
|
1360 |
+
}
|
1361 |
+
$html .= "> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='fa fa-google'></i> " . $buttonText . " Google</a>";
|
1362 |
+
} else {
|
1363 |
+
$html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " Google' onClick=\"moOpenIdLogin('google','" . $custom_app . "');\" title= ' " . $customTextofTitle . " Google'><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize - 16) . "px !important;' class='fa btn-mo fa-google custom-login-button " . $selected_theme . "' ></i></a>";
|
1364 |
+
}
|
1365 |
+
return $html;
|
1366 |
+
}
|
1367 |
+
else if($app_name=="vk") {
|
1368 |
+
if ($selected_theme == 'longbutton') {
|
1369 |
+
$html .= "<a rel='nofollow' " . $gdpr_setting . " onClick=\"moOpenIdLogin('vkontakte','" . $custom_app . "');\" style='margin-left: " . $spacebetweenicons . "px !important;width:" . ($customWidth) . "px !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom:" . ($spacebetweenicons - 5) . "px !important; background:#" . $customBackground . "!important;border-radius: " . $customBoundary . "px !important;'";
|
1370 |
+
if ($view == "horizontal") {
|
1371 |
+
$html .= "class='btn btn-mo btn-block-inline btn-social btn-customtheme btn-custom-dec login-button'";
|
1372 |
+
} else {
|
1373 |
+
$html .= "class='btn btn-mo btn-block btn-social btn-customtheme btn-custom-dec login-button'";
|
1374 |
+
}
|
1375 |
+
$html .= "> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='fa fa-vk'></i> " . $buttonText . " Vkontakte</a>";
|
1376 |
+
} else {
|
1377 |
+
$html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " Vkontakte' onClick=\"moOpenIdLogin('vkontakte','" . $custom_app . "');\" title= ' " . $customTextofTitle . " Vkontakte'><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize - 16) . "px !important;' class='fa btn-mo fa-vk custom-login-button " . $selected_theme . "' ></i></a>";
|
1378 |
+
}
|
1379 |
+
return $html;
|
1380 |
+
}
|
1381 |
+
else if($app_name=="twitter") {
|
1382 |
+
if ($selected_theme == 'longbutton') {
|
1383 |
+
$html .= "<a rel='nofollow' " . $gdpr_setting . "onClick=\"moOpenIdLogin('twitter','" . $custom_app . "');\" style='margin-left: " . $spacebetweenicons . "px !important;width:" . ($customWidth) . "px !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom:" . ($spacebetweenicons - 5) . "px !important; background:#" . $customBackground . "!important;border-radius: " . $customBoundary . "px !important;'";
|
1384 |
+
if ($view == "horizontal") {
|
1385 |
+
$html .= "class='btn btn-mo btn-block-inline btn-social btn-customtheme btn-custom-dec login-button'";
|
1386 |
+
} else {
|
1387 |
+
$html .= "class='btn btn-mo btn-block btn-social btn-customtheme btn-custom-dec login-button'";
|
1388 |
+
}
|
1389 |
+
$html .= "> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='fa fa-twitter'></i> " . $buttonText . " Twitter</a>";
|
1390 |
+
} else {
|
1391 |
+
$html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " Twitter' onClick=\"moOpenIdLogin('twitter','" . $custom_app . "');\" ><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize - 16) . "px !important;' class='fa btn-mo fa-twitter custom-login-button " . $selected_theme . "' ></i></a>";
|
1392 |
+
}
|
1393 |
+
return $html;
|
1394 |
+
}
|
1395 |
+
else if($app_name=="linkin") {
|
1396 |
+
if ($selected_theme == 'longbutton') {
|
1397 |
+
$html .= "<a rel='nofollow' " . $gdpr_setting . "onClick=\"moOpenIdLogin('linkedin','" . $custom_app . "');\" style='margin-left: " . $spacebetweenicons . "px !important;width:" . ($customWidth) . "px !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom:" . ($spacebetweenicons - 5) . "px !important; background:#" . $customBackground . "!important;border-radius: " . $customBoundary . "px !important;'";
|
1398 |
+
if ($view == "horizontal") {
|
1399 |
+
$html .= "class='btn btn-mo btn-block-inline btn-social btn-customtheme btn-custom-dec login-button'";
|
1400 |
+
} else {
|
1401 |
+
$html .= "class='btn btn-mo btn-block btn-social btn-customtheme btn-custom-dec login-button'";
|
1402 |
+
}
|
1403 |
+
$html .= "> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='fa fa-linkedin'></i> " . $buttonText . " LinkedIn</a>";
|
1404 |
+
} else {
|
1405 |
+
$html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " LinkedIn' onClick=\"moOpenIdLogin('linkedin','" . $custom_app . "');\" ><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize - 16) . "px !important;' class='fa btn-mo fa-linkedin custom-login-button " . $selected_theme . "' ></i></a>";
|
1406 |
+
}
|
1407 |
+
|
1408 |
+
return $html;
|
1409 |
+
}
|
1410 |
+
else if($app_name=="insta") {
|
1411 |
+
if ($selected_theme == 'longbutton') {
|
1412 |
+
$html .= "<a rel='nofollow' " . $gdpr_setting . "onClick=\"moOpenIdLogin('instagram','" . $custom_app . "');\" style='margin-left: " . $spacebetweenicons . "px !important;width:" . ($customWidth) . "px !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom:" . ($spacebetweenicons - 5) . "px !important; background:#" . $customBackground . "!important;border-radius: " . $customBoundary . "px !important;'";
|
1413 |
+
if ($view == "horizontal") {
|
1414 |
+
$html .= "class='btn btn-mo btn-block-inline btn-social btn-customtheme btn-custom-dec login-button'";
|
1415 |
+
} else {
|
1416 |
+
$html .= "class='btn btn-mo btn-block btn-social btn-customtheme btn-custom-dec login-button'";
|
1417 |
+
}
|
1418 |
+
$html .= "> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='fa fa-instagram'></i> " . $buttonText . " Instagram</a>";
|
1419 |
+
} else {
|
1420 |
+
$html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " Instagram' onClick=\"moOpenIdLogin('instagram','" . $custom_app . "');\" ><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize - 16) . "px !important;' class='fa btn-mo fa-instagram custom-login-button " . $selected_theme . "' ></i></a>";
|
1421 |
+
}
|
1422 |
+
return $html;
|
1423 |
+
}
|
1424 |
+
else if($app_name=="amazon") {
|
1425 |
+
if ($selected_theme == 'longbutton') {
|
1426 |
+
$html .= "<a rel='nofollow' " . $gdpr_setting . " onClick=\"moOpenIdLogin('amazon','" . $custom_app . "');\" style='margin-left: " . $spacebetweenicons . "px !important;width:" . ($customWidth) . "px !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom:" . ($spacebetweenicons - 5) . "px !important; background:#" . $customBackground . "!important;border-radius: " . $customBoundary . "px !important;'";
|
1427 |
+
if ($view == "horizontal") {
|
1428 |
+
$html .= "class='btn btn-mo btn-block-inline btn-social btn-customtheme btn-custom-dec login-button'";
|
1429 |
+
} else {
|
1430 |
+
$html .= "class='btn btn-mo btn-block btn-social btn-customtheme btn-custom-dec login-button'";
|
1431 |
+
}
|
1432 |
+
$html .= "> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='fa fa-amazon'></i> " . $buttonText . " Amazon</a>";
|
1433 |
+
} else {
|
1434 |
+
$html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " Amazon' onClick=\"moOpenIdLogin('amazon','" . $custom_app . "');\" ><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize - 16) . "px !important;' class='fa btn-mo fa-amazon custom-login-button " . $selected_theme . "' ></i></a>";
|
1435 |
+
}
|
1436 |
+
|
1437 |
+
return $html;
|
1438 |
+
}
|
1439 |
+
else if($app_name=="sforce")
|
1440 |
+
{
|
1441 |
+
if ($selected_theme == 'longbutton') {
|
1442 |
+
$html .= "<a rel='nofollow' " . $gdpr_setting . " onClick=\"moOpenIdLogin('salesforce','" . $custom_app . "');\" style='margin-left: " . $spacebetweenicons . "px !important;width:" . ($customWidth) . "px !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom:" . ($spacebetweenicons - 5) . "px !important; background:#" . $customBackground . "!important;border-radius: " . $customBoundary . "px !important;'";
|
1443 |
+
if ($view == "horizontal") {
|
1444 |
+
$html .= "class='btn btn-mo btn-block-inline btn-social btn-customtheme btn-custom-dec login-button'";
|
1445 |
+
} else {
|
1446 |
+
$html .= "class='btn btn-mo btn-block btn-social btn-customtheme btn-custom-dec login-button'";
|
1447 |
+
}
|
1448 |
+
$html .= "> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='fa fa-cloud'></i> " . $buttonText . " Salesforce</a>";
|
1449 |
+
} else {
|
1450 |
+
$html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " Salesforce' onClick=\"moOpenIdLogin('salesforce','" . $custom_app . "');\" ><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize - 16) . "px !important;' class='fa btn-mo fa-cloud custom-login-button " . $selected_theme . "' ></i></a>";
|
1451 |
+
}
|
1452 |
+
return $html;
|
1453 |
+
}
|
1454 |
+
else if($app_name=="wlive")
|
1455 |
+
{
|
1456 |
+
if ($selected_theme == 'longbutton') {
|
1457 |
+
$html .= "<a rel='nofollow' " . $gdpr_setting . " onClick=\"moOpenIdLogin('windowslive','" . $custom_app . "');\" style='margin-left: " . $spacebetweenicons . "px !important;width:" . ($customWidth) . "px !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom:" . ($spacebetweenicons - 5) . "px !important; background:#" . $customBackground . "!important;border-radius: " . $customBoundary . "px !important;'";
|
1458 |
+
if ($view == "horizontal") {
|
1459 |
+
$html .= "class='btn btn-mo btn-block-inline btn-social btn-customtheme btn-custom-dec login-button'";
|
1460 |
+
} else {
|
1461 |
+
$html .= "class='btn btn-mo btn-block btn-social btn-customtheme btn-custom-dec login-button'";
|
1462 |
+
}
|
1463 |
+
$html .= "> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='fa fa-windows'></i> " . $buttonText . " Microsoft</a>";
|
1464 |
+
} else {
|
1465 |
+
$html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " Microsoft' onClick=\"moOpenIdLogin('windowslive','" . $custom_app . "');\" ><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize - 16) . "px !important;' class='fa btn-mo fa-windows custom-login-button " . $selected_theme . "' ></i></a>";
|
1466 |
+
}
|
1467 |
+
return $html;
|
1468 |
+
}
|
1469 |
+
else if($app_name=="yahoo")
|
1470 |
+
{
|
1471 |
+
if ($selected_theme == 'longbutton') {
|
1472 |
+
$html .= "<a rel='nofollow' " . $gdpr_setting . " onClick=\"moOpenIdLogin('yaahoo','" . $custom_app . "');\" style='margin-left: " . $spacebetweenicons . "px !important;width:" . ($customWidth) . "px !important;padding-top:" . ($customHeight - 29) . "px !important;padding-bottom:" . ($customHeight - 29) . "px !important;margin-bottom:" . ($spacebetweenicons - 5) . "px !important; background:#" . $customBackground . "!important;border-radius: " . $customBoundary . "px !important;'";
|
1473 |
+
if ($view == "horizontal") {
|
1474 |
+
$html .= "class='btn btn-mo btn-block-inline btn-social btn-customtheme btn-custom-dec login-button'";
|
1475 |
+
} else {
|
1476 |
+
$html .= "class='btn btn-mo btn-block btn-social btn-customtheme btn-custom-dec login-button'";
|
1477 |
+
}
|
1478 |
+
$html .= "> <i style='padding-top:" . ($customHeight - 35) . "px !important' class='fa fa-yahoo'></i> " . $buttonText . " Yahoo</a>";
|
1479 |
+
} else {
|
1480 |
+
$html .= "<a class='" . $dis . " login-button' rel='nofollow' title= ' " . $customTextofTitle . " Yahoo' onClick=\"moOpenIdLogin('yaahoo','" . $custom_app . "');\" ><i style='margin-top:10px;width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize - 16) . "px !important;' class='fa btn-mo fa-yahoo custom-login-button " . $selected_theme . "' ></i></a>";
|
1481 |
+
}
|
1482 |
+
return $html;
|
1483 |
+
}
|
1484 |
+
}
|
1485 |
+
|
1486 |
+
}
|
1487 |
+
|
1488 |
+
|
1489 |
private function mo_openid_load_login_script() {
|
1490 |
|
1491 |
if(!get_option('mo_openid_gdpr_consent_enable')){?>
|
1748 |
function update_custom_data($user_id)
|
1749 |
{
|
1750 |
$set_cust_field = get_option('mo_openid_custom_field_mapping');
|
1751 |
+
$cust_reg_val = array();
|
1752 |
foreach ($set_cust_field as $x) {
|
1753 |
$count = 0;
|
1754 |
$a = 1;
|
1782 |
}
|
1783 |
}
|
1784 |
if ($type != "checkbox") {
|
1785 |
+
if(get_option('mo_customer_validation_mo_social_login_enable')=="1" && get_option('mo_openid_customised_field_enable') == "1" )
|
1786 |
+
array_push($cust_reg_val,[$field_update=>$_POST[$field]]);
|
1787 |
+
else
|
1788 |
+
update_user_meta($user_id, $field_update, $_POST[$field]);
|
1789 |
} else {
|
1790 |
$flag = 0;
|
1791 |
$str_res = explode(";", $add_field);
|
1798 |
}
|
1799 |
$a++;
|
1800 |
}
|
1801 |
+
if(get_option('mo_customer_validation_mo_social_login_enable')=="1" && get_option('mo_openid_customised_field_enable') == "1" )
|
1802 |
+
array_push($cust_reg_val,[$field_update=>$res]);
|
1803 |
+
else
|
1804 |
+
update_user_meta($user_id, $field_update, $res);
|
1805 |
}
|
1806 |
}
|
1807 |
+
return $cust_reg_val;
|
1808 |
}
|
1809 |
|
1810 |
function encrypt_data($data, $key) {
|
1946 |
'last_name' => $last_name,
|
1947 |
'user_url' => $user_url,
|
1948 |
);
|
1949 |
+
$userdetails = array(
|
1950 |
+
'user_login' => $username,
|
1951 |
+
'user_email' => $user_email,
|
1952 |
+
'user_pass' => $random_password,
|
1953 |
+
'display_name' => $user_full_name,
|
1954 |
+
'first_name' => $first_name,
|
1955 |
+
'last_name' => $last_name,
|
1956 |
+
'user_url' => $user_url,
|
1957 |
+
'user_profile_url' => $user_profile_url,
|
1958 |
+
'user_picture' => $user_picture,
|
1959 |
+
'decrypted_app_name' => $decrypted_app_name,
|
1960 |
+
'decrypted_user_id' => $decrypted_user_id,
|
1961 |
+
'social_app_name' => $social_app_name,
|
1962 |
+
'social_user_id' => $social_user_id,
|
1963 |
+
'call' => $call
|
1964 |
+
);
|
1965 |
+
if(get_option('mo_customer_validation_mo_social_login_enable')=="1" && get_option('mo_openid_customised_field_enable') == "1" )
|
1966 |
+
$cust_reg_val=update_custom_data("0");
|
1967 |
+
do_action("mo_before_insert_user",$userdetails,$cust_reg_val);
|
1968 |
$user_id = wp_insert_user( $userdata);
|
1969 |
if(is_wp_error( $user_id )) {
|
1970 |
print_r($user_id);
|
class-mo-openid-social-login-functions.php
CHANGED
@@ -115,8 +115,21 @@ function mo_openid_process_account_linking($username, $user_email, $first_name,
|
|
115 |
'last_name' => $last_name,
|
116 |
'user_url' => $user_url,
|
117 |
);
|
118 |
-
|
119 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
120 |
$user_id = wp_insert_user( $userdata);
|
121 |
|
122 |
if(is_wp_error( $user_id )) {
|
@@ -372,8 +385,21 @@ function mo_openid_social_login_validate_otp($username, $user_email, $first_name
|
|
372 |
'last_name' => $last_name,
|
373 |
'user_url' => $user_url,
|
374 |
);
|
375 |
-
|
376 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
377 |
$user_id = wp_insert_user( $userdata);
|
378 |
|
379 |
if(is_wp_error( $user_id )) {
|
@@ -604,8 +630,21 @@ function mo_openid_process_social_login(){
|
|
604 |
'last_name' => $last_name,
|
605 |
'user_url' => $user_url,
|
606 |
);
|
607 |
-
|
608 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
609 |
$user_id = wp_insert_user( $userdata);
|
610 |
if(is_wp_error( $user_id )) {
|
611 |
print_r($user_id);
|
@@ -806,8 +845,21 @@ function mo_openid_process_social_login(){
|
|
806 |
'last_name' => $last_name,
|
807 |
'user_url' => $user_url
|
808 |
);
|
809 |
-
|
810 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
811 |
$user_id = wp_insert_user( $userdata);
|
812 |
|
813 |
if(is_wp_error( $user_id )) {
|
@@ -1308,7 +1360,21 @@ background-color: #dff0d8; padding:2%;margin-bottom:20px;text-align:center; bord
|
|
1308 |
'last_name' => $last_name,
|
1309 |
'user_url' => $user_url,
|
1310 |
);
|
1311 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1312 |
$user_id = wp_insert_user( $userdata);
|
1313 |
|
1314 |
if(is_wp_error( $user_id )) {
|
@@ -1513,8 +1579,21 @@ background-color: #dff0d8; padding:2%;margin-bottom:20px;text-align:center; bord
|
|
1513 |
'last_name' => $last_name,
|
1514 |
'user_url' => $user_url,
|
1515 |
);
|
1516 |
-
|
1517 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1518 |
$user_id = wp_insert_user( $userdata);
|
1519 |
if(is_wp_error( $user_id )) {
|
1520 |
print_r($user_id);
|
115 |
'last_name' => $last_name,
|
116 |
'user_url' => $user_url,
|
117 |
);
|
118 |
+
$userdetails = array(
|
119 |
+
'user_login' => $username,
|
120 |
+
'user_email' => $user_email,
|
121 |
+
'user_pass' => $random_password,
|
122 |
+
'display_name' => $user_full_name,
|
123 |
+
'first_name' => $first_name,
|
124 |
+
'last_name' => $last_name,
|
125 |
+
'user_url' => $user_url,
|
126 |
+
'user_profile_url' => $user_url,
|
127 |
+
'user_picture' => $user_picture,
|
128 |
+
'decrypted_app_name' => $decrypted_app_name,
|
129 |
+
'decrypted_user_id' => $decrypted_user_id,
|
130 |
+
'call' => "1"
|
131 |
+
);
|
132 |
+
do_action("mo_before_insert_user",$userdetails,"");
|
133 |
$user_id = wp_insert_user( $userdata);
|
134 |
|
135 |
if(is_wp_error( $user_id )) {
|
385 |
'last_name' => $last_name,
|
386 |
'user_url' => $user_url,
|
387 |
);
|
388 |
+
$userdetails = array(
|
389 |
+
'user_login' => $username,
|
390 |
+
'user_email' => $user_email,
|
391 |
+
'user_pass' => $random_password,
|
392 |
+
'display_name' => $user_full_name,
|
393 |
+
'first_name' => $first_name,
|
394 |
+
'last_name' => $last_name,
|
395 |
+
'user_url' => $user_url,
|
396 |
+
'user_profile_url' => $user_profile_url,
|
397 |
+
'user_picture' => $user_picture,
|
398 |
+
'decrypted_app_name' => $decrypted_app_name,
|
399 |
+
'decrypted_user_id' => $decrypted_user_id,
|
400 |
+
'call' => "2"
|
401 |
+
);
|
402 |
+
do_action("mo_before_insert_user",$userdetails,"");
|
403 |
$user_id = wp_insert_user( $userdata);
|
404 |
|
405 |
if(is_wp_error( $user_id )) {
|
630 |
'last_name' => $last_name,
|
631 |
'user_url' => $user_url,
|
632 |
);
|
633 |
+
$userdetails = array(
|
634 |
+
'user_login' => $username,
|
635 |
+
'user_email' => $user_email,
|
636 |
+
'user_pass' => $random_password,
|
637 |
+
'display_name' => $user_full_name,
|
638 |
+
'first_name' => $first_name,
|
639 |
+
'last_name' => $last_name,
|
640 |
+
'user_url' => $user_url,
|
641 |
+
'user_profile_url' => $user_profile_url,
|
642 |
+
'user_picture' => $user_picture,
|
643 |
+
'decrypted_app_name' => $decrypted_app_name,
|
644 |
+
'decrypted_user_id' => $decrypted_user_id,
|
645 |
+
'call' => "3"
|
646 |
+
);
|
647 |
+
do_action("mo_before_insert_user",$userdetails,"");
|
648 |
$user_id = wp_insert_user( $userdata);
|
649 |
if(is_wp_error( $user_id )) {
|
650 |
print_r($user_id);
|
845 |
'last_name' => $last_name,
|
846 |
'user_url' => $user_url
|
847 |
);
|
848 |
+
$userdetails = array(
|
849 |
+
'user_login' => $username,
|
850 |
+
'user_email' => $user_email,
|
851 |
+
'user_pass' => $random_password,
|
852 |
+
'display_name' => $user_full_name,
|
853 |
+
'first_name' => $first_name,
|
854 |
+
'last_name' => $last_name,
|
855 |
+
'user_url' => $user_url,
|
856 |
+
'user_profile_url' => $user_profile_url,
|
857 |
+
'user_picture' => $user_picture,
|
858 |
+
'decrypted_app_name' => $decrypted_app_name,
|
859 |
+
'decrypted_user_id' => $decrypted_user_id,
|
860 |
+
'call' => "4"
|
861 |
+
);
|
862 |
+
do_action("mo_before_insert_user",$userdetails,"");
|
863 |
$user_id = wp_insert_user( $userdata);
|
864 |
|
865 |
if(is_wp_error( $user_id )) {
|
1360 |
'last_name' => $last_name,
|
1361 |
'user_url' => $user_url,
|
1362 |
);
|
1363 |
+
$userdetails = array(
|
1364 |
+
'user_login' => $username,
|
1365 |
+
'user_email' => $user_email,
|
1366 |
+
'user_pass' => $random_password,
|
1367 |
+
'display_name' => $user_full_name,
|
1368 |
+
'first_name' => $first_name,
|
1369 |
+
'last_name' => $last_name,
|
1370 |
+
'user_url' => $user_url,
|
1371 |
+
'user_profile_url' => $user_profile_url,
|
1372 |
+
'user_picture' => $user_picture,
|
1373 |
+
'social_app_name' => $social_app_name,
|
1374 |
+
'social_user_id' => $social_user_id,
|
1375 |
+
'call' => "5"
|
1376 |
+
);
|
1377 |
+
do_action("mo_before_insert_user",$userdetails,"");
|
1378 |
$user_id = wp_insert_user( $userdata);
|
1379 |
|
1380 |
if(is_wp_error( $user_id )) {
|
1579 |
'last_name' => $last_name,
|
1580 |
'user_url' => $user_url,
|
1581 |
);
|
1582 |
+
$userdetails = array(
|
1583 |
+
'user_login' => $username,
|
1584 |
+
'user_email' => $user_email,
|
1585 |
+
'user_pass' => $random_password,
|
1586 |
+
'display_name' => $user_full_name,
|
1587 |
+
'first_name' => $first_name,
|
1588 |
+
'last_name' => $last_name,
|
1589 |
+
'user_url' => $user_url,
|
1590 |
+
'user_profile_url' => $user_profile_url,
|
1591 |
+
'user_picture' => $user_picture,
|
1592 |
+
'social_app_name' => $social_app_name,
|
1593 |
+
'social_user_id' => $social_user_id,
|
1594 |
+
'call' => "6"
|
1595 |
+
);
|
1596 |
+
do_action("mo_before_insert_user",$userdetails,"");
|
1597 |
$user_id = wp_insert_user( $userdata);
|
1598 |
if(is_wp_error( $user_id )) {
|
1599 |
print_r($user_id);
|
class-mo-openid-sso-shortcode-buttons.php
CHANGED
@@ -1,286 +1,460 @@
|
|
1 |
<?php
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
//shortcode for horizontal sharing
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
-
|
6 |
-
{
|
7 |
-
if (mo_openid_is_customer_registered())
|
8 |
{
|
9 |
-
$
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
$
|
17 |
-
|
18 |
-
$
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
if($fontColor)
|
26 |
-
{
|
27 |
-
if(ctype_xdigit($fontColor) && strlen($fontColor)==6 && strpos($fontColor,'#')==false){
|
28 |
-
$fontColor= "#".$fontColor;
|
29 |
-
}else
|
30 |
-
$fontColor;
|
31 |
-
}
|
32 |
-
|
33 |
-
$email_subject = esc_html(get_option('mo_openid_share_email_subject'));
|
34 |
-
$email_body = get_option('mo_openid_share_email_body');
|
35 |
-
$email_body = str_replace('##url##', $url, $email_body);
|
36 |
-
|
37 |
-
if ($custom_theme == 'custombackground') {
|
38 |
$custom_theme = 'custom';
|
39 |
}
|
40 |
-
if
|
41 |
$custom_theme = 'customFont';
|
42 |
}
|
43 |
|
44 |
$orientation = 'hor';
|
45 |
|
46 |
-
|
47 |
$html .= '<div class="mo-openid-app-icons circle ">';
|
48 |
-
$html .= '<p style="margin-top:4% !important; margin-bottom:0px !important; color:' . $textColor . '">';
|
49 |
-
if ($orientation == 'hor') {
|
50 |
-
$html .= $text . '</p>';
|
51 |
-
$html .= "<div class='horizontal'>";
|
52 |
-
if ($custom_theme == 'custom') {
|
53 |
-
|
54 |
-
|
55 |
-
if (get_option('mo_openid_facebook_share_enable')) {
|
56 |
-
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href=' . $url;
|
57 |
-
$html .= "<a rel='nofollow' title='Facebook' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><i class='mo-custom-share-icon " . $selected_theme . " fa fa-facebook' style='padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
58 |
-
}
|
59 |
-
|
60 |
-
if (get_option('mo_openid_twitter_share_enable')) {
|
61 |
-
$link = empty($twitter_username) ? 'https://twitter.com/intent/tweet?text=' . $title . '&url=' . $url : 'https://twitter.com/intent/tweet?text=' . $title . '&url=' . $url . '&via=' . $twitter_username;
|
62 |
-
$html .= "<a rel='nofollow' title='Twitter' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><i class='mo-custom-share-icon " . $selected_theme . " fa fa-twitter' style='padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
63 |
-
|
64 |
-
}
|
65 |
-
|
66 |
-
if (get_option('mo_openid_google_share_enable')) {
|
67 |
-
$link = 'https://plus.google.com/share?url=' . $url;
|
68 |
-
$html .= "<a rel='nofollow' title='Google' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><i class='mo-custom-share-icon " . $selected_theme . " fa fa-google-plus' style='padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
69 |
-
}
|
70 |
-
if (get_option('mo_openid_vkontakte_share_enable')) {
|
71 |
-
$link = 'http://vk.com/share.php?url=' . $url . '&title=' . $title . '&description=' . $excerpt;
|
72 |
-
$html .= "<a rel='nofollow' title='Vkontakte' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><i class='mo-custom-share-icon " . $selected_theme . " fa fa-vk' style='padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
73 |
-
}
|
74 |
-
if (get_option('mo_openid_tumblr_share_enable')) {
|
75 |
-
$link = 'http://www.tumblr.com/share/link?url=' . $url . '&title=' . $title;
|
76 |
-
$html .= "<a rel='nofollow' title='Tumblr' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><i class='mo-custom-share-icon " . $selected_theme . " fa fa-tumblr' style='padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
77 |
-
}
|
78 |
-
if (get_option('mo_openid_stumble_share_enable')) {
|
79 |
-
$link = 'http://www.stumbleupon.com/submit?url=' . $url . '&title=' . $title;
|
80 |
-
$html .= "<a rel='nofollow' title='StumbleUpon' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><i class='mo-custom-share-icon " . $selected_theme . " fa fa-stumbleupon' style='padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
81 |
-
}
|
82 |
-
if (get_option('mo_openid_linkedin_share_enable')) {
|
83 |
-
$link = 'https://www.linkedin.com/shareArticle?mini=true&title=' . $title . '&url=' . $url . '&summary=' . $excerpt;
|
84 |
-
|
85 |
-
|
86 |
-
$html .= "<a rel='nofollow' title='LinkedIn' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><i class='mo-custom-share-icon " . $selected_theme . " fa fa-linkedin' style='padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
87 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
}
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
|
|
|
|
93 |
}
|
94 |
|
95 |
-
if
|
96 |
-
$
|
97 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
98 |
}
|
99 |
|
100 |
-
if
|
101 |
-
$link = 'https://getpocket.com/save?url='
|
102 |
-
$html .= "<a rel='nofollow' title='Pocket' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " .
|
103 |
}
|
104 |
-
if
|
105 |
-
$link = 'http://digg.com/submit?url='
|
106 |
-
$html .= "<a rel='nofollow' title='Digg' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " .
|
107 |
}
|
108 |
-
if
|
109 |
-
$link = 'http://www.delicious.com/save?v=5&noui&jump=close&url='
|
110 |
-
$html .= "<a rel='nofollow' title='Delicious' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " .
|
111 |
}
|
112 |
-
if
|
113 |
-
$link = 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st.comments='
|
114 |
-
$html .= "<a rel='nofollow' title='Odnoklassniki' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " .
|
115 |
}
|
116 |
-
if
|
117 |
-
$html .= "<a rel='nofollow' title='Email this page' onclick='popupCenter(" . '"mailto:?subject= ' . $email_subject . '&body=' . $email_body
|
118 |
}
|
119 |
-
if
|
120 |
-
$html .= "<a rel='nofollow' title='Print this page' onclick='javascript:window.print();' class='mo-openid-share-link' style='margin-left : " .
|
121 |
}
|
122 |
-
if
|
123 |
-
|
124 |
-
if (!wp_is_mobile()) {
|
125 |
-
$html .= '<a rel="nofollow" title="Whatsapp" target ="_blank" href="https://web.whatsapp.com/send?text=' . $url . '" class="mo-openid-share-link" style="margin-left : ' . ($spaceBetweenIcons) . 'px !important;border-bottom:0px !important;"><i class="mo-custom-share-icon ' . $selected_theme . ' fa fa-whatsapp" style="padding-top:8px;text-align:center;color:#ffffff;font-size: ' . ($sharingSize - 16) . 'px !important;background-color:#' . $custom_color . ';height: ' . $sharingSize . 'px !important;width:' . $sharingSize . 'px !important;"></i></a>';
|
126 |
-
} else {
|
127 |
-
$html .= '<a rel="nofollow" title="Whatsapp" href="whatsapp://send?text=' . $url . '" class="mo-openid-share-link" style="margin-left : ' . ($spaceBetweenIcons) . 'px !important;border-bottom:0px !important;"><i class="mo-custom-share-icon ' . $selected_theme . ' fa fa-whatsapp" style="padding-top:8px;text-align:center;color:#ffffff;font-size: ' . ($sharingSize - 16) . 'px !important;background-color:#' . $custom_color . ';height: ' . $sharingSize . 'px !important;width:' . $sharingSize . 'px !important;"></i></a>';
|
128 |
|
|
|
|
|
129 |
}
|
|
|
|
|
130 |
|
|
|
|
|
|
|
|
|
131 |
}
|
132 |
|
133 |
-
}
|
134 |
|
|
|
|
|
|
|
|
|
135 |
if (get_option('mo_openid_facebook_share_enable')) {
|
136 |
-
|
137 |
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href=' . $url;
|
138 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
139 |
}
|
140 |
|
141 |
if (get_option('mo_openid_twitter_share_enable')) {
|
142 |
$link = empty($twitter_username) ? 'https://twitter.com/intent/tweet?text=' . $title . '&url=' . $url : 'https://twitter.com/intent/tweet?text=' . $title . '&url=' . $url . '&via=' . $twitter_username;
|
143 |
-
$html .= "<a rel='nofollow' title='Twitter' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons - 6) . "px !important'><i class=' " . $selected_theme . " fa fa-twitter' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
144 |
}
|
145 |
|
146 |
if (get_option('mo_openid_google_share_enable')) {
|
147 |
|
148 |
$link = 'https://plus.google.com/share?url=' . $url;
|
149 |
-
|
|
|
150 |
}
|
151 |
if (get_option('mo_openid_vkontakte_share_enable')) {
|
152 |
$link = 'http://vk.com/share.php?url=' . $url . '&title=' . $title . '&description=' . $excerpt;
|
153 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
154 |
}
|
155 |
if (get_option('mo_openid_tumblr_share_enable')) {
|
156 |
$link = 'http://www.tumblr.com/share/link?url=' . $url . '&title=' . $title;
|
157 |
-
$html .= "<a rel='nofollow' title='Tumblr' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons - 6) . "px !important'><i class=' " . $selected_theme . " fa fa-tumblr' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
158 |
}
|
159 |
if (get_option('mo_openid_stumble_share_enable')) {
|
160 |
$link = 'http://www.stumbleupon.com/submit?url=' . $url . '&title=' . $title;
|
161 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
162 |
}
|
163 |
if (get_option('mo_openid_linkedin_share_enable')) {
|
164 |
$link = 'https://www.linkedin.com/shareArticle?mini=true&title=' . $title . '&url=' . $url . '&summary=' . $excerpt;
|
165 |
-
$html .= "<a rel='nofollow' title='LinkedIn' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons - 6) . "px !important'><i class=' " . $selected_theme . " fa fa-linkedin' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
166 |
}
|
167 |
if (get_option('mo_openid_reddit_share_enable')) {
|
168 |
$link = 'http://www.reddit.com/submit?url=' . $url . '&title=' . $title;
|
169 |
-
$html .= "<a rel='nofollow' title='Reddit' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons - 6) . "px !important'><i class=' " . $selected_theme . " fa fa-reddit' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
170 |
}
|
171 |
if (get_option('mo_openid_pinterest_share_enable')) {
|
172 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
173 |
}
|
174 |
|
175 |
if (get_option('mo_openid_pocket_share_enable')) {
|
176 |
$link = 'https://getpocket.com/save?url=' . $url . '&title=' . $title;
|
177 |
-
$html .= "<a rel='nofollow' title='Pocket' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons - 6) . "px !important'><i class=' " . $selected_theme . " fa fa-get-pocket' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
178 |
}
|
179 |
if (get_option('mo_openid_digg_share_enable')) {
|
180 |
$link = 'http://digg.com/submit?url=' . $url . '&title=' . $title;
|
181 |
-
$html .= "<a rel='nofollow' title='Digg' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons - 6) . "px !important'><i class=' " . $selected_theme . " fa fa-digg' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
182 |
}
|
183 |
if (get_option('mo_openid_delicious_share_enable')) {
|
184 |
$link = 'http://www.delicious.com/save?v=5&noui&jump=close&url=' . $url . '&title=' . $title;
|
185 |
-
$html .= "<a rel='nofollow' title='Delicious' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons - 6) . "px !important'><i class=' " . $selected_theme . " fa fa-delicious' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
186 |
}
|
187 |
if (get_option('mo_openid_odnoklassniki_share_enable')) {
|
188 |
$link = 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st.comments=' . $excerpt . '&st._surl=' . $url;
|
189 |
-
$html .= "<a rel='nofollow' title='Odnoklassniki' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons - 6) . "px !important'><i class=' " . $selected_theme . " fa fa-odnoklassniki' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
190 |
}
|
191 |
if (get_option('mo_openid_mail_share_enable')) {
|
192 |
-
$html .= "<a rel='nofollow' title='Email this page' onclick='popupCenter(" . '"mailto:?subject= ' . $email_subject . '&body=' . $email_body . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><i class=' " . $selected_theme . " fa fa-envelope' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
193 |
}
|
194 |
if (get_option('mo_openid_print_share_enable')) {
|
195 |
-
$html .= "<a rel='nofollow' title='Print this page' onclick='javascript:window.print();' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><i class=' " . $selected_theme . " fa fa-print' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
196 |
}
|
197 |
if (get_option('mo_openid_whatsapp_share_enable')) {
|
198 |
-
|
199 |
if (wp_is_mobile()) {
|
200 |
-
$html .= '<a rel="nofollow" title="Whatsapp" href="whatsapp://send?text=' . $url . '" class="mo-openid-share-link" style="margin-left : ' . ($spaceBetweenIcons - 6) . 'px !important;border-bottom:0px !important;"><i class=" ' . $selected_theme . ' fa fa-whatsapp" style="padding-top:4px;text-align:center;color:' . $fontColor . ';font-size:' . $sharingSize . 'px !important;height:' . $sharingSize . 'px !important;width:' . $sharingSize . 'px !important;"></i></a>';
|
201 |
} else {
|
202 |
-
$html .= '<a rel="nofollow" title="Whatsapp" target ="_blank" href="https://web.whatsapp.com/send?text=' . $url . '" class="mo-openid-share-link" style="margin-left : ' . ($spaceBetweenIcons - 6) . 'px !important;border-bottom:0px !important;"><i class=" ' . $selected_theme . ' fa fa-whatsapp" style="padding-top:4px;text-align:center;color:' . $fontColor . ';font-size:' . $sharingSize . 'px !important;height:' . $sharingSize . 'px !important;width:' . $sharingSize . 'px !important;"></i></a>';
|
203 |
}
|
204 |
}
|
|
|
|
|
205 |
|
206 |
-
|
207 |
-
} else {
|
208 |
-
|
209 |
-
if (get_option('mo_openid_facebook_share_enable')) {
|
210 |
-
|
211 |
-
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href=' . $url;
|
212 |
-
$html .= "<a rel='nofollow' title='Facebook' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 400);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><img alt='Facebook' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url('includes/images/icons/facebook.png', __FILE__) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
213 |
-
}
|
214 |
-
|
215 |
-
if (get_option('mo_openid_twitter_share_enable')) {
|
216 |
-
$link = empty($twitter_username) ? 'https://twitter.com/intent/tweet?text=' . $title . '&url=' . $url : 'https://twitter.com/intent/tweet?text=' . $title . '&url=' . $url . '&via=' . $twitter_username;
|
217 |
-
$html .= "<a rel='nofollow' title='Twitter' onclick='popupCenter(" . '"' . $link . '"' . ", 600, 300);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><img alt='Twitter' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url('includes/images/icons/twitter.png', __FILE__) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
218 |
}
|
|
|
219 |
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
231 |
}
|
232 |
-
if
|
233 |
-
$link = '
|
234 |
-
$html .= "<a rel='nofollow' title='
|
235 |
-
}
|
236 |
-
if (get_option('mo_openid_linkedin_share_enable')) {
|
237 |
-
$link = 'https://www.linkedin.com/shareArticle?mini=true&title=' . $title . '&url=' . $url . '&summary=' . $excerpt;
|
238 |
-
$html .= "<a rel='nofollow' title='LinkedIn' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><img alt='LinkedIn' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url('includes/images/icons/linkedin.png', __FILE__) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
239 |
}
|
240 |
|
241 |
-
if
|
242 |
-
$link = 'http://www.reddit.com/submit?url='
|
243 |
-
$html .= "<a rel='nofollow' title='Reddit' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><img alt='Reddit' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='"
|
244 |
}
|
245 |
|
246 |
-
if
|
247 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
248 |
}
|
249 |
|
250 |
-
if
|
251 |
-
$link = 'https://getpocket.com/save?url='
|
252 |
-
$html .= "<a rel='nofollow' title='Pocket' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><img alt='Pocket' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='"
|
253 |
}
|
254 |
-
if
|
255 |
-
$link = 'http://digg.com/submit?url='
|
256 |
-
$html .= "<a rel='nofollow' title='Digg' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><img alt='Digg' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='"
|
257 |
}
|
258 |
-
if
|
259 |
-
$link = 'http://www.delicious.com/save?v=5&noui&jump=close&url='
|
260 |
-
$html .= "<a rel='nofollow' title='Delicious' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><img alt='Delicious' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='"
|
261 |
}
|
262 |
-
if
|
263 |
-
$link = 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st.comments='
|
264 |
-
$html .= "<a rel='nofollow' title='Odnoklassniki' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><img alt='Odnoklassniki' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='"
|
265 |
}
|
266 |
-
if
|
267 |
-
$html .= "<a rel='nofollow' title='Email this page' onclick='popupCenter(" . '"mailto:?subject= ' . $email_subject . '&body=' . $email_body
|
268 |
}
|
269 |
-
if
|
270 |
-
$html .= "<a rel='nofollow' title='Print this page' onclick='javascript:window.print();' class='mo-openid-share-link' style='margin-left : " .
|
271 |
}
|
272 |
-
if
|
273 |
|
274 |
-
if (wp_is_mobile())
|
275 |
-
$html .= '<a rel="nofollow" title="Whatsapp" href="whatsapp://send?text=' . $url . '" class="mo-openid-share-link" style="margin-left : '
|
276 |
-
|
277 |
-
}
|
278 |
-
|
279 |
-
|
|
|
280 |
}
|
281 |
|
282 |
}
|
|
|
|
|
283 |
|
|
|
284 |
|
285 |
}
|
286 |
$html .= "</div>";
|
@@ -289,7 +463,6 @@ function mo_openid_share_shortcode( $atts = '', $title = '', $excerpt = '' )
|
|
289 |
|
290 |
$html .= "</p></div><br/>";
|
291 |
|
292 |
-
|
293 |
$html .= '<script>';
|
294 |
|
295 |
$html .= 'function popupCenter(pageURL, w,h) {';
|
@@ -302,316 +475,319 @@ function mo_openid_share_shortcode( $atts = '', $title = '', $excerpt = '' )
|
|
302 |
$html .= "e.setAttribute('type','text/javascript');";
|
303 |
$html .= "e.setAttribute('charset','UTF-8');";
|
304 |
$html .= "e.setAttribute('src','https://assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);
|
305 |
-
|
306 |
$html .= '</script>';
|
307 |
|
308 |
return $html;
|
309 |
-
|
310 |
}
|
311 |
|
312 |
function mo_openid_vertical_share_shortcode( $atts = '', $title = '', $excerpt = '' ) {
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
$spaceBetweenIcons = isset( $atts['space'] )? esc_attr($atts['space']) : '10';
|
322 |
-
|
323 |
-
$alignment = isset( $atts['alignment'] )? esc_attr($atts['alignment']) : 'left';
|
324 |
-
$left_offset = isset( $atts['leftoffset'] )? esc_attr($atts['leftoffset']) : '20';
|
325 |
-
$right_offset = isset( $atts['rightoffset'] )? esc_attr($atts['rightoffset']) : '10';
|
326 |
-
$top_offset = isset( $atts['topoffset'] )? esc_attr($atts['topoffset']) : '100';
|
327 |
-
|
328 |
-
|
329 |
-
$twitter_username = get_option('mo_openid_share_twitter_username');
|
330 |
-
$url = isset( $atts['url'])? esc_url($atts['url']) : esc_url("http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]");
|
331 |
-
|
332 |
-
$email_subject = esc_attr(get_option('mo_openid_share_email_subject'));
|
333 |
-
$email_body = get_option('mo_openid_share_email_body');
|
334 |
-
$email_body = str_replace('##url##', $url, $email_body);
|
335 |
-
|
336 |
-
if ($custom_theme == 'custombackground') {
|
337 |
-
$custom_theme = 'custom';
|
338 |
-
}
|
339 |
-
if ($custom_theme == 'nobackground') {
|
340 |
-
$custom_theme = 'customFont';
|
341 |
-
}
|
342 |
-
|
343 |
-
$html .= "<div class='mo_openid_vertical' style='" . (isset($alignment) && $alignment != '' ? $alignment . ': ' . (${$alignment . '_offset'} == '' ? 0 : ${$alignment . '_offset'}) . 'px;' : '') . (isset($top_offset) ? 'top: ' . ($top_offset == '' ? 0 : $top_offset) . 'px;' : '') . "'>";
|
344 |
-
|
345 |
-
$html .= '<div class="mo-openid-app-icons circle ">';
|
346 |
-
$html .= '<p>';
|
347 |
-
|
348 |
-
$html .= "<div id='mo_floating_vertical_shortcode'>";
|
349 |
-
if ($custom_theme == 'custom') {
|
350 |
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
|
356 |
-
if (get_option('mo_openid_twitter_share_enable')) {
|
357 |
-
$link = empty($twitter_username) ? 'https://twitter.com/intent/tweet?text=' . $title . '&url=' . $url : 'https://twitter.com/intent/tweet?text=' . $title . '&url=' . $url . '&via=' . $twitter_username;
|
358 |
-
$html .= "<a rel='nofollow' title='Twitter' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='mo-custom-share-icon " . $selected_theme . " fa fa-twitter' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
359 |
|
360 |
-
|
|
|
361 |
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
$link = 'http://www.tumblr.com/share/link?url=' . $url . '&title=' . $title;
|
373 |
-
$html .= "<a rel='nofollow' title='Tumblr' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='mo-custom-share-icon " . $selected_theme . " fa fa-tumblr' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
374 |
-
}
|
375 |
-
if (get_option('mo_openid_stumble_share_enable')) {
|
376 |
-
$link = 'http://www.stumbleupon.com/submit?url=' . $url . '&title=' . $title;
|
377 |
-
$html .= "<a rel='nofollow' title='StumbleUpon' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='mo-custom-share-icon " . $selected_theme . " fa fa-stumbleupon' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
378 |
-
}
|
379 |
-
if (get_option('mo_openid_linkedin_share_enable')) {
|
380 |
-
$link = 'https://www.linkedin.com/shareArticle?mini=true&title=' . $title . '&url=' . $url . '&summary=' . $excerpt;
|
381 |
|
382 |
|
383 |
-
|
384 |
|
385 |
-
|
|
|
386 |
|
387 |
-
|
388 |
-
|
389 |
-
$html .= "<a rel='nofollow' title='Reddit' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='mo-custom-share-icon " . $selected_theme . " fa fa-reddit' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
390 |
-
}
|
391 |
|
392 |
-
|
393 |
-
|
|
|
|
|
394 |
|
395 |
-
|
|
|
|
|
396 |
|
397 |
-
|
398 |
-
$link = 'https://getpocket.com/save?url=' . $url . '&title=' . $title;
|
399 |
-
$html .= "<a rel='nofollow' title='Pocket' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='mo-custom-share-icon " . $selected_theme . " fa fa-get-pocket' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
400 |
-
}
|
401 |
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
}
|
406 |
-
if (get_option('mo_openid_delicious_share_enable')) {
|
407 |
-
$link = 'http://www.delicious.com/save?v=5&noui&jump=close&url=' . $url . '&title=' . $title;
|
408 |
-
$html .= "<a rel='nofollow' title='Delicious' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='mo-custom-share-icon " . $selected_theme . " fa fa-delicious' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
409 |
-
}
|
410 |
-
if (get_option('mo_openid_odnoklassniki_share_enable')) {
|
411 |
-
$link = 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st.comments=' . $excerpt . '&st._surl=' . $url;
|
412 |
-
$html .= "<a rel='nofollow' title='Odnoklassniki' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='mo-custom-share-icon " . $selected_theme . " fa fa-odnoklassniki' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
413 |
-
}
|
414 |
-
if (get_option('mo_openid_mail_share_enable')) {
|
415 |
-
$html .= "<a rel='nofollow' title='Email this page' onclick='popupCenter(" . '"mailto:?subject= ' . $email_subject . '&body=' . $email_body . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='mo-custom-share-icon " . $selected_theme . " fa fa-envelope' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
416 |
-
}
|
417 |
-
if (get_option('mo_openid_print_share_enable')) {
|
418 |
-
$html .= "<a rel='nofollow' title='Print this page' onclick='javascript:window.print();' class='mo-openid-share-link' ><i class='mo-custom-share-icon " . $selected_theme . " fa fa-print' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" . ($sharingSize - 16) . "px !important;background-color:#" . $custom_color . ";height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
419 |
-
}
|
420 |
-
if (get_option('mo_openid_whatsapp_share_enable')) {
|
421 |
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
428 |
|
429 |
|
430 |
-
|
431 |
|
432 |
-
|
433 |
-
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href=' . $url;
|
434 |
-
$html .= "<a rel='nofollow' title='Facebook' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='fa fa-facebook' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
435 |
-
}
|
436 |
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
|
442 |
-
|
|
|
443 |
|
444 |
-
|
445 |
-
$html .= "<a rel='nofollow' title='Google' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link'><i class='fa fa-google-plus' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
446 |
-
}
|
447 |
-
if (get_option('mo_openid_vkontakte_share_enable')) {
|
448 |
-
$link = 'http://vk.com/share.php?url=' . $url . '&title=' . $title . '&description=' . $excerpt;
|
449 |
-
$html .= "<a rel='nofollow' title='Vkontakte' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='fa fa-vk' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
450 |
-
}
|
451 |
-
if (get_option('mo_openid_tumblr_share_enable')) {
|
452 |
-
$link = 'http://www.tumblr.com/share/link?url=' . $url . '&title=' . $title;
|
453 |
-
$html .= "<a rel='nofollow' title='Tumblr' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='fa fa-tumblr' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
454 |
-
}
|
455 |
-
if (get_option('mo_openid_stumble_share_enable')) {
|
456 |
-
$link = 'http://www.stumbleupon.com/submit?url=' . $url . '&title=' . $title;
|
457 |
-
$html .= "<a rel='nofollow' title='StumbleUpon' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='fa fa-stumbleupon' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
458 |
-
}
|
459 |
-
if (get_option('mo_openid_linkedin_share_enable')) {
|
460 |
-
$link = 'https://www.linkedin.com/shareArticle?mini=true&title=' . $title . '&url=' . $url . '&summary=' . $excerpt;
|
461 |
-
$html .= "<a rel='nofollow' title='LinkedIn' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='fa fa-linkedin' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
462 |
-
}
|
463 |
-
if (get_option('mo_openid_reddit_share_enable')) {
|
464 |
-
$link = 'http://www.reddit.com/submit?url=' . $url . '&title=' . $title;
|
465 |
-
$html .= "<a rel='nofollow' title='Reddit' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='fa fa-reddit' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
466 |
-
}
|
467 |
-
if (get_option('mo_openid_pinterest_share_enable')) {
|
468 |
-
$html .= "<a rel='nofollow' title='Pinterest' href='javascript:pinIt();' class='mo-openid-share-link' ><i class='fa fa-pinterest' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . ($sharingSize - 5) . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
469 |
-
}
|
470 |
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
489 |
}
|
490 |
-
|
491 |
-
$html .=
|
492 |
}
|
493 |
-
|
494 |
|
495 |
-
if (wp_is_mobile()) {
|
496 |
-
$html .= '<a rel="nofollow" title="Whatsapp" href="whatsapp://send?text=' . $url . "\" class='mo-openid-share-link' ><i class='fa fa-whatsapp' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
497 |
-
} else {
|
498 |
-
$html .= '<a rel="nofollow" title="Whatsapp" target ="_blank" href="https://web.whatsapp.com/send?text=' . $url . "\" class='mo-openid-share-link' ><i class='fa fa-whatsapp' style='margin-bottom : " . ($spaceBetweenIcons - 4) . "px !important;padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>";
|
499 |
-
}
|
500 |
-
}
|
501 |
|
|
|
502 |
|
503 |
-
|
504 |
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
|
515 |
-
|
516 |
-
$link = 'https://plus.google.com/share?url=' . $url;
|
517 |
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
564 |
}
|
565 |
-
|
566 |
-
|
567 |
-
$html .= '<a rel="nofollow" title="Whatsapp" href="whatsapp://send?text=' . $url . "\" class='mo-openid-share-link'><img alt='Whatsapp' style= 'margin-bottom : " . ($spaceBetweenIcons - 6) . "px !important;height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url('includes/images/icons/whatsapp.png', __FILE__) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
568 |
-
} else {
|
569 |
-
$html .= '<a rel="nofollow" title="Whatsapp" target ="_blank" href="https://web.whatsapp.com/send?text=' . $url . "\" class='mo-openid-share-link'><img alt='Whatsapp' style= 'margin-bottom : " . ($spaceBetweenIcons - 6) . "px !important;height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url('includes/images/icons/whatsapp.png', __FILE__) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
570 |
-
}
|
571 |
}
|
572 |
-
|
573 |
}
|
574 |
-
$html .= "</div>";
|
575 |
-
//}
|
576 |
|
577 |
|
578 |
-
|
579 |
|
|
|
580 |
|
581 |
-
if
|
582 |
-
$
|
583 |
-
$html .= "
|
584 |
-
|
585 |
-
$html .= "if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4))) {";
|
586 |
-
$html .= "isMobile = true;";
|
587 |
-
$html .= "}";
|
588 |
|
589 |
-
|
590 |
-
$
|
591 |
-
$html .= '
|
592 |
-
$html .= "}";
|
593 |
-
$html .= "}";
|
594 |
-
$html .= "hideVerticalShare();";
|
595 |
-
$html .= "</script>";
|
596 |
}
|
597 |
|
|
|
|
|
598 |
|
599 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
600 |
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
605 |
|
606 |
-
$html .= 'function pinIt(){';
|
607 |
-
$html .= 'var e = document.createElement("script");';
|
608 |
-
$html .= "e.setAttribute('type','text/javascript');";
|
609 |
-
$html .= "e.setAttribute('charset','UTF-8');";
|
610 |
-
$html .= "e.setAttribute('src','https://assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);";
|
611 |
-
$html .= "document.body.appendChild(e);}";
|
612 |
-
$html .= '</script>';
|
613 |
|
614 |
-
|
615 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
616 |
}
|
617 |
?>
|
1 |
<?php
|
2 |
|
3 |
+
function count_convert($count)
|
4 |
+
{
|
5 |
+
if($count=="")
|
6 |
+
$count=0;
|
7 |
+
if($count>=1000000){
|
8 |
+
$count=$count/1000000;
|
9 |
+
$count=$count."M";
|
10 |
+
}
|
11 |
+
else if($count>=1000)
|
12 |
+
{
|
13 |
+
$ncount=$count/1000;
|
14 |
+
$count=$ncount."K";
|
15 |
+
}
|
16 |
+
return $count;
|
17 |
+
}
|
18 |
+
|
19 |
//shortcode for horizontal sharing
|
20 |
+
function mo_openid_share_shortcode( $atts = '', $title = '', $excerpt = '' ) {
|
21 |
+
$html = '';
|
22 |
+
$selected_theme = isset( $atts['shape'] )? esc_attr($atts['shape']) : esc_attr(get_option('mo_openid_share_theme'));
|
23 |
+
$selected_direction = esc_attr(get_option('mo_openid_share_widget_customize_direction'));
|
24 |
+
$sharingSize = isset( $atts['size'] )? esc_attr($atts['size']) : esc_attr(get_option('mo_sharing_icon_custom_size'));
|
25 |
+
$custom_color = isset( $atts['backgroundcolor'] )? esc_attr($atts['backgroundcolor']) : esc_attr(get_option('mo_sharing_icon_custom_color'));
|
26 |
+
$custom_theme = isset( $atts['theme'] )? esc_attr($atts['theme']) : esc_attr(get_option('mo_openid_share_custom_theme'));
|
27 |
+
$fontColor = isset( $atts['fontcolor'] )? esc_attr($atts['fontcolor']) : esc_attr(get_option('mo_sharing_icon_custom_font'));
|
28 |
+
$spaceBetweenIcons = isset( $atts['space'] )? esc_attr($atts['space']) : esc_attr(get_option('mo_sharing_icon_space'));
|
29 |
+
$textColor = isset( $atts['color'] ) ? esc_attr($atts['color']) : '#'.esc_attr(get_option('mo_openid_share_widget_customize_text_color'));
|
30 |
+
$text = isset( $atts['heading'] ) ? esc_attr($atts ['heading']) : esc_attr(get_option('mo_openid_share_widget_customize_text'));
|
31 |
+
$twitter_username = get_option('mo_openid_share_twitter_username');
|
32 |
+
$url = isset( $atts['url'])? esc_url($atts['url']) : esc_url(get_permalink());
|
33 |
+
$sharing_counts = isset( $atts['sharecnt'] )? esc_attr($atts['sharecnt']) : esc_attr(get_option('mo_openid_share_count'));
|
34 |
+
if(!$url) {
|
35 |
+
$url = esc_attr(get_site_url());
|
36 |
+
}
|
37 |
|
38 |
+
if($fontColor)
|
|
|
|
|
39 |
{
|
40 |
+
if(ctype_xdigit($fontColor) && strlen($fontColor)==6 && strpos($fontColor,'#')==false){
|
41 |
+
$fontColor= "#".$fontColor;
|
42 |
+
}else
|
43 |
+
$fontColor;
|
44 |
+
}
|
45 |
+
|
46 |
+
if($sharing_counts=="yes" || $sharing_counts=="1")
|
47 |
+
$sharing_counts=1;
|
48 |
+
else
|
49 |
+
$sharing_counts=0;
|
50 |
+
|
51 |
+
$email_subject = esc_html(get_option('mo_openid_share_email_subject'));
|
52 |
+
$email_body = get_option('mo_openid_share_email_body');
|
53 |
+
$email_body = str_replace('##url##', $url, $email_body);
|
54 |
+
|
55 |
+
if($custom_theme == 'custombackground'){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
$custom_theme = 'custom';
|
57 |
}
|
58 |
+
if($custom_theme == 'nobackground'){
|
59 |
$custom_theme = 'customFont';
|
60 |
}
|
61 |
|
62 |
$orientation = 'hor';
|
63 |
|
|
|
64 |
$html .= '<div class="mo-openid-app-icons circle ">';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
|
66 |
+
$html .= '<p style="margin-top:4% !important; margin-bottom:0px !important; color:'.$textColor.'">';
|
67 |
+
if( $orientation == 'hor' ) {
|
68 |
+
$html .= $text . '</p>';
|
69 |
+
$html .= "<div class='horizontal'>";
|
70 |
+
if($custom_theme == 'custom'){
|
71 |
+
if($sharing_counts) {
|
72 |
+
$html.="<div class='sharecount'><ul class='share_count_icon'>";
|
73 |
+
}
|
74 |
+
if( get_option('mo_openid_facebook_share_enable') ) {
|
75 |
+
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href='.$url;
|
76 |
+
if ($sharing_counts){
|
77 |
+
if(get_option('mo_openid_Facebook_share_count_api')!="") {
|
78 |
+
$count = get_transient('facebook');
|
79 |
+
if ($count == false) {
|
80 |
+
$content = file_get_contents("https://graph.facebook.com/v3.3/?id=" . $url . "&fields=engagement&access_token=" . get_option('mo_openid_Facebook_share_count_api'));
|
81 |
+
$content = explode('share_count":', $content);
|
82 |
+
$content = explode(',', $content[1]);
|
83 |
+
$count = $content[0];
|
84 |
+
set_transient('facebook', $count, 3600);
|
85 |
+
}
|
86 |
+
}
|
87 |
+
$html .= "<li>";}
|
88 |
+
$html.="<a rel='nofollow' title='Facebook' onclick='popupCenter(". '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " .($spaceBetweenIcons) . "px !important'><i class='mo-custom-share-icon " .$selected_theme. " fa fa-facebook' style='padding-top:8px;text-align:center;color:#ffffff;font-size:" .($sharingSize-16). "px !important;background-color:#" .$custom_color. ";height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>"; if($sharing_counts && get_option('mo_openid_Facebook_share_count_api')!=""){$html .= "<span style='margin-left : " . ($spaceBetweenIcons) . "px !important'>$count</span></li>";} else{$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
89 |
+
}
|
90 |
+
|
91 |
+
if( get_option('mo_openid_twitter_share_enable') ) {
|
92 |
+
$link = empty($twitter_username) ? 'https://twitter.com/intent/tweet?text='.$title.'&url='.$url : 'https://twitter.com/intent/tweet?text='.$title.'&url='.$url. '&via='.$twitter_username;
|
93 |
+
if ($sharing_counts){$html .= "<li>";} $html .= "<a rel='nofollow' title='Twitter' onclick='popupCenter(". '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " .($spaceBetweenIcons) . "px !important'><i class='mo-custom-share-icon " .$selected_theme. " fa fa-twitter' style='padding-top:8px;text-align:center;color:#ffffff;font-size:" .($sharingSize-16). "px !important;background-color:#" .$custom_color. ";height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>"; if($sharing_counts){$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
94 |
+
}
|
95 |
+
|
96 |
+
if( get_option('mo_openid_google_share_enable') ) {
|
97 |
+
if ($sharing_counts){
|
98 |
+
$html .= "<li>";}
|
99 |
+
$link = 'https://plus.google.com/share?url='.$url;
|
100 |
+
$html .= "<a rel='nofollow' title='Google' onclick='popupCenter(". '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " .($spaceBetweenIcons) . "px !important'><i class='mo-custom-share-icon " .$selected_theme. " fa fa-google-plus' style='padding-top:8px;text-align:center;color:#ffffff;font-size:" .($sharingSize-16). "px !important;background-color:#" .$custom_color. ";height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>"; if($sharing_counts){$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
101 |
+
}
|
102 |
+
if( get_option('mo_openid_vkontakte_share_enable') ) {
|
103 |
+
$link = 'http://vk.com/share.php?url='.$url.'&title='.$title.'&description='.$excerpt;
|
104 |
+
if ($sharing_counts){
|
105 |
+
$count = get_transient( 'vkontakte' );
|
106 |
+
if($count===false) {
|
107 |
+
$content = file_get_contents("https://vk.com/share.php?act=count&url=".$url);
|
108 |
+
$content=explode(',',$content);
|
109 |
+
$content=explode(')',$content[1]);
|
110 |
+
$count=$content[0];
|
111 |
+
$count=count_convert($count);
|
112 |
+
set_transient('vkontakte', $count, 3600);
|
113 |
+
}
|
114 |
+
$html .= "<li>";
|
115 |
+
}
|
116 |
+
$html .= "<a rel='nofollow' title='Vkontakte' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " .($spaceBetweenIcons) . "px !important'><i class='mo-custom-share-icon " .$selected_theme. " fa fa-vk' style='padding-top:8px;text-align:center;color:#ffffff;font-size:" .($sharingSize-16). "px !important;background-color:#" .$custom_color. ";height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>"; if($sharing_counts){$html .= "<span style='margin-left : " . ($spaceBetweenIcons) . "px !important'>$count</span></li>";};
|
117 |
+
}
|
118 |
+
if( get_option('mo_openid_tumblr_share_enable') ) {
|
119 |
+
$link = 'http://www.tumblr.com/share/link?url='.$url.'&title='.$title;
|
120 |
+
if ($sharing_counts){$html .= "<li>";} $html .= "<a rel='nofollow' title='Tumblr' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " .($spaceBetweenIcons) . "px !important'><i class='mo-custom-share-icon " .$selected_theme. " fa fa-tumblr' style='padding-top:8px;text-align:center;color:#ffffff;font-size:" .($sharingSize-16). "px !important;background-color:#" .$custom_color. ";height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>"; if($sharing_counts){$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
121 |
+
}
|
122 |
+
if( get_option('mo_openid_stumble_share_enable') ) {
|
123 |
+
$link = 'http://www.stumbleupon.com/submit?url='.$url.'&title='.$title;
|
124 |
+
if ($sharing_counts){
|
125 |
+
$count = get_transient( 'stumbleupon' );
|
126 |
+
if($count===false) {
|
127 |
+
$content = file_get_contents("http://www.stumbleupon.com/services/1.01/badge.getinfo?url=" . $url);
|
128 |
+
$content = explode(',', $content);
|
129 |
+
$content = explode(':', $content[5]);
|
130 |
+
$count = $content[1];
|
131 |
+
$count=count_convert($count);
|
132 |
+
set_transient('stumbleupon', $count, 3600);
|
133 |
+
}
|
134 |
+
$html .= "<li>";
|
135 |
+
}
|
136 |
+
$html .= "<a rel='nofollow' title='StumbleUpon' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " .($spaceBetweenIcons) . "px !important'><i class='mo-custom-share-icon " .$selected_theme. " fa fa-stumbleupon' style='padding-top:8px;text-align:center;color:#ffffff;font-size:" .($sharingSize-16). "px !important;background-color:#" .$custom_color. ";height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>"; if($sharing_counts){$html .= "<span style='margin-left : " . ($spaceBetweenIcons) . "px !important'>$count</span></li>";};
|
137 |
}
|
138 |
+
if( get_option('mo_openid_linkedin_share_enable') ) {
|
139 |
+
$link = 'https://www.linkedin.com/shareArticle?mini=true&title='.$title.'&url='.$url.'&summary='.$excerpt;
|
140 |
+
if ($sharing_counts){
|
141 |
+
$html .= "<li>";
|
142 |
+
}
|
143 |
+
$html .= "<a rel='nofollow' title='LinkedIn' onclick='popupCenter(". '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " .($spaceBetweenIcons) . "px !important'><i class='mo-custom-share-icon " .$selected_theme. " fa fa-linkedin' style='padding-top:8px;text-align:center;color:#ffffff;font-size:" .($sharingSize-16). "px !important;background-color:#" .$custom_color. ";height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>"; if($sharing_counts){$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
144 |
}
|
145 |
|
146 |
+
if( get_option('mo_openid_reddit_share_enable') ) {
|
147 |
+
$link = 'http://www.reddit.com/submit?url='.$url.'&title='.$title;
|
148 |
+
if ($sharing_counts){
|
149 |
+
$html .= "<li>";
|
150 |
+
}
|
151 |
+
$html .= "<a rel='nofollow' title='Reddit' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " .($spaceBetweenIcons) . "px !important'><i class='mo-custom-share-icon " .$selected_theme. " fa fa-reddit' style='padding-top:8px;text-align:center;color:#ffffff;font-size:" .($sharingSize-16). "px !important;background-color:#" .$custom_color. ";height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>"; if($sharing_counts){$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
152 |
+
}
|
153 |
+
|
154 |
+
if( get_option('mo_openid_pinterest_share_enable') ) {
|
155 |
+
if ($sharing_counts){
|
156 |
+
$count = get_transient( 'pinterest' );
|
157 |
+
if($count===false) {
|
158 |
+
$content_pint = file_get_contents("https://widgets.pinterest.com/v1/urls/count.json?source=6&url=".$url);
|
159 |
+
$body = preg_replace( '/^receiveCount\((.*)\)$/', '\\1', $content_pint );
|
160 |
+
$count=explode(":",$body);
|
161 |
+
$count=explode("}",$count[3]);
|
162 |
+
$count=count_convert($count[0]);
|
163 |
+
set_transient('pinterest', $count, 3600);
|
164 |
+
}
|
165 |
+
$html .= "<li>";
|
166 |
+
}
|
167 |
+
$html .= "<a rel='nofollow' title='Pinterest' href='javascript:pinIt();' class='mo-openid-share-link' style='margin-left : " .($spaceBetweenIcons) . "px !important'><i class='mo-custom-share-icon " .$selected_theme. " fa fa-pinterest' style='padding-top:3px;text-align:center;color:#ffffff;font-size:" .($sharingSize-10). "px !important;background-color:#" .$custom_color. ";height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>"; if($sharing_counts){$html .= "<span style='margin-left : " . ($spaceBetweenIcons) . "px !important'>$count</span></li>";};
|
168 |
}
|
169 |
|
170 |
+
if( get_option('mo_openid_pocket_share_enable') ) {
|
171 |
+
$link = 'https://getpocket.com/save?url='.$url.'&title='.$title;
|
172 |
+
if ($sharing_counts){$html .= "<li>";} $html .= "<a rel='nofollow' title='Pocket' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " .($spaceBetweenIcons) . "px !important'><i class='mo-custom-share-icon " .$selected_theme. " fa fa-get-pocket' style='padding-top:8px;text-align:center;color:#ffffff;font-size:" .($sharingSize-16). "px !important;background-color:#" .$custom_color. ";height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>"; if($sharing_counts){$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
173 |
}
|
174 |
+
if( get_option('mo_openid_digg_share_enable') ) {
|
175 |
+
$link = 'http://digg.com/submit?url='.$url.'&title='.$title;
|
176 |
+
if ($sharing_counts){$html .= "<li>";} $html .= "<a rel='nofollow' title='Digg' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " .($spaceBetweenIcons) . "px !important'><i class='mo-custom-share-icon " .$selected_theme. " fa fa-digg' style='padding-top:8px;text-align:center;color:#ffffff;font-size:" .($sharingSize-16). "px !important;background-color:#" .$custom_color. ";height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>"; if($sharing_counts){$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
177 |
}
|
178 |
+
if( get_option('mo_openid_delicious_share_enable') ) {
|
179 |
+
$link = 'http://www.delicious.com/save?v=5&noui&jump=close&url='.$url.'&title='.$title;
|
180 |
+
if ($sharing_counts){$html .= "<li>";} $html .= "<a rel='nofollow' title='Delicious' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " .($spaceBetweenIcons) . "px !important'><i class='mo-custom-share-icon " .$selected_theme. " fa fa-delicious' style='padding-top:8px;text-align:center;color:#ffffff;font-size:" .($sharingSize-16). "px !important;background-color:#" .$custom_color. ";height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>"; if($sharing_counts){$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
181 |
}
|
182 |
+
if( get_option('mo_openid_odnoklassniki_share_enable') ) {
|
183 |
+
$link = 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st.comments='.$excerpt.'&st._surl='.$url;
|
184 |
+
if ($sharing_counts){$html .= "<li>";} $html .= "<a rel='nofollow' title='Odnoklassniki' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " .($spaceBetweenIcons) . "px !important'><i class='mo-custom-share-icon " .$selected_theme. " fa fa-odnoklassniki' style='padding-top:8px;text-align:center;color:#ffffff;font-size:" .($sharingSize-16). "px !important;background-color:#" .$custom_color. ";height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>"; if($sharing_counts){$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
185 |
}
|
186 |
+
if( get_option('mo_openid_mail_share_enable') ) {
|
187 |
+
if ($sharing_counts){$html .= "<li>";} $html .= "<a rel='nofollow' title='Email this page' onclick='popupCenter(" . '"mailto:?subject= ' . $email_subject . '&body=' . $email_body. '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " .($spaceBetweenIcons) . "px !important'><i class='mo-custom-share-icon " .$selected_theme. " fa fa-envelope' style='padding-top:8px;text-align:center;color:#ffffff;font-size:" .($sharingSize-16). "px !important;background-color:#" .$custom_color. ";height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>"; if($sharing_counts){$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
188 |
}
|
189 |
+
if( get_option('mo_openid_print_share_enable') ) {
|
190 |
+
if ($sharing_counts){$html .= "<li>";} $html .= "<a rel='nofollow' title='Print this page' onclick='javascript:window.print();' class='mo-openid-share-link' style='margin-left : " .($spaceBetweenIcons) . "px !important'><i class='mo-custom-share-icon " .$selected_theme. " fa fa-print' style='padding-top:8px;text-align:center;color:#ffffff;font-size:" .($sharingSize-16). "px !important;background-color:#" .$custom_color. ";height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>"; if($sharing_counts){$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
191 |
}
|
192 |
+
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
|
|
|
|
|
|
|
|
|
|
193 |
|
194 |
+
if(!wp_is_mobile()){
|
195 |
+
if ($sharing_counts){$html .= "<li>";} $html .= '<a rel="nofollow" title="Whatsapp" target ="_blank" href="https://web.whatsapp.com/send?text=' . $url .'" class="mo-openid-share-link" style="margin-left : '.($spaceBetweenIcons) . 'px !important;border-bottom:0px !important;"><i class="mo-custom-share-icon ' .$selected_theme. ' fa fa-whatsapp" style="padding-top:8px;text-align:center;color:#ffffff;font-size: '.($sharingSize-16). 'px !important;background-color:#' .$custom_color. ';height: '.$sharingSize. 'px !important;width:' .$sharingSize. 'px !important;"></i></a>'; if($sharing_counts){$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
196 |
}
|
197 |
+
else{
|
198 |
+
if ($sharing_counts){$html .= "<li>";} $html .= '<a rel="nofollow" title="Whatsapp" href="whatsapp://send?text=' . $url .'" class="mo-openid-share-link" style="margin-left : '.($spaceBetweenIcons) . 'px !important;border-bottom:0px !important;"><i class="mo-custom-share-icon ' .$selected_theme. ' fa fa-whatsapp" style="padding-top:8px;text-align:center;color:#ffffff;font-size: '.($sharingSize-16). 'px !important;background-color:#' .$custom_color. ';height: '.$sharingSize. 'px !important;width:' .$sharingSize. 'px !important;"></i></a>'; if($sharing_counts){$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
199 |
|
200 |
+
}
|
201 |
+
}
|
202 |
+
if($sharing_counts){
|
203 |
+
$html.="</ul></div>";
|
204 |
}
|
205 |
|
206 |
+
}
|
207 |
|
208 |
+
else if($custom_theme == 'customFont') {
|
209 |
+
if ($sharing_counts) {
|
210 |
+
$html .= "<div class='sharecount'><ul class='share_count_icon'>";
|
211 |
+
}
|
212 |
if (get_option('mo_openid_facebook_share_enable')) {
|
|
|
213 |
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href=' . $url;
|
214 |
+
if ($sharing_counts){
|
215 |
+
if(get_option('mo_openid_Facebook_share_count_api')!="") {
|
216 |
+
$count = get_transient('facebook');
|
217 |
+
if ($count === false) {
|
218 |
+
$content = file_get_contents("https://graph.facebook.com/v3.3/?id=" . $url . "&fields=engagement&access_token=" . get_option('mo_openid_Facebook_share_count_api'));
|
219 |
+
$content = explode('share_count":', $content);
|
220 |
+
$content = explode(',', $content[1]);
|
221 |
+
$count = $content[0];
|
222 |
+
set_transient('facebook', $count, 3600);
|
223 |
+
}
|
224 |
+
}
|
225 |
+
$html .= "<li style='line-height: 0.0px'>";} $html .= "<a rel='nofollow' title='Facebook' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons - 6) . "px !important'><i class=' " . $selected_theme . " fa fa-facebook' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>"; if($sharing_counts && get_option('mo_openid_Facebook_share_count_api')!=""){$html .= "<span style='margin-left : " . ($spaceBetweenIcons) . "px !important'>$count</span></li>";} else{$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
226 |
}
|
227 |
|
228 |
if (get_option('mo_openid_twitter_share_enable')) {
|
229 |
$link = empty($twitter_username) ? 'https://twitter.com/intent/tweet?text=' . $title . '&url=' . $url : 'https://twitter.com/intent/tweet?text=' . $title . '&url=' . $url . '&via=' . $twitter_username;
|
230 |
+
if ($sharing_counts){$html .= "<li style='line-height: 0.0px'>";} $html .= "<a rel='nofollow' title='Twitter' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons - 6) . "px !important'><i class=' " . $selected_theme . " fa fa-twitter' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>"; if($sharing_counts){$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
231 |
}
|
232 |
|
233 |
if (get_option('mo_openid_google_share_enable')) {
|
234 |
|
235 |
$link = 'https://plus.google.com/share?url=' . $url;
|
236 |
+
if ($sharing_counts){
|
237 |
+
$html .= "<li style='line-height: 0.0px'>";} $html .= "<a rel='nofollow' title='Google' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons - 6) . "px !important'><i class='fa fa-google-plus' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>"; if($sharing_counts){$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
238 |
}
|
239 |
if (get_option('mo_openid_vkontakte_share_enable')) {
|
240 |
$link = 'http://vk.com/share.php?url=' . $url . '&title=' . $title . '&description=' . $excerpt;
|
241 |
+
if ($sharing_counts){
|
242 |
+
$count = get_transient( 'vkontakte' );
|
243 |
+
if($count===false) {
|
244 |
+
$content = file_get_contents("https://vk.com/share.php?act=count&url=".$url);
|
245 |
+
$content=explode(',',$content);
|
246 |
+
$content=explode(')',$content[1]);
|
247 |
+
$count=$content[0];
|
248 |
+
$count=count_convert($count);
|
249 |
+
set_transient('vkontakte', $count, 3600);
|
250 |
+
}
|
251 |
+
$html .= "<li style='line-height: 0.0px'>";} $html .= "<a rel='nofollow' title='Vkontakte' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons - 6) . "px !important'><i class=' " . $selected_theme . " fa fa-vk' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>"; if($sharing_counts){$html .= "<span style='margin-left : " . ($spaceBetweenIcons) . "px !important'>$count</span></li>";};
|
252 |
}
|
253 |
if (get_option('mo_openid_tumblr_share_enable')) {
|
254 |
$link = 'http://www.tumblr.com/share/link?url=' . $url . '&title=' . $title;
|
255 |
+
if ($sharing_counts){$html .= "<li style='line-height: 0.0px'>";} $html .= "<a rel='nofollow' title='Tumblr' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons - 6) . "px !important'><i class=' " . $selected_theme . " fa fa-tumblr' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>"; if($sharing_counts){$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
256 |
}
|
257 |
if (get_option('mo_openid_stumble_share_enable')) {
|
258 |
$link = 'http://www.stumbleupon.com/submit?url=' . $url . '&title=' . $title;
|
259 |
+
if ($sharing_counts){
|
260 |
+
$count = get_transient( 'stumbleupon' );
|
261 |
+
if($count===false) {
|
262 |
+
$content = file_get_contents("http://www.stumbleupon.com/services/1.01/badge.getinfo?url=" . $url);
|
263 |
+
$content = explode(',', $content);
|
264 |
+
$content = explode(':', $content[5]);
|
265 |
+
$count = $content[1];
|
266 |
+
$count=count_convert($count);
|
267 |
+
set_transient('stumbleupon', $count, 3600);
|
268 |
+
}
|
269 |
+
$html .= "<li style='line-height: 0.0px'>";
|
270 |
+
}
|
271 |
+
$html .= "<a rel='nofollow' title='StumbleUpon' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons - 6) . "px !important'><i class=' " . $selected_theme . " fa fa-stumbleupon' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>"; if($sharing_counts){$html .= "<span style='margin-left : " . ($spaceBetweenIcons) . "px !important'>$count</span></li>";};
|
272 |
}
|
273 |
if (get_option('mo_openid_linkedin_share_enable')) {
|
274 |
$link = 'https://www.linkedin.com/shareArticle?mini=true&title=' . $title . '&url=' . $url . '&summary=' . $excerpt;
|
275 |
+
if ($sharing_counts){$html .= "<li style='line-height: 0.0px'>";} $html .= "<a rel='nofollow' title='LinkedIn' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons - 6) . "px !important'><i class=' " . $selected_theme . " fa fa-linkedin' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>"; if($sharing_counts){$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
276 |
}
|
277 |
if (get_option('mo_openid_reddit_share_enable')) {
|
278 |
$link = 'http://www.reddit.com/submit?url=' . $url . '&title=' . $title;
|
279 |
+
if ($sharing_counts){$html .= "<li style='line-height: 0.0px'>";} $html .= "<a rel='nofollow' title='Reddit' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons - 6) . "px !important'><i class=' " . $selected_theme . " fa fa-reddit' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>"; if($sharing_counts){$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
280 |
}
|
281 |
if (get_option('mo_openid_pinterest_share_enable')) {
|
282 |
+
if ($sharing_counts){
|
283 |
+
$count = get_transient( 'pinterest' );
|
284 |
+
if($count===false) {
|
285 |
+
$content_pint = file_get_contents("https://widgets.pinterest.com/v1/urls/count.json?source=6&url=".$url);
|
286 |
+
$body = preg_replace( '/^receiveCount\((.*)\)$/', '\\1', $content_pint );
|
287 |
+
$count=explode(":",$body);
|
288 |
+
$count=explode("}",$count[3]);
|
289 |
+
$count=count_convert($count[0]);
|
290 |
+
set_transient('pinterest', $count, 3600);
|
291 |
+
}
|
292 |
+
$html .= "<li style='line-height: 0.0px'>";} $html .= "<a rel='nofollow' title='Pinterest' href='javascript:pinIt();' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons - 6) . "px !important'><i class=' " . $selected_theme . " fa fa-pinterest' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>"; if($sharing_counts){$html .= "<span style='margin-left : " . ($spaceBetweenIcons) . "px !important'>$count</span></li>";};
|
293 |
}
|
294 |
|
295 |
if (get_option('mo_openid_pocket_share_enable')) {
|
296 |
$link = 'https://getpocket.com/save?url=' . $url . '&title=' . $title;
|
297 |
+
if ($sharing_counts){$html .= "<li style='line-height: 0.0px'>";} $html .= "<a rel='nofollow' title='Pocket' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons - 6) . "px !important'><i class=' " . $selected_theme . " fa fa-get-pocket' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>"; if($sharing_counts){$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
298 |
}
|
299 |
if (get_option('mo_openid_digg_share_enable')) {
|
300 |
$link = 'http://digg.com/submit?url=' . $url . '&title=' . $title;
|
301 |
+
if ($sharing_counts){$html .= "<li style='line-height: 0.0px'>";} $html .= "<a rel='nofollow' title='Digg' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons - 6) . "px !important'><i class=' " . $selected_theme . " fa fa-digg' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>"; if($sharing_counts){$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
302 |
}
|
303 |
if (get_option('mo_openid_delicious_share_enable')) {
|
304 |
$link = 'http://www.delicious.com/save?v=5&noui&jump=close&url=' . $url . '&title=' . $title;
|
305 |
+
if ($sharing_counts){$html .= "<li style='line-height: 0.0px'>";} $html .= "<a rel='nofollow' title='Delicious' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons - 6) . "px !important'><i class=' " . $selected_theme . " fa fa-delicious' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>"; if($sharing_counts){$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
306 |
}
|
307 |
if (get_option('mo_openid_odnoklassniki_share_enable')) {
|
308 |
$link = 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st.comments=' . $excerpt . '&st._surl=' . $url;
|
309 |
+
if ($sharing_counts){$html .= "<li style='line-height: 0.0px'>";} $html .= "<a rel='nofollow' title='Odnoklassniki' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons - 6) . "px !important'><i class=' " . $selected_theme . " fa fa-odnoklassniki' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>"; if($sharing_counts){$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
310 |
}
|
311 |
if (get_option('mo_openid_mail_share_enable')) {
|
312 |
+
if ($sharing_counts){$html .= "<li style='line-height: 0.0px'>";} $html .= "<a rel='nofollow' title='Email this page' onclick='popupCenter(" . '"mailto:?subject= ' . $email_subject . '&body=' . $email_body . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><i class=' " . $selected_theme . " fa fa-envelope' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>"; if($sharing_counts){$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
313 |
}
|
314 |
if (get_option('mo_openid_print_share_enable')) {
|
315 |
+
if ($sharing_counts){$html .= "<li style='line-height: 0.0px'>";} $html .= "<a rel='nofollow' title='Print this page' onclick='javascript:window.print();' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><i class=' " . $selected_theme . " fa fa-print' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" . $sharingSize . "px !important;height:" . $sharingSize . "px !important;width:" . $sharingSize . "px !important;'></i></a>"; if($sharing_counts){$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
316 |
}
|
317 |
if (get_option('mo_openid_whatsapp_share_enable')) {
|
|
|
318 |
if (wp_is_mobile()) {
|
319 |
+
if ($sharing_counts){$html .= "<li style='line-height: 0.0px'>";} $html .= '<a rel="nofollow" title="Whatsapp" href="whatsapp://send?text=' . $url . '" class="mo-openid-share-link" style="margin-left : ' . ($spaceBetweenIcons - 6) . 'px !important;border-bottom:0px !important;"><i class=" ' . $selected_theme . ' fa fa-whatsapp" style="padding-top:4px;text-align:center;color:' . $fontColor . ';font-size:' . $sharingSize . 'px !important;height:' . $sharingSize . 'px !important;width:' . $sharingSize . 'px !important;"></i></a>'; if($sharing_counts){$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
320 |
} else {
|
321 |
+
if ($sharing_counts){$html .= "<li style='line-height: 0.0px'>";} $html .= '<a rel="nofollow" title="Whatsapp" target ="_blank" href="https://web.whatsapp.com/send?text=' . $url . '" class="mo-openid-share-link" style="margin-left : ' . ($spaceBetweenIcons - 6) . 'px !important;border-bottom:0px !important;"><i class=" ' . $selected_theme . ' fa fa-whatsapp" style="padding-top:4px;text-align:center;color:' . $fontColor . ';font-size:' . $sharingSize . 'px !important;height:' . $sharingSize . 'px !important;width:' . $sharingSize . 'px !important;"></i></a>'; if($sharing_counts){$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
322 |
}
|
323 |
}
|
324 |
+
if ($sharing_counts) {
|
325 |
+
$html .= "</ul></div>";
|
326 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
327 |
}
|
328 |
+
}
|
329 |
|
330 |
+
else {
|
331 |
+
|
332 |
+
if ($sharing_counts) {
|
333 |
+
$html .= "<div class='sharecount'><ul class='share_count_icon'>";
|
334 |
+
}
|
335 |
+
|
336 |
+
if( get_option('mo_openid_facebook_share_enable') ) {
|
337 |
+
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href='.$url;
|
338 |
+
if ($sharing_counts){
|
339 |
+
if(get_option('mo_openid_Facebook_share_count_api')!="") {
|
340 |
+
$count = get_transient('facebook');
|
341 |
+
if ($count === false) {
|
342 |
+
$content = file_get_contents("https://graph.facebook.com/v3.3/?id=" . $url . "&fields=engagement&access_token=" . get_option('mo_openid_Facebook_share_count_api'));
|
343 |
+
$content = explode('share_count":', $content);
|
344 |
+
$content = explode(',', $content[1]);
|
345 |
+
$count = $content[0];
|
346 |
+
set_transient('facebook', $count, 3600);
|
347 |
+
}
|
348 |
+
}
|
349 |
+
$html .= "<li style='line-height: 0.0px'>";} $html .= "<a rel='nofollow' title='Facebook' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 400);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><img alt='Facebook' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url( 'includes/images/icons/facebook.png', __FILE__ ) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>"; if($sharing_counts && get_option('mo_openid_Facebook_share_count_api')!=""){$html .= "<span style='margin-left : " . ($spaceBetweenIcons) . "px !important'>$count</span></li>";} else{$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
350 |
+
}
|
351 |
+
|
352 |
+
if( get_option('mo_openid_twitter_share_enable') ) {
|
353 |
+
$link = empty($twitter_username) ? 'https://twitter.com/intent/tweet?text='.$title.'&url='.$url : 'https://twitter.com/intent/tweet?text='.$title.'&url='.$url. '&via='.$twitter_username;
|
354 |
+
if ($sharing_counts){$html .= "<li style='line-height: 0.0px'>";} $html .= "<a rel='nofollow' title='Twitter' onclick='popupCenter(" . '"' . $link . '"' . ", 600, 300);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><img alt='Twitter' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url( 'includes/images/icons/twitter.png', __FILE__ ) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>"; if($sharing_counts){$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
355 |
+
}
|
356 |
+
|
357 |
+
if( get_option('mo_openid_google_share_enable') ) {
|
358 |
+
$link = 'https://plus.google.com/share?url='.$url;
|
359 |
+
if ($sharing_counts){
|
360 |
+
$html .= "<li style='line-height: 0.0px'>";} $html .= "<a rel='nofollow' title='Google' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><img alt='Google' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;background-color: " . $selected_theme . "' src='" . plugins_url( 'includes/images/icons/google.png', __FILE__ ) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>"; if($sharing_counts){$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
361 |
+
}
|
362 |
+
if( get_option('mo_openid_vkontakte_share_enable') ) {
|
363 |
+
$link = 'http://vk.com/share.php?url='.$url.'&title='.$title.'&description='.$excerpt;
|
364 |
+
if ($sharing_counts){
|
365 |
+
$count = get_transient( 'vkontakte' );
|
366 |
+
if($count===false) {
|
367 |
+
$content = file_get_contents("https://vk.com/share.php?act=count&url=".$url);
|
368 |
+
$content=explode(',',$content);
|
369 |
+
$content=explode(')',$content[1]);
|
370 |
+
$count=$content[0];
|
371 |
+
$count=count_convert($count);
|
372 |
+
set_transient('vkontakte', $count, 3600);
|
373 |
+
}
|
374 |
+
$html .= "<li style='line-height: 0.0px'>";} $html .= "<a rel='nofollow' title='Vkontakte' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><img alt='Vkontakte' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url( 'includes/images/icons/vk.png', __FILE__ ) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>"; if($sharing_counts){$html .= "<span style='margin-left : " . ($spaceBetweenIcons) . "px !important'>$count</span></li>";};
|
375 |
+
}
|
376 |
+
if( get_option('mo_openid_tumblr_share_enable') ) {
|
377 |
+
$link = 'http://www.tumblr.com/share/link?url='.$url.'&title='.$title;
|
378 |
+
if ($sharing_counts){$html .= "<li style='line-height: 0.0px'>";} $html .= "<a rel='nofollow' title='Tumblr' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><img alt='Tumblr' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url( 'includes/images/icons/tumblr.png', __FILE__ ) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>"; if($sharing_counts){$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
379 |
+
}
|
380 |
+
if( get_option('mo_openid_stumble_share_enable') ) {
|
381 |
+
$link = 'http://www.stumbleupon.com/submit?url='.$url.'&title='.$title;
|
382 |
+
if ($sharing_counts){
|
383 |
+
$count = get_transient( 'stumbleupon' );
|
384 |
+
if($count===false) {
|
385 |
+
$content = file_get_contents("http://www.stumbleupon.com/services/1.01/badge.getinfo?url=" . $url);
|
386 |
+
$content = explode(',', $content);
|
387 |
+
$content = explode(':', $content[5]);
|
388 |
+
$count = $content[1];
|
389 |
+
$count=count_convert($count);
|
390 |
+
set_transient('stumbleupon', $count, 3600);
|
391 |
+
}
|
392 |
+
$html .= "<li style='line-height: 0.0px'>";
|
393 |
+
}
|
394 |
+
$html .= "<a rel='nofollow' title='StumbleUpon' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><img alt='StumbleUpon' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url( 'includes/images/icons/stumble.png', __FILE__ ) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>"; if($sharing_counts){$html .= "<span style='margin-left : " . ($spaceBetweenIcons) . "px !important'>$count</span></li>";};
|
395 |
}
|
396 |
+
if( get_option('mo_openid_linkedin_share_enable') ) {
|
397 |
+
$link = 'https://www.linkedin.com/shareArticle?mini=true&title='.$title.'&url='.$url.'&summary='.$excerpt;
|
398 |
+
if ($sharing_counts){$html .= "<li style='line-height: 0.0px'>";} $html .= "<a rel='nofollow' title='LinkedIn' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><img alt='LinkedIn' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url( 'includes/images/icons/linkedin.png', __FILE__ ) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>"; if($sharing_counts){$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
|
|
|
|
|
|
|
|
399 |
}
|
400 |
|
401 |
+
if( get_option('mo_openid_reddit_share_enable') ) {
|
402 |
+
$link = 'http://www.reddit.com/submit?url='.$url.'&title='.$title;
|
403 |
+
if ($sharing_counts){$html .= "<li style='line-height: 0.0px'>";} $html .= "<a rel='nofollow' title='Reddit' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><img alt='Reddit' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url( 'includes/images/icons/reddit.png', __FILE__ ) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>"; if($sharing_counts){$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
404 |
}
|
405 |
|
406 |
+
if( get_option('mo_openid_pinterest_share_enable') ) {
|
407 |
+
if ($sharing_counts){
|
408 |
+
$count = get_transient( 'pinterest' );
|
409 |
+
if($count===false) {
|
410 |
+
$content_pint = file_get_contents("https://widgets.pinterest.com/v1/urls/count.json?source=6&url=".$url);
|
411 |
+
$body = preg_replace( '/^receiveCount\((.*)\)$/', '\\1', $content_pint );
|
412 |
+
$count=explode(":",$body);
|
413 |
+
$count=explode("}",$count[3]);
|
414 |
+
$count=count_convert($count[0]);
|
415 |
+
set_transient('pinterest', $count, 3600);
|
416 |
+
}
|
417 |
+
$html .= "<li style='line-height: 0.0px'>";} $html .= "<a rel='nofollow' title='Pinterest' href='javascript:pinIt();' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><img alt='Pinterest' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url( 'includes/images/icons/pininterest.png', __FILE__ ) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>"; if($sharing_counts){$html .= "<span style='margin-left : " . ($spaceBetweenIcons) . "px !important'>$count</span></li>";};
|
418 |
}
|
419 |
|
420 |
+
if( get_option('mo_openid_pocket_share_enable') ) {
|
421 |
+
$link = 'https://getpocket.com/save?url='.$url.'&title='.$title;
|
422 |
+
if ($sharing_counts){$html .= "<li style='line-height: 0.0px'>";} $html .= "<a rel='nofollow' title='Pocket' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><img alt='Pocket' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url( 'includes/images/icons/pocket.png', __FILE__ ) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>"; if($sharing_counts){$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
423 |
}
|
424 |
+
if( get_option('mo_openid_digg_share_enable') ) {
|
425 |
+
$link = 'http://digg.com/submit?url='.$url.'&title='.$title;
|
426 |
+
if ($sharing_counts){$html .= "<li style='line-height: 0.0px'>";} $html .= "<a rel='nofollow' title='Digg' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><img alt='Digg' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url( 'includes/images/icons/digg.png', __FILE__ ) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>"; if($sharing_counts){$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
427 |
}
|
428 |
+
if( get_option('mo_openid_delicious_share_enable') ) {
|
429 |
+
$link = 'http://www.delicious.com/save?v=5&noui&jump=close&url='.$url.'&title='.$title;
|
430 |
+
if ($sharing_counts){$html .= "<li style='line-height: 0.0px'>";} $html .= "<a rel='nofollow' title='Delicious' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><img alt='Delicious' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url( 'includes/images/icons/delicious.png', __FILE__ ) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>"; if($sharing_counts){$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
431 |
}
|
432 |
+
if( get_option('mo_openid_odnoklassniki_share_enable') ) {
|
433 |
+
$link = 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st.comments='.$excerpt.'&st._surl='.$url;
|
434 |
+
if ($sharing_counts){$html .= "<li style='line-height: 0.0px'>";} $html .= "<a rel='nofollow' title='Odnoklassniki' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><img alt='Odnoklassniki' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url( 'includes/images/icons/odnoklassniki.png', __FILE__ ) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>"; if($sharing_counts){$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
435 |
}
|
436 |
+
if( get_option('mo_openid_mail_share_enable') ) {
|
437 |
+
if ($sharing_counts){$html .= "<li style='line-height: 0.0px'>";} $html .= "<a rel='nofollow' title='Email this page' onclick='popupCenter(" . '"mailto:?subject= ' . $email_subject . '&body=' . $email_body. '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " .($spaceBetweenIcons) . "px !important'><img alt='Email this page' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url( 'includes/images/icons/mail.png', __FILE__ ) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>"; if($sharing_counts){$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
438 |
}
|
439 |
+
if( get_option('mo_openid_print_share_enable') ) {
|
440 |
+
if ($sharing_counts){$html .= "<li style='line-height: 0.0px'>";} $html .= "<a rel='nofollow' title='Print this page' onclick='javascript:window.print();' class='mo-openid-share-link' style='margin-left : " .($spaceBetweenIcons) . "px !important'><img alt='Print this page' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url( 'includes/images/icons/print.png', __FILE__ ) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>"; if($sharing_counts){$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
441 |
}
|
442 |
+
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
443 |
|
444 |
+
if (wp_is_mobile()){
|
445 |
+
if ($sharing_counts){$html .= "<li style='line-height: 0.0px'>";} $html .= '<a rel="nofollow" title="Whatsapp" href="whatsapp://send?text=' . $url . '" class="mo-openid-share-link" style="margin-left : '. ($spaceBetweenIcons) . 'px !important; border-bottom:0px !important;">
|
446 |
+
<img alt="Whatsapp" style= "height: '. $sharingSize . 'px !important;width: '. $sharingSize . 'px !important;" src="'. plugins_url( "includes/images/icons/whatsapp.png", __FILE__ ) . '" class="mo-openid-app-share-icons '. $selected_theme . '" ></a>'; if($sharing_counts){$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
447 |
+
}
|
448 |
+
else{
|
449 |
+
if ($sharing_counts){$html .= "<li style='line-height: 0.0px'>";} $html .= '<a rel="nofollow" title="Whatsapp" target ="_blank" href="https://web.whatsapp.com/send?text=' . $url . '" class="mo-openid-share-link" style="margin-left : '. ($spaceBetweenIcons) . 'px !important; border-bottom:0px !important;">
|
450 |
+
<img alt="Whatsapp" style= "height: '. $sharingSize . 'px !important;width: '. $sharingSize . 'px !important;" src="'. plugins_url( "includes/images/icons/whatsapp.png", __FILE__ ) . '" class="mo-openid-app-share-icons '. $selected_theme . '" ></a>'; if($sharing_counts){$html .= "<span2 style='margin-left : " . ($spaceBetweenIcons) . "px !important'></span2></li>";};
|
451 |
}
|
452 |
|
453 |
}
|
454 |
+
if ($sharing_counts) {
|
455 |
+
$html .= "</ul></div>";
|
456 |
|
457 |
+
}
|
458 |
|
459 |
}
|
460 |
$html .= "</div>";
|
463 |
|
464 |
$html .= "</p></div><br/>";
|
465 |
|
|
|
466 |
$html .= '<script>';
|
467 |
|
468 |
$html .= 'function popupCenter(pageURL, w,h) {';
|
475 |
$html .= "e.setAttribute('type','text/javascript');";
|
476 |
$html .= "e.setAttribute('charset','UTF-8');";
|
477 |
$html .= "e.setAttribute('src','https://assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);
|
478 |
+
document.body.appendChild(e);}";
|
479 |
$html .= '</script>';
|
480 |
|
481 |
return $html;
|
482 |
+
|
483 |
}
|
484 |
|
485 |
function mo_openid_vertical_share_shortcode( $atts = '', $title = '', $excerpt = '' ) {
|
486 |
+
$html = '';
|
487 |
+
$selected_theme = isset( $atts['shape'] )? esc_attr($atts['shape']) : esc_attr(get_option('mo_openid_share_theme'));
|
488 |
+
$selected_direction = esc_attr(get_option('mo_openid_share_widget_customize_direction'));
|
489 |
+
$sharingSize = isset( $atts['size'] )? esc_attr($atts['size']) : esc_attr(get_option('mo_sharing_icon_custom_size'));
|
490 |
+
$custom_color = isset( $atts['backgroundcolor'] )? esc_attr($atts['backgroundcolor']) : esc_attr(get_option('mo_sharing_icon_custom_color'));
|
491 |
+
$custom_theme = isset( $atts['theme'] )? esc_attr($atts['theme']) : esc_attr(get_option('mo_openid_share_custom_theme'));
|
492 |
+
$fontColor = isset( $atts['fontcolor'] )? esc_attr($atts['fontcolor']) : esc_attr(get_option('mo_sharing_icon_custom_font'));
|
493 |
+
$spaceBetweenIcons = isset( $atts['space'] )? esc_attr($atts['space']) : '10';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
494 |
|
495 |
+
$alignment = isset( $atts['alignment'] )? esc_attr($atts['alignment']) : 'left';
|
496 |
+
$left_offset = isset( $atts['leftoffset'] )? esc_attr($atts['leftoffset']) : '20';
|
497 |
+
$right_offset = isset( $atts['rightoffset'] )? esc_attr($atts['rightoffset']) : '10';
|
498 |
+
$top_offset = isset( $atts['topoffset'] )? esc_attr($atts['topoffset']) : '100';
|
499 |
|
|
|
|
|
|
|
500 |
|
501 |
+
$twitter_username = get_option('mo_openid_share_twitter_username');
|
502 |
+
$url = isset( $atts['url'])? esc_url($atts['url']) : esc_url("http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]");
|
503 |
|
504 |
+
$email_subject = esc_attr(get_option('mo_openid_share_email_subject'));
|
505 |
+
$email_body = get_option('mo_openid_share_email_body');
|
506 |
+
$email_body = str_replace('##url##', $url, $email_body);
|
507 |
|
508 |
+
if($custom_theme == 'custombackground'){
|
509 |
+
$custom_theme = 'custom';
|
510 |
+
}
|
511 |
+
if($custom_theme == 'nobackground'){
|
512 |
+
$custom_theme = 'customFont';
|
513 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
514 |
|
515 |
|
516 |
+
$html .= "<div class='mo_openid_vertical' style='" .(isset($alignment) && $alignment != '' ? $alignment .': '. (${$alignment.'_offset'} == '' ? 0 : ${$alignment.'_offset'} ) .'px;' : '').(isset($top_offset) ? 'top: '. ( $top_offset == '' ? 0 : $top_offset ) .'px;' : '') ."'>";
|
517 |
|
518 |
+
$html .= '<div class="mo-openid-app-icons circle ">';
|
519 |
+
$html .= '<p>';
|
520 |
|
521 |
+
$html .= "<div id='mo_floating_vertical_shortcode'>";
|
522 |
+
if($custom_theme == 'custom'){
|
|
|
|
|
523 |
|
524 |
+
if( get_option('mo_openid_facebook_share_enable') ) {
|
525 |
+
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href='.$url;
|
526 |
+
$html .= "<a rel='nofollow' title='Facebook' onclick='popupCenter(" . '"' . $link . '"' .", 1000, 500);' class='mo-openid-share-link' style='margin-bottom : " .$spaceBetweenIcons . "px !important'><i class='mo-custom-share-icon " .$selected_theme. " fa fa-facebook' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" .($sharingSize-16). "px !important;background-color:#" .$custom_color. ";height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
527 |
+
}
|
528 |
|
529 |
+
if( get_option('mo_openid_twitter_share_enable') ) {
|
530 |
+
$link = empty($twitter_username) ? 'https://twitter.com/intent/tweet?text='.$title.'&url='.$url : 'https://twitter.com/intent/tweet?text='.$title.'&url='.$url. '&via='.$twitter_username;
|
531 |
+
$html .= "<a rel='nofollow' title='Twitter' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='mo-custom-share-icon " .$selected_theme. " fa fa-twitter' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" .($sharingSize-16). "px !important;background-color:#" .$custom_color. ";height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
532 |
|
533 |
+
}
|
|
|
|
|
|
|
534 |
|
535 |
+
if( get_option('mo_openid_google_share_enable') ) {
|
536 |
+
$link = "https://plus.google.com/share?url=".$url;
|
537 |
+
$html .= "<a rel='nofollow' title='Google' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-bottom : " .$spaceBetweenIcons . "px !important'><i class='mo-custom-share-icon " .$selected_theme. " fa fa-google-plus' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" .($sharingSize-16). "px !important;background-color:#" .$custom_color. ";height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
538 |
|
539 |
+
}
|
540 |
+
if( get_option('mo_openid_vkontakte_share_enable') ) {
|
541 |
+
$link = 'http://vk.com/share.php?url='.$url.'&title='.$title.'&description='.$excerpt;
|
542 |
+
$html .= "<a rel='nofollow' title='Vkontakte' onclick='popupCenter(". '"' . $link . '"' .", 800, 500);' class='mo-openid-share-link' ><i class='mo-custom-share-icon " .$selected_theme. " fa fa-vk' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" .($sharingSize-16). "px !important;background-color:#" .$custom_color. ";height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
543 |
+
}
|
544 |
+
if( get_option('mo_openid_tumblr_share_enable') ) {
|
545 |
+
$link = 'http://www.tumblr.com/share/link?url='.$url.'&title='.$title;
|
546 |
+
$html .= "<a rel='nofollow' title='Tumblr' onclick='popupCenter(". '"' . $link . '"' .", 800, 500);' class='mo-openid-share-link' ><i class='mo-custom-share-icon " .$selected_theme. " fa fa-tumblr' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" .($sharingSize-16). "px !important;background-color:#" .$custom_color. ";height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
547 |
+
}
|
548 |
+
if( get_option('mo_openid_stumble_share_enable') ) {
|
549 |
+
$link = 'http://www.stumbleupon.com/submit?url='.$url.'&title='.$title;
|
550 |
+
$html .= "<a rel='nofollow' title='StumbleUpon' onclick='popupCenter(". '"' . $link . '"' .", 800, 500);' class='mo-openid-share-link' ><i class='mo-custom-share-icon " .$selected_theme. " fa fa-stumbleupon' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" .($sharingSize-16). "px !important;background-color:#" .$custom_color. ";height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
551 |
+
}
|
552 |
+
if( get_option('mo_openid_linkedin_share_enable') ) {
|
553 |
+
$link = 'https://www.linkedin.com/shareArticle?mini=true&title='.$title.'&url='.$url.'&summary='.$excerpt;
|
554 |
|
555 |
|
556 |
+
$html .= "<a rel='nofollow' title='LinkedIn' onclick='popupCenter(". '"' . $link . '"' .", 800, 500);' class='mo-openid-share-link' ><i class='mo-custom-share-icon " .$selected_theme. " fa fa-linkedin' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" .($sharingSize-16). "px !important;background-color:#" .$custom_color. ";height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
557 |
|
558 |
+
}
|
|
|
|
|
|
|
559 |
|
560 |
+
if( get_option('mo_openid_reddit_share_enable') ) {
|
561 |
+
$link = 'http://www.reddit.com/submit?url='.$url.'&title='.$title;
|
562 |
+
$html .= "<a rel='nofollow' title='Reddit' onclick='popupCenter(". '"' . $link . '"' .", 800, 500);' class='mo-openid-share-link' ><i class='mo-custom-share-icon " .$selected_theme. " fa fa-reddit' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" .($sharingSize-16). "px !important;background-color:#" .$custom_color. ";height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
563 |
+
}
|
564 |
|
565 |
+
if( get_option('mo_openid_pinterest_share_enable') ) {
|
566 |
+
$html .= "<a rel='nofollow' title='Pinterest' href='javascript:pinIt();' class='mo-openid-share-link' ><i class='mo-custom-share-icon " .$selected_theme. " fa fa-pinterest' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:3px;text-align:center;color:#ffffff;font-size:" .($sharingSize-10). "px !important;background-color:#" .$custom_color. ";height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
567 |
|
568 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
569 |
|
570 |
+
if( get_option('mo_openid_pocket_share_enable') ) {
|
571 |
+
$link = 'https://getpocket.com/save?url='.$url.'&title='.$title;
|
572 |
+
$html .= "<a rel='nofollow' title='Pocket' onclick='popupCenter(". '"' . $link . '"' .", 800, 500);' class='mo-openid-share-link' ><i class='mo-custom-share-icon " .$selected_theme. " fa fa-get-pocket' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" .($sharingSize-16). "px !important;background-color:#" .$custom_color. ";height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
573 |
+
}
|
574 |
+
|
575 |
+
if( get_option('mo_openid_digg_share_enable') ) {
|
576 |
+
$link = 'http://digg.com/submit?url='.$url.'&title='.$title;
|
577 |
+
$html .= "<a rel='nofollow' title='Digg' onclick='popupCenter(". '"' . $link . '"' .", 800, 500);' class='mo-openid-share-link' ><i class='mo-custom-share-icon " .$selected_theme. " fa fa-digg' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" .($sharingSize-16). "px !important;background-color:#" .$custom_color. ";height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
578 |
+
}
|
579 |
+
if( get_option('mo_openid_delicious_share_enable') ) {
|
580 |
+
$link = 'http://www.delicious.com/save?v=5&noui&jump=close&url='.$url.'&title='.$title;
|
581 |
+
$html .= "<a rel='nofollow' title='Delicious' onclick='popupCenter(". '"' . $link . '"' .", 800, 500);' class='mo-openid-share-link' ><i class='mo-custom-share-icon " .$selected_theme. " fa fa-delicious' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" .($sharingSize-16). "px !important;background-color:#" .$custom_color. ";height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
582 |
+
}
|
583 |
+
if( get_option('mo_openid_odnoklassniki_share_enable') ) {
|
584 |
+
$link = 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st.comments='.$excerpt.'&st._surl='.$url;
|
585 |
+
$html .= "<a rel='nofollow' title='Odnoklassniki' onclick='popupCenter(". '"' . $link . '"' .", 800, 500);' class='mo-openid-share-link' ><i class='mo-custom-share-icon " .$selected_theme. " fa fa-odnoklassniki' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" .($sharingSize-16). "px !important;background-color:#" .$custom_color. ";height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
586 |
+
}
|
587 |
+
if( get_option('mo_openid_mail_share_enable') ) {
|
588 |
+
$html .= "<a rel='nofollow' title='Email this page' onclick='popupCenter(" . '"mailto:?subject= ' . $email_subject . '&body=' . $email_body. '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='mo-custom-share-icon " .$selected_theme. " fa fa-envelope' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" .($sharingSize-16). "px !important;background-color:#" .$custom_color. ";height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
589 |
+
}
|
590 |
+
if( get_option('mo_openid_print_share_enable') ) {
|
591 |
+
$html .= "<a rel='nofollow' title='Print this page' onclick='javascript:window.print();' class='mo-openid-share-link' ><i class='mo-custom-share-icon " .$selected_theme. " fa fa-print' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" .($sharingSize-16). "px !important;background-color:#" .$custom_color. ";height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
592 |
+
}
|
593 |
+
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
594 |
+
if(wp_is_mobile()){
|
595 |
+
$html .= '<a rel="nofollow" title="Whatsapp" href="whatsapp://send?text=' . $url ."\" class='mo-openid-share-link' ><i class='mo-custom-share-icon " .$selected_theme. " fa fa-whatsapp' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" .($sharingSize-16). "px !important;background-color:#" .$custom_color. ";height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
596 |
}
|
597 |
+
else{
|
598 |
+
$html .= '<a rel="nofollow" title="Whatsapp" target ="_blank" href="https://web.whatsapp.com/send?text=' . $url ."\" class='mo-openid-share-link' ><i class='mo-custom-share-icon " .$selected_theme. " fa fa-whatsapp' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" .($sharingSize-16). "px !important;background-color:#" .$custom_color. ";height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
599 |
}
|
600 |
+
}
|
601 |
|
|
|
|
|
|
|
|
|
|
|
|
|
602 |
|
603 |
+
}
|
604 |
|
605 |
+
else if($custom_theme == 'customFont') {
|
606 |
|
607 |
+
if( get_option('mo_openid_facebook_share_enable') ) {
|
608 |
+
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href='.$url;
|
609 |
+
$html .= "<a rel='nofollow' title='Facebook' onclick='popupCenter(". '"' . $link . '"' .", 800, 500);' class='mo-openid-share-link' ><i class='fa fa-facebook' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:4px;text-align:center;color:" .$fontColor . ";font-size:" .$sharingSize. "px !important;height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
610 |
+
}
|
611 |
|
612 |
+
if( get_option('mo_openid_twitter_share_enable') ) {
|
613 |
+
$link = empty($twitter_username) ? 'https://twitter.com/intent/tweet?text='.$title.'&url='.$url : 'https://twitter.com/intent/tweet?text='.$title.'&url='.$url. '&via='.$twitter_username;
|
614 |
+
$html .= "<a rel='nofollow' title='Twitter' onclick='popupCenter(". '"' . $link . '"' .", 800, 500);' class='mo-openid-share-link' ><i class='fa fa-twitter' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:4px;text-align:center;color:" .$fontColor . ";font-size:" .$sharingSize. "px !important;height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
615 |
+
}
|
616 |
|
617 |
+
if( get_option('mo_openid_google_share_enable') ) {
|
|
|
618 |
|
619 |
+
$link = 'https://plus.google.com/share?url='.$url;
|
620 |
+
$html .= "<a rel='nofollow' title='Google' onclick='popupCenter(". '"' . $link . '"' .", 800, 500);' class='mo-openid-share-link'><i class='fa fa-google-plus' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:4px;text-align:center;color:" .$fontColor . ";font-size:" .$sharingSize. "px !important;height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
621 |
+
}
|
622 |
+
if( get_option('mo_openid_vkontakte_share_enable') ) {
|
623 |
+
$link = 'http://vk.com/share.php?url='.$url.'&title='.$title.'&description='.$excerpt;
|
624 |
+
$html .= "<a rel='nofollow' title='Vkontakte' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='fa fa-vk' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:4px;text-align:center;color:" .$fontColor . ";font-size:" .$sharingSize. "px !important;height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
625 |
+
}
|
626 |
+
if( get_option('mo_openid_tumblr_share_enable') ) {
|
627 |
+
$link = 'http://www.tumblr.com/share/link?url='.$url.'&title='.$title;
|
628 |
+
$html .= "<a rel='nofollow' title='Tumblr' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='fa fa-tumblr' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:4px;text-align:center;color:" .$fontColor . ";font-size:" .$sharingSize. "px !important;height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
629 |
+
}
|
630 |
+
if( get_option('mo_openid_stumble_share_enable') ) {
|
631 |
+
$link = 'http://www.stumbleupon.com/submit?url='.$url.'&title='.$title;
|
632 |
+
$html .= "<a rel='nofollow' title='StumbleUpon' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='fa fa-stumbleupon' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:4px;text-align:center;color:" .$fontColor . ";font-size:" .$sharingSize. "px !important;height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
633 |
+
}
|
634 |
+
if( get_option('mo_openid_linkedin_share_enable') ) {
|
635 |
+
$link = 'https://www.linkedin.com/shareArticle?mini=true&title='.$title.'&url='.$url.'&summary='.$excerpt;
|
636 |
+
$html .= "<a rel='nofollow' title='LinkedIn' onclick='popupCenter(". '"' . $link . '"' .", 800, 500);' class='mo-openid-share-link' ><i class='fa fa-linkedin' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:4px;text-align:center;color:" .$fontColor . ";font-size:" .$sharingSize. "px !important;height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
637 |
+
}
|
638 |
+
if( get_option('mo_openid_reddit_share_enable') ) {
|
639 |
+
$link = 'http://www.reddit.com/submit?url='.$url.'&title='.$title;
|
640 |
+
$html .= "<a rel='nofollow' title='Reddit' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='fa fa-reddit' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:4px;text-align:center;color:" .$fontColor . ";font-size:" .$sharingSize. "px !important;height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
641 |
+
}
|
642 |
+
if( get_option('mo_openid_pinterest_share_enable') ) {
|
643 |
+
$html .= "<a rel='nofollow' title='Pinterest' href='javascript:pinIt();' class='mo-openid-share-link' ><i class='fa fa-pinterest' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:4px;text-align:center;color:" .$fontColor . ";font-size:" .($sharingSize-5). "px !important;height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
644 |
+
}
|
645 |
+
|
646 |
+
if( get_option('mo_openid_pocket_share_enable') ) {
|
647 |
+
$link = 'https://getpocket.com/save?url='.$url.'&title='.$title;
|
648 |
+
$html .= "<a rel='nofollow' title='Pocket' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='fa fa-get-pocket' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:4px;text-align:center;color:" .$fontColor . ";font-size:" .$sharingSize. "px !important;height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
649 |
+
}
|
650 |
+
if( get_option('mo_openid_digg_share_enable') ) {
|
651 |
+
$link = 'http://digg.com/submit?url='.$url.'&title='.$title;
|
652 |
+
$html .= "<a rel='nofollow' title='Digg' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='fa fa-digg' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:4px;text-align:center;color:" .$fontColor . ";font-size:" .$sharingSize. "px !important;height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
653 |
+
}
|
654 |
+
if( get_option('mo_openid_delicious_share_enable') ) {
|
655 |
+
$link = 'http://www.delicious.com/save?v=5&noui&jump=close&url='.$url.'&title='.$title;
|
656 |
+
$html .= "<a rel='nofollow' title='Delicious' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='fa fa-delicious' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:4px;text-align:center;color:" .$fontColor . ";font-size:" .$sharingSize. "px !important;height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
657 |
+
}
|
658 |
+
if( get_option('mo_openid_odnoklassniki_share_enable') ) {
|
659 |
+
$link = 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st.comments='.$excerpt.'&st._surl='.$url;
|
660 |
+
$html .= "<a rel='nofollow' title='Odnoklassniki' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='fa fa-odnoklassniki' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:4px;text-align:center;color:" .$fontColor . ";font-size:" .$sharingSize. "px !important;height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
661 |
+
}
|
662 |
+
if( get_option('mo_openid_mail_share_enable') ) {
|
663 |
+
$html .= "<a rel='nofollow' title='Email this page' onclick='popupCenter(" . '"mailto:?subject= ' . $email_subject . '&body=' . $email_body. '"' . ", 800, 500);' class='mo-openid-share-link' ><i class='fa fa-envelope' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:4px;text-align:center;color:" .$fontColor . ";font-size:" .$sharingSize. "px !important;height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
664 |
+
}
|
665 |
+
if( get_option('mo_openid_print_share_enable') ) {
|
666 |
+
$html .= "<a rel='nofollow' title='Print this page' onclick='javascript:window.print();' class='mo-openid-share-link' ><i class='fa fa-print' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:4px;text-align:center;color:" .$fontColor . ";font-size:" .$sharingSize. "px !important;height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
667 |
+
}
|
668 |
+
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
669 |
+
if(wp_is_mobile()){
|
670 |
+
$html .= '<a rel="nofollow" title="Whatsapp" href="whatsapp://send?text=' . $url ."\" class='mo-openid-share-link' ><i class='fa fa-whatsapp' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:4px;text-align:center;color:" .$fontColor . ";font-size:" .$sharingSize. "px !important;height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
671 |
}
|
672 |
+
else{
|
673 |
+
$html .= '<a rel="nofollow" title="Whatsapp" target ="_blank" href="https://web.whatsapp.com/send?text=' . $url ."\" class='mo-openid-share-link' ><i class='fa fa-whatsapp' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:4px;text-align:center;color:" .$fontColor . ";font-size:" .$sharingSize. "px !important;height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
|
|
|
|
|
|
|
|
674 |
}
|
|
|
675 |
}
|
|
|
|
|
676 |
|
677 |
|
678 |
+
}
|
679 |
|
680 |
+
else {
|
681 |
|
682 |
+
if( get_option('mo_openid_facebook_share_enable') ) {
|
683 |
+
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href='.$url;
|
684 |
+
$html .= "<a rel='nofollow' title='Facebook' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link'><img alt='Facebook' style= 'margin-bottom : " . ($spaceBetweenIcons-6) . "px !important;height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url( 'includes/images/icons/facebook.png', __FILE__ ) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
685 |
+
}
|
|
|
|
|
|
|
686 |
|
687 |
+
if( get_option('mo_openid_twitter_share_enable') ) {
|
688 |
+
$link = empty($twitter_username) ? 'https://twitter.com/intent/tweet?text='.$title.'&url='.$url : 'https://twitter.com/intent/tweet?text='.$title.'&url='.$url. '&via='.$twitter_username;
|
689 |
+
$html .= "<a rel='nofollow' title='Twitter' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link'><img alt='Twitter' style= 'margin-bottom : " . ($spaceBetweenIcons-6) . "px !important;height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url( 'includes/images/icons/twitter.png', __FILE__ ) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
|
|
|
|
|
|
|
|
690 |
}
|
691 |
|
692 |
+
if( get_option('mo_openid_google_share_enable') ) {
|
693 |
+
$link = 'https://plus.google.com/share?url='.$url;
|
694 |
|
695 |
+
$html .= "<a rel='nofollow' title='Google' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link'><img alt='Google' style= 'margin-bottom : " . ($spaceBetweenIcons-6) . "px !important;height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url( 'includes/images/icons/google.png', __FILE__ ) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
696 |
+
}
|
697 |
+
if( get_option('mo_openid_vkontakte_share_enable') ) {
|
698 |
+
$link = 'http://vk.com/share.php?url='.$url.'&title='.$title.'&description='.$excerpt;
|
699 |
+
$html .= "<a rel='nofollow' title='Vkontakte' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link'><img alt='Vkontakte' style= 'margin-bottom : " . ($spaceBetweenIcons-6) . "px !important;height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url( 'includes/images/icons/vk.png', __FILE__ ) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
700 |
+
}
|
701 |
+
if( get_option('mo_openid_tumblr_share_enable') ) {
|
702 |
+
$link = 'http://www.tumblr.com/share/link?url='.$url.'&title='.$title;
|
703 |
+
$html .= "<a rel='nofollow' title='Tumblr' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link'><img alt='Tumblr' style= 'margin-bottom : " . ($spaceBetweenIcons-6) . "px !important;height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url( 'includes/images/icons/tumblr.png', __FILE__ ) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
704 |
+
}
|
705 |
+
if( get_option('mo_openid_stumble_share_enable') ) {
|
706 |
+
$link = 'http://www.stumbleupon.com/submit?url='.$url.'&title='.$title;
|
707 |
+
$html .= "<a rel='nofollow' title='StumbleUpon' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link'><img alt='StumbleUpon' style= 'margin-bottom : " . ($spaceBetweenIcons-6) . "px !important;height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url( 'includes/images/icons/stumble.png', __FILE__ ) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
708 |
+
}
|
709 |
+
if( get_option('mo_openid_linkedin_share_enable') ) {
|
710 |
+
$link = 'https://www.linkedin.com/shareArticle?mini=true&title='.$title.'&url='.$url.'&summary='.$excerpt;
|
711 |
+
$html .= "<a rel='nofollow' title='LinkedIn' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link'><img alt='LinkedIn' style= 'margin-bottom : " . ($spaceBetweenIcons-6) . "px !important;height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url( 'includes/images/icons/linkedin.png', __FILE__ ) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
712 |
+
}
|
713 |
+
if( get_option('mo_openid_reddit_share_enable') ) {
|
714 |
+
$link = 'http://www.reddit.com/submit?url='.$url.'&title='.$title;
|
715 |
+
$html .= "<a rel='nofollow' title='Reddit' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link'><img alt='Reddit' style= 'margin-bottom : " . ($spaceBetweenIcons-6) . "px !important;height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url( 'includes/images/icons/reddit.png', __FILE__ ) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
716 |
+
}
|
717 |
+
if( get_option('mo_openid_pinterest_share_enable') ) {
|
718 |
+
$html .= "<a rel='nofollow' title='Pinterest' href='javascript:pinIt();' class='mo-openid-share-link'><img alt='Pinterest' style= 'margin-bottom : " . ($spaceBetweenIcons-6) . "px !important;height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url( 'includes/images/icons/pininterest.png', __FILE__ ) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
719 |
+
}
|
720 |
+
if( get_option('mo_openid_pocket_share_enable') ) {
|
721 |
+
$link = 'https://getpocket.com/save?url='.$url.'&title='.$title;
|
722 |
+
$html .= "<a rel='nofollow' title='Pocket' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link'><img alt='Pocket' style= 'margin-bottom : " . ($spaceBetweenIcons-6) . "px !important;height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url( 'includes/images/icons/pocket.png', __FILE__ ) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
723 |
+
}
|
724 |
+
if( get_option('mo_openid_digg_share_enable') ) {
|
725 |
+
$link = 'http://digg.com/submit?url='.$url.'&title='.$title;
|
726 |
+
$html .= "<a rel='nofollow' title='Digg' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link'><img alt='Digg' style= 'margin-bottom : " . ($spaceBetweenIcons-6) . "px !important;height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url( 'includes/images/icons/digg.png', __FILE__ ) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
727 |
+
}
|
728 |
+
if( get_option('mo_openid_delicious_share_enable') ) {
|
729 |
+
$link = 'http://www.delicious.com/save?v=5&noui&jump=close&url='.$url.'&title='.$title;
|
730 |
+
$html .= "<a rel='nofollow' title='Delicious' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link'><img alt='Delicious' style= 'margin-bottom : " . ($spaceBetweenIcons-6) . "px !important;height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url( 'includes/images/icons/delicious.png', __FILE__ ) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
731 |
+
}
|
732 |
+
if( get_option('mo_openid_odnoklassniki_share_enable') ) {
|
733 |
+
$link = 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st.comments='.$excerpt.'&st._surl='.$url;
|
734 |
+
$html .= "<a rel='nofollow' title='Odnoklassniki' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link'><img alt='Odnoklassniki' style= 'margin-bottom : " . ($spaceBetweenIcons-6) . "px !important;height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url( 'includes/images/icons/odnoklassniki.png', __FILE__ ) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
735 |
+
}
|
736 |
+
if( get_option('mo_openid_mail_share_enable') ) {
|
737 |
+
$html .= "<a rel='nofollow' title='Email this page' onclick='popupCenter(" . '"mailto:?subject= ' . $email_subject . '&body=' . $email_body. '"' . ", 800, 500);' class='mo-openid-share-link'><img alt='Email this page' style= 'margin-bottom : " . ($spaceBetweenIcons-6) . "px !important; height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url( 'includes/images/icons/mail.png', __FILE__ ) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
738 |
+
}
|
739 |
+
if( get_option('mo_openid_print_share_enable') ) {
|
740 |
+
$html .= "<a rel='nofollow' title='Print this page' onclick='javascript:window.print();' class='mo-openid-share-link'><img alt='Print this page' style= 'margin-bottom : " . ($spaceBetweenIcons-6) . "px !important; height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url( 'includes/images/icons/print.png', __FILE__ ) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
741 |
+
}
|
742 |
+
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
743 |
+
if(wp_is_mobile()){
|
744 |
+
$html .= '<a rel="nofollow" title="Whatsapp" href="whatsapp://send?text=' . $url ."\" class='mo-openid-share-link'><img alt='Whatsapp' style= 'margin-bottom : " . ($spaceBetweenIcons-6) . "px !important;height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url( 'includes/images/icons/whatsapp.png', __FILE__ ) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
745 |
+
}
|
746 |
+
else{
|
747 |
+
$html .= '<a rel="nofollow" title="Whatsapp" target ="_blank" href="https://web.whatsapp.com/send?text=' . $url ."\" class='mo-openid-share-link'><img alt='Whatsapp' style= 'margin-bottom : " . ($spaceBetweenIcons-6) . "px !important;height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url( 'includes/images/icons/whatsapp.png', __FILE__ ) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
748 |
+
}
|
749 |
+
}
|
750 |
|
751 |
+
}
|
752 |
+
$html .= "</div>";
|
753 |
+
|
754 |
+
$html .= "</p></div></div>";
|
755 |
+
|
756 |
+
|
757 |
+
if(get_option('mo_share_vertical_hide_mobile')) {
|
758 |
+
$html .= "<script>";
|
759 |
+
$html .= "function hideVerticalShare() {";
|
760 |
+
$html .= "var isMobile = false;";
|
761 |
+
$html .= "if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4))) {";
|
762 |
+
$html .= "isMobile = true;";
|
763 |
+
$html .= "}";
|
764 |
+
|
765 |
+
$html .= "if(isMobile) {";
|
766 |
+
$html .= "if(jQuery('#mo_floating_vertical_shortcode'))";
|
767 |
+
$html .= 'jQuery("#mo_floating_vertical_shortcode").hide();';
|
768 |
+
$html .= "}";
|
769 |
+
$html .= "}";
|
770 |
+
$html .= "hideVerticalShare();";
|
771 |
+
$html .= "</script>";
|
772 |
+
}
|
773 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
774 |
|
775 |
+
$html .= '<script>';
|
776 |
+
|
777 |
+
$html .= 'function popupCenter(pageURL, w,h) {';
|
778 |
+
$html .= 'var left = (screen.width/2)-(w/2);';
|
779 |
+
$html .= 'var top = (screen.height/2)-(h/2);';
|
780 |
+
$html .= "var targetWin = window.open (pageURL, '_blank','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);}";
|
781 |
+
|
782 |
+
$html .= 'function pinIt(){';
|
783 |
+
$html .= 'var e = document.createElement("script");';
|
784 |
+
$html .= "e.setAttribute('type','text/javascript');";
|
785 |
+
$html .= "e.setAttribute('charset','UTF-8');";
|
786 |
+
$html .= "e.setAttribute('src','https://assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);";
|
787 |
+
$html .= "document.body.appendChild(e);}";
|
788 |
+
$html .= '</script>';
|
789 |
+
|
790 |
+
return $html;
|
791 |
+
|
792 |
}
|
793 |
?>
|
includes/css/mo_openid_style.css
CHANGED
@@ -1,3 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
.mywatermark {
|
2 |
background-image:url(../../includes/images/sample.png);
|
3 |
padding-bottom: 20px;
|
1 |
+
a.mo-add-hover:hover{
|
2 |
+
text-decoration: underline;
|
3 |
+
}
|
4 |
+
a.mo-pugin-add-link-sl {
|
5 |
+
text-decoration: none;
|
6 |
+
color: black;
|
7 |
+
}
|
8 |
+
|
9 |
+
a.mo-pugin-add-comp-link-sl {
|
10 |
+
text-decoration: none;
|
11 |
+
color: gray;
|
12 |
+
}
|
13 |
+
.sharecount ul.share_count_icon {
|
14 |
+
text-align: center;
|
15 |
+
}
|
16 |
+
.sharecount ul.share_count_icon li {
|
17 |
+
margin: 0;
|
18 |
+
padding: 0;
|
19 |
+
list-style: none;
|
20 |
+
display: inline-block;
|
21 |
+
}
|
22 |
+
.sharecount ul.share_count_icon li span {
|
23 |
+
margin: 0;
|
24 |
+
width: 60px;
|
25 |
+
display: block;
|
26 |
+
background: url(../../includes/images/count.png) no-repeat;
|
27 |
+
height: 40px;
|
28 |
+
overflow: hidden;
|
29 |
+
padding: 10px 2px 2px;
|
30 |
+
font-size: 17px;
|
31 |
+
text-align: center;
|
32 |
+
line-height: 24px;
|
33 |
+
color: #5a6570;
|
34 |
+
}
|
35 |
+
.sharecount ul.share_count_icon li span2 {
|
36 |
+
margin: 0;
|
37 |
+
width: 60px;
|
38 |
+
display: block;
|
39 |
+
height: 40px;
|
40 |
+
overflow: hidden;
|
41 |
+
padding: 10px 2px 2px;
|
42 |
+
font-size: 17px;
|
43 |
+
text-align: center;
|
44 |
+
line-height: 24px;
|
45 |
+
color: #5a6570;
|
46 |
+
}
|
47 |
.mywatermark {
|
48 |
background-image:url(../../includes/images/sample.png);
|
49 |
padding-bottom: 20px;
|
includes/images/count.png
ADDED
Binary file
|
includes/images/miniOrange_logo.png
ADDED
Binary file
|
miniorange_openid_sso_settings.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Social Login, Social Sharing by miniOrange
|
4 |
* Plugin URI: https://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 |
|
@@ -1211,6 +1211,8 @@ Thank you.';
|
|
1211 |
update_option( 'mo_openid_mail_share_enable', isset( $_POST['mo_openid_mail_share_enable']) ? sanitize_text_field($_POST['mo_openid_mail_share_enable']) : 0);
|
1212 |
update_option( 'mo_openid_print_share_enable', isset( $_POST['mo_openid_print_share_enable']) ? sanitize_text_field($_POST['mo_openid_print_share_enable']) : 0);
|
1213 |
update_option( 'mo_openid_whatsapp_share_enable', isset( $_POST['mo_openid_whatsapp_share_enable']) ? sanitize_text_field($_POST['mo_openid_whatsapp_share_enable']) : 0);
|
|
|
|
|
1214 |
|
1215 |
update_option('mo_share_options_enable_home_page',isset( $_POST['mo_share_options_home_page']) ? sanitize_text_field($_POST['mo_share_options_home_page']) : 0);
|
1216 |
update_option('mo_share_options_enable_post',isset( $_POST['mo_share_options_post']) ? sanitize_text_field($_POST['mo_share_options_post']) : 0);
|
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.6
|
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.6');
|
17 |
include dirname( __FILE__ ) . '/mo_openid_feedback_form.php';
|
18 |
class Miniorange_OpenID_SSO {
|
19 |
|
1211 |
update_option( 'mo_openid_mail_share_enable', isset( $_POST['mo_openid_mail_share_enable']) ? sanitize_text_field($_POST['mo_openid_mail_share_enable']) : 0);
|
1212 |
update_option( 'mo_openid_print_share_enable', isset( $_POST['mo_openid_print_share_enable']) ? sanitize_text_field($_POST['mo_openid_print_share_enable']) : 0);
|
1213 |
update_option( 'mo_openid_whatsapp_share_enable', isset( $_POST['mo_openid_whatsapp_share_enable']) ? sanitize_text_field($_POST['mo_openid_whatsapp_share_enable']) : 0);
|
1214 |
+
update_option( 'mo_openid_share_count', isset( $_POST['mo_openid_share_count']) ? sanitize_text_field($_POST['mo_openid_share_count']) : 0);
|
1215 |
+
update_option( 'mo_openid_Facebook_share_count_api', isset( $_POST['mo_openid_Facebook_share_count_api']) ? sanitize_text_field($_POST['mo_openid_Facebook_share_count_api']) : '');
|
1216 |
|
1217 |
update_option('mo_share_options_enable_home_page',isset( $_POST['mo_share_options_home_page']) ? sanitize_text_field($_POST['mo_share_options_home_page']) : 0);
|
1218 |
update_option('mo_share_options_enable_post',isset( $_POST['mo_share_options_post']) ? sanitize_text_field($_POST['mo_share_options_post']) : 0);
|
miniorange_openid_sso_settings_page.php
CHANGED
@@ -62,6 +62,38 @@ function mo_register_openid() {
|
|
62 |
backdropPadding:'6',
|
63 |
|
64 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
{
|
66 |
element: "#addon",
|
67 |
title: "Add Ons",
|
@@ -79,33 +111,14 @@ function mo_register_openid() {
|
|
79 |
backdrop:'body',
|
80 |
backdropPadding:'6',
|
81 |
onNext: function() {
|
82 |
-
window.location = base_url+'/wp-admin/admin.php?page=mo_openid_settings&tab=
|
83 |
-
}
|
84 |
-
|
85 |
-
},{
|
86 |
-
element: "#sharing",
|
87 |
-
title: "Social Sharing",
|
88 |
-
content: "Increase your popularity by letting users share your posts and pages on their preferred Social platform.",
|
89 |
-
backdrop:'body',
|
90 |
-
backdropPadding:'6',
|
91 |
-
onNext: function() {
|
92 |
-
window.location = base_url+'/wp-admin/admin.php?page=mo_openid_settings&tab=comment'
|
93 |
}
|
94 |
|
95 |
-
}, {
|
96 |
-
element: "#commenting",
|
97 |
-
title: "Social Commenting",
|
98 |
-
content: "Allow users to comment without login on your website using Facebook and Google comment boxes.",
|
99 |
-
backdrop:'body',
|
100 |
-
backdropPadding:'6',
|
101 |
-
onNext: function() {
|
102 |
-
window.location = base_url+'/wp-admin/admin.php?page=mo_openid_settings&tab=shortcode'
|
103 |
-
}
|
104 |
},
|
105 |
{
|
106 |
-
element: "#
|
107 |
-
title: "
|
108 |
-
content: "
|
109 |
backdrop:'body',
|
110 |
backdropPadding:'6',
|
111 |
onNext: function() {
|
@@ -116,7 +129,7 @@ function mo_register_openid() {
|
|
116 |
{
|
117 |
element: "#integration",
|
118 |
title: "Premium Features",
|
119 |
-
content: "Use our BuddyPress and WooCommerce integrations
|
120 |
backdrop:'body',
|
121 |
backdropPadding:'6',
|
122 |
onNext: function() {
|
@@ -133,11 +146,16 @@ function mo_register_openid() {
|
|
133 |
}
|
134 |
],
|
135 |
template: function () {
|
136 |
-
|
137 |
-
tour1.getCurrentStep()===
|
138 |
-
|
139 |
-
|
140 |
-
|
|
|
|
|
|
|
|
|
|
|
141 |
}
|
142 |
});
|
143 |
|
@@ -152,6 +170,7 @@ function mo_register_openid() {
|
|
152 |
tour.end();
|
153 |
tour1.end();
|
154 |
}
|
|
|
155 |
function end_tour1() {
|
156 |
var tour_variable = "plugin_tour";
|
157 |
jQuery.ajax({
|
@@ -160,7 +179,7 @@ function mo_register_openid() {
|
|
160 |
data: {update_tour_status: tour_variable},
|
161 |
dataType: 'text',
|
162 |
success:function(result){
|
163 |
-
|
164 |
}
|
165 |
});
|
166 |
|
@@ -269,8 +288,8 @@ function mo_register_openid_addon() {
|
|
269 |
</h2>
|
270 |
</div>
|
271 |
|
272 |
-
<
|
273 |
-
<
|
274 |
<div id="mo_openid_msgs"></div>
|
275 |
<table style="width:100%;">
|
276 |
<tr>
|
@@ -459,7 +478,6 @@ function mo_openid_apps_config() {
|
|
459 |
<tr id="select_app"><td><table style="width: 100%">
|
460 |
<h3>Select Apps</h3>
|
461 |
<h4>Select Default Apps:</h4>
|
462 |
-
|
463 |
<tr >
|
464 |
<td>
|
465 |
<table style="width:100%">
|
@@ -528,7 +546,8 @@ function mo_openid_apps_config() {
|
|
528 |
<td>
|
529 |
|
530 |
<br>
|
531 |
-
<strong><span style="color: red">*</span>Available in standard and premium plugins.</strong
|
|
|
532 |
<hr>
|
533 |
<tr id="custom_icon"><td><table style="width:100%"> <h3>Customize Login Icons</h3>
|
534 |
<p>Customize shape, theme and size of social login icons</p>
|
@@ -1478,7 +1497,6 @@ function customize_email_verify_img(){
|
|
1478 |
checkLoginButton();
|
1479 |
</script>
|
1480 |
<script>
|
1481 |
-
|
1482 |
function restart_tour() {
|
1483 |
tour.restart();
|
1484 |
}
|
@@ -1588,7 +1606,8 @@ function customize_email_verify_img(){
|
|
1588 |
<td><br /><input type="submit" name="submit" value="Save" style="width:100px;" class="button button-primary button-large" />
|
1589 |
</td>
|
1590 |
</tr> <?php if(mo_openid_restrict_user()){ ?>
|
1591 |
-
|
|
|
1592 |
<td>
|
1593 |
<br>
|
1594 |
<hr><br>
|
@@ -1599,9 +1618,10 @@ function customize_email_verify_img(){
|
|
1599 |
<td> Get Standard or Premium plugin to unlock following features</h3> <br> <a style="margin-top: 25px;margin-left: 140px" class="button button-primary button-large" href="https://www.miniorange.com/social-login-social-sharing/" target="_blank">Upgrade Now</a></td>
|
1600 |
</tr>
|
1601 |
</table>
|
1602 |
-
</div>
|
1603 |
-
|
1604 |
-
|
|
|
1605 |
<td>
|
1606 |
<br>
|
1607 |
<h3><span style="color:red;">* </span>Recaptcha Support</h3>
|
@@ -1643,10 +1663,9 @@ function customize_email_verify_img(){
|
|
1643 |
<b>Enter Privacy Policy URL: </b><br>
|
1644 |
<input type="text" style="width:90%" disabled="disabled" />
|
1645 |
</td>
|
1646 |
-
</tr>
|
1647 |
<br><hr><br><?php ;} ?>
|
1648 |
</table>
|
1649 |
-
|
1650 |
</div>
|
1651 |
</form>
|
1652 |
|
@@ -1658,7 +1677,69 @@ jQuery(function() {
|
|
1658 |
</td>
|
1659 |
<td style="vertical-align:top;padding-left:1%;" >
|
1660 |
<div id="support"><?php echo miniorange_openid_support(); ?></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1661 |
</td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1662 |
<?php
|
1663 |
}
|
1664 |
|
@@ -2379,9 +2460,64 @@ function mo_openid_other_settings(){
|
|
2379 |
|
2380 |
</td>
|
2381 |
</tr>
|
2382 |
-
|
2383 |
</table>
|
|
|
2384 |
</td></tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2385 |
|
2386 |
<script>
|
2387 |
var tempHorSize = '<?php echo esc_attr(get_option('mo_sharing_icon_custom_size')) ?>';
|
@@ -2746,6 +2882,12 @@ function mo_openid_other_settings(){
|
|
2746 |
content: "Customize the look and feel of app icons to suit your website's theme. Live preview included.",
|
2747 |
backdrop:'body',
|
2748 |
backdropPadding:'6'
|
|
|
|
|
|
|
|
|
|
|
|
|
2749 |
}, {
|
2750 |
element: "#disp_options",
|
2751 |
title: "Display Option",
|
@@ -2772,9 +2914,9 @@ function mo_openid_other_settings(){
|
|
2772 |
],
|
2773 |
template: function () {
|
2774 |
return (
|
2775 |
-
tour.getCurrentStep()===
|
2776 |
-
? "<div class=\"mo2f_popover\" role=\"tooltip\"> <div class=\"mo2f_arrow\" ></div> <h3 class=\"mo2f_popover-header\" style=\"margin-top:0px;\"></h3> <div class=\"mo2f_popover-body\"></div> <div class=\"mo2f_popover-navigation\"> <div class=\"mo2f_tour_btn-group\"><div style=\"width:47%;margin-top: -7%;\"><h4 style=\"float:left;margin-top:30%;margin-left:30%;\">"+ (tour.getCurrentStep()+1)+"/
|
2777 |
-
: "<div class=\"mo2f_popover\" role=\"tooltip\"> <div class=\"mo2f_arrow\" ></div> <h3 class=\"mo2f_popover-header\" style=\"margin-top:0px;\"></h3> <div class=\"mo2f_popover-body\"></div> <div class=\"mo2f_popover-navigation\"> <div class=\"mo2f_tour_btn-group\" style=\"width: 100%;\"><div style='margin-top: -6%;' ><h4>"+ (tour.getCurrentStep()+1)+"/
|
2778 |
);
|
2779 |
}
|
2780 |
});
|
@@ -3022,112 +3164,200 @@ function mo_openid_shortcode_info(){
|
|
3022 |
?>
|
3023 |
<td style="vertical-align:top;width:65%;">
|
3024 |
<div class="mo_openid_table_layout">
|
3025 |
-
|
3026 |
-
<table>
|
3027 |
-
<tr>
|
3028 |
-
<td colspan="2">
|
3029 |
-
<h3>Shortcode</h3>
|
3030 |
-
<b>If you are using Social login, Social Sharing by miniOrange plugin, follow the steps mentioned below to enable social login/social sharing in the content of individual page/post/frontend login form.</b>
|
3031 |
-
<p>If any section is not opening, press CTRL + F5 to clear cache.<p>
|
3032 |
-
|
3033 |
-
</td>
|
3034 |
-
|
3035 |
-
</tr>
|
3036 |
-
|
3037 |
-
<tr>
|
3038 |
-
<td>
|
3039 |
-
<h3><a id="openid_login_shortcode_title" aria-expanded="false" >Social Login Shortcode</a></h3>
|
3040 |
-
|
3041 |
-
<div hidden="" id="openid_login_shortcode" style="font-size:13px !important">
|
3042 |
-
Use social login Shortcode in the content of required page/post where you want to display Social Login Icons.<br>
|
3043 |
-
<b>Example:</b> <code>[miniorange_social_login]</code>
|
3044 |
-
|
3045 |
-
<h4 style="margin-bottom:0 !important">For Icons</h4>
|
3046 |
-
You can use different attribute to customize social login icons. All attributes are optional.<br>
|
3047 |
-
<b>Example:</b> <code>[miniorange_social_login shape="square" theme="default" space="4" size="35"]</code><br>
|
3048 |
-
|
3049 |
-
<h4 style="margin-bottom:0 !important">For Long-Buttons</h4>
|
3050 |
-
You can use different attribute to customize social login buttons. All attributes are optional.<br>
|
3051 |
-
<b>Example:</b> <code>[miniorange_social_login shape="longbuttonwithtext" theme="default" space="4" width="300" height="50" color="000000"]</code>
|
3052 |
-
<br>
|
3053 |
-
|
3054 |
-
<h4 style="margin-bottom:0 !important">Available values for attributes</h4>
|
3055 |
-
<b>shape</b>: round, roundededges, square, longbuttonwithtext<br>
|
3056 |
-
<b>theme</b>: default, custombackground<br>
|
3057 |
-
<b>size</b>: Any value between 20 to 100<br>
|
3058 |
-
<b>space</b>: Any value between 0 to 100<br>
|
3059 |
-
<b>width</b>: Any value between 200 to 1000<br>
|
3060 |
-
<b>height</b>: Any value between 35 to 50<br>
|
3061 |
-
<b>color</b>: Enter color code for example, FFFFFF<br>
|
3062 |
-
<b>heading</b>: Enter custom heading<br></div>
|
3063 |
-
<hr>
|
3064 |
-
</td>
|
3065 |
-
</tr>
|
3066 |
-
|
3067 |
-
<tr>
|
3068 |
-
<td>
|
3069 |
-
<h3><a id="openid_sharing_shortcode_title" >Social Sharing Shortcode</a></h3>
|
3070 |
-
<div hidden="" id="openid_sharing_shortcode" style="font-size:13px !important">
|
3071 |
-
<b>Horizontal</b> --> <code>[miniorange_social_sharing]</code><br>
|
3072 |
-
<b>Vertical</b> --> <code>[miniorange_social_sharing_vertical]</code>
|
3073 |
-
|
3074 |
-
<h4>For Sharing Icons</h4>
|
3075 |
-
You can use different attribute to customize social sharing icons. All attributes are optional.<br>
|
3076 |
-
<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>
|
3077 |
-
<br>
|
3078 |
-
|
3079 |
-
<h4 style="margin-bottom:0 !important">Common attributes - Horizontal and Vertical</h4>
|
3080 |
-
<b>shape</b>: round, roundededges, square<br>
|
3081 |
-
<b>theme</b>: default, custombackground, nobackground<br>
|
3082 |
-
<b>size</b>: Any value between 20 to 100<br>
|
3083 |
-
<b>space</b>: Any value between 0 to 50<br>
|
3084 |
-
<b>url</b>: Enter custom URL for sharing<br>
|
3085 |
-
<b>fontcolor</b>: Enter custom color for icons (only works with no background theme)<br>
|
3086 |
-
<h4 style="margin-bottom:0 !important">Horizontal attributes</h4>
|
3087 |
-
<b>heading</b>: Enter custom heading text<br>
|
3088 |
-
<b>color</b>: Enter custom text color for heading eg: cyan, red, blue, orange, yellow <br>
|
3089 |
-
<br>
|
3090 |
-
<b>Vertical attributes</b><br>
|
3091 |
-
<b>alignment</b>: left,right<br>
|
3092 |
-
<b>topoffset</b>: Any value(height from top) between 0 to 1000<br>
|
3093 |
-
<b>rightoffset(Applicable if alignment is right)</b>: Any value between 0 to 200<br>
|
3094 |
-
<b>leftoffset(Applicable if alignment is left)</b>: Any value between 0 to 200<br>
|
3095 |
-
</div>
|
3096 |
-
<hr>
|
3097 |
-
</td>
|
3098 |
-
</tr>
|
3099 |
-
<tr>
|
3100 |
-
<td>
|
3101 |
-
<h3><a id="openid_comments_shortcode_title" >Social Comments Shortcode</a></h3>
|
3102 |
-
<div hidden="" id="openid_comments_shortcode" style="font-size:13px !important">
|
3103 |
-
<code>[miniorange_social_comments]</code><br> <br>
|
3104 |
-
1. Configure Social Comments in the Social Comments tab of the plugin.<br>
|
3105 |
-
2. Keep both the display options checked and Save.<br>
|
3106 |
-
3. Enable Comments for the post/page you want to add <br>
|
3107 |
-
4. <b>Pages-> Quick Edit-> Allow Comments</b> (Skip this step if you already have Comments enabled.)<br>
|
3108 |
-
5. Add the shortcode [miniorange_social_comments] to an individual page/post.<br>
|
3109 |
|
3110 |
-
|
3111 |
-
|
3112 |
-
|
3113 |
-
|
3114 |
-
|
3115 |
-
|
3116 |
-
|
3117 |
-
|
3118 |
-
|
3119 |
-
|
3120 |
-
|
3121 |
-
|
3122 |
-
|
3123 |
-
|
3124 |
-
|
3125 |
-
|
3126 |
-
|
3127 |
-
|
3128 |
-
|
3129 |
-
|
3130 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3131 |
</div>
|
3132 |
</td>
|
3133 |
<td style="vertical-align:top;padding-left:1%;">
|
62 |
backdropPadding:'6',
|
63 |
|
64 |
},
|
65 |
+
{
|
66 |
+
element: "#select_app",
|
67 |
+
title: "Select Apps",
|
68 |
+
content: "Select multiple apps to enable Social Login.",
|
69 |
+
backdrop:'body',
|
70 |
+
backdropPadding:'6'
|
71 |
+
},
|
72 |
+
{
|
73 |
+
element: "#display_opt",
|
74 |
+
title: "Display Options",
|
75 |
+
content: "Select the pages where you want to show the social login icons.",
|
76 |
+
|
77 |
+
backdrop:'body',
|
78 |
+
backdropPadding:'6'
|
79 |
+
},
|
80 |
+
{
|
81 |
+
element: "#redirect_opt",
|
82 |
+
title: "Redirection Option",
|
83 |
+
content: "Redirect user after login and logout on your website. ",
|
84 |
+
backdrop:'body',
|
85 |
+
backdropPadding:'6',
|
86 |
+
|
87 |
+
|
88 |
+
},
|
89 |
+
{
|
90 |
+
element: "#premium_ad",
|
91 |
+
title: "Premium Features",
|
92 |
+
content: "These are the most commonly used features. Please update your license to standard/premium to get them.",
|
93 |
+
|
94 |
+
backdrop:'body',
|
95 |
+
backdropPadding:'6'
|
96 |
+
},
|
97 |
{
|
98 |
element: "#addon",
|
99 |
title: "Add Ons",
|
111 |
backdrop:'body',
|
112 |
backdropPadding:'6',
|
113 |
onNext: function() {
|
114 |
+
window.location = base_url+'/wp-admin/admin.php?page=mo_openid_settings&tab=email_notif'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
}
|
116 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
},
|
118 |
{
|
119 |
+
element: "#email_notif",
|
120 |
+
title: "Email Notifications",
|
121 |
+
content: "Send customized email notifications to admin and users.",
|
122 |
backdrop:'body',
|
123 |
backdropPadding:'6',
|
124 |
onNext: function() {
|
129 |
{
|
130 |
element: "#integration",
|
131 |
title: "Premium Features",
|
132 |
+
content: "Use our BuddyPress and WooCommerce integrations to map user information. Add users to MailChimp lists during social login.",
|
133 |
backdrop:'body',
|
134 |
backdropPadding:'6',
|
135 |
onNext: function() {
|
146 |
}
|
147 |
],
|
148 |
template: function () {
|
149 |
+
var return_value;
|
150 |
+
if(tour1.getCurrentStep()===9)
|
151 |
+
return_value="<div class=\"mo2f_popover\" role=\"tooltip\" style='margin-top: 2%'> <div class=\"mo2f_arrow\" ></div> <h3 class=\"mo2f_popover-header\" style=\"margin-top:0%;\"></h3> <div class=\"mo2f_popover-body\"></div> <div class=\"mo2f_popover-navigation\"> <div class=\"mo2f_tour_btn-group\"><div style=\"width:47%;margin-top: -7%;\"><h4 style=\"float:left;margin-top:30%;margin-left:30%;\">"+ (tour1.getCurrentStep()+1)+"/10</h4></div></div> <button class=\"button button-primary button-large\" data-role=\"end\" onclick=\"end_tour1();\">Done</button> </div> </div>";
|
152 |
+
else {
|
153 |
+
if(tour1.getCurrentStep()===5)
|
154 |
+
return_value = "<div class=\"mo2f_popover\" role=\"tooltip\" style='margin-top: 2%'> <div class=\"mo2f_arrow\" ></div> <h3 class=\"mo2f_popover-header\" style=\"margin-top:0px;\"></h3> <div class=\"mo2f_popover-body\"></div> <div class=\"mo2f_popover-navigation\"> <div class=\"mo2f_tour_btn-group\" style=\"width: 100%;\"><div style='margin-top: -6%;' ><h4>"+ (tour1.getCurrentStep()+1)+"/10</h4></div> <button class=\"mo2f_tour_btn mo2f_tour_btn-sm mo2f_tour_btn-secondary mo2f_tour_btn_next-success\" style=\"width: 32%;height: 0%;margin-left: 25%;\" data-role=\"next\">Next »</button><button class=\"button button-primary button-large\" data-role=\"end\" style='margin-left: 7%'onclick=\"window.location= base_url+'/wp-admin/admin.php?page=mo_openid_settings&tab=login'\">Close</button></div></div></div>";
|
155 |
+
else
|
156 |
+
return_value = "<div class=\"mo2f_popover\" role=\"tooltip\"> <div class=\"mo2f_arrow\" ></div> <h3 class=\"mo2f_popover-header\" style=\"margin-top:0px;\"></h3> <div class=\"mo2f_popover-body\"></div> <div class=\"mo2f_popover-navigation\"> <div class=\"mo2f_tour_btn-group\" style=\"width: 100%;\"><div style='margin-top: -6%;' ><h4>"+ (tour1.getCurrentStep()+1)+"/10</h4></div> <button class=\"mo2f_tour_btn mo2f_tour_btn-sm mo2f_tour_btn-secondary mo2f_tour_btn_next-success\" style=\"width: 32%;height: 0%;margin-left: 25%;\" data-role=\"next\">Next »</button><button class=\"button button-primary button-large\" data-role=\"end\" style='margin-left: 7%'onclick=\"window.location= base_url+'/wp-admin/admin.php?page=mo_openid_settings&tab=login'\">Close</button></div></div></div>";
|
157 |
+
}
|
158 |
+
return (return_value);
|
159 |
}
|
160 |
});
|
161 |
|
170 |
tour.end();
|
171 |
tour1.end();
|
172 |
}
|
173 |
+
|
174 |
function end_tour1() {
|
175 |
var tour_variable = "plugin_tour";
|
176 |
jQuery.ajax({
|
179 |
data: {update_tour_status: tour_variable},
|
180 |
dataType: 'text',
|
181 |
success:function(result){
|
182 |
+
window.location= base_url+'/wp-admin/admin.php?page=mo_openid_settings&tab=pricing';
|
183 |
}
|
184 |
});
|
185 |
|
288 |
</h2>
|
289 |
</div>
|
290 |
|
291 |
+
<table id="mo_openid_settings">
|
292 |
+
<tr class="mo_container">
|
293 |
<div id="mo_openid_msgs"></div>
|
294 |
<table style="width:100%;">
|
295 |
<tr>
|
478 |
<tr id="select_app"><td><table style="width: 100%">
|
479 |
<h3>Select Apps</h3>
|
480 |
<h4>Select Default Apps:</h4>
|
|
|
481 |
<tr >
|
482 |
<td>
|
483 |
<table style="width:100%">
|
546 |
<td>
|
547 |
|
548 |
<br>
|
549 |
+
<strong><span style="color: red">*</span>Available in standard and premium plugins.</strong><br/>
|
550 |
+
<br><strong>Note:</strong> Enabling Apps from here will only display Social Login Icons in Wordpress default login. To use Social Login options on the pages other than Wordpress default login/registration form use <a href="admin.php?page=mo_openid_settings&tab=shortcode" target="_blank">Shortcode</a>
|
551 |
<hr>
|
552 |
<tr id="custom_icon"><td><table style="width:100%"> <h3>Customize Login Icons</h3>
|
553 |
<p>Customize shape, theme and size of social login icons</p>
|
1497 |
checkLoginButton();
|
1498 |
</script>
|
1499 |
<script>
|
|
|
1500 |
function restart_tour() {
|
1501 |
tour.restart();
|
1502 |
}
|
1606 |
<td><br /><input type="submit" name="submit" value="Save" style="width:100px;" class="button button-primary button-large" />
|
1607 |
</td>
|
1608 |
</tr> <?php if(mo_openid_restrict_user()){ ?>
|
1609 |
+
|
1610 |
+
<tr>
|
1611 |
<td>
|
1612 |
<br>
|
1613 |
<hr><br>
|
1618 |
<td> Get Standard or Premium plugin to unlock following features</h3> <br> <a style="margin-top: 25px;margin-left: 140px" class="button button-primary button-large" href="https://www.miniorange.com/social-login-social-sharing/" target="_blank">Upgrade Now</a></td>
|
1619 |
</tr>
|
1620 |
</table>
|
1621 |
+
</div></td></tr>
|
1622 |
+
|
1623 |
+
<tr ><td><table id="premium_ad">
|
1624 |
+
<tr>
|
1625 |
<td>
|
1626 |
<br>
|
1627 |
<h3><span style="color:red;">* </span>Recaptcha Support</h3>
|
1663 |
<b>Enter Privacy Policy URL: </b><br>
|
1664 |
<input type="text" style="width:90%" disabled="disabled" />
|
1665 |
</td>
|
1666 |
+
</tr></table></td></tr>
|
1667 |
<br><hr><br><?php ;} ?>
|
1668 |
</table>
|
|
|
1669 |
</div>
|
1670 |
</form>
|
1671 |
|
1677 |
</td>
|
1678 |
<td style="vertical-align:top;padding-left:1%;" >
|
1679 |
<div id="support"><?php echo miniorange_openid_support(); ?></div>
|
1680 |
+
<div style="margin-top:70px; height: 319px" class="mo_openid_support_layout">
|
1681 |
+
<div>
|
1682 |
+
<p>Looking for a <b>Custom Registration Form</b>? Try our new <b>Social Login Integration Add-on</b>.</p>
|
1683 |
+
<div style="width:95%; height:250px; border: 1px solid lightgrey;">
|
1684 |
+
<div style="width: 100%; height: 70px; margin-top: 15px">
|
1685 |
+
<div style=" margin-left: 20px; width: 20%; float: left"><a href="admin.php?page=mo_openid_settings_addOn" target="_blank"><img style="height:60px" src="<?php echo plugins_url('includes/images/miniorange_logo.png', __FILE__) ?>"></a></div>
|
1686 |
+
<div style="width: 70%; float:right">
|
1687 |
+
<h1 style="margin: 0 0 15px; font-weight: 600; font-size: 22px; line-height: 1.3;">
|
1688 |
+
<a class="mo-pugin-add-link-sl mo-add-hover" href="admin.php?page=mo_openid_settings_addOn" target="_blank">Social Login Integration Add-on</a>
|
1689 |
+
<a class="mo-pugin-add-comp-link-sl">by </a>
|
1690 |
+
<a class="mo-pugin-add-comp-link-sl mo-add-hover" href="https://www.miniorange.com/" target="_blank">miniorange</a>
|
1691 |
+
</h1>
|
1692 |
+
</div>
|
1693 |
+
</div>
|
1694 |
+
<p style="margin-left: 10px; font-size: 14px">Custom Registration Form Add-On helps you to integrate details of new as well as existing users. You can add as many fields as you want including the one which are returned by social sites at time of registration.</p>
|
1695 |
+
<a href="admin.php?page=mo_openid_settings_addOn" target="_blank"><button style="margin-right: 25px; align-content: center; float: right; height: 30px" class="button button-primary button-large"><b>Get this plugin</b></button></a><br><br>
|
1696 |
+
</div>
|
1697 |
+
</div>
|
1698 |
+
</div>
|
1699 |
+
<div style="margin-top:20px; height: auto" class="mo_openid_support_layout">
|
1700 |
+
<div>
|
1701 |
+
<p>Do you want to make your <b>website more secure</b> by Brute Force attack, Spam Protection etc? Try out our Plugin.</p>
|
1702 |
+
<script type='text/javascript'>
|
1703 |
+
<!--//--><![CDATA[//><!--
|
1704 |
+
!function(a,b){"use strict";function c(){if(!e){e=!0;var a,c,d,f,g=-1!==navigator.appVersion.indexOf("MSIE 10"),h=!!navigator.userAgent.match(/Trident.*rv:11\./),i=b.querySelectorAll("iframe.wp-embedded-content");for(c=0;c<i.length;c++){if(d=i[c],!d.getAttribute("data-secret"))f=Math.random().toString(36).substr(2,10),d.src+="#?secret="+f,d.setAttribute("data-secret",f);if(g||h)a=d.cloneNode(!0),a.removeAttribute("security"),d.parentNode.replaceChild(a,d)}}}var d=!1,e=!1;if(b.querySelector)if(a.addEventListener)d=!0;if(a.wp=a.wp||{},!a.wp.receiveEmbedMessage)if(a.wp.receiveEmbedMessage=function(c){var d=c.data;if(d)if(d.secret||d.message||d.value)if(!/[^a-zA-Z0-9]/.test(d.secret)){var e,f,g,h,i,j=b.querySelectorAll('iframe[data-secret="'+d.secret+'"]'),k=b.querySelectorAll('blockquote[data-secret="'+d.secret+'"]');for(e=0;e<k.length;e++)k[e].style.display="none";for(e=0;e<j.length;e++)if(f=j[e],c.source===f.contentWindow){if(f.removeAttribute("style"),"height"===d.message){if(g=parseInt(d.value,10),g>1e3)g=1e3;else if(~~g<200)g=200;f.height=g}if("link"===d.message)if(h=b.createElement("a"),i=b.createElement("a"),h.href=f.getAttribute("src"),i.href=d.value,i.host===h.host)if(b.activeElement===f)a.top.location.href=d.value}else;}},d)a.addEventListener("message",a.wp.receiveEmbedMessage,!1),b.addEventListener("DOMContentLoaded",c,!1),a.addEventListener("load",c,!1)}(window,document);
|
1705 |
+
//--><!]]>
|
1706 |
+
</script>
|
1707 |
+
<iframe sandbox="allow-scripts" security="restricted" target="_blank" src="https://wordpress.org/plugins/wp-security-pro/embed/" width="95%" height="230" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" class="wp-embedded-content"></iframe>
|
1708 |
+
</div>
|
1709 |
+
</div>
|
1710 |
+
<div style="margin-top:20px; height: auto" class="mo_openid_support_layout">
|
1711 |
+
<div>
|
1712 |
+
<p>Looking for <b>OTP Verification</b> along with Social Login? Try our OTP Plugin.</p>
|
1713 |
+
<script type='text/javascript'>
|
1714 |
+
<!--//--><![CDATA[//><!--
|
1715 |
+
!function(a,b){"use strict";function c(){if(!e){e=!0;var a,c,d,f,g=-1!==navigator.appVersion.indexOf("MSIE 10"),h=!!navigator.userAgent.match(/Trident.*rv:11\./),i=b.querySelectorAll("iframe.wp-embedded-content");for(c=0;c<i.length;c++){if(d=i[c],!d.getAttribute("data-secret"))f=Math.random().toString(36).substr(2,10),d.src+="#?secret="+f,d.setAttribute("data-secret",f);if(g||h)a=d.cloneNode(!0),a.removeAttribute("security"),d.parentNode.replaceChild(a,d)}}}var d=!1,e=!1;if(b.querySelector)if(a.addEventListener)d=!0;if(a.wp=a.wp||{},!a.wp.receiveEmbedMessage)if(a.wp.receiveEmbedMessage=function(c){var d=c.data;if(d)if(d.secret||d.message||d.value)if(!/[^a-zA-Z0-9]/.test(d.secret)){var e,f,g,h,i,j=b.querySelectorAll('iframe[data-secret="'+d.secret+'"]'),k=b.querySelectorAll('blockquote[data-secret="'+d.secret+'"]');for(e=0;e<k.length;e++)k[e].style.display="none";for(e=0;e<j.length;e++)if(f=j[e],c.source===f.contentWindow){if(f.removeAttribute("style"),"height"===d.message){if(g=parseInt(d.value,10),g>1e3)g=1e3;else if(~~g<200)g=200;f.height=g}if("link"===d.message)if(h=b.createElement("a"),i=b.createElement("a"),h.href=f.getAttribute("src"),i.href=d.value,i.host===h.host)if(b.activeElement===f)a.top.location.href=d.value}else;}},d)a.addEventListener("message",a.wp.receiveEmbedMessage,!1),b.addEventListener("DOMContentLoaded",c,!1),a.addEventListener("load",c,!1)}(window,document);
|
1716 |
+
//--><!]]>
|
1717 |
+
</script>
|
1718 |
+
<iframe sandbox="allow-scripts" security="restricted" target="_blank" src="https://wordpress.org/plugins/miniorange-otp-verification/embed/" width="95%" height="230" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" class="wp-embedded-content"></iframe>
|
1719 |
+
</div>
|
1720 |
+
</div>
|
1721 |
</td>
|
1722 |
+
<script>
|
1723 |
+
var tour2 = new Tour({
|
1724 |
+
name: "tour2",
|
1725 |
+
steps: [
|
1726 |
+
{element: "#support",
|
1727 |
+
title: "miniOrange Support",
|
1728 |
+
content: "Feel free to reach out to us in case of any assistance.",
|
1729 |
+
backdrop:'body',
|
1730 |
+
backdropPadding:'6',
|
1731 |
+
},
|
1732 |
+
],
|
1733 |
+
template: function () {
|
1734 |
+
return ("<div class=\"mo2f_popover\" role=\"tooltip\"> <div class=\"mo2f_arrow\" ></div> <h3 class=\"mo2f_popover-header\" style=\"margin-top:0px;\"></h3> <div class=\"mo2f_popover-body\"></div> <div class=\"mo2f_popover-navigation\"> <div class=\"mo2f_tour_btn-group\" style=\"width: 100%;\"><button class=\"button button-primary button-large\" data-role=\"end\"onclick='end_tour1();'>OK Got It</button></div></div></div>");
|
1735 |
+
}
|
1736 |
+
});
|
1737 |
+
var temp = "<?php echo get_option('mo_openid_tour'); ?>";
|
1738 |
+
if(temp=="0"&&tour1.ended()) {
|
1739 |
+
tour2.init();
|
1740 |
+
tour2.start();
|
1741 |
+
}
|
1742 |
+
</script>
|
1743 |
<?php
|
1744 |
}
|
1745 |
|
2460 |
|
2461 |
</td>
|
2462 |
</tr>
|
|
|
2463 |
</table>
|
2464 |
+
<hr/>
|
2465 |
</td></tr>
|
2466 |
+
<tr id="share_cnt">
|
2467 |
+
<td>
|
2468 |
+
<table style="width: 100%">
|
2469 |
+
<tr>
|
2470 |
+
<td>
|
2471 |
+
<h3>Social share counts</h3>
|
2472 |
+
<b>Share counts are supported for Facebook, Vkontakte, Stumble Upon and Pinterest.</b>
|
2473 |
+
<br>
|
2474 |
+
<br>
|
2475 |
+
<input type="checkbox" id="share_count" name="mo_openid_share_count" value="1"
|
2476 |
+
<?php if(!mo_openid_is_customer_registered()) echo 'disabled'?> <?php checked( get_option('mo_openid_share_count') == 1 );?> />
|
2477 |
+
<strong>Enable share counts</strong>
|
2478 |
+
<br><br>
|
2479 |
+
<input type="button" id="delete_count_transient" value="Delete Count Session" name="delete_count_transient"
|
2480 |
+
style="width:150px; margin-bottom: 0px" onclick="delete_transit()" class="button button-primary button-large"/>
|
2481 |
+
</td>
|
2482 |
+
</tr>
|
2483 |
+
<script>
|
2484 |
+
function delete_transit() {
|
2485 |
+
var a= "<?php delete_transient('facebook');
|
2486 |
+
delete_transient('vkontakte');
|
2487 |
+
delete_transient('stumbleupon');
|
2488 |
+
delete_transient('pinterest'); ?>";
|
2489 |
+
location.reload();
|
2490 |
+
}
|
2491 |
+
</script>
|
2492 |
+
<tr>
|
2493 |
+
<td style="width: 100%; align-content: center">
|
2494 |
+
<div class="sharecount" style="text-align: center">
|
2495 |
+
<ul class="share_count_icon">
|
2496 |
+
<li >
|
2497 |
+
<img class="mo_sharing_icon_preview" id="mo_sharing_icon_preview_count_facebook" src="<?php echo plugins_url( 'includes/images/icons/facebook.png', __FILE__ )?>" />
|
2498 |
+
<i class="mo_custom_sharing_icon_preview fa fa-facebook" id="mo_custom_sharing_icon_preview_count_facebook" style="color:#ffffff;text-align:center;"></i>
|
2499 |
+
<i class="mo_custom_sharing_icon_font_preview fa fa-facebook" id="mo_custom_sharing_icon_font_preview_count_facebook" style="text-align:center;margin-top:5px;"></i>
|
2500 |
+
<span style='margin-left : <?php echo esc_attr(get_option('mo_sharing_icon_space'))?>px !important'>12k</span>
|
2501 |
+
</li>
|
2502 |
+
</ul>
|
2503 |
+
</div>
|
2504 |
+
<div>
|
2505 |
+
<b>Facebook Access Token</b> <input style="width: 50%;" type="text" <?php if(!mo_openid_is_customer_registered()) echo 'disabled'?> name="mo_openid_Facebook_share_count_api" value="<?php echo esc_attr(get_option( 'mo_openid_Facebook_share_count_api')); ?>"><br/>
|
2506 |
+
<p><b>Instructions to configure Facebook Share Counts:</b></p>
|
2507 |
+
<ol>
|
2508 |
+
<li>Go to <a href="https://developers.facebook.com/tools/explorer/" target="_blank">https://developers.facebook.com/tools/explorer/</a>. Sign in with your Facebook account.</li>
|
2509 |
+
<li>Use an existing app if you already have one or create a new facebook app by clicking on <b>Create App</b>. Go to <b>My Apps</b> and select <b>Create App</b>. Enter Display Name i.e App Name and click on <b>Create App ID</b>.</li>
|
2510 |
+
<li>Go to <b>Tools</b> select <b>Graph API Explorer</b> and click on <b>Get Access Token</b>.</li>
|
2511 |
+
<li>Now, go to <a href="https://developers.facebook.com/tools/accesstoken" target="_blank">Access Token Tool</a> and press <b>Debug</b> option at right side for the <b>User Token</b></li>
|
2512 |
+
<li>Now copy the <b>Access Token</b> and paste it in the above field and click on <b>save</b>.</li>
|
2513 |
+
</ol>
|
2514 |
+
<p><span style="color: red">*</span><strong>According to the new updates of Facebook API it will expires after every 60 days. So to avoid any issues update it again before 60 days.</strong></p>
|
2515 |
+
</div>
|
2516 |
+
</td>
|
2517 |
+
</tr>
|
2518 |
+
</table>
|
2519 |
+
</td>
|
2520 |
+
</tr>
|
2521 |
|
2522 |
<script>
|
2523 |
var tempHorSize = '<?php echo esc_attr(get_option('mo_sharing_icon_custom_size')) ?>';
|
2882 |
content: "Customize the look and feel of app icons to suit your website's theme. Live preview included.",
|
2883 |
backdrop:'body',
|
2884 |
backdropPadding:'6'
|
2885 |
+
}, {
|
2886 |
+
element: "#share_cnt",
|
2887 |
+
title: "Social share Count",
|
2888 |
+
content: "Enable social share count to display the total number of shares of your page.",
|
2889 |
+
backdrop:'body',
|
2890 |
+
backdropPadding:'6'
|
2891 |
}, {
|
2892 |
element: "#disp_options",
|
2893 |
title: "Display Option",
|
2914 |
],
|
2915 |
template: function () {
|
2916 |
return (
|
2917 |
+
tour.getCurrentStep()===5 // Is this the last step?
|
2918 |
+
? "<div class=\"mo2f_popover\" role=\"tooltip\"> <div class=\"mo2f_arrow\" ></div> <h3 class=\"mo2f_popover-header\" style=\"margin-top:0px;\"></h3> <div class=\"mo2f_popover-body\"></div> <div class=\"mo2f_popover-navigation\"> <div class=\"mo2f_tour_btn-group\"><div style=\"width:47%;margin-top: -7%;\"><h4 style=\"float:left;margin-top:30%;margin-left:30%;\">"+ (tour.getCurrentStep()+1)+"/6</h4></div></div> <button class=\"button button-primary button-large\" data-role=\"end\">Done</button> </div> </div>"
|
2919 |
+
: "<div class=\"mo2f_popover\" role=\"tooltip\"> <div class=\"mo2f_arrow\" ></div> <h3 class=\"mo2f_popover-header\" style=\"margin-top:0px;\"></h3> <div class=\"mo2f_popover-body\"></div> <div class=\"mo2f_popover-navigation\"> <div class=\"mo2f_tour_btn-group\" style=\"width: 100%;\"><div style='margin-top: -6%;' ><h4>"+ (tour.getCurrentStep()+1)+"/6</h4></div> <button class=\"mo2f_tour_btn mo2f_tour_btn-sm mo2f_tour_btn-secondary mo2f_tour_btn_next-success\" style=\"width: 32%;height: 0%;margin-left: 25%;\" data-role=\"next\">Next »</button><button class=\"button button-primary button-large\" data-role=\"end\" style='margin-left: 7%'>End</button></div></div></div>"
|
2920 |
);
|
2921 |
}
|
2922 |
});
|
3164 |
?>
|
3165 |
<td style="vertical-align:top;width:65%;">
|
3166 |
<div class="mo_openid_table_layout">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3167 |
|
3168 |
+
<table>
|
3169 |
+
<tr>
|
3170 |
+
<td colspan="2">
|
3171 |
+
<h3>Shortcode</h3>
|
3172 |
+
<b>If you are using Social login, Social Sharing by miniOrange plugin, follow the steps mentioned below to enable social login/social sharing in the content of individual page/post/frontend login form.</b>
|
3173 |
+
<p>If any section is not opening, press CTRL + F5 to clear cache.<p>
|
3174 |
+
|
3175 |
+
</td>
|
3176 |
+
</tr>
|
3177 |
+
<tr>
|
3178 |
+
<td>
|
3179 |
+
<h3><a id="openid_login_shortcode_title" aria-expanded="false" >Social Login Shortcode</a></h3>
|
3180 |
+
<div hidden="" id="openid_login_shortcode" style="font-size:13px !important">
|
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><hr>
|
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 shape="square" theme="default" space="4" size="35"]</code><br/><br/>
|
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>
|
3199 |
+
<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 round"></a>
|
3200 |
+
<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 round"></a><br/><br/>
|
3201 |
+
|
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/>
|
3214 |
+
<b>Note:</b> By default Long-Button view is <b>Vertical</b><hr>
|
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>
|
3222 |
+
<br/><br/>
|
3223 |
+
<table border="1" width="100%">
|
3224 |
+
<tr align="center">
|
3225 |
+
<td colspan="8"><b>Values for application</b></td>
|
3226 |
+
</tr>
|
3227 |
+
<tbody align="center"><tr>
|
3228 |
+
<td><b>Name</b></td><td><b>Value</b></td><td><b>Name</b></td><td><b>Value</b></td><td><b>Name</b></td><td><b>Value</b></td><td><b>Name</b></td><td><b>Value</b></td>
|
3229 |
+
</tr><tr>
|
3230 |
+
<td><b>Facebook</b></td><td>fb</td><td><b>Google</b></td><td>google</td><td><b>Vkontakte</b></td><td>vk</td><td><b>Twitter</b></td><td>twitter</td>
|
3231 |
+
</tr><tr>
|
3232 |
+
<td><b>Instagram</b></td><td>insta</td><td><b>LinkedIn</b></td><td>linkin</td><td><b>Amazon</b></td><td>amazon</td><td><b>Salesforce</b></td><td>sforce</td>
|
3233 |
+
</tr><tr>
|
3234 |
+
<td><b>Windows Live</b></td><td>wlive</td><td><b>Yahoo</b></td><td>yahoo</td><td><b>Wordpress</b></td><td>wpress</td><td><b>Disqus</b></td><td>disqus</td>
|
3235 |
+
</tr><tr>
|
3236 |
+
<td><b>Pinterest</b></td><td>pin</td><td><b>Twitch</b></td><td>twitch</td><td><b>Vimeo</b></td><td>vimeo</td><td><b>Kakao</b></td><td>kakao</td>
|
3237 |
+
</tr></tbody>
|
3238 |
+
</table><br/>
|
3239 |
+
<b>Note:</b> If Facebook, Disqus, Pinterest, Twitch, Vimeo or Kakao is selected then please set up <b>Custom App</b> first otherwise the buttons will be <b>disabled<b>
|
3240 |
+
<br/><hr/><br/>
|
3241 |
+
|
3242 |
+
<table border="1" width="60%">
|
3243 |
+
<tr align="center">
|
3244 |
+
<td colspan="2"><b>Available values for attributes</b></td>
|
3245 |
+
</tr>
|
3246 |
+
<tbody align="center">
|
3247 |
+
<tr width="100%">
|
3248 |
+
<td width="20%"><b>view</b></td>
|
3249 |
+
<td width="80%">horizontal, vertical</td>
|
3250 |
+
</tr>
|
3251 |
+
<tr>
|
3252 |
+
<td><b><b>shape</b></b></td>
|
3253 |
+
<td>round, roundededges, square, longbuttonwithtext</td>
|
3254 |
+
</tr>
|
3255 |
+
<tr>
|
3256 |
+
<td><b><b>theme</b></b></td>
|
3257 |
+
<td>default, custombackground</td>
|
3258 |
+
</tr>
|
3259 |
+
<tr>
|
3260 |
+
<td><b><b>size</b></b></td>
|
3261 |
+
<td>Any value between 20 to 100</td>
|
3262 |
+
</tr>
|
3263 |
+
<tr>
|
3264 |
+
<td><b><b>space</b></b></td>
|
3265 |
+
<td>Any value between 0 to 100</td>
|
3266 |
+
</tr>
|
3267 |
+
<tr>
|
3268 |
+
<td><b><b>width</b></b></td>
|
3269 |
+
<td>Any value between 200 to 1000</td>
|
3270 |
+
</tr>
|
3271 |
+
<tr>
|
3272 |
+
<td><b>height</b></td>
|
3273 |
+
<td>Any value between 35 to 50</td>
|
3274 |
+
</tr>
|
3275 |
+
<tr>
|
3276 |
+
<td><b>color</b></td>
|
3277 |
+
<td>Enter color code for example, FFFFFF</td>
|
3278 |
+
</tr>
|
3279 |
+
<tr>
|
3280 |
+
<td><b>heading</b></td>
|
3281 |
+
<td>Enter custom heading</td>
|
3282 |
+
</tr>
|
3283 |
+
<tr>
|
3284 |
+
<td><b>appcnt</b></td>
|
3285 |
+
<td>Any value for number of icons in one row</td>
|
3286 |
+
</tr>
|
3287 |
+
</tbody>
|
3288 |
+
</table>
|
3289 |
+
</div>
|
3290 |
+
<hr>
|
3291 |
+
</td>
|
3292 |
+
</tr>
|
3293 |
+
|
3294 |
+
<tr>
|
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>
|
3309 |
+
<b>shape</b>: round, roundededges, square<br>
|
3310 |
+
<b>theme</b>: default, custombackground, nobackground<br>
|
3311 |
+
<b>size</b>: Any value between 20 to 100<br>
|
3312 |
+
<b>space</b>: Any value between 0 to 50<br>
|
3313 |
+
<b>url</b>: Enter custom URL for sharing<br>
|
3314 |
+
<b>fontcolor</b>: Enter custom color for icons (only works with no background theme)<br>
|
3315 |
+
<b>sharecnt</b>: yes, no <b>*To see social share count*</b><br>
|
3316 |
+
<h4 style="margin-bottom:0 !important">Horizontal attributes</h4>
|
3317 |
+
<b>heading</b>: Enter custom heading text<br>
|
3318 |
+
<b>color</b>: Enter custom text color for heading eg: cyan, red, blue, orange, yellow <br>
|
3319 |
+
<br>
|
3320 |
+
<b>Vertical attributes</b><br>
|
3321 |
+
<b>alignment</b>: left,right<br>
|
3322 |
+
<b>topoffset</b>: Any value(height from top) between 0 to 1000<br>
|
3323 |
+
<b>rightoffset(Applicable if alignment is right)</b>: Any value between 0 to 200<br>
|
3324 |
+
<b>leftoffset(Applicable if alignment is left)</b>: Any value between 0 to 200<br>
|
3325 |
+
</div>
|
3326 |
+
<hr>
|
3327 |
+
</td>
|
3328 |
+
</tr>
|
3329 |
+
<tr>
|
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>
|
3337 |
+
4. <b>Pages-> Quick Edit-> Allow Comments</b> (Skip this step if you already have Comments enabled.)<br>
|
3338 |
+
5. Add the shortcode [miniorange_social_comments] to an individual page/post.<br>
|
3339 |
+
|
3340 |
+
</div>
|
3341 |
+
<hr>
|
3342 |
+
</td>
|
3343 |
+
</tr>
|
3344 |
+
<tr>
|
3345 |
+
<td>
|
3346 |
+
<h3><a id="openid_shortcode_inphp_title">Shortcode in php file</a></h3>
|
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></div>
|
3355 |
+
<hr>
|
3356 |
+
|
3357 |
+
</td>
|
3358 |
+
</tr>
|
3359 |
+
|
3360 |
+
</table>
|
3361 |
</div>
|
3362 |
</td>
|
3363 |
<td style="vertical-align:top;padding-left:1%;">
|
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,13 @@ Please email us at info@miniorange.com. You can also submit your query from the
|
|
175 |
|
176 |
|
177 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
178 |
= 7.2.5 =
|
179 |
* Fixed Profile completion form issue.
|
180 |
* Minor UI fixes.
|
@@ -647,6 +654,12 @@ SECURITY FIXES
|
|
647 |
* First version of Social Login, Social Sharing plugin.
|
648 |
|
649 |
== Upgrade Notice ==
|
|
|
|
|
|
|
|
|
|
|
|
|
650 |
= 7.2.5 =
|
651 |
* Fixed Profile completion form issue.
|
652 |
* Minor UI fixes.
|
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.6
|
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 |
+
|
179 |
+
= 7.2.6 =
|
180 |
+
* Added Social Share count Feature.
|
181 |
+
* Added Horizontal long buttons option in shortcode.
|
182 |
+
* Added more customizable options in Social Login shortcode.
|
183 |
+
* Minor UI fixes.
|
184 |
+
|
185 |
= 7.2.5 =
|
186 |
* Fixed Profile completion form issue.
|
187 |
* Minor UI 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.
|
660 |
+
* Added more customizable options in Social Login shortcode.
|
661 |
+
* Minor UI fixes.
|
662 |
+
|
663 |
= 7.2.5 =
|
664 |
* Fixed Profile completion form issue.
|
665 |
* Minor UI fixes.
|
uninstall.php
CHANGED
@@ -84,6 +84,8 @@
|
|
84 |
delete_option('mo_openid_mail_share_enable');
|
85 |
delete_option('mo_openid_print_share_enable');
|
86 |
delete_option('mo_openid_whatsapp_share_enable');
|
|
|
|
|
87 |
delete_option( 'mo_openid_admin_customer_valid');
|
88 |
delete_option( 'mo_openid_admin_customer_plan');
|
89 |
delete_option( 'mo_openid_share_widget_customize_text_color');
|
84 |
delete_option('mo_openid_mail_share_enable');
|
85 |
delete_option('mo_openid_print_share_enable');
|
86 |
delete_option('mo_openid_whatsapp_share_enable');
|
87 |
+
delete_option('mo_openid_share_count');
|
88 |
+
delete_option('mo_openid_Facebook_share_count_api');
|
89 |
delete_option( 'mo_openid_admin_customer_valid');
|
90 |
delete_option( 'mo_openid_admin_customer_plan');
|
91 |
delete_option( 'mo_openid_share_widget_customize_text_color');
|