Version Description
- Added Profile Completion Feature
Download this release
Release Info
Developer | cyberlord92 |
Plugin | Social Login |
Version | 5.1.7 |
Comparing to | |
See all releases |
Code changes from version 5.1.5 to 5.1.7
- class-mo-openid-login-widget.php +711 -189
- class-mo-openid-social-share.php +104 -102
- class-mo-openid-sso-customer.php +61 -12
- class-mo-openid-sso-shortcode-buttons.php +102 -102
- includes/css/bootstrap.min-preview.css +0 -2
- includes/css/bootstrap.min.css +0 -2
- miniorange_openid_sso_settings.php +29 -3
- miniorange_openid_sso_settings_page.php +77 -67
- readme.txt +13 -1
- uninstall.php +5 -1
class-mo-openid-login-widget.php
CHANGED
@@ -71,25 +71,23 @@ class mo_openid_login_wid extends WP_Widget {
|
|
71 |
if($customTheme == 'default'){
|
72 |
if( get_option('mo_openid_facebook_enable') ) {
|
73 |
if($selected_theme == 'longbutton'){
|
74 |
-
?> <a
|
75 |
echo get_option('mo_openid_login_button_customize_text'); ?> Facebook</a>
|
76 |
<?php }
|
77 |
else{ ?>
|
78 |
-
|
79 |
-
<a rel='nofollow' title="<?php echo $customTextofTitle ?> Facebook" onClick="moOpenIdLogin('facebook');"><img alt='Facebook' style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important" src="<?php echo plugins_url( 'includes/images/icons/facebook.png', __FILE__ )?>" class="<?php echo $selected_theme; ?> login-button" ></a>
|
80 |
|
81 |
<?php }
|
82 |
|
83 |
}
|
84 |
if( get_option('mo_openid_google_enable') ) {
|
85 |
-
if($selected_theme == 'longbutton'){
|
86 |
-
?>
|
87 |
|
88 |
-
<a
|
89 |
echo get_option('mo_openid_login_button_customize_text'); ?> Google</a>
|
90 |
<?php }
|
91 |
else{ ?>
|
92 |
-
<a
|
93 |
<?php
|
94 |
}
|
95 |
}
|
@@ -98,11 +96,11 @@ class mo_openid_login_wid extends WP_Widget {
|
|
98 |
if($selected_theme == 'longbutton'){
|
99 |
?>
|
100 |
|
101 |
-
<a
|
102 |
echo get_option('mo_openid_login_button_customize_text'); ?> Vkontakte</a>
|
103 |
<?php }
|
104 |
else{ ?>
|
105 |
-
<a
|
106 |
<?php
|
107 |
}
|
108 |
}
|
@@ -110,62 +108,62 @@ class mo_openid_login_wid extends WP_Widget {
|
|
110 |
|
111 |
if( get_option('mo_openid_twitter_enable') ) {
|
112 |
if($selected_theme == 'longbutton'){
|
113 |
-
?> <a
|
114 |
echo get_option('mo_openid_login_button_customize_text'); ?> Twitter</a>
|
115 |
<?php }
|
116 |
else{ ?>
|
117 |
|
118 |
|
119 |
-
<a
|
120 |
<?php }
|
121 |
}
|
122 |
|
123 |
if( get_option('mo_openid_linkedin_enable') ) {
|
124 |
if($selected_theme == 'longbutton'){ ?>
|
125 |
-
<a
|
126 |
echo get_option('mo_openid_login_button_customize_text'); ?> LinkedIn</a>
|
127 |
<?php }
|
128 |
else{ ?>
|
129 |
-
<a
|
130 |
<?php }
|
131 |
}if( get_option('mo_openid_instagram_enable') ) {
|
132 |
if($selected_theme == 'longbutton'){ ?>
|
133 |
-
<a
|
134 |
echo get_option('mo_openid_login_button_customize_text'); ?> Instagram</a>
|
135 |
<?php }
|
136 |
else{ ?>
|
137 |
|
138 |
|
139 |
-
<a
|
140 |
<?php }
|
141 |
}if( get_option('mo_openid_amazon_enable') ) {
|
142 |
if($selected_theme == 'longbutton'){
|
143 |
-
?> <a
|
144 |
echo get_option('mo_openid_login_button_customize_text'); ?> Amazon</a>
|
145 |
<?php }
|
146 |
else{ ?>
|
147 |
|
148 |
-
<a
|
149 |
<?php }
|
150 |
}if( get_option('mo_openid_salesforce_enable') ) {
|
151 |
if($selected_theme == 'longbutton'){
|
152 |
-
?> <a
|
153 |
echo get_option('mo_openid_login_button_customize_text'); ?> Salesforce</a>
|
154 |
<?php }
|
155 |
else{ ?>
|
156 |
|
157 |
|
158 |
-
<a
|
159 |
<?php }
|
160 |
}if( get_option('mo_openid_windowslive_enable') ) {
|
161 |
if($selected_theme == 'longbutton'){
|
162 |
-
?> <a
|
163 |
echo get_option('mo_openid_login_button_customize_text'); ?> Microsoft</a>
|
164 |
<?php }
|
165 |
else{ ?>
|
166 |
|
167 |
|
168 |
-
<a
|
169 |
<?php }
|
170 |
}
|
171 |
|
@@ -178,12 +176,12 @@ class mo_openid_login_wid extends WP_Widget {
|
|
178 |
if($customTheme == 'custom'){
|
179 |
if( get_option('mo_openid_facebook_enable') ) {
|
180 |
if($selected_theme == 'longbutton'){
|
181 |
-
?> <a
|
182 |
echo get_option('mo_openid_login_button_customize_text'); ?> Facebook</a>
|
183 |
<?php }
|
184 |
else{ ?>
|
185 |
|
186 |
-
<a
|
187 |
|
188 |
<?php }
|
189 |
|
@@ -193,11 +191,11 @@ class mo_openid_login_wid extends WP_Widget {
|
|
193 |
if($selected_theme == 'longbutton'){
|
194 |
?>
|
195 |
|
196 |
-
<a
|
197 |
echo get_option('mo_openid_login_button_customize_text'); ?> Google</a>
|
198 |
<?php }
|
199 |
else{ ?>
|
200 |
-
<a
|
201 |
<?php
|
202 |
}
|
203 |
}
|
@@ -206,11 +204,11 @@ class mo_openid_login_wid extends WP_Widget {
|
|
206 |
if($selected_theme == 'longbutton'){
|
207 |
?>
|
208 |
|
209 |
-
<a
|
210 |
echo get_option('mo_openid_login_button_customize_text'); ?> Vkontakte</a>
|
211 |
<?php }
|
212 |
else{ ?>
|
213 |
-
<a
|
214 |
<?php
|
215 |
}
|
216 |
}
|
@@ -219,60 +217,60 @@ class mo_openid_login_wid extends WP_Widget {
|
|
219 |
if($selected_theme == 'longbutton'){
|
220 |
?>
|
221 |
|
222 |
-
<a
|
223 |
echo get_option('mo_openid_login_button_customize_text'); ?> Twitter</a>
|
224 |
<?php }
|
225 |
else{ ?>
|
226 |
-
<a
|
227 |
<?php
|
228 |
}
|
229 |
}
|
230 |
if( get_option('mo_openid_linkedin_enable') ) {
|
231 |
if($selected_theme == 'longbutton'){ ?>
|
232 |
-
<a
|
233 |
echo get_option('mo_openid_login_button_customize_text'); ?> LinkedIn</a>
|
234 |
<?php }
|
235 |
else{ ?>
|
236 |
-
<a
|
237 |
<?php }
|
238 |
}if( get_option('mo_openid_instagram_enable') ) {
|
239 |
if($selected_theme == 'longbutton'){ ?>
|
240 |
-
<a
|
241 |
echo get_option('mo_openid_login_button_customize_text'); ?> Instagram</a>
|
242 |
<?php }
|
243 |
else{ ?>
|
244 |
|
245 |
|
246 |
-
<a
|
247 |
<?php }
|
248 |
}if( get_option('mo_openid_amazon_enable') ) {
|
249 |
if($selected_theme == 'longbutton'){
|
250 |
-
?> <a
|
251 |
echo get_option('mo_openid_login_button_customize_text'); ?> Amazon</a>
|
252 |
<?php }
|
253 |
else{ ?>
|
254 |
|
255 |
-
<a
|
256 |
<?php }
|
257 |
}if( get_option('mo_openid_salesforce_enable') ) {
|
258 |
if($selected_theme == 'longbutton'){
|
259 |
-
?> <a
|
260 |
echo get_option('mo_openid_login_button_customize_text'); ?> Salesforce</a>
|
261 |
<?php }
|
262 |
else{ ?>
|
263 |
|
264 |
|
265 |
-
<a
|
266 |
<?php }
|
267 |
}if( get_option('mo_openid_windowslive_enable') ) {
|
268 |
if($selected_theme == 'longbutton'){
|
269 |
-
?> <a
|
270 |
echo get_option('mo_openid_login_button_customize_text'); ?> Microsoft</a>
|
271 |
<?php }
|
272 |
else{ ?>
|
273 |
|
274 |
|
275 |
-
<a
|
276 |
<?php }
|
277 |
}
|
278 |
|
@@ -362,157 +360,155 @@ class mo_openid_login_wid extends WP_Widget {
|
|
362 |
if($customTheme == 'default'){
|
363 |
if( get_option('mo_openid_facebook_enable') ) {
|
364 |
if($selected_theme == 'longbutton'){
|
365 |
-
$html .= "<a
|
366 |
else{
|
367 |
-
$html .= "<a
|
368 |
}
|
369 |
|
370 |
}
|
371 |
|
372 |
if( get_option('mo_openid_google_enable') ) {
|
373 |
if($selected_theme == 'longbutton'){
|
374 |
-
$html .= "<a
|
375 |
}
|
376 |
else{
|
377 |
|
378 |
-
$html .= "<a
|
379 |
|
380 |
}
|
381 |
}
|
382 |
|
383 |
if( get_option('mo_openid_vkontakte_enable') ) {
|
384 |
if($selected_theme == 'longbutton'){
|
385 |
-
$html .= "<a
|
386 |
}
|
387 |
else{
|
388 |
|
389 |
-
$html .= "<a
|
390 |
|
391 |
}
|
392 |
}
|
393 |
|
394 |
if( get_option('mo_openid_twitter_enable') ) {
|
395 |
if($selected_theme == 'longbutton'){
|
396 |
-
$html .= "<a
|
397 |
else{
|
398 |
-
$html .= "<a
|
399 |
}
|
400 |
|
401 |
}
|
402 |
if( get_option('mo_openid_linkedin_enable') ) {
|
403 |
if($selected_theme == 'longbutton'){
|
404 |
-
$html .= "<a
|
405 |
}
|
406 |
else{
|
407 |
-
$html .= "<a
|
408 |
}
|
409 |
}if( get_option('mo_openid_instagram_enable') ) {
|
410 |
if($selected_theme == 'longbutton'){
|
411 |
-
$html .= "<a
|
412 |
}
|
413 |
else{
|
414 |
-
$html .= "<a
|
415 |
}
|
416 |
}if( get_option('mo_openid_amazon_enable') ) {
|
417 |
if($selected_theme == 'longbutton'){
|
418 |
-
$html .= "<a
|
419 |
}
|
420 |
else{
|
421 |
-
$html .= "<a
|
422 |
}
|
423 |
}if( get_option('mo_openid_salesforce_enable') ) {
|
424 |
if($selected_theme == 'longbutton'){
|
425 |
-
$html .= "<a
|
426 |
}
|
427 |
else{
|
428 |
-
$html .= "<a
|
429 |
}
|
430 |
}if( get_option('mo_openid_windowslive_enable') ) {
|
431 |
if($selected_theme == 'longbutton'){
|
432 |
-
$html .= "<a
|
433 |
}
|
434 |
else{
|
435 |
-
$html .= "<a
|
436 |
}
|
437 |
}
|
438 |
}
|
439 |
|
440 |
-
|
441 |
-
|
442 |
if($customTheme == 'custom'){
|
443 |
if( get_option('mo_openid_facebook_enable') ) {
|
444 |
if($selected_theme == 'longbutton'){
|
445 |
-
$html .= "<a
|
446 |
}
|
447 |
else{
|
448 |
-
$html .= "<a
|
449 |
}
|
450 |
|
451 |
}
|
452 |
|
453 |
if( get_option('mo_openid_google_enable') ) {
|
454 |
if($selected_theme == 'longbutton'){
|
455 |
-
$html .= "<a
|
456 |
}
|
457 |
else{
|
458 |
-
$html .= "<a
|
459 |
|
460 |
}
|
461 |
}
|
462 |
|
463 |
if( get_option('mo_openid_vkontakte_enable') ) {
|
464 |
if($selected_theme == 'longbutton'){
|
465 |
-
$html .= "<a
|
466 |
}
|
467 |
else{
|
468 |
-
$html .= "<a
|
469 |
|
470 |
}
|
471 |
}
|
472 |
|
473 |
if( get_option('mo_openid_twitter_enable') ) {
|
474 |
if($selected_theme == 'longbutton'){
|
475 |
-
$html .= "<a
|
476 |
}
|
477 |
else{
|
478 |
-
$html .= "<a
|
479 |
}
|
480 |
|
481 |
}
|
482 |
if( get_option('mo_openid_linkedin_enable') ) {
|
483 |
if($selected_theme == 'longbutton'){
|
484 |
-
$html .= "<a
|
485 |
}
|
486 |
else{
|
487 |
-
$html .= "<a
|
488 |
}
|
489 |
}if( get_option('mo_openid_instagram_enable') ) {
|
490 |
if($selected_theme == 'longbutton'){
|
491 |
-
$html .= "<a
|
492 |
}
|
493 |
else{
|
494 |
-
$html .= "<a
|
495 |
}
|
496 |
}if( get_option('mo_openid_amazon_enable') ) {
|
497 |
if($selected_theme == 'longbutton'){
|
498 |
-
$html .= "<a
|
499 |
}
|
500 |
else{
|
501 |
-
$html .= "<a
|
502 |
}
|
503 |
}if( get_option('mo_openid_salesforce_enable') ) {
|
504 |
if($selected_theme == 'longbutton'){
|
505 |
-
$html .= "<a
|
506 |
}
|
507 |
else{
|
508 |
-
$html .= "<a
|
509 |
}
|
510 |
}if( get_option('mo_openid_windowslive_enable') ) {
|
511 |
if($selected_theme == 'longbutton'){
|
512 |
-
$html .= "<a
|
513 |
}
|
514 |
else{
|
515 |
-
$html .= "<a
|
516 |
}
|
517 |
}
|
518 |
}
|
@@ -739,11 +735,9 @@ class mo_openid_sharing_ver_wid extends WP_Widget {
|
|
739 |
</p>
|
740 |
<?php
|
741 |
}
|
742 |
-
|
743 |
}
|
744 |
|
745 |
-
|
746 |
-
function mo_openid_start_session() {
|
747 |
if( !session_id() ) {
|
748 |
session_start();
|
749 |
}
|
@@ -755,8 +749,9 @@ class mo_openid_sharing_ver_wid extends WP_Widget {
|
|
755 |
}
|
756 |
}
|
757 |
|
758 |
-
function mo_openid_login_validate()
|
759 |
-
|
|
|
760 |
$client_name = "wordpress";
|
761 |
$timestamp = round( microtime(true) * 1000 );
|
762 |
$api_key = get_option('mo_openid_admin_api_key');
|
@@ -785,58 +780,196 @@ class mo_openid_sharing_ver_wid extends WP_Widget {
|
|
785 |
wp_redirect( $url );
|
786 |
exit;
|
787 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
788 |
|
789 |
-
|
790 |
-
|
791 |
-
|
792 |
-
|
793 |
-
|
794 |
-
|
795 |
-
|
796 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
797 |
|
798 |
-
$
|
799 |
-
$
|
800 |
-
$
|
801 |
-
$
|
802 |
-
$
|
803 |
-
$
|
804 |
-
|
805 |
-
|
806 |
-
$
|
807 |
-
$
|
808 |
-
$decrypted_user_url= trim($decrypted_user_url);
|
809 |
-
$decrypted_first_name= trim($decrypted_first_name);
|
810 |
-
$decrypted_last_name= trim($decrypted_last_name);
|
811 |
|
812 |
-
|
813 |
-
|
814 |
-
|
815 |
-
|
816 |
-
$
|
817 |
}
|
818 |
-
|
819 |
-
|
820 |
-
|
821 |
-
|
822 |
-
|
823 |
-
|
824 |
-
$
|
825 |
-
|
826 |
-
|
827 |
-
|
828 |
-
|
829 |
-
$
|
830 |
-
$
|
831 |
-
|
832 |
-
$username = $decrypted_user_name;
|
833 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
834 |
}
|
|
|
835 |
|
836 |
-
|
837 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
838 |
|
839 |
-
//Set User Display Name
|
840 |
if(isset( $_POST['firstName'] ) && isset( $_POST['lastName'] )){
|
841 |
if(strcmp($decrypted_first_name, $decrypted_last_name)!=0)
|
842 |
$user_full_name = $decrypted_first_name.' '.$decrypted_last_name;
|
@@ -845,68 +978,176 @@ class mo_openid_sharing_ver_wid extends WP_Widget {
|
|
845 |
$first_name = $decrypted_first_name;
|
846 |
$last_name = $decrypted_last_name;
|
847 |
}
|
848 |
-
else
|
849 |
-
$user_full_name = $
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
850 |
|
851 |
-
if
|
|
|
|
|
|
|
852 |
global $wpdb;
|
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 |
//Checking if email or username already exist
|
885 |
$email_user_id = $wpdb->get_var($wpdb->prepare("SELECT ID FROM $wpdb->users where user_email = %s", $user_email));
|
886 |
$username_user_id = $wpdb->get_var($wpdb->prepare("SELECT ID FROM $wpdb->users where user_login = %s", $username));
|
887 |
-
if( !isset($email_user_id) && !isset($username_user_id) && (!empty($orignal_username) || !empty($orignal_email))) {
|
888 |
-
$email_user_id = $wpdb->get_var($wpdb->prepare("SELECT user_id FROM $wpdb->usermeta where meta_key = 'moopenid_orignal_email' and meta_value = %s", $orignal_email));
|
889 |
-
$username_user_id = $wpdb->get_var($wpdb->prepare("SELECT user_id FROM $wpdb->usermeta where meta_key = 'moopenid_orignal_username' and meta_value = %s", $orignal_username));
|
890 |
-
}
|
891 |
|
892 |
mo_openid_start_session();
|
893 |
if( isset($email_user_id)) { // user is a member
|
894 |
-
|
895 |
-
|
896 |
-
|
897 |
-
|
898 |
-
|
899 |
-
|
900 |
-
|
901 |
|
902 |
}
|
903 |
-
else {
|
904 |
-
|
|
|
|
|
|
|
905 |
$random_password = wp_generate_password( 10, false );
|
906 |
|
907 |
if( isset($username_user_id) ){
|
908 |
$email = array();
|
909 |
-
$email = explode('@', $
|
910 |
$username = $email[0];
|
911 |
$username_user_id = $wpdb->get_var($wpdb->prepare("SELECT ID FROM $wpdb->users where user_login = %s", $username));
|
912 |
if( isset($username_user_id) ){
|
@@ -934,49 +1175,246 @@ class mo_openid_sharing_ver_wid extends WP_Widget {
|
|
934 |
exit();
|
935 |
}
|
936 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
937 |
$user = get_user_by('email', $user_email );
|
938 |
if(get_option('mo_openid_login_role_mapping') && mo_openid_is_customer_valid()){
|
939 |
$user->set_role( get_option('mo_openid_login_role_mapping') );
|
940 |
}
|
941 |
//Add meta if username in other language
|
942 |
-
if(!empty($
|
943 |
-
update_user_meta($user_id, '
|
944 |
}
|
945 |
//Add meta if email in other language
|
946 |
-
if(!empty($
|
947 |
-
update_user_meta($user_id, '
|
948 |
}
|
949 |
if(get_option('moopenid_social_login_avatar') && isset($user_picture)){
|
950 |
update_user_meta($user_id, 'moopenid_user_avatar', $user_picture);
|
951 |
}
|
952 |
$_SESSION['mo_login'] = true;
|
|
|
|
|
953 |
do_action( 'mo_user_register', $user_id);
|
|
|
954 |
do_action( 'wp_login', $user->user_login, $user );
|
955 |
wp_set_auth_cookie( $user_id, true );
|
956 |
}
|
957 |
-
|
|
|
|
|
|
|
958 |
}
|
959 |
-
|
960 |
-
$redirect_url = mo_openid_get_redirect_url();
|
961 |
-
wp_redirect($redirect_url);
|
962 |
-
exit;
|
963 |
-
|
964 |
}
|
965 |
|
966 |
-
if(isset($_REQUEST['autoregister']) and strpos($_REQUEST['autoregister'],'false') !== false) {
|
967 |
if(!is_user_logged_in()) {
|
968 |
mo_openid_disabled_register_message();
|
969 |
}
|
970 |
}
|
971 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
972 |
|
973 |
-
function
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
974 |
if(strcmp($param,'null')!=0 && strcmp($param,'')!=0){
|
975 |
$customer_token = get_option('mo_openid_customer_token');
|
976 |
$base64decoded = base64_decode($param);
|
977 |
$token_params_decrypt = mcrypt_decrypt( MCRYPT_RIJNDAEL_128, $customer_token, $base64decoded, MCRYPT_MODE_ECB );
|
978 |
-
|
979 |
-
|
|
|
|
|
|
|
980 |
}else{
|
981 |
return '';
|
982 |
}
|
@@ -1052,11 +1490,95 @@ class mo_openid_sharing_ver_wid extends WP_Widget {
|
|
1052 |
wp_redirect($redirect_url);
|
1053 |
exit;
|
1054 |
}
|
1055 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1056 |
|
1057 |
-
|
1058 |
-
|
1059 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1060 |
add_action( 'widgets_init', create_function( '', 'register_widget( "mo_openid_login_wid" );' ) );
|
1061 |
add_action( 'widgets_init', create_function( '', 'return register_widget( "mo_openid_sharing_ver_wid" );' ) );
|
1062 |
add_action( 'widgets_init', create_function( '', 'return register_widget( "mo_openid_sharing_hor_wid" );' ) );
|
71 |
if($customTheme == 'default'){
|
72 |
if( get_option('mo_openid_facebook_enable') ) {
|
73 |
if($selected_theme == 'longbutton'){
|
74 |
+
?> <a onClick="moOpenIdLogin('facebook');" style="width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important;border-radius:<?php echo $customBoundary ?>px !important;" class="btn btn-block btn-social btn-facebook btn-custom-size login-button" > <i style="padding-top:<?php echo $customHeight-35 ?>px !important" class="fa fa-facebook"></i><?php
|
75 |
echo get_option('mo_openid_login_button_customize_text'); ?> Facebook</a>
|
76 |
<?php }
|
77 |
else{ ?>
|
78 |
+
<a title="<?php echo $customTextofTitle ?> Facebook" onClick="moOpenIdLogin('facebook');"><img alt='Facebook' style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important" src="<?php echo plugins_url( 'includes/images/icons/facebook.png', __FILE__ )?>" class="<?php echo $selected_theme; ?> login-button" ></a>
|
|
|
79 |
|
80 |
<?php }
|
81 |
|
82 |
}
|
83 |
if( get_option('mo_openid_google_enable') ) {
|
84 |
+
if($selected_theme == 'longbutton'){ ?>
|
|
|
85 |
|
86 |
+
<a onClick="moOpenIdLogin('google');" style='width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important;border-radius:<?php echo $customBoundary ?>px !important;' class='btn btn-block btn-social btn-google btn-custom-size login-button' > <i style='padding-top:<?php echo $customHeight-35 ?>px !important' class='fa fa-google-plus'></i><?php
|
87 |
echo get_option('mo_openid_login_button_customize_text'); ?> Google</a>
|
88 |
<?php }
|
89 |
else{ ?>
|
90 |
+
<a onClick="moOpenIdLogin('google');" title="<?php echo $customTextofTitle ?> Google" ><img alt='Google' style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important" src="<?php echo plugins_url( 'includes/images/icons/google.png', __FILE__ )?>" class="<?php echo $selected_theme; ?> login-button" ></a>
|
91 |
<?php
|
92 |
}
|
93 |
}
|
96 |
if($selected_theme == 'longbutton'){
|
97 |
?>
|
98 |
|
99 |
+
<a onClick="moOpenIdLogin('vkontakte');" style='width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important;border-radius:<?php echo $customBoundary ?>px !important;' class='btn btn-block btn-social btn-vk btn-custom-size login-button' > <i style='padding-top:<?php echo $customHeight-35 ?>px !important' class='fa fa-vk'></i><?php
|
100 |
echo get_option('mo_openid_login_button_customize_text'); ?> Vkontakte</a>
|
101 |
<?php }
|
102 |
else{ ?>
|
103 |
+
<a onClick="moOpenIdLogin('vkontakte');" title="<?php echo $customTextofTitle ?> Vkontakte" ><img alt='Vkontakte' style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important" src="<?php echo plugins_url( 'includes/images/icons/vk.png', __FILE__ )?>" class="<?php echo $selected_theme; ?> login-button" ></a>
|
104 |
<?php
|
105 |
}
|
106 |
}
|
108 |
|
109 |
if( get_option('mo_openid_twitter_enable') ) {
|
110 |
if($selected_theme == 'longbutton'){
|
111 |
+
?> <a onClick="moOpenIdLogin('twitter');" style="width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important;border-radius:<?php echo $customBoundary ?>px !important;" class="btn btn-block btn-social btn-twitter btn-custom-size login-button" > <i style="padding-top:<?php echo $customHeight-35 ?>px !important" class="fa fa-twitter"></i><?php
|
112 |
echo get_option('mo_openid_login_button_customize_text'); ?> Twitter</a>
|
113 |
<?php }
|
114 |
else{ ?>
|
115 |
|
116 |
|
117 |
+
<a title="<?php echo $customTextofTitle ?> Twitter" onClick="moOpenIdLogin('twitter');"><img alt='Twitter' style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important" src="<?php echo plugins_url( 'includes/images/icons/twitter.png', __FILE__ )?>" class="<?php echo $selected_theme; ?> login-button"></a>
|
118 |
<?php }
|
119 |
}
|
120 |
|
121 |
if( get_option('mo_openid_linkedin_enable') ) {
|
122 |
if($selected_theme == 'longbutton'){ ?>
|
123 |
+
<a onClick="moOpenIdLogin('linkedin');" style="width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important;border-radius:<?php echo $customBoundary ?>px !important;" class="btn btn-block btn-social btn-linkedin btn-custom-size login-button" > <i style="padding-top:<?php echo $customHeight-35 ?>px !important" class="fa fa-linkedin"></i><?php
|
124 |
echo get_option('mo_openid_login_button_customize_text'); ?> LinkedIn</a>
|
125 |
<?php }
|
126 |
else{ ?>
|
127 |
+
<a title="<?php echo $customTextofTitle ?> LinkedIn" onClick="moOpenIdLogin('linkedin');"><img alt='LinkedIn' style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important" src="<?php echo plugins_url( 'includes/images/icons/linkedin.png', __FILE__ )?>" class="<?php echo $selected_theme; ?> login-button" ></a>
|
128 |
<?php }
|
129 |
}if( get_option('mo_openid_instagram_enable') ) {
|
130 |
if($selected_theme == 'longbutton'){ ?>
|
131 |
+
<a onClick="moOpenIdLogin('instagram');" style="width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important;border-radius:<?php echo $customBoundary ?>px !important;" class="btn btn-block btn-social btn-instagram btn-custom-size login-button" > <i style="padding-top:<?php echo $customHeight-35 ?>px !important" class="fa fa-instagram"></i><?php
|
132 |
echo get_option('mo_openid_login_button_customize_text'); ?> Instagram</a>
|
133 |
<?php }
|
134 |
else{ ?>
|
135 |
|
136 |
|
137 |
+
<a title="<?php echo $customTextofTitle ?> Instagram" onClick="moOpenIdLogin('instagram');"><img alt='Instagram' style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important" src="<?php echo plugins_url( 'includes/images/icons/instagram.png', __FILE__ )?>" class="<?php echo $selected_theme; ?> login-button"></a>
|
138 |
<?php }
|
139 |
}if( get_option('mo_openid_amazon_enable') ) {
|
140 |
if($selected_theme == 'longbutton'){
|
141 |
+
?> <a onClick="moOpenIdLogin('amazon');" style="width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important;border-radius:<?php echo $customBoundary ?>px !important;" class="btn btn-block btn-social btn-soundcloud btn-custom-size login-button" > <i style="padding-top:<?php echo $customHeight-35 ?>px !important" class="fa fa-amazon"></i><?php
|
142 |
echo get_option('mo_openid_login_button_customize_text'); ?> Amazon</a>
|
143 |
<?php }
|
144 |
else{ ?>
|
145 |
|
146 |
+
<a title="<?php echo $customTextofTitle ?> Amazon" onClick="moOpenIdLogin('amazon');"><img alt='Amazon' style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important" src="<?php echo plugins_url( 'includes/images/icons/amazon.png', __FILE__ )?>" class="<?php echo $selected_theme; ?> login-button"></a>
|
147 |
<?php }
|
148 |
}if( get_option('mo_openid_salesforce_enable') ) {
|
149 |
if($selected_theme == 'longbutton'){
|
150 |
+
?> <a onClick="moOpenIdLogin('salesforce');" style="width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important;border-radius:<?php echo $customBoundary ?>px !important;" class="btn btn-block btn-social btn-vimeo btn-custom-size login-button" > <i style="padding-top:<?php echo $customHeight-35 ?>px !important" class="fa fa-cloud"></i> <?php
|
151 |
echo get_option('mo_openid_login_button_customize_text'); ?> Salesforce</a>
|
152 |
<?php }
|
153 |
else{ ?>
|
154 |
|
155 |
|
156 |
+
<a title="<?php echo $customTextofTitle ?> Salesforce" onClick="moOpenIdLogin('salesforce');"><img alt='Salesforce' style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important" src="<?php echo plugins_url( 'includes/images/icons/salesforce.png', __FILE__ )?>" class="<?php echo $selected_theme; ?> login-button" ></a>
|
157 |
<?php }
|
158 |
}if( get_option('mo_openid_windowslive_enable') ) {
|
159 |
if($selected_theme == 'longbutton'){
|
160 |
+
?> <a onClick="moOpenIdLogin('windowslive');" style="width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important;border-radius:<?php echo $customBoundary ?>px !important;" class="btn btn-block btn-social btn-microsoft btn-custom-size login-button" > <i style="padding-top:<?php echo $customHeight-35 ?>px !important" class="fa fa-windows"></i><?php
|
161 |
echo get_option('mo_openid_login_button_customize_text'); ?> Microsoft</a>
|
162 |
<?php }
|
163 |
else{ ?>
|
164 |
|
165 |
|
166 |
+
<a title="<?php echo $customTextofTitle ?> Microsoft" onClick="moOpenIdLogin('windowslive');"><img alt='Windowslive' style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important" src="<?php echo plugins_url( 'includes/images/icons/windowslive.png', __FILE__ )?>" class="<?php echo $selected_theme; ?> login-button"></a>
|
167 |
<?php }
|
168 |
}
|
169 |
|
176 |
if($customTheme == 'custom'){
|
177 |
if( get_option('mo_openid_facebook_enable') ) {
|
178 |
if($selected_theme == 'longbutton'){
|
179 |
+
?> <a onClick="moOpenIdLogin('facebook');" style="width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important;background:<?php echo "#".$customBackground?> !important;border-radius:<?php echo $customBoundary ?>px !important;" class="btn btn-block btn-social btn-facebook btn-custom-size login-button" > <i style="padding-top:<?php echo $customHeight-35 ?>px !important" class="fa fa-facebook"></i><?php
|
180 |
echo get_option('mo_openid_login_button_customize_text'); ?> Facebook</a>
|
181 |
<?php }
|
182 |
else{ ?>
|
183 |
|
184 |
+
<a onClick="moOpenIdLogin('facebook');" title="<?php echo $customTextofTitle ?> Facebook"><i style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important;background:<?php echo "#".$customBackground?> !important;font-size:<?php echo $customSize-16?>px !important;" class="fa fa-facebook custom-login-button <?php echo $selected_theme; ?>" ></i></a>
|
185 |
|
186 |
<?php }
|
187 |
|
191 |
if($selected_theme == 'longbutton'){
|
192 |
?>
|
193 |
|
194 |
+
<a onClick="moOpenIdLogin('google');" style="width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important; background:<?php echo "#".$customBackground?> !important;border-radius:<?php echo $customBoundary ?>px !important;" class="btn btn-block btn-social btn-customtheme btn-custom-size login-button" > <i style="padding-top:<?php echo $customHeight-35 ?>px !important" class="fa fa-google-plus"></i><?php
|
195 |
echo get_option('mo_openid_login_button_customize_text'); ?> Google</a>
|
196 |
<?php }
|
197 |
else{ ?>
|
198 |
+
<a onClick="moOpenIdLogin('google');" title="<?php echo $customTextofTitle ?> Google"><i style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important;background:<?php echo "#".$customBackground?> !important;font-size:<?php echo $customSize-16?>px !important;" class="fa fa-google-plus custom-login-button <?php echo $selected_theme; ?>" ></i></a>
|
199 |
<?php
|
200 |
}
|
201 |
}
|
204 |
if($selected_theme == 'longbutton'){
|
205 |
?>
|
206 |
|
207 |
+
<a onClick="moOpenIdLogin('vkontakte');" style="width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important; background:<?php echo "#".$customBackground?> !important;border-radius:<?php echo $customBoundary ?>px !important;" class="btn btn-block btn-social btn-customtheme btn-custom-size login-button" > <i style="padding-top:<?php echo $customHeight-35 ?>px !important" class="fa fa-vk"></i><?php
|
208 |
echo get_option('mo_openid_login_button_customize_text'); ?> Vkontakte</a>
|
209 |
<?php }
|
210 |
else{ ?>
|
211 |
+
<a onClick="moOpenIdLogin('vkontakte');" title="<?php echo $customTextofTitle ?> Vkontakte"><i style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important;background:<?php echo "#".$customBackground?> !important;font-size:<?php echo $customSize-16?>px !important;" class="fa fa-vk custom-login-button <?php echo $selected_theme; ?>" ></i></a>
|
212 |
<?php
|
213 |
}
|
214 |
}
|
217 |
if($selected_theme == 'longbutton'){
|
218 |
?>
|
219 |
|
220 |
+
<a onClick="moOpenIdLogin('twitter');" style="width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important; background:<?php echo "#".$customBackground?> !important;border-radius:<?php echo $customBoundary ?>px !important;" class="btn btn-block btn-social btn-customtheme btn-custom-size login-button" > <i style="padding-top:<?php echo $customHeight-35 ?>px !important" class="fa fa-twitter"></i><?php
|
221 |
echo get_option('mo_openid_login_button_customize_text'); ?> Twitter</a>
|
222 |
<?php }
|
223 |
else{ ?>
|
224 |
+
<a onClick="moOpenIdLogin('twitter');" title="<?php echo $customTextofTitle ?> Twitter"><i style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important;background:<?php echo "#".$customBackground?> !important;font-size:<?php echo $customSize-16?>px !important;" class="fa fa-twitter custom-login-button <?php echo $selected_theme; ?>" ></i></a>
|
225 |
<?php
|
226 |
}
|
227 |
}
|
228 |
if( get_option('mo_openid_linkedin_enable') ) {
|
229 |
if($selected_theme == 'longbutton'){ ?>
|
230 |
+
<a onClick="moOpenIdLogin('linkedin');" style="width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important;background:<?php echo "#".$customBackground?> !important;border-radius:<?php echo $customBoundary ?>px !important;" class="btn btn-block btn-social btn-linkedin btn-custom-size login-button" > <i style="padding-top:<?php echo $customHeight-35 ?>px !important" class="fa fa-linkedin"></i><?php
|
231 |
echo get_option('mo_openid_login_button_customize_text'); ?> LinkedIn</a>
|
232 |
<?php }
|
233 |
else{ ?>
|
234 |
+
<a onClick="moOpenIdLogin('linkedin');" title="<?php echo $customTextofTitle ?> LinkedIn"><i style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important;background:<?php echo "#".$customBackground?> !important;font-size:<?php echo $customSize-16?>px !important;" class="fa fa-linkedin custom-login-button <?php echo $selected_theme; ?>" ></i></a>
|
235 |
<?php }
|
236 |
}if( get_option('mo_openid_instagram_enable') ) {
|
237 |
if($selected_theme == 'longbutton'){ ?>
|
238 |
+
<a onClick="moOpenIdLogin('instagram');" style="width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important;background:<?php echo "#".$customBackground?> !important;background:<?php echo "#".$customBackground?> !important;border-radius:<?php echo $customBoundary ?>px !important;" class="btn btn-block btn-social btn-instagram btn-custom-size login-button" > <i style="padding-top:<?php echo $customHeight-35 ?>px !important" class="fa fa-instagram"></i><?php
|
239 |
echo get_option('mo_openid_login_button_customize_text'); ?> Instagram</a>
|
240 |
<?php }
|
241 |
else{ ?>
|
242 |
|
243 |
|
244 |
+
<a onClick="moOpenIdLogin('instagram');" title="<?php echo $customTextofTitle ?> Instagram"><i style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important;background:<?php echo "#".$customBackground?> !important;font-size:<?php echo $customSize-16?>px !important;" class="fa fa-instagram custom-login-button <?php echo $selected_theme; ?>"></i></a>
|
245 |
<?php }
|
246 |
}if( get_option('mo_openid_amazon_enable') ) {
|
247 |
if($selected_theme == 'longbutton'){
|
248 |
+
?> <a onClick="moOpenIdLogin('amazon');" style="width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important;background:<?php echo "#".$customBackground?> !important;border-radius:<?php echo $customBoundary ?>px !important;" class="btn btn-block btn-social btn-linkedin btn-custom-size login-button" ><i style="padding-top:<?php echo $customHeight-35 ?>px !important" class="fa fa-amazon"></i><?php
|
249 |
echo get_option('mo_openid_login_button_customize_text'); ?> Amazon</a>
|
250 |
<?php }
|
251 |
else{ ?>
|
252 |
|
253 |
+
<a onClick="moOpenIdLogin('amazon');" title="<?php echo $customTextofTitle ?> Amazon"><i style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important;background:<?php echo "#".$customBackground?> !important;font-size:<?php echo $customSize-16?>px !important;" class="fa fa-amazon custom-login-button <?php echo $selected_theme; ?>"></i></a>
|
254 |
<?php }
|
255 |
}if( get_option('mo_openid_salesforce_enable') ) {
|
256 |
if($selected_theme == 'longbutton'){
|
257 |
+
?> <a onClick="moOpenIdLogin('salesforce');" style="width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important;background:<?php echo "#".$customBackground?> !important;border-radius:<?php echo $customBoundary ?>px !important;" class="btn btn-block btn-social btn-linkedin btn-custom-size login-button" ><i style="padding-top:<?php echo $customHeight-35 ?>px !important" class="fa fa-cloud"></i> <?php
|
258 |
echo get_option('mo_openid_login_button_customize_text'); ?> Salesforce</a>
|
259 |
<?php }
|
260 |
else{ ?>
|
261 |
|
262 |
|
263 |
+
<a onClick="moOpenIdLogin('salesforce');" title="<?php echo $customTextofTitle ?> Salesforce"><i style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important;background:<?php echo "#".$customBackground?> !important;font-size:<?php echo $customSize-16?>px " class="fa fa-cloud custom-login-button <?php echo $selected_theme; ?>" ></i></a>
|
264 |
<?php }
|
265 |
}if( get_option('mo_openid_windowslive_enable') ) {
|
266 |
if($selected_theme == 'longbutton'){
|
267 |
+
?> <a onClick="moOpenIdLogin('windowslive');" style="width:<?php echo $customWidth ?>px !important;padding-top:<?php echo $customHeight-29 ?>px !important;padding-bottom:<?php echo $customHeight-29 ?>px !important;margin-bottom:<?php echo $spacebetweenicons-5 ?>px !important;background:<?php echo "#".$customBackground?> !important;border-radius:<?php echo $customBoundary ?>px !important;" class="btn btn-block btn-social btn-microsoft btn-custom-size login-button" > <i style="padding-top:<?php echo $customHeight-35 ?>px !important" class="fa fa-windows"></i><?php
|
268 |
echo get_option('mo_openid_login_button_customize_text'); ?> Microsoft</a>
|
269 |
<?php }
|
270 |
else{ ?>
|
271 |
|
272 |
|
273 |
+
<a onClick="moOpenIdLogin('windowslive');" title="<?php echo $customTextofTitle ?> Microsoft"><i style="width:<?php echo $customSize?>px !important;height:<?php echo $customSize?>px !important;margin-left:<?php echo $spacebetweenicons-4?>px !important;background:<?php echo "#".$customBackground?> !important;font-size:<?php echo $customSize-16?>px !important;" class=" fa fa-windows custom-login-button <?php echo $selected_theme; ?>"></i></a>
|
274 |
<?php }
|
275 |
}
|
276 |
|
360 |
if($customTheme == 'default'){
|
361 |
if( get_option('mo_openid_facebook_enable') ) {
|
362 |
if($selected_theme == 'longbutton'){
|
363 |
+
$html .= "<a style='width: " . $customWidth . "px !important;padding-top:" . ($customHeight-29) . "px !important;padding-bottom:" . ($customHeight-29) . "px !important;margin-bottom: " . ($spacebetweenicons-5) . "px !important;border-radius: " .$customBoundary. "px !important;' class='btn btn-block btn-social btn-facebook btn-custom-dec login-button' onClick='moOpenIdLogin(" . '"facebook"' . ");'> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-facebook'></i>" . $buttonText . " Facebook</a>"; }
|
364 |
else{
|
365 |
+
$html .= "<a title= ' ".$customTextofTitle." Facebook' onClick='moOpenIdLogin(" . '"facebook"' . ");' ><img alt='Facebook' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons-4) ."px !important' src='" . plugins_url( 'includes/images/icons/facebook.png', __FILE__ ) . "' class='login-button " .$selected_theme . "' ></a>";
|
366 |
}
|
367 |
|
368 |
}
|
369 |
|
370 |
if( get_option('mo_openid_google_enable') ) {
|
371 |
if($selected_theme == 'longbutton'){
|
372 |
+
$html .= "<a style='width: " . $customWidth . "px !important;padding-top:" . ($customHeight-29) . "px !important;padding-bottom:" . ($customHeight-29) . "px !important;margin-bottom: " . ($spacebetweenicons-5) . "px !important;border-radius: " .$customBoundary ."px !important;' class='btn btn-block btn-social btn-google btn-custom-dec login-button' onClick='moOpenIdLogin(" . '"google"' . ");'> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-google-plus'></i>" . $buttonText . " Google</a>";
|
373 |
}
|
374 |
else{
|
375 |
|
376 |
+
$html .= "<a onClick='moOpenIdLogin(" . '"google"' . ");' title= ' ".$customTextofTitle." Google'><img alt='Google' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons-4) ."px !important' src='" . plugins_url( 'includes/images/icons/google.png', __FILE__ ) . "' class='login-button " .$selected_theme . "' ></a>";
|
377 |
|
378 |
}
|
379 |
}
|
380 |
|
381 |
if( get_option('mo_openid_vkontakte_enable') ) {
|
382 |
if($selected_theme == 'longbutton'){
|
383 |
+
$html .= "<a style='width: " . $customWidth . "px !important;padding-top:" . ($customHeight-29) . "px !important;padding-bottom:" . ($customHeight-29) . "px !important;margin-bottom: " . ($spacebetweenicons-5) . "px !important;border-radius: " .$customBoundary ."px !important;' class='btn btn-block btn-social btn-vk btn-custom-dec login-button' onClick='moOpenIdLogin(" . '"vkontakte"' . ");'> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-vk'></i>" . $buttonText . " Vkontakte</a>";
|
384 |
}
|
385 |
else{
|
386 |
|
387 |
+
$html .= "<a onClick='moOpenIdLogin(" . '"vkontakte"' . ");' title= ' ".$customTextofTitle." Vkontakte'><img alt='Vkontakte' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons-4) ."px !important' src='" . plugins_url( 'includes/images/icons/vk.png', __FILE__ ) . "' class='login-button " .$selected_theme . "' ></a>";
|
388 |
|
389 |
}
|
390 |
}
|
391 |
|
392 |
if( get_option('mo_openid_twitter_enable') ) {
|
393 |
if($selected_theme == 'longbutton'){
|
394 |
+
$html .= "<a style='width: " . $customWidth . "px !important;padding-top:" . ($customHeight-29) . "px !important;padding-bottom:" . ($customHeight-29) . "px !important;margin-bottom: " . ($spacebetweenicons-5) . "px !important;border-radius: " .$customBoundary ."px !important;' class='btn btn-block btn-social btn-twitter btn-custom-dec login-button' onClick='moOpenIdLogin(" . '"twitter"' . ");'> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-twitter'></i>" . $buttonText . " Twitter</a>"; }
|
395 |
else{
|
396 |
+
$html .= "<a title= ' ".$customTextofTitle." Twitter' onClick='moOpenIdLogin(" . '"twitter"' . ");' ><img alt='Twitter' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons-4) ."px !important' src='" . plugins_url( 'includes/images/icons/twitter.png', __FILE__ ) . "' class='login-button " .$selected_theme . "' ></a>";
|
397 |
}
|
398 |
|
399 |
}
|
400 |
if( get_option('mo_openid_linkedin_enable') ) {
|
401 |
if($selected_theme == 'longbutton'){
|
402 |
+
$html .= "<a style='width: " . $customWidth . "px !important;padding-top:" . ($customHeight-29) . "px !important;padding-bottom:" . ($customHeight-29) . "px !important;margin-bottom: " . ($spacebetweenicons-5) . "px !important;border-radius: " .$customBoundary. "px !important;' class='btn btn-block btn-social btn-linkedin btn-custom-dec login-button' onClick='moOpenIdLogin(" . '"linkedin"' . ");'> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-linkedin'></i>" . $buttonText . " LinkedIn</a>";
|
403 |
}
|
404 |
else{
|
405 |
+
$html .= "<a title= ' ".$customTextofTitle." LinkedIn' onClick='moOpenIdLogin(" . '"linkedin"' . ");' ><img alt='LinkedIn' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons-4) ."px !important' src='" . plugins_url( 'includes/images/icons/linkedin.png', __FILE__ ) . "' class='login-button " .$selected_theme . "' ></a>";
|
406 |
}
|
407 |
}if( get_option('mo_openid_instagram_enable') ) {
|
408 |
if($selected_theme == 'longbutton'){
|
409 |
+
$html .= "<a style='width: " . $customWidth . "px !important;padding-top:" . ($customHeight-29) . "px !important;padding-bottom:" . ($customHeight-29) . "px !important;margin-bottom: " . ($spacebetweenicons-5) . "px !important;border-radius: " .$customBoundary. "px !important;' class='btn btn-block btn-social btn-instagram btn-custom-dec login-button' onClick='moOpenIdLogin(" . '"instagram"' . ");'> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-instagram'></i>" . $buttonText . " Instagram</a>";
|
410 |
}
|
411 |
else{
|
412 |
+
$html .= "<a title= ' ".$customTextofTitle." Instagram' onClick='moOpenIdLogin(" . '"instagram"' . ");' ><img alt='Instagram' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons-4) ."px !important' src='" . plugins_url( 'includes/images/icons/instagram.png', __FILE__ ) . "' class='login-button " .$selected_theme . "' ></a>";
|
413 |
}
|
414 |
}if( get_option('mo_openid_amazon_enable') ) {
|
415 |
if($selected_theme == 'longbutton'){
|
416 |
+
$html .= "<a style='width: " . $customWidth . "px !important;padding-top:" . ($customHeight-29) . "px !important;padding-bottom:" . ($customHeight-29) . "px !important;margin-bottom: " . ($spacebetweenicons-5) . "px !important;border-radius: " .$customBoundary. "px !important;' class='btn btn-block btn-social btn-soundcloud btn-custom-dec login-button' onClick='moOpenIdLogin(" . '"amazon"' . ");'> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-amazon'></i>" . $buttonText . " Amazon</a>";
|
417 |
}
|
418 |
else{
|
419 |
+
$html .= "<a title= ' ".$customTextofTitle." Amazon' onClick='moOpenIdLogin(" . '"amazon"' . ");' ><img alt='Amazon' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons-4) ."px !important' src='" . plugins_url( 'includes/images/icons/amazon.png', __FILE__ ) . "' class='login-button " .$selected_theme . "' ></a>";
|
420 |
}
|
421 |
}if( get_option('mo_openid_salesforce_enable') ) {
|
422 |
if($selected_theme == 'longbutton'){
|
423 |
+
$html .= "<a style='width: " . $customWidth . "px !important;padding-top:" . ($customHeight-29) . "px !important;padding-bottom:" . ($customHeight-29) . "px !important;margin-bottom: " . ($spacebetweenicons-5) . "px !important;border-radius: " .$customBoundary. "px !important;' class='btn btn-block btn-social btn-vimeo btn-custom-dec login-button' onClick='moOpenIdLogin(" . '"salesforce"' . ");'> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-cloud'></i>" . $buttonText . " Salesforce</a>";
|
424 |
}
|
425 |
else{
|
426 |
+
$html .= "<a title= ' ".$customTextofTitle." Salesforce' onClick='moOpenIdLogin(" . '"salesforce"' . ");' ><img alt='Salesforce' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons-4) ."px !important' src='" . plugins_url( 'includes/images/icons/salesforce.png', __FILE__ ) . "' class='login-button " .$selected_theme . "' ></a>";
|
427 |
}
|
428 |
}if( get_option('mo_openid_windowslive_enable') ) {
|
429 |
if($selected_theme == 'longbutton'){
|
430 |
+
$html .= "<a style='width: " . $customWidth . "px !important;padding-top:" . ($customHeight-29) . "px !important;padding-bottom:" . ($customHeight-29) . "px !important;margin-bottom: " . ($spacebetweenicons-5) . "px !important;border-radius: " .$customBoundary. "px !important;' class='btn btn-block btn-social btn-microsoft btn-custom-dec login-button' onClick='moOpenIdLogin(" . '"windowslive"' . ");'> <i style='padding-top:" . ($customHeight-35) . "px !important' class='fa fa-windows'></i>" . $buttonText . " Microsoft</a>";
|
431 |
}
|
432 |
else{
|
433 |
+
$html .= "<a title= ' ".$customTextofTitle." Microsoft' onClick='moOpenIdLogin(" . '"windowslive"' . ");' ><img alt='Windowslive' style='width:" . $customSize ."px !important;height: " . $customSize ."px !important;margin-left: " . ($spacebetweenicons-4) ."px !important' src='" . plugins_url( 'includes/images/icons/windowslive.png', __FILE__ ) . "' class='login-button " .$selected_theme . "' ></a>";
|
434 |
}
|
435 |
}
|
436 |
}
|
437 |
|
|
|
|
|
438 |
if($customTheme == 'custom'){
|
439 |
if( get_option('mo_openid_facebook_enable') ) {
|
440 |
if($selected_theme == 'longbutton'){
|
441 |
+
$html .= "<a onClick='moOpenIdLogin(" . '"facebook"' . ");' 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-block btn-social btn-customtheme btn-custom-dec login-button' > <i style='padding-top:" .($customHeight-35) . "px !important' class='fa fa-facebook'></i> " . $buttonText . " Facebook</a>";
|
442 |
}
|
443 |
else{
|
444 |
+
$html .= "<a title= ' ".$customTextofTitle." Facebook' onClick='moOpenIdLogin(" . '"facebook"' . ");' ><i style='width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons-4) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa fa-facebook custom-login-button " . $selected_theme . "' ></i></a>";
|
445 |
}
|
446 |
|
447 |
}
|
448 |
|
449 |
if( get_option('mo_openid_google_enable') ) {
|
450 |
if($selected_theme == 'longbutton'){
|
451 |
+
$html .= "<a onClick='moOpenIdLogin(" . '"google"' . ");' 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-block btn-social btn-customtheme btn-custom-dec login-button' > <i style='padding-top:" .($customHeight-35) . "px !important' class='fa fa-google-plus'></i> " . $buttonText . " Google</a>";
|
452 |
}
|
453 |
else{
|
454 |
+
$html .= "<a title= ' ".$customTextofTitle." Google' onClick='moOpenIdLogin(" . '"google"' . ");' title= ' ". $customTextofTitle." Google'><i style='width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons-4) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa fa-google-plus custom-login-button " . $selected_theme . "' ></i></a>";
|
455 |
|
456 |
}
|
457 |
}
|
458 |
|
459 |
if( get_option('mo_openid_vkontakte_enable') ) {
|
460 |
if($selected_theme == 'longbutton'){
|
461 |
+
$html .= "<a onClick='moOpenIdLogin(" . '"vkontakte"' . ");' 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-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>";
|
462 |
}
|
463 |
else{
|
464 |
+
$html .= "<a title= ' ".$customTextofTitle." Vkontakte' onClick='moOpenIdLogin(" . '"vkontakte"' . ");' title= ' ". $customTextofTitle." Vkontakte'><i style='width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons-4) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa fa-vk custom-login-button " . $selected_theme . "' ></i></a>";
|
465 |
|
466 |
}
|
467 |
}
|
468 |
|
469 |
if( get_option('mo_openid_twitter_enable') ) {
|
470 |
if($selected_theme == 'longbutton'){
|
471 |
+
$html .= "<a onClick='moOpenIdLogin(" . '"twitter"' . ");' 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-block btn-social btn-customtheme btn-custom-dec login-button' > <i style='padding-top:" .($customHeight-35) . "px !important' class='fa fa-twitter'></i> " . $buttonText . " Twitter</a>";
|
472 |
}
|
473 |
else{
|
474 |
+
$html .= "<a title= ' ".$customTextofTitle." Twitter' onClick='moOpenIdLogin(" . '"twitter"' . ");' ><i style='width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons-4) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa fa-twitter custom-login-button " . $selected_theme . "' ></i></a>";
|
475 |
}
|
476 |
|
477 |
}
|
478 |
if( get_option('mo_openid_linkedin_enable') ) {
|
479 |
if($selected_theme == 'longbutton'){
|
480 |
+
$html .= "<a onClick='moOpenIdLogin(" . '"linkedin"' . ");' 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-block btn-social btn-customtheme btn-custom-dec login-button' > <i style='padding-top:" .($customHeight-35) . "px !important' class='fa fa-linkedin'></i> " . $buttonText . " LinkedIn</a>";
|
481 |
}
|
482 |
else{
|
483 |
+
$html .= "<a title= ' ".$customTextofTitle." LinkedIn' onClick='moOpenIdLogin(" . '"linkedin"' . ");' ><i style='width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons-4) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa fa-linkedin custom-login-button " . $selected_theme . "' ></i></a>";
|
484 |
}
|
485 |
}if( get_option('mo_openid_instagram_enable') ) {
|
486 |
if($selected_theme == 'longbutton'){
|
487 |
+
$html .= "<a onClick='moOpenIdLogin(" . '"instagram"' . ");' 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-block btn-social btn-customtheme btn-custom-dec login-button' > <i style='padding-top:" .($customHeight-35) . "px !important' class='fa fa-instagram'></i> " . $buttonText . " Instagram</a>";
|
488 |
}
|
489 |
else{
|
490 |
+
$html .= "<a title= ' ".$customTextofTitle." Instagram' onClick='moOpenIdLogin(" . '"instagram"' . ");' ><i style='width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons-4) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa fa-instagram custom-login-button " . $selected_theme . "' ></i></a>";
|
491 |
}
|
492 |
}if( get_option('mo_openid_amazon_enable') ) {
|
493 |
if($selected_theme == 'longbutton'){
|
494 |
+
$html .= "<a onClick='moOpenIdLogin(" . '"amazon"' . ");' 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-block btn-social btn-customtheme btn-custom-dec login-button' > <i style='padding-top:" .($customHeight-35) . "px !important' class='fa fa-amazon'></i> " . $buttonText . " Amazon</a>";
|
495 |
}
|
496 |
else{
|
497 |
+
$html .= "<a title= ' ".$customTextofTitle." Amazon' onClick='moOpenIdLogin(" . '"amazon"' . ");' ><i style='width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons-4) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa fa-amazon custom-login-button " . $selected_theme . "' ></i></a>";
|
498 |
}
|
499 |
}if( get_option('mo_openid_salesforce_enable') ) {
|
500 |
if($selected_theme == 'longbutton'){
|
501 |
+
$html .= "<a onClick='moOpenIdLogin(" . '"salesforce"' . ");' 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-block btn-social btn-customtheme btn-custom-dec login-button' > <i style='padding-top:" .($customHeight-35) . "px !important' class='fa fa-cloud'></i> " . $buttonText . " Salesforce</a>";
|
502 |
}
|
503 |
else{
|
504 |
+
$html .= "<a title= ' ".$customTextofTitle." Salesforce' onClick='moOpenIdLogin(" . '"salesforce"' . ");' ><i style='width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons-4) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa fa-cloud custom-login-button " . $selected_theme . "' ></i></a>";
|
505 |
}
|
506 |
}if( get_option('mo_openid_windowslive_enable') ) {
|
507 |
if($selected_theme == 'longbutton'){
|
508 |
+
$html .= "<a onClick='moOpenIdLogin(" . '"windowslive"' . ");' 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-block btn-social btn-customtheme btn-custom-dec login-button' > <i style='padding-top:" .($customHeight-35) . "px !important' class='fa fa-windows'></i> " . $buttonText . " Microsoft</a>";
|
509 |
}
|
510 |
else{
|
511 |
+
$html .= "<a title= ' ".$customTextofTitle." Microsoft' onClick='moOpenIdLogin(" . '"windowslive"' . ");' ><i style='width:" . $customSize . "px !important;height:" . $customSize . "px !important;margin-left:" . ($spacebetweenicons-4) . "px !important;background:#" . $customBackground . " !important;font-size: " . ($customSize-16) . "px !important;' class='fa fa-windows custom-login-button " . $selected_theme . "' ></i></a>";
|
512 |
}
|
513 |
}
|
514 |
}
|
735 |
</p>
|
736 |
<?php
|
737 |
}
|
|
|
738 |
}
|
739 |
|
740 |
+
function mo_openid_start_session() {
|
|
|
741 |
if( !session_id() ) {
|
742 |
session_start();
|
743 |
}
|
749 |
}
|
750 |
}
|
751 |
|
752 |
+
function mo_openid_login_validate()
|
753 |
+
{
|
754 |
+
if( isset( $_REQUEST['option'] ) and strpos( $_REQUEST['option'], 'getmosociallogin' ) !== false ){
|
755 |
$client_name = "wordpress";
|
756 |
$timestamp = round( microtime(true) * 1000 );
|
757 |
$api_key = get_option('mo_openid_admin_api_key');
|
780 |
wp_redirect( $url );
|
781 |
exit;
|
782 |
}
|
783 |
+
|
784 |
+
if( isset( $_POST['username_field']) and isset($_POST['email_field']) and $_POST['option'] == 'mo_openid_profile_form_submitted' ){
|
785 |
+
|
786 |
+
$username = $_POST['username_field'];
|
787 |
+
$user_email = $_POST['email_field'];
|
788 |
+
$user_picture = $_POST["user_picture"];
|
789 |
+
$user_url = $_POST["user_url"];
|
790 |
+
$last_name = $_POST["last_name"];
|
791 |
+
$user_full_name = $_POST["user_full_name"];
|
792 |
+
$first_name = $_POST["first_name"];
|
793 |
+
$decrypted_app_name = $_POST["decrypted_app_name"];
|
794 |
+
$decrypted_user_id = $_POST["decrypted_user_id"];
|
795 |
+
|
796 |
+
if(!isset($_POST['otp_field'])) {
|
797 |
+
$user_email = sanitize_email($user_email);
|
798 |
+
$username = preg_replace('/[\x00-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0\xAD]/', '', $username);
|
799 |
+
$username = strtolower(str_replace(" ","",$username));
|
800 |
|
801 |
+
$path = site_url();
|
802 |
+
$path .= '/wp-admin/load-styles.php?c=1&dir=ltr&load%5B%5D=dashicons,buttons,forms,l10n,login&ver=4.8.1';
|
803 |
+
|
804 |
+
global $wpdb;
|
805 |
+
$email_user_id = $wpdb->get_var($wpdb->prepare("SELECT ID FROM $wpdb->users where user_email = %s", $user_email));
|
806 |
+
$username_user_id = $wpdb->get_var($wpdb->prepare("SELECT ID FROM $wpdb->users where user_login = %s", $username));
|
807 |
+
|
808 |
+
//if email exists, dont check if username is in db or not, send otp and get it over wordpress
|
809 |
+
if( isset($email_user_id)){
|
810 |
+
|
811 |
+
$send_content = send_otp_token($user_email);
|
812 |
+
if($send_content['status']=='FAILURE'){
|
813 |
+
$message = 'Either your SMTP is not configured or you have entered an unmailable email. Please go back and try again.';
|
814 |
+
wp_die($message);
|
815 |
+
}
|
816 |
+
|
817 |
+
$transaction_id = $send_content['tId'];
|
818 |
+
echo mo_openid_validate_otp_form($path, $username, $user_email, $transaction_id, $user_picture, $user_url, $last_name, $user_full_name,$first_name, $decrypted_app_name, $decrypted_user_id);
|
819 |
+
exit;
|
820 |
+
|
821 |
+
}
|
822 |
+
//email doesnt exist, check if username is in db or not, acc show form and proceed further
|
823 |
+
else {
|
824 |
+
|
825 |
+
if( isset($username_user_id) ){
|
826 |
+
echo mo_openid_username_already_exists($path, $last_name, $first_name, $user_full_name, $user_url, $user_picture, $username, $user_email, $decrypted_app_name, $decrypted_user_id);
|
827 |
+
exit;
|
828 |
+
}
|
829 |
+
else {
|
830 |
+
|
831 |
+
$send_content = send_otp_token($user_email);
|
832 |
+
if($send_content['status']=='FAILURE'){
|
833 |
+
$message = 'Either your SMTP is not configured or you have entered an unmailable email. Please go back and try again.';
|
834 |
+
wp_die($message);
|
835 |
+
}
|
836 |
+
|
837 |
+
$transaction_id = $send_content['tId'];
|
838 |
+
echo mo_openid_validate_otp_form($path, $username, $user_email, $transaction_id, $user_picture, $user_url, $last_name, $user_full_name,$first_name, $decrypted_app_name, $decrypted_user_id);
|
839 |
+
exit;
|
840 |
+
}
|
841 |
+
|
842 |
+
}
|
843 |
+
}
|
844 |
+
}
|
845 |
+
|
846 |
+
if( isset( $_POST['otp_field']) and $_POST['option'] == 'mo_openid_otp_validation' ){
|
847 |
+
|
848 |
+
$username = $_POST["username_field"];
|
849 |
+
$user_email = $_POST["email_field"];
|
850 |
+
$transaction_id = $_POST["transaction_id"];
|
851 |
+
$otp_token = $_POST['otp_field'];
|
852 |
|
853 |
+
$user_picture = $_POST["user_picture"];
|
854 |
+
$user_url = $_POST["user_url"];
|
855 |
+
$last_name = $_POST["last_name"];
|
856 |
+
$user_full_name = $_POST["user_full_name"];
|
857 |
+
$first_name = $_POST["first_name"];
|
858 |
+
$decrypted_app_name = $_POST["decrypted_app_name"];
|
859 |
+
$decrypted_user_id = $_POST["decrypted_user_id"];
|
860 |
+
|
861 |
+
$validate_content = validate_otp_token($transaction_id, $otp_token);
|
862 |
+
$status = $validate_content['status'];
|
|
|
|
|
|
|
863 |
|
864 |
+
$path = site_url();
|
865 |
+
$path .= '/wp-admin/load-styles.php?c=1&dir=ltr&load%5B%5D=dashicons,buttons,forms,l10n,login&ver=4.8.1';
|
866 |
+
|
867 |
+
if($status == 'FAILURE'){
|
868 |
+
echo mo_openid_invalid_otp_form($path, $first_name, $last_name, $user_full_name, $user_url, $user_picture, $decrypted_app_name, $decrypted_user_id, $username,$user_email, $transaction_id);exit;
|
869 |
}
|
870 |
+
else{
|
871 |
+
|
872 |
+
global $wpdb;
|
873 |
+
$email_user_id = $wpdb->get_var($wpdb->prepare("SELECT ID FROM $wpdb->users where user_email = %s", $user_email));
|
874 |
+
|
875 |
+
// if user exists log him in
|
876 |
+
if(isset($email_user_id))
|
877 |
+
{
|
878 |
+
$user = get_user_by('id', $email_user_id );
|
879 |
+
if(get_option('moopenid_social_login_avatar') && isset($user_picture))
|
880 |
+
update_user_meta($email_user_id, 'moopenid_user_avatar', $user_picture);
|
881 |
+
$_SESSION['mo_login'] = true;
|
882 |
+
do_action( 'wp_login', $user->user_login, $user );
|
883 |
+
wp_set_auth_cookie( $email_user_id, true );
|
|
|
884 |
}
|
885 |
+
// else register him
|
886 |
+
else{
|
887 |
+
|
888 |
+
//check if auto-registration is enabled
|
889 |
+
if(get_option('mo_openid_auto_register_enable')) {
|
890 |
+
|
891 |
+
$random_password = wp_generate_password( 10, false );
|
892 |
+
$userdata = array(
|
893 |
+
'user_login' => $username,
|
894 |
+
'user_email' => $user_email,
|
895 |
+
'user_pass' => $random_password,
|
896 |
+
'display_name' => $user_full_name,
|
897 |
+
'first_name' => $first_name,
|
898 |
+
'last_name' => $last_name,
|
899 |
+
'user_url' => $user_url,
|
900 |
+
);
|
901 |
+
|
902 |
+
$user_id = wp_insert_user( $userdata);
|
903 |
+
if(is_wp_error( $user_id )) {
|
904 |
+
echo '<br/>There was an error in registration. Please contact your administrator.';
|
905 |
+
exit();
|
906 |
+
}
|
907 |
+
|
908 |
+
// run the query to add provider and identifier for the user
|
909 |
+
$table_name = $wpdb->prefix . 'users';
|
910 |
+
|
911 |
+
$result = $wpdb->update(
|
912 |
+
$table_name,
|
913 |
+
array(
|
914 |
+
'provider' => $decrypted_app_name, // string
|
915 |
+
'identifier' => $decrypted_user_id // string
|
916 |
+
),
|
917 |
+
array( 'ID' => $user_id ),
|
918 |
+
array(
|
919 |
+
'%s', // value1
|
920 |
+
'%s' // value2
|
921 |
+
),
|
922 |
+
array( '%d' )
|
923 |
+
);
|
924 |
+
|
925 |
+
if($result === false)
|
926 |
+
{
|
927 |
+
//$wpdb->show_errors();
|
928 |
+
//$wpdb->print_error();
|
929 |
+
//exit;
|
930 |
+
wp_die('Error in update query');
|
931 |
+
}
|
932 |
+
|
933 |
+
$user = get_user_by('email', $user_email );
|
934 |
+
if(get_option('mo_openid_login_role_mapping') && mo_openid_is_customer_valid()){
|
935 |
+
$user->set_role( get_option('mo_openid_login_role_mapping') );
|
936 |
+
}
|
937 |
+
//Add meta if username in other language
|
938 |
+
if(!empty($original_username)) {
|
939 |
+
update_user_meta($user_id, 'moopenid_original_username', $original_username);
|
940 |
+
}
|
941 |
+
//Add meta if email in other language
|
942 |
+
if(!empty($original_email)) {
|
943 |
+
update_user_meta($user_id, 'moopenid_original_email', $original_email);
|
944 |
+
}
|
945 |
+
if(get_option('moopenid_social_login_avatar') && isset($user_picture)){
|
946 |
+
update_user_meta($user_id, 'moopenid_user_avatar', $user_picture);
|
947 |
+
}
|
948 |
+
$_SESSION['mo_login'] = true;
|
949 |
+
do_action( 'mo_user_register', $user_id);
|
950 |
+
do_action( 'wp_login', $user->user_login, $user );
|
951 |
+
wp_set_auth_cookie( $user_id, true );
|
952 |
+
}
|
953 |
+
$redirect_url = mo_openid_get_redirect_url();
|
954 |
+
wp_redirect($redirect_url);
|
955 |
+
exit;
|
956 |
+
}
|
957 |
}
|
958 |
+
}
|
959 |
|
960 |
+
if( isset( $_REQUEST['option'] ) and strpos( $_REQUEST['option'], 'moopenid' ) !== false ){
|
961 |
+
//Decrypt all entries
|
962 |
+
$decrypted_email = isset($_POST['email']) ? mo_openid_decrypt_sanitize($_POST['email']): '';
|
963 |
+
$decrypted_user_name = isset($_POST['username']) ? mo_openid_decrypt_sanitize($_POST['username']): '';
|
964 |
+
$decrypted_user_picture = isset($_POST['profilePic']) ? mo_openid_decrypt_sanitize($_POST['profilePic']): '';
|
965 |
+
$decrypted_user_url = isset($_POST['profileUrl']) ? mo_openid_decrypt_sanitize($_POST['profileUrl']): '';
|
966 |
+
$decrypted_first_name = isset($_POST['firstName']) ? mo_openid_decrypt_sanitize($_POST['firstName']): '';
|
967 |
+
$decrypted_last_name = isset($_POST['lastName']) ? mo_openid_decrypt_sanitize($_POST['lastName']): '';
|
968 |
+
$decrypted_app_name = isset($_POST['appName']) ? mo_openid_decrypt_sanitize($_POST['appName']): '';
|
969 |
+
$decrypted_user_id = isset($_POST['userid']) ? mo_openid_decrypt_sanitize($_POST['userid']): '';
|
970 |
+
|
971 |
+
//echo('email: '.$decrypted_email.' user_name'.$decrypted_user_name);exit;
|
972 |
|
|
|
973 |
if(isset( $_POST['firstName'] ) && isset( $_POST['lastName'] )){
|
974 |
if(strcmp($decrypted_first_name, $decrypted_last_name)!=0)
|
975 |
$user_full_name = $decrypted_first_name.' '.$decrypted_last_name;
|
978 |
$first_name = $decrypted_first_name;
|
979 |
$last_name = $decrypted_last_name;
|
980 |
}
|
981 |
+
else{
|
982 |
+
$user_full_name = $decrypted_user_name;
|
983 |
+
$first_name = '';
|
984 |
+
$last_name = '';
|
985 |
+
}
|
986 |
+
//Set Display Picture
|
987 |
+
$user_picture = $decrypted_user_picture;
|
988 |
+
|
989 |
+
//Set User URL
|
990 |
+
$user_url = $decrypted_user_url;
|
991 |
|
992 |
+
//if email or username not returned from app
|
993 |
+
if ( empty($decrypted_email) || empty($decrypted_user_name) )
|
994 |
+
{
|
995 |
+
//check if provider + identifier group exists
|
996 |
global $wpdb;
|
997 |
+
$id_returning_user = $wpdb->get_var($wpdb->prepare("SELECT ID FROM $wpdb->users where provider = %s AND identifier = %s",$decrypted_app_name,$decrypted_user_id));
|
998 |
+
|
999 |
+
mo_openid_start_session();
|
1000 |
+
|
1001 |
+
// if returning user whose appname + identifier exists, log him in
|
1002 |
+
if(isset($id_returning_user))
|
1003 |
+
{
|
1004 |
+
$user = get_user_by('id', $id_returning_user );
|
1005 |
+
if(get_option('moopenid_social_login_avatar') && isset($user_picture))
|
1006 |
+
update_user_meta($id_returning_user, 'moopenid_user_avatar', $user_picture);
|
1007 |
+
$_SESSION['mo_login'] = true;
|
1008 |
+
do_action( 'wp_login', $user->user_login, $user );
|
1009 |
+
wp_set_auth_cookie( $id_returning_user, true );
|
1010 |
+
}
|
1011 |
+
// if new user and profile completion is enabled
|
1012 |
+
elseif (get_option('mo_openid_enable_profile_completion')){
|
1013 |
+
|
1014 |
+
$path = site_url();
|
1015 |
+
$path .= '/wp-admin/load-styles.php?c=1&dir=ltr&load%5B%5D=dashicons,buttons,forms,l10n,login&ver=4.8.1';
|
1016 |
+
echo mo_openid_profile_completion_form($path, $last_name, $first_name, $user_full_name, $user_url, $user_picture, $decrypted_user_name, $decrypted_email, $decrypted_app_name, $decrypted_user_id);
|
1017 |
+
exit;
|
1018 |
+
}
|
1019 |
+
// if new user and profile completion is disabled, auto create dummy data and register user
|
1020 |
+
else
|
1021 |
+
{
|
1022 |
+
// auto registration is enabled
|
1023 |
+
if(get_option('mo_openid_auto_register_enable')) {
|
1024 |
+
|
1025 |
+
if(!empty($decrypted_email))
|
1026 |
+
{
|
1027 |
+
$split_email = array();
|
1028 |
+
$split_email = explode('@',$decrypted_email);
|
1029 |
+
$username = $split_email[0];
|
1030 |
+
$user_email = $decrypted_email;
|
1031 |
}
|
1032 |
+
else if(!empty($decrypted_user_name))
|
1033 |
+
{
|
1034 |
+
$split_app_name = array();
|
1035 |
+
$split_app_name = explode('_',$decrypted_app_name);
|
1036 |
+
$username = $decrypted_user_name;
|
1037 |
+
$user_email = $decrypted_user_name.'@'.$split_app_name[0].'.com';
|
1038 |
+
}
|
1039 |
+
else
|
1040 |
+
{
|
1041 |
+
$split_app_name = array();
|
1042 |
+
$split_app_name = explode('_',$decrypted_app_name);
|
1043 |
+
$username = 'user_'.get_option('mo_openid_user_count');
|
1044 |
+
$user_email = 'user_'.get_option('mo_openid_user_count').'@'.$split_app_name[0].'.com';
|
1045 |
+
//update_option('mo_openid_user_count',get_option('mo_openid_user_count')+1); update only if user is successfully created
|
1046 |
+
}
|
1047 |
+
|
1048 |
+
|
1049 |
+
$random_password = wp_generate_password( 10, false );
|
1050 |
+
|
1051 |
+
$userdata = array(
|
1052 |
+
'user_login' => $username,
|
1053 |
+
'user_email' => $user_email,
|
1054 |
+
'user_pass' => $random_password,
|
1055 |
+
'display_name' => $user_full_name,
|
1056 |
+
'first_name' => $first_name,
|
1057 |
+
'last_name' => $last_name,
|
1058 |
+
'user_url' => $user_url,
|
1059 |
+
);
|
1060 |
+
|
1061 |
+
|
1062 |
+
$user_id = wp_insert_user( $userdata);
|
1063 |
+
|
1064 |
+
if(is_wp_error( $user_id )) {
|
1065 |
+
//print_r($user_id);
|
1066 |
+
echo '<br/>There was an error in registration. Please contact your administrator.';
|
1067 |
+
exit();
|
1068 |
+
}
|
1069 |
+
|
1070 |
+
update_option('mo_openid_user_count',get_option('mo_openid_user_count')+1);
|
1071 |
+
// run the query to add provider and identifier for the user
|
1072 |
+
$table_name = $wpdb->prefix . 'users';
|
1073 |
+
|
1074 |
+
$result = $wpdb->update(
|
1075 |
+
$table_name,
|
1076 |
+
array(
|
1077 |
+
'provider' => $decrypted_app_name, // string
|
1078 |
+
'identifier' => $decrypted_user_id // string
|
1079 |
+
),
|
1080 |
+
array( 'ID' => $user_id ),
|
1081 |
+
array(
|
1082 |
+
'%s', // value1
|
1083 |
+
'%s' // value2
|
1084 |
+
),
|
1085 |
+
array( '%d' )
|
1086 |
+
);
|
1087 |
+
|
1088 |
+
if($result === false)
|
1089 |
+
{
|
1090 |
+
//$wpdb->show_errors();
|
1091 |
+
//$wpdb->print_error();
|
1092 |
+
//exit;
|
1093 |
+
wp_die('Error in update query');
|
1094 |
+
}
|
1095 |
+
|
1096 |
+
$user = get_user_by('email', $user_email );
|
1097 |
+
if(get_option('mo_openid_login_role_mapping') && mo_openid_is_customer_valid()){
|
1098 |
+
$user->set_role( get_option('mo_openid_login_role_mapping') );
|
1099 |
+
}
|
1100 |
+
if(get_option('moopenid_social_login_avatar') && isset($user_picture)){
|
1101 |
+
update_user_meta($user_id, 'moopenid_user_avatar', $user_picture);
|
1102 |
+
}
|
1103 |
+
$_SESSION['mo_login'] = true;
|
1104 |
+
|
1105 |
+
//registration hook
|
1106 |
+
do_action( 'mo_user_register', $user_id);
|
1107 |
+
//login hook
|
1108 |
+
do_action( 'wp_login', $user->user_login, $user );
|
1109 |
+
wp_set_auth_cookie( $user_id, true );
|
1110 |
+
}
|
1111 |
+
|
1112 |
+
$redirect_url = mo_openid_get_redirect_url();
|
1113 |
+
wp_redirect($redirect_url);
|
1114 |
+
exit;
|
1115 |
+
|
1116 |
}
|
1117 |
|
1118 |
+
}
|
1119 |
+
//email and username are both returned..dont show profile completion
|
1120 |
+
else{
|
1121 |
+
|
1122 |
+
global $wpdb;
|
1123 |
+
$user_email = sanitize_email($decrypted_email);
|
1124 |
+
$username = strtolower(str_replace(" ","",$decrypted_user_name));
|
1125 |
+
|
1126 |
//Checking if email or username already exist
|
1127 |
$email_user_id = $wpdb->get_var($wpdb->prepare("SELECT ID FROM $wpdb->users where user_email = %s", $user_email));
|
1128 |
$username_user_id = $wpdb->get_var($wpdb->prepare("SELECT ID FROM $wpdb->users where user_login = %s", $username));
|
|
|
|
|
|
|
|
|
1129 |
|
1130 |
mo_openid_start_session();
|
1131 |
if( isset($email_user_id)) { // user is a member
|
1132 |
+
$user = get_user_by('id', $email_user_id );
|
1133 |
+
$user_id = $user->ID;
|
1134 |
+
if(get_option('moopenid_social_login_avatar') && isset($user_picture))
|
1135 |
+
update_user_meta($user_id, 'moopenid_user_avatar', $user_picture);
|
1136 |
+
$_SESSION['mo_login'] = true;
|
1137 |
+
do_action( 'wp_login', $user->user_login, $user );
|
1138 |
+
wp_set_auth_cookie( $user_id, true );
|
1139 |
|
1140 |
}
|
1141 |
+
else {
|
1142 |
+
// this user is a guest
|
1143 |
+
|
1144 |
+
// auto registration is enabled
|
1145 |
+
if(get_option('mo_openid_auto_register_enable')) {
|
1146 |
$random_password = wp_generate_password( 10, false );
|
1147 |
|
1148 |
if( isset($username_user_id) ){
|
1149 |
$email = array();
|
1150 |
+
$email = explode('@', $user_email);
|
1151 |
$username = $email[0];
|
1152 |
$username_user_id = $wpdb->get_var($wpdb->prepare("SELECT ID FROM $wpdb->users where user_login = %s", $username));
|
1153 |
if( isset($username_user_id) ){
|
1175 |
exit();
|
1176 |
}
|
1177 |
|
1178 |
+
// run the query to add provider and identifier for the user
|
1179 |
+
$table_name = $wpdb->prefix . 'users';
|
1180 |
+
|
1181 |
+
//echo('app name '.$decrypted_app_name.'user id '.$decrypted_user_id);exit;
|
1182 |
+
|
1183 |
+
$result = $wpdb->update(
|
1184 |
+
$table_name,
|
1185 |
+
array(
|
1186 |
+
'provider' => $decrypted_app_name, // string
|
1187 |
+
'identifier' => $decrypted_user_id // string
|
1188 |
+
),
|
1189 |
+
array( 'ID' => $user_id ),
|
1190 |
+
array(
|
1191 |
+
'%s', // value1
|
1192 |
+
'%s' // value2
|
1193 |
+
),
|
1194 |
+
array( '%d' )
|
1195 |
+
);
|
1196 |
+
|
1197 |
+
if($result === false)
|
1198 |
+
{
|
1199 |
+
//$wpdb->show_errors();
|
1200 |
+
//$wpdb->print_error();
|
1201 |
+
//exit;
|
1202 |
+
wp_die('Error in update query');
|
1203 |
+
}
|
1204 |
+
|
1205 |
$user = get_user_by('email', $user_email );
|
1206 |
if(get_option('mo_openid_login_role_mapping') && mo_openid_is_customer_valid()){
|
1207 |
$user->set_role( get_option('mo_openid_login_role_mapping') );
|
1208 |
}
|
1209 |
//Add meta if username in other language
|
1210 |
+
if(!empty($original_username)) {
|
1211 |
+
update_user_meta($user_id, 'moopenid_original_username', $original_username);
|
1212 |
}
|
1213 |
//Add meta if email in other language
|
1214 |
+
if(!empty($original_email)) {
|
1215 |
+
update_user_meta($user_id, 'moopenid_original_email', $original_email);
|
1216 |
}
|
1217 |
if(get_option('moopenid_social_login_avatar') && isset($user_picture)){
|
1218 |
update_user_meta($user_id, 'moopenid_user_avatar', $user_picture);
|
1219 |
}
|
1220 |
$_SESSION['mo_login'] = true;
|
1221 |
+
|
1222 |
+
//registration hook
|
1223 |
do_action( 'mo_user_register', $user_id);
|
1224 |
+
//login hook
|
1225 |
do_action( 'wp_login', $user->user_login, $user );
|
1226 |
wp_set_auth_cookie( $user_id, true );
|
1227 |
}
|
1228 |
+
$redirect_url = mo_openid_get_redirect_url();
|
1229 |
+
wp_redirect($redirect_url);
|
1230 |
+
exit;
|
1231 |
+
}
|
1232 |
}
|
|
|
|
|
|
|
|
|
|
|
1233 |
}
|
1234 |
|
1235 |
+
if( isset( $_REQUEST['autoregister']) and strpos($_REQUEST['autoregister'],'false') !== false ) {
|
1236 |
if(!is_user_logged_in()) {
|
1237 |
mo_openid_disabled_register_message();
|
1238 |
}
|
1239 |
}
|
1240 |
}
|
1241 |
+
|
1242 |
+
function mo_openid_validate_otp_form($path, $username, $user_email, $transaction_id, $user_picture, $user_url, $last_name, $user_full_name ,$first_name, $decrypted_app_name, $decrypted_user_id){
|
1243 |
+
$html = '<head><link rel="stylesheet" href='.$path.' type="text/css" media="all" /></head>
|
1244 |
+
|
1245 |
+
<body class="login login-action-login wp-core-ui locale-en-us">
|
1246 |
+
<div style="position:fixed;background:#f1f1f1;"></div>
|
1247 |
+
<div id="add_field" style="position:fixed;top: 0;right: 0;bottom: 0;left: 0;z-index: 1;padding-top:130px;">
|
1248 |
+
<div style="width: 500px; margin: 30px auto;">
|
1249 |
+
<form name="f" method="post" action="">
|
1250 |
+
<div style="background: white;margin-top:-15px;padding: 15px;">
|
1251 |
+
|
1252 |
+
<span style="margin:120px;font-size: 24px;font-family: Arial">Verify your email</span><br>
|
1253 |
+
<div style="padding: 12px;"></div>
|
1254 |
+
<div style=" padding: 16px;background-color:rgba(1, 145, 191, 0.117647);color: black;">
|
1255 |
+
<span style=" margin-left: 15px;color: black;font-weight: bold;float: right;font-size: 22px;line-height: 20px;cursor: pointer;font-family: Arial;transition: 0.3s"></span>We have sent a verification code to given email. Please verify your account with it.</div> <br>
|
1256 |
+
<p>
|
1257 |
+
<label for="user_login">Enter your verification code<br/>
|
1258 |
+
<input type="text" pattern="\d{4,5}" class="input" name="otp_field" value="" size="20" required/></label>
|
1259 |
+
</p>
|
1260 |
+
<input type="hidden" name="username_field" value='.$username.'>
|
1261 |
+
<input type="hidden" name="email_field" value='.$user_email.'>
|
1262 |
+
<input type="hidden" name="first_name" value='.$first_name.'>
|
1263 |
+
<input type="hidden" name="last_name" value='.$last_name.'>
|
1264 |
+
<input type="hidden" name="user_full_name" value='.$user_full_name.'>
|
1265 |
+
<input type="hidden" name="user_url" value='.$user_url.'>
|
1266 |
+
<input type="hidden" name="user_picture" value='.$user_picture.'>
|
1267 |
+
<input type="hidden" name="transaction_id" value='.$transaction_id.'>
|
1268 |
+
<input type="hidden" name="decrypted_app_name" value='.$decrypted_app_name.'>
|
1269 |
+
<input type="hidden" name="decrypted_user_id" value='.$decrypted_user_id.'>
|
1270 |
+
<input type="hidden" name="option" value="mo_openid_otp_validation">
|
1271 |
+
</div>
|
1272 |
+
<p class="submit">
|
1273 |
+
<input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="Submit"/>
|
1274 |
+
</p>
|
1275 |
+
</form>
|
1276 |
+
</div>
|
1277 |
+
</div>
|
1278 |
+
</body>';
|
1279 |
+
return $html;
|
1280 |
+
}
|
1281 |
+
|
1282 |
+
function mo_openid_username_already_exists($path,$last_name,$first_name,$user_full_name,$user_url,$user_picture,$username,$user_email, $decrypted_app_name, $decrypted_user_id){
|
1283 |
+
$html = '<style>.form-input-validation.is-error {color: #d94f4f;}</style><head><link rel="stylesheet" href='.$path.' type="text/css" media="all" /></head>
|
1284 |
+
|
1285 |
+
<body class="login login-action-login wp-core-ui locale-en-us">
|
1286 |
+
<div style="position:fixed;background:#f1f1f1;"></div>
|
1287 |
+
<div id="add_field" style="position:fixed;top: 0;right: 0;bottom: 0;left: 0;z-index: 1;padding-top:130px;">
|
1288 |
+
<div style="width: 500px; margin: 30px auto;">
|
1289 |
+
<form name="f" method="post" action="">
|
1290 |
+
<div style="background: white;margin-top:-15px;padding: 15px;">
|
1291 |
+
|
1292 |
+
<span style="margin:120px;font-size: 24px;font-family: Arial">Profile Completion</span>
|
1293 |
+
<p>
|
1294 |
+
<label for="user_login">Username<br/>
|
1295 |
+
<input type="text" class="input" name="username_field" value='.$username.' size="20" required>
|
1296 |
+
<span align="center" class="form-input-validation is-error">Entered username already exists. Try some other username.</span>
|
1297 |
+
</label>
|
1298 |
+
</p>
|
1299 |
+
<br>
|
1300 |
+
<p>
|
1301 |
+
<label for="user_pass">Email<br />
|
1302 |
+
<input type="email" name="email_field" class="input" value='.$user_email.' size="20" required></label>
|
1303 |
+
</p>
|
1304 |
+
<input type="hidden" name="first_name" value='.$first_name.'>
|
1305 |
+
<input type="hidden" name="last_name" value='.$last_name.'>
|
1306 |
+
<input type="hidden" name="user_full_name" value='.$user_full_name.'>
|
1307 |
+
<input type="hidden" name="user_url" value='.$user_url.'>
|
1308 |
+
<input type="hidden" name="user_picture" value='.$user_picture.'>
|
1309 |
+
<input type="hidden" name="decrypted_app_name" value='.$decrypted_app_name.'>
|
1310 |
+
<input type="hidden" name="decrypted_user_id" value='.$decrypted_user_id.'>
|
1311 |
+
<input type="hidden" name="option" value="mo_openid_profile_form_submitted">
|
1312 |
+
</div>
|
1313 |
+
<p class="submit">
|
1314 |
+
<input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="Submit"/>
|
1315 |
+
</p>
|
1316 |
+
</form>
|
1317 |
+
</div>
|
1318 |
+
</div>
|
1319 |
+
</body>';
|
1320 |
+
return $html;
|
1321 |
+
|
1322 |
+
}
|
1323 |
+
|
1324 |
+
function mo_openid_profile_completion_form($path,$last_name,$first_name,$user_full_name,$user_url,$user_picture, $decrypted_user_name, $decrypted_email, $decrypted_app_name, $decrypted_user_id){
|
1325 |
+
$html = ' <style>.form-input-validation.note {color: #d94f4f;}</style>
|
1326 |
+
<head><link rel="stylesheet" href='.$path.' type="text/css" media="all" /></head>
|
1327 |
+
|
1328 |
+
<body class="login login-action-login wp-core-ui locale-en-us">
|
1329 |
+
<div style="position:fixed;background:#f1f1f1;"></div>
|
1330 |
+
<div id="add_field" style="position:fixed;top: 0;right: 0;bottom: 0;left: 0;z-index: 1;padding-top:130px;">
|
1331 |
+
<div style="width: 500px; margin: 30px auto;">
|
1332 |
+
<form name="f" method="post" action="">
|
1333 |
+
<div style="background: white;margin-top:-15px;padding: 15px;">
|
1334 |
+
|
1335 |
+
<span style="margin:120px;font-size: 24px;font-family: Arial">Profile Completion</span><br>
|
1336 |
+
<div style="padding: 12px;"></div>
|
1337 |
+
<div style=" padding: 16px;background-color:rgba(1, 145, 191, 0.117647);color: black;">
|
1338 |
+
<span style=" margin-left: 15px;color: black;font-weight: bold;float: right;font-size: 22px;line-height: 20px;cursor: pointer;font-family: Arial;transition: 0.3s"></span>If you are an existing user on this site, enter your registered email and username. If you are a new user, please edit/fill the details</div> <br>
|
1339 |
+
<p>
|
1340 |
+
<label for="user_login">Username<br/>
|
1341 |
+
<input type="text" class="input" name="username_field" size="20" required value='.$decrypted_user_name.'></label>
|
1342 |
+
</p>
|
1343 |
+
<p>
|
1344 |
+
<label for="user_pass">Email<br />
|
1345 |
+
<input type="email" class="input" name="email_field" size="20" required value='.$decrypted_email.'></label>
|
1346 |
+
<span align="center" class="form-input-validation note">We will be sending a verification code to this email to verify it. Please enter a valid email address.</span>
|
1347 |
+
</p>
|
1348 |
+
<input type="hidden" name="first_name" value='.$first_name.'>
|
1349 |
+
<input type="hidden" name="last_name" value='.$last_name.'>
|
1350 |
+
<input type="hidden" name="user_full_name" value='.$user_full_name.'>
|
1351 |
+
<input type="hidden" name="user_url" value='.$user_url.'>
|
1352 |
+
<input type="hidden" name="user_picture" value='.$user_picture.'>
|
1353 |
+
<input type="hidden" name="decrypted_app_name" value='.$decrypted_app_name.'>
|
1354 |
+
<input type="hidden" name="decrypted_user_id" value='.$decrypted_user_id.'>
|
1355 |
+
<input type="hidden" name="option" value="mo_openid_profile_form_submitted">
|
1356 |
+
</div>
|
1357 |
+
<p class="submit">
|
1358 |
+
<input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="Submit"/>
|
1359 |
+
</p>
|
1360 |
+
</form>
|
1361 |
+
</div>
|
1362 |
+
</div>
|
1363 |
+
</body>';
|
1364 |
+
return $html;
|
1365 |
+
}
|
1366 |
|
1367 |
+
function mo_openid_invalid_otp_form($path, $first_name, $last_name, $user_full_name, $user_url, $user_picture, $decrypted_app_name, $decrypted_user_id, $username,$user_email, $transaction_id){
|
1368 |
+
$html = '<style>.form-input-validation.is-error {color: #d94f4f;}</style>
|
1369 |
+
<head><link rel="stylesheet" href='.$path.' type="text/css" media="all" /></head>
|
1370 |
+
|
1371 |
+
<body class="login login-action-login wp-core-ui locale-en-us">
|
1372 |
+
<div style="position:fixed;background:#f1f1f1;"></div>
|
1373 |
+
<div id="add_field" style="position:fixed;top: 0;right: 0;bottom: 0;left: 0;z-index: 1;padding-top:130px;">
|
1374 |
+
<div style="width: 500px; margin: 30px auto;">
|
1375 |
+
<form name="f" method="post" action="">
|
1376 |
+
<div style="background: white;margin-top:-15px;padding: 15px;">
|
1377 |
+
|
1378 |
+
<span style="margin:120px;font-size: 24px;font-family: Arial">Verify your email</span>
|
1379 |
+
|
1380 |
+
<p>
|
1381 |
+
<label for="user_login">Enter verification code<br/>
|
1382 |
+
<input type="text" pattern="\d{4,5}" class="input" name="otp_field" value="" size="20" required></label>
|
1383 |
+
<span align="center" class="form-input-validation is-error">You have entered an invalid verification code. Enter a valid code.</span>
|
1384 |
+
</p>
|
1385 |
+
|
1386 |
+
<input type="hidden" name="first_name" value='.$first_name.'>
|
1387 |
+
<input type="hidden" name="last_name" value='.$last_name.'>
|
1388 |
+
<input type="hidden" name="user_full_name" value='.$user_full_name.'>
|
1389 |
+
<input type="hidden" name="user_url" value='.$user_url.'>
|
1390 |
+
<input type="hidden" name="user_picture" value='.$user_picture.'>
|
1391 |
+
<input type="hidden" name="decrypted_app_name" value='.$decrypted_app_name.'>
|
1392 |
+
<input type="hidden" name="decrypted_user_id" value='.$decrypted_user_id.'>
|
1393 |
+
<input type="hidden" name="username_field" value='.$username.'>
|
1394 |
+
<input type="hidden" name="email_field" value='.$user_email.'>
|
1395 |
+
<input type="hidden" name="transaction_id" value='.$transaction_id.'>
|
1396 |
+
<input type="hidden" name="option" value="mo_openid_otp_validation">
|
1397 |
+
</div>
|
1398 |
+
<p class="submit">
|
1399 |
+
<input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="Submit"/>
|
1400 |
+
</p>
|
1401 |
+
</form>
|
1402 |
+
</div>
|
1403 |
+
</div>
|
1404 |
+
</body>';
|
1405 |
+
return $html;
|
1406 |
+
}
|
1407 |
+
|
1408 |
+
function mo_openid_decrypt_sanitize($param) {
|
1409 |
if(strcmp($param,'null')!=0 && strcmp($param,'')!=0){
|
1410 |
$customer_token = get_option('mo_openid_customer_token');
|
1411 |
$base64decoded = base64_decode($param);
|
1412 |
$token_params_decrypt = mcrypt_decrypt( MCRYPT_RIJNDAEL_128, $customer_token, $base64decoded, MCRYPT_MODE_ECB );
|
1413 |
+
// removes control characters and some blank characters
|
1414 |
+
$token_params_decrypt_sanitise = preg_replace('/[\x00-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0\xAD]/', '', $token_params_decrypt);
|
1415 |
+
//strips space,tab,newline,carriage return,NUL-byte,vertical tab.
|
1416 |
+
$token_params_decrypt_sanitise= trim($token_params_decrypt_sanitise);
|
1417 |
+
return $token_params_decrypt_sanitise;
|
1418 |
}else{
|
1419 |
return '';
|
1420 |
}
|
1490 |
wp_redirect($redirect_url);
|
1491 |
exit;
|
1492 |
}
|
1493 |
+
}
|
1494 |
+
|
1495 |
+
function send_otp_token($email){
|
1496 |
+
$otp = wp_rand(1000,99999);
|
1497 |
+
$customerKey = get_option('mo_openid_admin_customer_key');
|
1498 |
+
$stringToHash = $customerKey . $otp;
|
1499 |
+
$transactionId = hash("sha512", $stringToHash);
|
1500 |
+
//wp_email function will come here
|
1501 |
+
$subject='Verification code validation link';
|
1502 |
+
$message='Dear User,
|
1503 |
|
1504 |
+
Your verification code for completing your profile is: '.$otp.'
|
1505 |
+
|
1506 |
+
Please use this code to complete your profile. Do not share this code with anyone.
|
1507 |
+
|
1508 |
+
Thank you.';
|
1509 |
+
|
1510 |
+
$response = wp_mail($email, $subject, $message);
|
1511 |
+
if($response){
|
1512 |
+
mo_openid_start_session();
|
1513 |
+
$_SESSION['mo_otptoken'] = true;
|
1514 |
+
$_SESSION['sent_on'] = time();
|
1515 |
+
$content = array('status' => 'SUCCESS','tId' => $transactionId);
|
1516 |
+
}
|
1517 |
+
else
|
1518 |
+
$content = array('status' => 'FAILURE');
|
1519 |
+
return $content;
|
1520 |
+
}
|
1521 |
+
|
1522 |
+
function validate_otp_token($transactionId,$otpToken){
|
1523 |
+
mo_openid_start_session();
|
1524 |
+
$customerKey = get_option('mo_openid_admin_customer_key');
|
1525 |
+
if($_SESSION['mo_otptoken']){
|
1526 |
+
$pass = checkTimeStamp($_SESSION['sent_on'],time());
|
1527 |
+
$pass = checkTransactionId($customerKey, $otpToken, $transactionId, $pass);
|
1528 |
+
if($pass)
|
1529 |
+
$content = array('status' => 'SUCCESS');
|
1530 |
+
else
|
1531 |
+
$content = array('status' => 'FAILURE');
|
1532 |
+
unset($_SESSION['$mo_otptoken']);
|
1533 |
+
}
|
1534 |
+
else
|
1535 |
+
$content = array('status' =>'FAILURE');
|
1536 |
+
|
1537 |
+
return $content;
|
1538 |
+
}
|
1539 |
+
|
1540 |
+
/*
|
1541 |
+
* This function checks the time otp was sent to and the time
|
1542 |
+
* user is validating the otp. The time difference shouldn't be
|
1543 |
+
* more that 60 seconds.
|
1544 |
+
*
|
1545 |
+
* @param $sentTime - the time otp was sent to
|
1546 |
+
* @param $validatedTime - the time otp was validated
|
1547 |
+
*/
|
1548 |
+
function checkTimeStamp($sentTime,$validatedTime){
|
1549 |
+
$from_time = strtotime($sentTime);
|
1550 |
+
$to_time = strtotime($validatedTime);
|
1551 |
+
$diff = round(abs($to_time - $from_time) / 60,2);
|
1552 |
+
if($diff>5)
|
1553 |
+
return false;
|
1554 |
+
else
|
1555 |
+
return true;
|
1556 |
+
}
|
1557 |
+
|
1558 |
+
/**
|
1559 |
+
* This function checks and compares the transaction set in session
|
1560 |
+
* and one generated during validation. Both need to match for the
|
1561 |
+
* otp to be validated.
|
1562 |
+
*
|
1563 |
+
* @param $customerKey - the customer key of the user
|
1564 |
+
* @param $otpToken - otp token entered by the user
|
1565 |
+
* @param $transactionId - the transaction id in session
|
1566 |
+
* @param $pass - the boolean value passed after the time check
|
1567 |
+
*/
|
1568 |
+
function checkTransactionId($customerKey,$otpToken,$transactionId,$pass){
|
1569 |
+
if(!$pass){
|
1570 |
+
return false;
|
1571 |
+
}
|
1572 |
+
$stringToHash = $customerKey . $otpToken;
|
1573 |
+
$txtID = hash("sha512", $stringToHash);
|
1574 |
+
if($txtID == $transactionId)
|
1575 |
+
return true;
|
1576 |
+
}
|
1577 |
+
|
1578 |
+
if(get_option('mo_openid_logout_redirection_enable') == 1){
|
1579 |
+
add_filter( 'logout_url', 'mo_openid_redirect_after_logout',0,1);
|
1580 |
+
}
|
1581 |
+
|
1582 |
add_action( 'widgets_init', create_function( '', 'register_widget( "mo_openid_login_wid" );' ) );
|
1583 |
add_action( 'widgets_init', create_function( '', 'return register_widget( "mo_openid_sharing_ver_wid" );' ) );
|
1584 |
add_action( 'widgets_init', create_function( '', 'return register_widget( "mo_openid_sharing_hor_wid" );' ) );
|
class-mo-openid-social-share.php
CHANGED
@@ -67,109 +67,109 @@ $url = $http . $_SERVER["HTTP_HOST"] . $_SERVER['REQUEST_URI'];
|
|
67 |
<?php
|
68 |
if($custom_theme == 'custom'){
|
69 |
if( get_option('mo_openid_facebook_share_enable') ) {
|
70 |
-
|
71 |
?>
|
72 |
-
<a
|
73 |
<?php
|
74 |
}
|
75 |
|
76 |
if( get_option('mo_openid_twitter_share_enable') ) {
|
77 |
$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;
|
78 |
?>
|
79 |
-
<a
|
80 |
<?php
|
81 |
}
|
82 |
|
83 |
if( get_option('mo_openid_google_share_enable') ) {
|
84 |
$link = 'https://plus.google.com/share?url='.$url;
|
85 |
?>
|
86 |
-
<a
|
87 |
<?php
|
88 |
}
|
89 |
|
90 |
if( get_option('mo_openid_vkontakte_share_enable') ) {
|
91 |
$link = 'http://vk.com/share.php?url='.$url.'&title='.$title.'&description='.$excerpt;
|
92 |
?>
|
93 |
-
<a
|
94 |
<?php
|
95 |
}
|
96 |
|
97 |
if( get_option('mo_openid_tumblr_share_enable') ) {
|
98 |
$link = 'http://www.tumblr.com/share/link?url='.$url.'&title='.$title.'&description='.$excerpt;
|
99 |
?>
|
100 |
-
<a
|
101 |
<?php
|
102 |
}
|
103 |
|
104 |
if( get_option('mo_openid_stumble_share_enable') ) {
|
105 |
$link = 'http://www.stumbleupon.com/submit?url='.$url.'&title='.$title;
|
106 |
?>
|
107 |
-
<a
|
108 |
<?php
|
109 |
}
|
110 |
|
111 |
if( get_option('mo_openid_linkedin_share_enable') ) {
|
112 |
$link = 'https://www.linkedin.com/shareArticle?mini=true&title='.$title.'&url='.$url.'&summary='.$excerpt;
|
113 |
?>
|
114 |
-
<a
|
115 |
<?php
|
116 |
}
|
117 |
|
118 |
if( get_option('mo_openid_reddit_share_enable') ) {
|
119 |
$link = 'http://www.reddit.com/submit?url='.$url.'&title='.$title;
|
120 |
?>
|
121 |
-
<a
|
122 |
<?php
|
123 |
}
|
124 |
|
125 |
if( get_option('mo_openid_pinterest_share_enable') ) {
|
126 |
?>
|
127 |
-
<a
|
128 |
<?php
|
129 |
}
|
130 |
|
131 |
if( get_option('mo_openid_pocket_share_enable') ) {
|
132 |
$link = 'https://getpocket.com/save?url='.$url.'&title='.$title;
|
133 |
?>
|
134 |
-
<a
|
135 |
<?php
|
136 |
}
|
137 |
|
138 |
if( get_option('mo_openid_digg_share_enable') ) {
|
139 |
$link = 'http://digg.com/submit?url='.$url.'&title='.$title;
|
140 |
?>
|
141 |
-
<a
|
142 |
<?php
|
143 |
}
|
144 |
|
145 |
if( get_option('mo_openid_delicious_share_enable') ) {
|
146 |
$link = 'http://www.delicious.com/save?v=5&noui&jump=close&url='.$url.'&title='.$title;
|
147 |
?>
|
148 |
-
<a
|
149 |
<?php
|
150 |
}
|
151 |
|
152 |
if( get_option('mo_openid_odnoklassniki_share_enable') ) {
|
153 |
$link = 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st.comments='.$excerpt.'&st._surl='.$url;
|
154 |
?>
|
155 |
-
<a
|
156 |
<?php
|
157 |
}
|
158 |
if( get_option('mo_openid_mail_share_enable') ) {
|
159 |
?>
|
160 |
-
<a
|
161 |
<i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-envelope" style="padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
162 |
<?php
|
163 |
}
|
164 |
if( get_option('mo_openid_print_share_enable') ) {
|
165 |
?>
|
166 |
-
<a
|
167 |
<i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-print" style="padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
168 |
<?php
|
169 |
}
|
170 |
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
171 |
?>
|
172 |
-
<a
|
173 |
<i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-whatsapp" style="padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
174 |
<?php
|
175 |
}
|
@@ -177,215 +177,217 @@ $url = $http . $_SERVER["HTTP_HOST"] . $_SERVER['REQUEST_URI'];
|
|
177 |
|
178 |
else if($custom_theme == 'customFont'){
|
179 |
if( get_option('mo_openid_facebook_share_enable') ) {
|
180 |
-
|
181 |
?>
|
182 |
-
<a
|
183 |
<?php
|
184 |
}
|
185 |
|
186 |
if( get_option('mo_openid_twitter_share_enable') ) {
|
187 |
$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;
|
188 |
?>
|
189 |
-
<a
|
190 |
<?php
|
191 |
}
|
192 |
|
193 |
if( get_option('mo_openid_google_share_enable') ) {
|
194 |
$link = 'https://plus.google.com/share?url='.$url;
|
195 |
?>
|
196 |
-
<a
|
197 |
<?php
|
198 |
}
|
199 |
|
200 |
if( get_option('mo_openid_vkontakte_share_enable') ) {
|
201 |
$link = 'http://vk.com/share.php?url='.$url.'&title='.$title.'&description='.$excerpt;
|
202 |
?>
|
203 |
-
<a
|
204 |
<?php
|
205 |
}
|
206 |
|
207 |
if( get_option('mo_openid_tumblr_share_enable') ) {
|
208 |
$link = 'http://www.tumblr.com/share/link?url='.$url.'&title='.$title;
|
209 |
?>
|
210 |
-
<a
|
211 |
<?php
|
212 |
}
|
213 |
|
214 |
if( get_option('mo_openid_stumble_share_enable') ) {
|
215 |
$link = 'http://www.stumbleupon.com/submit?url='.$url.'&title='.$title;
|
216 |
?>
|
217 |
-
<a
|
218 |
<?php
|
219 |
}
|
220 |
|
221 |
if( get_option('mo_openid_linkedin_share_enable') ) {
|
222 |
$link = 'https://www.linkedin.com/shareArticle?mini=true&title='.$title.'&url='.$url.'&summary='.$excerpt;
|
223 |
?>
|
224 |
-
<a
|
225 |
<?php
|
226 |
}
|
227 |
|
228 |
if( get_option('mo_openid_reddit_share_enable') ) {
|
229 |
$link = 'http://www.reddit.com/submit?url='.$url.'&title='.$title;
|
230 |
?>
|
231 |
-
<a
|
232 |
<?php
|
233 |
}
|
234 |
|
235 |
if( get_option('mo_openid_pinterest_share_enable') ) {
|
236 |
?>
|
237 |
-
<a
|
238 |
<?php
|
239 |
}
|
240 |
|
241 |
if( get_option('mo_openid_pocket_share_enable') ) {
|
242 |
$link = 'https://getpocket.com/save?url='.$url.'&title='.$title;
|
243 |
?>
|
244 |
-
<a
|
245 |
<?php
|
246 |
}
|
247 |
|
248 |
if( get_option('mo_openid_digg_share_enable') ) {
|
249 |
$link = 'http://digg.com/submit?url='.$url.'&title='.$title;
|
250 |
?>
|
251 |
-
<a
|
252 |
<?php
|
253 |
}
|
254 |
|
255 |
if( get_option('mo_openid_delicious_share_enable') ) {
|
256 |
$link = 'http://www.delicious.com/save?v=5&noui&jump=close&url='.$url.'&title='.$title;
|
257 |
?>
|
258 |
-
<a
|
259 |
<?php
|
260 |
}
|
261 |
if( get_option('mo_openid_odnoklassniki_share_enable') ) {
|
262 |
$link = 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st.comments='.$excerpt.'&st._surl='.$url;
|
263 |
?>
|
264 |
-
<a
|
265 |
<?php
|
266 |
}
|
267 |
if( get_option('mo_openid_mail_share_enable') ) {
|
268 |
?>
|
269 |
-
<a
|
270 |
<i class=" <?php echo $selected_theme; ?> fa fa-envelope" style="padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
271 |
<?php
|
272 |
}
|
273 |
if( get_option('mo_openid_print_share_enable') ) {
|
274 |
?>
|
275 |
-
<a
|
276 |
<i class=" <?php echo $selected_theme; ?> fa fa-print" style="padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
277 |
<?php
|
278 |
}
|
279 |
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
280 |
?>
|
281 |
-
<a
|
282 |
<i class=" <?php echo $selected_theme; ?> fa fa-whatsapp" style="padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
283 |
<?php
|
284 |
}
|
285 |
}
|
286 |
|
287 |
else{
|
|
|
|
|
288 |
if( get_option('mo_openid_facebook_share_enable') ) {
|
289 |
-
|
290 |
?>
|
291 |
-
<a
|
292 |
<?php
|
293 |
}
|
294 |
|
295 |
if( get_option('mo_openid_twitter_share_enable') ) {
|
296 |
$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;
|
297 |
?>
|
298 |
-
<a
|
299 |
<?php
|
300 |
}
|
301 |
|
302 |
if( get_option('mo_openid_google_share_enable') ) {
|
303 |
$link = 'https://plus.google.com/share?url='.$url;
|
304 |
?>
|
305 |
-
<a
|
306 |
<?php
|
307 |
}
|
308 |
|
309 |
if( get_option('mo_openid_vkontakte_share_enable') ) {
|
310 |
$link = 'http://vk.com/share.php?url='.$url.'&title='.$title.'&description='.$excerpt;
|
311 |
?>
|
312 |
-
<a
|
313 |
<?php
|
314 |
}
|
315 |
|
316 |
if( get_option('mo_openid_tumblr_share_enable') ) {
|
317 |
$link = 'http://www.tumblr.com/share/link?url='.$url.'&title='.$title;
|
318 |
?>
|
319 |
-
<a
|
320 |
<?php
|
321 |
}
|
322 |
|
323 |
if( get_option('mo_openid_stumble_share_enable') ) {
|
324 |
$link = 'http://www.stumbleupon.com/submit?url='.$url.'&title='.$title;
|
325 |
?>
|
326 |
-
<a
|
327 |
<?php
|
328 |
}
|
329 |
|
330 |
if( get_option('mo_openid_linkedin_share_enable') ) {
|
331 |
$link = 'https://www.linkedin.com/shareArticle?mini=true&title='.$title.'&url='.$url.'&summary='.$excerpt;
|
332 |
?>
|
333 |
-
<a
|
334 |
<?php
|
335 |
}
|
336 |
|
337 |
if( get_option('mo_openid_reddit_share_enable') ) {
|
338 |
$link = 'http://www.reddit.com/submit?url='.$url.'&title='.$title;
|
339 |
?>
|
340 |
-
<a
|
341 |
<?php
|
342 |
}
|
343 |
if( get_option('mo_openid_pinterest_share_enable') ) {
|
344 |
?>
|
345 |
-
<a
|
346 |
<?php
|
347 |
}
|
348 |
if( get_option('mo_openid_pocket_share_enable') ) {
|
349 |
$link = 'https://getpocket.com/save?url='.$url.'&title='.$title;
|
350 |
?>
|
351 |
-
<a
|
352 |
<?php
|
353 |
}
|
354 |
if( get_option('mo_openid_digg_share_enable') ) {
|
355 |
$link = 'http://digg.com/submit?url='.$url.'&title='.$title;
|
356 |
?>
|
357 |
-
<a
|
358 |
<?php
|
359 |
}
|
360 |
if( get_option('mo_openid_delicious_share_enable') ) {
|
361 |
$link = 'http://www.delicious.com/save?v=5&noui&jump=close&url='.$url.'&title='.$title;
|
362 |
?>
|
363 |
-
<a
|
364 |
<?php
|
365 |
}
|
366 |
if( get_option('mo_openid_odnoklassniki_share_enable') ) {
|
367 |
$link = 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st.comments='.$excerpt.'&st._surl='.$url;
|
368 |
?>
|
369 |
-
<a
|
370 |
<?php
|
371 |
}
|
372 |
if( get_option('mo_openid_mail_share_enable') ) {
|
373 |
?>
|
374 |
-
<a
|
375 |
<img alt='Email' style= 'height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/mail.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>">
|
376 |
</a>
|
377 |
<?php
|
378 |
}
|
379 |
if( get_option('mo_openid_print_share_enable') ) {
|
380 |
?>
|
381 |
-
<a
|
382 |
<img alt='Print' style= 'height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/print.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>">
|
383 |
</a>
|
384 |
<?php
|
385 |
}
|
386 |
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
387 |
?>
|
388 |
-
<a
|
389 |
<img alt='Whatsapp' style= 'height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/whatsapp.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" data-action="share/whatsapp/share"></a>
|
390 |
<?php
|
391 |
}
|
@@ -399,328 +401,328 @@ $url = $http . $_SERVER["HTTP_HOST"] . $_SERVER['REQUEST_URI'];
|
|
399 |
<?php
|
400 |
if($custom_theme == 'custom'){
|
401 |
if( get_option('mo_openid_facebook_share_enable') ) {
|
402 |
-
|
403 |
?>
|
404 |
-
<a
|
405 |
<?php
|
406 |
}
|
407 |
|
408 |
if( get_option('mo_openid_twitter_share_enable') ) {
|
409 |
$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;
|
410 |
?>
|
411 |
-
<a
|
412 |
<?php
|
413 |
}
|
414 |
|
415 |
if( get_option('mo_openid_google_share_enable') ) {
|
416 |
$link = 'https://plus.google.com/share?url='.$url;
|
417 |
?>
|
418 |
-
<a
|
419 |
<?php
|
420 |
}
|
421 |
|
422 |
if( get_option('mo_openid_vkontakte_share_enable') ) {
|
423 |
$link = 'http://vk.com/share.php?url='.$url.'&title='.$title.'&description='.$excerpt;
|
424 |
?>
|
425 |
-
<a
|
426 |
<?php
|
427 |
}
|
428 |
|
429 |
if( get_option('mo_openid_tumblr_share_enable') ) {
|
430 |
$link = 'http://www.tumblr.com/share/link?url='.$url.'&title='.$title;
|
431 |
?>
|
432 |
-
<a
|
433 |
<?php
|
434 |
}
|
435 |
|
436 |
if( get_option('mo_openid_stumble_share_enable') ) {
|
437 |
$link = 'http://www.stumbleupon.com/submit?url='.$url.'&title='.$title;
|
438 |
?>
|
439 |
-
<a
|
440 |
<?php
|
441 |
}
|
442 |
|
443 |
if( get_option('mo_openid_linkedin_share_enable') ) {
|
444 |
$link = 'https://www.linkedin.com/shareArticle?mini=true&title='.$title.'&url='.$url.'&summary='.$excerpt;
|
445 |
?>
|
446 |
-
<a
|
447 |
<?php
|
448 |
}
|
449 |
|
450 |
if( get_option('mo_openid_reddit_share_enable') ) {
|
451 |
$link = 'http://www.reddit.com/submit?url='.$url.'&title='.$title;
|
452 |
?>
|
453 |
-
<a
|
454 |
<?php
|
455 |
}
|
456 |
|
457 |
if( get_option('mo_openid_pinterest_share_enable') ) {
|
458 |
?>
|
459 |
-
<a
|
460 |
<?php
|
461 |
}
|
462 |
|
463 |
if( get_option('mo_openid_pocket_share_enable') ) {
|
464 |
$link = 'https://getpocket.com/save?url='.$url.'&title='.$title;
|
465 |
?>
|
466 |
-
<a
|
467 |
<?php
|
468 |
}
|
469 |
|
470 |
if( get_option('mo_openid_digg_share_enable') ) {
|
471 |
$link = 'http://digg.com/submit?url='.$url.'&title='.$title;
|
472 |
?>
|
473 |
-
<a
|
474 |
<?php
|
475 |
}
|
476 |
|
477 |
if( get_option('mo_openid_delicious_share_enable') ) {
|
478 |
$link = 'http://www.delicious.com/save?v=5&noui&jump=close&url='.$url.'&title='.$title;
|
479 |
?>
|
480 |
-
<a
|
481 |
<?php
|
482 |
}
|
483 |
|
484 |
if( get_option('mo_openid_odnoklassniki_share_enable') ) {
|
485 |
$link = 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st.comments='.$excerpt.'&st._surl='.$url;
|
486 |
?>
|
487 |
-
<a
|
488 |
<?php
|
489 |
}
|
490 |
if( get_option('mo_openid_mail_share_enable') ) {
|
491 |
?>
|
492 |
-
<a
|
493 |
<i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-envelope" style="margin-bottom:<?php echo $space_icons-4?>px!important;padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
494 |
<?php
|
495 |
}
|
496 |
if( get_option('mo_openid_print_share_enable') ) {
|
497 |
?>
|
498 |
-
<a
|
499 |
<i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-print" style="margin-bottom:<?php echo $space_icons-4?>px!important;padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
500 |
<?php
|
501 |
}
|
502 |
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
503 |
?>
|
504 |
-
<a
|
505 |
<i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-whatsapp" style="margin-bottom:<?php echo $space_icons-4?>px!important;padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
506 |
<?php
|
507 |
}
|
508 |
}
|
509 |
else if($custom_theme == 'customFont'){
|
510 |
if( get_option('mo_openid_facebook_share_enable') ) {
|
511 |
-
|
512 |
?>
|
513 |
-
<a
|
514 |
<?php
|
515 |
}
|
516 |
|
517 |
if( get_option('mo_openid_twitter_share_enable') ) {
|
518 |
$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;
|
519 |
?>
|
520 |
-
<a
|
521 |
<?php
|
522 |
}
|
523 |
|
524 |
if( get_option('mo_openid_google_share_enable') ) {
|
525 |
$link = 'https://plus.google.com/share?url='.$url;
|
526 |
?>
|
527 |
-
<a
|
528 |
<?php
|
529 |
}
|
530 |
|
531 |
if( get_option('mo_openid_vkontakte_share_enable') ) {
|
532 |
$link = 'http://vk.com/share.php?url='.$url.'&title='.$title.'&description='.$excerpt;
|
533 |
?>
|
534 |
-
<a
|
535 |
<?php
|
536 |
}
|
537 |
|
538 |
if( get_option('mo_openid_tumblr_share_enable') ) {
|
539 |
$link = 'http://www.tumblr.com/share/link?url='.$url.'&title='.$title;
|
540 |
?>
|
541 |
-
<a
|
542 |
<?php
|
543 |
}
|
544 |
|
545 |
if( get_option('mo_openid_stumble_share_enable') ) {
|
546 |
$link = 'http://www.stumbleupon.com/submit?url='.$url.'&title='.$title;
|
547 |
?>
|
548 |
-
<a
|
549 |
<?php
|
550 |
}
|
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 |
-
<a
|
556 |
<?php
|
557 |
}
|
558 |
|
559 |
if( get_option('mo_openid_reddit_share_enable') ) {
|
560 |
$link = 'http://www.reddit.com/submit?url='.$url.'&title='.$title;
|
561 |
?>
|
562 |
-
<a
|
563 |
<?php
|
564 |
}
|
565 |
|
566 |
if( get_option('mo_openid_pinterest_share_enable') ) {
|
567 |
?>
|
568 |
-
<a
|
569 |
<?php
|
570 |
}
|
571 |
|
572 |
if( get_option('mo_openid_pocket_share_enable') ) {
|
573 |
$link = 'https://getpocket.com/save?url='.$url.'&title='.$title;
|
574 |
?>
|
575 |
-
<a
|
576 |
<?php
|
577 |
}
|
578 |
|
579 |
if( get_option('mo_openid_digg_share_enable') ) {
|
580 |
$link = 'http://digg.com/submit?url='.$url.'&title='.$title;
|
581 |
?>
|
582 |
-
<a
|
583 |
<?php
|
584 |
}
|
585 |
|
586 |
if( get_option('mo_openid_delicious_share_enable') ) {
|
587 |
$link = 'http://www.delicious.com/save?v=5&noui&jump=close&url='.$url.'&title='.$title;
|
588 |
?>
|
589 |
-
<a
|
590 |
<?php
|
591 |
}
|
592 |
|
593 |
if( get_option('mo_openid_odnoklassniki_share_enable') ) {
|
594 |
$link = 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st.comments='.$excerpt.'&st._surl='.$url;
|
595 |
?>
|
596 |
-
<a
|
597 |
<?php
|
598 |
}
|
599 |
if( get_option('mo_openid_mail_share_enable') ) {
|
600 |
?>
|
601 |
-
<a
|
602 |
<i class=" <?php echo $selected_theme; ?> fa fa-envelope" style=" padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
603 |
<?php
|
604 |
}
|
605 |
if( get_option('mo_openid_print_share_enable') ) {
|
606 |
?>
|
607 |
-
<a
|
608 |
<i class=" <?php echo $selected_theme; ?> fa fa-print" style="margin-bottom:<?php echo $space_icons-4?>px !important;padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
609 |
<?php
|
610 |
}
|
611 |
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
612 |
?>
|
613 |
-
<a
|
614 |
<i class=" <?php echo $selected_theme; ?> fa fa-whatsapp" style="margin-bottom:<?php echo $space_icons-4?>px !important;padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
615 |
<?php
|
616 |
}
|
617 |
}
|
618 |
else{
|
619 |
if( get_option('mo_openid_facebook_share_enable') ) {
|
620 |
-
|
621 |
?>
|
622 |
-
<a
|
623 |
<?php
|
624 |
}
|
625 |
|
626 |
if( get_option('mo_openid_twitter_share_enable') ) {
|
627 |
$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;
|
628 |
?>
|
629 |
-
<a
|
630 |
<?php
|
631 |
}
|
632 |
|
633 |
if( get_option('mo_openid_google_share_enable') ) {
|
634 |
$link = 'https://plus.google.com/share?url='.$url;
|
635 |
?>
|
636 |
-
<a
|
637 |
<?php
|
638 |
}
|
639 |
|
640 |
if( get_option('mo_openid_vkontakte_share_enable') ) {
|
641 |
$link = 'http://vk.com/share.php?url='.$url.'&title='.$title.'&description='.$excerpt;
|
642 |
?>
|
643 |
-
<a
|
644 |
<?php
|
645 |
}
|
646 |
|
647 |
if( get_option('mo_openid_tumblr_share_enable') ) {
|
648 |
$link = 'http://www.tumblr.com/share/link?url='.$url.'&title='.$title;
|
649 |
?>
|
650 |
-
<a
|
651 |
<?php
|
652 |
}
|
653 |
|
654 |
if( get_option('mo_openid_stumble_share_enable') ) {
|
655 |
$link = 'http://www.stumbleupon.com/submit?url='.$url.'&title='.$title;
|
656 |
?>
|
657 |
-
<a
|
658 |
<?php
|
659 |
}
|
660 |
|
661 |
if( get_option('mo_openid_linkedin_share_enable') ) {
|
662 |
$link = 'https://www.linkedin.com/shareArticle?mini=true&title='.$title.'&url='.$url.'&summary='.$excerpt;
|
663 |
?>
|
664 |
-
<a
|
665 |
<?php
|
666 |
}
|
667 |
|
668 |
if( get_option('mo_openid_reddit_share_enable') ) {
|
669 |
$link = 'http://www.reddit.com/submit?url='.$url.'&title='.$title;
|
670 |
?>
|
671 |
-
<a
|
672 |
<?php
|
673 |
}
|
674 |
|
675 |
if( get_option('mo_openid_pinterest_share_enable') ) {
|
676 |
?>
|
677 |
-
<a
|
678 |
<?php
|
679 |
}
|
680 |
|
681 |
if( get_option('mo_openid_pocket_share_enable') ) {
|
682 |
$link = 'https://getpocket.com/save?url='.$url.'&title='.$title;
|
683 |
?>
|
684 |
-
<a
|
685 |
<?php
|
686 |
}
|
687 |
|
688 |
if( get_option('mo_openid_digg_share_enable') ) {
|
689 |
$link = 'http://digg.com/submit?url='.$url.'&title='.$title;
|
690 |
?>
|
691 |
-
<a
|
692 |
<?php
|
693 |
}
|
694 |
|
695 |
if( get_option('mo_openid_delicious_share_enable') ) {
|
696 |
$link = 'http://www.delicious.com/save?v=5&noui&jump=close&url='.$url.'&title='.$title;
|
697 |
?>
|
698 |
-
<a
|
699 |
<?php
|
700 |
}
|
701 |
|
702 |
if( get_option('mo_openid_odnoklassniki_share_enable') ) {
|
703 |
$link = 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st.comments='.$excerpt.'&st._surl='.$url;
|
704 |
?>
|
705 |
-
<a
|
706 |
<?php
|
707 |
}
|
708 |
|
709 |
if( get_option('mo_openid_mail_share_enable') ) {
|
710 |
?>
|
711 |
-
<a
|
712 |
<img alt='Email this page' style= 'margin-bottom:<?php echo $space_icons-6?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/mail.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>"></a>
|
713 |
<?php
|
714 |
}
|
715 |
if( get_option('mo_openid_print_share_enable') ) {
|
716 |
?>
|
717 |
-
<a
|
718 |
<img alt='Print this page' style= 'margin-bottom:<?php echo $space_icons-6?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/print.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>"></a>
|
719 |
<?php
|
720 |
}
|
721 |
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
722 |
?>
|
723 |
-
<a
|
724 |
<img alt='Whatsapp' style= 'margin-bottom:<?php echo $space_icons-6?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/whatsapp.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>"></a>
|
725 |
<?php
|
726 |
}
|
67 |
<?php
|
68 |
if($custom_theme == 'custom'){
|
69 |
if( get_option('mo_openid_facebook_share_enable') ) {
|
70 |
+
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href='.$url.'&redirect_uri=http%3A%2F%2Fminiorange.com%2Fsocial_share_redirect';
|
71 |
?>
|
72 |
+
<a title="Facebook" onclick="popupCenter('<?php echo $link; ?>', 800, 400);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-facebook" style="padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
73 |
<?php
|
74 |
}
|
75 |
|
76 |
if( get_option('mo_openid_twitter_share_enable') ) {
|
77 |
$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;
|
78 |
?>
|
79 |
+
<a title="Twitter" onclick="popupCenter('<?php echo $link; ?>', 600, 300);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-twitter" style="padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
80 |
<?php
|
81 |
}
|
82 |
|
83 |
if( get_option('mo_openid_google_share_enable') ) {
|
84 |
$link = 'https://plus.google.com/share?url='.$url;
|
85 |
?>
|
86 |
+
<a title="Google" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-google-plus" style="padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;"></i></a>
|
87 |
<?php
|
88 |
}
|
89 |
|
90 |
if( get_option('mo_openid_vkontakte_share_enable') ) {
|
91 |
$link = 'http://vk.com/share.php?url='.$url.'&title='.$title.'&description='.$excerpt;
|
92 |
?>
|
93 |
+
<a title="Vkontakte" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-vk" style="padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
94 |
<?php
|
95 |
}
|
96 |
|
97 |
if( get_option('mo_openid_tumblr_share_enable') ) {
|
98 |
$link = 'http://www.tumblr.com/share/link?url='.$url.'&title='.$title.'&description='.$excerpt;
|
99 |
?>
|
100 |
+
<a title="Tumblr" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-tumblr" style="padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
101 |
<?php
|
102 |
}
|
103 |
|
104 |
if( get_option('mo_openid_stumble_share_enable') ) {
|
105 |
$link = 'http://www.stumbleupon.com/submit?url='.$url.'&title='.$title;
|
106 |
?>
|
107 |
+
<a title="StumbleUpon" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-stumbleupon" style="padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
108 |
<?php
|
109 |
}
|
110 |
|
111 |
if( get_option('mo_openid_linkedin_share_enable') ) {
|
112 |
$link = 'https://www.linkedin.com/shareArticle?mini=true&title='.$title.'&url='.$url.'&summary='.$excerpt;
|
113 |
?>
|
114 |
+
<a title="LinkekIn" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-linkedin" style="padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
115 |
<?php
|
116 |
}
|
117 |
|
118 |
if( get_option('mo_openid_reddit_share_enable') ) {
|
119 |
$link = 'http://www.reddit.com/submit?url='.$url.'&title='.$title;
|
120 |
?>
|
121 |
+
<a title="Reddit" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-reddit" style="padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
122 |
<?php
|
123 |
}
|
124 |
|
125 |
if( get_option('mo_openid_pinterest_share_enable') ) {
|
126 |
?>
|
127 |
+
<a title="Pinterest" href='javascript:pinIt();' class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-pinterest" style="padding-top:3px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-10); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
128 |
<?php
|
129 |
}
|
130 |
|
131 |
if( get_option('mo_openid_pocket_share_enable') ) {
|
132 |
$link = 'https://getpocket.com/save?url='.$url.'&title='.$title;
|
133 |
?>
|
134 |
+
<a title="Pocket" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-get-pocket" style="padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
135 |
<?php
|
136 |
}
|
137 |
|
138 |
if( get_option('mo_openid_digg_share_enable') ) {
|
139 |
$link = 'http://digg.com/submit?url='.$url.'&title='.$title;
|
140 |
?>
|
141 |
+
<a title="Digg" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-digg" style="padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
142 |
<?php
|
143 |
}
|
144 |
|
145 |
if( get_option('mo_openid_delicious_share_enable') ) {
|
146 |
$link = 'http://www.delicious.com/save?v=5&noui&jump=close&url='.$url.'&title='.$title;
|
147 |
?>
|
148 |
+
<a title="Delicious" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-delicious" style="padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
149 |
<?php
|
150 |
}
|
151 |
|
152 |
if( get_option('mo_openid_odnoklassniki_share_enable') ) {
|
153 |
$link = 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st.comments='.$excerpt.'&st._surl='.$url;
|
154 |
?>
|
155 |
+
<a title="Odnoklassniki" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-odnoklassniki" style="padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
156 |
<?php
|
157 |
}
|
158 |
if( get_option('mo_openid_mail_share_enable') ) {
|
159 |
?>
|
160 |
+
<a title="Email this page" onclick="popupCenter('mailto:?subject=<?php echo $email_subject ?>&body=<?php echo $email_body ?>',800,500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important">
|
161 |
<i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-envelope" style="padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
162 |
<?php
|
163 |
}
|
164 |
if( get_option('mo_openid_print_share_enable') ) {
|
165 |
?>
|
166 |
+
<a title="Print this page" onclick="javascript:window.print()"class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important">
|
167 |
<i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-print" style="padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
168 |
<?php
|
169 |
}
|
170 |
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
171 |
?>
|
172 |
+
<a id="mobileshow" title="Whatsapp" href='whatsapp://send?text=<?php echo $url?>' class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important">
|
173 |
<i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-whatsapp" style="padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
174 |
<?php
|
175 |
}
|
177 |
|
178 |
else if($custom_theme == 'customFont'){
|
179 |
if( get_option('mo_openid_facebook_share_enable') ) {
|
180 |
+
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href='.$url.'&redirect_uri=http%3A%2F%2Fminiorange.com%2Fsocial_share_redirect';
|
181 |
?>
|
182 |
+
<a title="Facebook" onclick="popupCenter('<?php echo $link; ?>', 800, 400);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons-6?>px !important"><i class=" <?php echo $selected_theme; ?> fa fa-facebook" style="padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
183 |
<?php
|
184 |
}
|
185 |
|
186 |
if( get_option('mo_openid_twitter_share_enable') ) {
|
187 |
$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;
|
188 |
?>
|
189 |
+
<a title="Twitter" onclick="popupCenter('<?php echo $link; ?>', 600, 300);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons-6?>px !important"><i class=" <?php echo $selected_theme; ?> fa fa-twitter" style="padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
190 |
<?php
|
191 |
}
|
192 |
|
193 |
if( get_option('mo_openid_google_share_enable') ) {
|
194 |
$link = 'https://plus.google.com/share?url='.$url;
|
195 |
?>
|
196 |
+
<a title="Google" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons-6?>px !important"><i class=" <?php echo $selected_theme; ?> fa fa-google-plus" style="padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
197 |
<?php
|
198 |
}
|
199 |
|
200 |
if( get_option('mo_openid_vkontakte_share_enable') ) {
|
201 |
$link = 'http://vk.com/share.php?url='.$url.'&title='.$title.'&description='.$excerpt;
|
202 |
?>
|
203 |
+
<a title="Vkontakte" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons-6?>px !important"><i class=" <?php echo $selected_theme; ?> fa fa-vk" style="padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
204 |
<?php
|
205 |
}
|
206 |
|
207 |
if( get_option('mo_openid_tumblr_share_enable') ) {
|
208 |
$link = 'http://www.tumblr.com/share/link?url='.$url.'&title='.$title;
|
209 |
?>
|
210 |
+
<a title="Tumblr" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons-6?>px !important"><i class=" <?php echo $selected_theme; ?> fa fa-tumblr" style="padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
211 |
<?php
|
212 |
}
|
213 |
|
214 |
if( get_option('mo_openid_stumble_share_enable') ) {
|
215 |
$link = 'http://www.stumbleupon.com/submit?url='.$url.'&title='.$title;
|
216 |
?>
|
217 |
+
<a title="StumbleUpon" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons-6?>px !important"><i class=" <?php echo $selected_theme; ?> fa fa-stumbleupon" style="padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
218 |
<?php
|
219 |
}
|
220 |
|
221 |
if( get_option('mo_openid_linkedin_share_enable') ) {
|
222 |
$link = 'https://www.linkedin.com/shareArticle?mini=true&title='.$title.'&url='.$url.'&summary='.$excerpt;
|
223 |
?>
|
224 |
+
<a title="LinkedIn" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons-6?>px !important"><i class=" <?php echo $selected_theme; ?> fa fa-linkedin" style="padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
225 |
<?php
|
226 |
}
|
227 |
|
228 |
if( get_option('mo_openid_reddit_share_enable') ) {
|
229 |
$link = 'http://www.reddit.com/submit?url='.$url.'&title='.$title;
|
230 |
?>
|
231 |
+
<a title="Reddit" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons-6?>px !important"><i class=" <?php echo $selected_theme; ?> fa fa-reddit" style="padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
232 |
<?php
|
233 |
}
|
234 |
|
235 |
if( get_option('mo_openid_pinterest_share_enable') ) {
|
236 |
?>
|
237 |
+
<a title="Pinterest" href='javascript:pinIt();' class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons-6?>px !important"><i class=" <?php echo $selected_theme; ?> fa fa-pinterest" style="padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
238 |
<?php
|
239 |
}
|
240 |
|
241 |
if( get_option('mo_openid_pocket_share_enable') ) {
|
242 |
$link = 'https://getpocket.com/save?url='.$url.'&title='.$title;
|
243 |
?>
|
244 |
+
<a title="Pocket" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons-6?>px !important"><i class=" <?php echo $selected_theme; ?> fa fa-get-pocket" style="padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
245 |
<?php
|
246 |
}
|
247 |
|
248 |
if( get_option('mo_openid_digg_share_enable') ) {
|
249 |
$link = 'http://digg.com/submit?url='.$url.'&title='.$title;
|
250 |
?>
|
251 |
+
<a title="Digg" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons-6?>px !important"><i class=" <?php echo $selected_theme; ?> fa fa-digg" style="padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
252 |
<?php
|
253 |
}
|
254 |
|
255 |
if( get_option('mo_openid_delicious_share_enable') ) {
|
256 |
$link = 'http://www.delicious.com/save?v=5&noui&jump=close&url='.$url.'&title='.$title;
|
257 |
?>
|
258 |
+
<a title="Delicious" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons-6?>px !important"><i class=" <?php echo $selected_theme; ?> fa fa-delicious" style="padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
259 |
<?php
|
260 |
}
|
261 |
if( get_option('mo_openid_odnoklassniki_share_enable') ) {
|
262 |
$link = 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st.comments='.$excerpt.'&st._surl='.$url;
|
263 |
?>
|
264 |
+
<a title="Odnoklassniki" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons-6?>px !important"><i class=" <?php echo $selected_theme; ?> fa fa-odnoklassniki" style="padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
265 |
<?php
|
266 |
}
|
267 |
if( get_option('mo_openid_mail_share_enable') ) {
|
268 |
?>
|
269 |
+
<a title="Email this page" onclick="popupCenter('mailto:?subject=<?php echo $email_subject ?>&body=<?php echo $email_body ?>',800,500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important">
|
270 |
<i class=" <?php echo $selected_theme; ?> fa fa-envelope" style="padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
271 |
<?php
|
272 |
}
|
273 |
if( get_option('mo_openid_print_share_enable') ) {
|
274 |
?>
|
275 |
+
<a title="Print this page" onclick="javascript:window.print()" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important">
|
276 |
<i class=" <?php echo $selected_theme; ?> fa fa-print" style="padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
277 |
<?php
|
278 |
}
|
279 |
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
280 |
?>
|
281 |
+
<a id="mobileshow" title="Whatsapp" href='whatsapp://send?text=<?php echo $url?>' class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important">
|
282 |
<i class=" <?php echo $selected_theme; ?> fa fa-whatsapp" style="padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
283 |
<?php
|
284 |
}
|
285 |
}
|
286 |
|
287 |
else{
|
288 |
+
|
289 |
+
|
290 |
if( get_option('mo_openid_facebook_share_enable') ) {
|
291 |
+
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href='.$url.'&redirect_uri=http%3A%2F%2Fminiorange.com%2Fsocial_share_redirect';
|
292 |
?>
|
293 |
+
<a title="Facebook" onclick="popupCenter('<?php echo $link; ?>', 800, 400);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><img alt='Facebook' style= 'height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/facebook.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" ></a>
|
294 |
<?php
|
295 |
}
|
296 |
|
297 |
if( get_option('mo_openid_twitter_share_enable') ) {
|
298 |
$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;
|
299 |
?>
|
300 |
+
<a title="Twitter" onclick="popupCenter('<?php echo $link; ?>', 600, 300);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><img alt='Twitter' style= 'height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/twitter.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" ></a>
|
301 |
<?php
|
302 |
}
|
303 |
|
304 |
if( get_option('mo_openid_google_share_enable') ) {
|
305 |
$link = 'https://plus.google.com/share?url='.$url;
|
306 |
?>
|
307 |
+
<a title="Google" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><img alt='Google' style= 'height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;background-color: <?php echo $selected_theme; ?>' src="<?php echo plugins_url( 'includes/images/icons/google.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" ></a>
|
308 |
<?php
|
309 |
}
|
310 |
|
311 |
if( get_option('mo_openid_vkontakte_share_enable') ) {
|
312 |
$link = 'http://vk.com/share.php?url='.$url.'&title='.$title.'&description='.$excerpt;
|
313 |
?>
|
314 |
+
<a title="Vkontakte" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><img alt='Vkontakte' style= 'height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;background-color: <?php echo $selected_theme; ?>' src="<?php echo plugins_url( 'includes/images/icons/vk.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" ></a>
|
315 |
<?php
|
316 |
}
|
317 |
|
318 |
if( get_option('mo_openid_tumblr_share_enable') ) {
|
319 |
$link = 'http://www.tumblr.com/share/link?url='.$url.'&title='.$title;
|
320 |
?>
|
321 |
+
<a title="Tumblr" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><img alt='Tumblr' style= 'height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/tumblr.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" ></a>
|
322 |
<?php
|
323 |
}
|
324 |
|
325 |
if( get_option('mo_openid_stumble_share_enable') ) {
|
326 |
$link = 'http://www.stumbleupon.com/submit?url='.$url.'&title='.$title;
|
327 |
?>
|
328 |
+
<a title="StumbleUpon" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><img alt='StumbleUpon' style= 'height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/stumble.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" ></a>
|
329 |
<?php
|
330 |
}
|
331 |
|
332 |
if( get_option('mo_openid_linkedin_share_enable') ) {
|
333 |
$link = 'https://www.linkedin.com/shareArticle?mini=true&title='.$title.'&url='.$url.'&summary='.$excerpt;
|
334 |
?>
|
335 |
+
<a title="LinkedIn" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><img alt='LinkedIn' style= 'height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/linkedin.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" ></a>
|
336 |
<?php
|
337 |
}
|
338 |
|
339 |
if( get_option('mo_openid_reddit_share_enable') ) {
|
340 |
$link = 'http://www.reddit.com/submit?url='.$url.'&title='.$title;
|
341 |
?>
|
342 |
+
<a title="Reddit" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><img alt='Reddit' style= 'height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/reddit.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" ></a>
|
343 |
<?php
|
344 |
}
|
345 |
if( get_option('mo_openid_pinterest_share_enable') ) {
|
346 |
?>
|
347 |
+
<a title="Pinterest" href='javascript:pinIt();' class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><img alt='Pinterest' style= 'height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/pininterest.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" ></a>
|
348 |
<?php
|
349 |
}
|
350 |
if( get_option('mo_openid_pocket_share_enable') ) {
|
351 |
$link = 'https://getpocket.com/save?url='.$url.'&title='.$title;
|
352 |
?>
|
353 |
+
<a title="Pocket" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><img alt='Pocket' style= 'height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/pocket.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" ></a>
|
354 |
<?php
|
355 |
}
|
356 |
if( get_option('mo_openid_digg_share_enable') ) {
|
357 |
$link = 'http://digg.com/submit?url='.$url.'&title='.$title;
|
358 |
?>
|
359 |
+
<a title="Digg" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><img alt='Digg' style= 'height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/digg.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" ></a>
|
360 |
<?php
|
361 |
}
|
362 |
if( get_option('mo_openid_delicious_share_enable') ) {
|
363 |
$link = 'http://www.delicious.com/save?v=5&noui&jump=close&url='.$url.'&title='.$title;
|
364 |
?>
|
365 |
+
<a title="Delicious" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><img alt='Delicious' style= 'height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/delicious.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" ></a>
|
366 |
<?php
|
367 |
}
|
368 |
if( get_option('mo_openid_odnoklassniki_share_enable') ) {
|
369 |
$link = 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st.comments='.$excerpt.'&st._surl='.$url;
|
370 |
?>
|
371 |
+
<a title="Odnoklassniki" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important"><img alt='Odnoklassniki' style= 'height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/odnoklassniki.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" ></a>
|
372 |
<?php
|
373 |
}
|
374 |
if( get_option('mo_openid_mail_share_enable') ) {
|
375 |
?>
|
376 |
+
<a title="Email this page" onclick="popupCenter('mailto:?subject=<?php echo $email_subject ?>&body=<?php echo $email_body ?>',800,500);" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important">
|
377 |
<img alt='Email' style= 'height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/mail.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>">
|
378 |
</a>
|
379 |
<?php
|
380 |
}
|
381 |
if( get_option('mo_openid_print_share_enable') ) {
|
382 |
?>
|
383 |
+
<a title="Print this page" onclick="javascript:window.print()" class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important">
|
384 |
<img alt='Print' style= 'height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/print.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>">
|
385 |
</a>
|
386 |
<?php
|
387 |
}
|
388 |
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
389 |
?>
|
390 |
+
<a id="mobileshow" title="Whatsapp" href='whatsapp://send?text=<?php echo $url?>' class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important">
|
391 |
<img alt='Whatsapp' style= 'height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/whatsapp.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" data-action="share/whatsapp/share"></a>
|
392 |
<?php
|
393 |
}
|
401 |
<?php
|
402 |
if($custom_theme == 'custom'){
|
403 |
if( get_option('mo_openid_facebook_share_enable') ) {
|
404 |
+
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href='.$url.'&redirect_uri=http%3A%2F%2Fminiorange.com%2Fsocial_share_redirect';
|
405 |
?>
|
406 |
+
<a title="Facebook" onclick="popupCenter('<?php echo $link; ?>', 800, 400);" class="mo-openid-share-link" style="margin-bottom:<?php echo $space_icons?>px !important;"><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-facebook" style="margin-bottom:<?php echo $space_icons-4?>px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
407 |
<?php
|
408 |
}
|
409 |
|
410 |
if( get_option('mo_openid_twitter_share_enable') ) {
|
411 |
$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;
|
412 |
?>
|
413 |
+
<a title="Twitter" onclick="popupCenter('<?php echo $link; ?>', 600, 300);" class="mo-openid-share-link" ><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-twitter" style="margin-bottom:<?php echo $space_icons-4?>px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
414 |
<?php
|
415 |
}
|
416 |
|
417 |
if( get_option('mo_openid_google_share_enable') ) {
|
418 |
$link = 'https://plus.google.com/share?url='.$url;
|
419 |
?>
|
420 |
+
<a title="Google" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-bottom:<?php echo $space_icons?>px !important;"><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-google-plus" style="margin-bottom:<?php echo $space_icons-4?>px!important; padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
421 |
<?php
|
422 |
}
|
423 |
|
424 |
if( get_option('mo_openid_vkontakte_share_enable') ) {
|
425 |
$link = 'http://vk.com/share.php?url='.$url.'&title='.$title.'&description='.$excerpt;
|
426 |
?>
|
427 |
+
<a title="Vkontakte" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" style="margin-bottom:<?php echo $space_icons?>px !important;"><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-vk" style="margin-bottom:<?php echo $space_icons-4?>px!important; padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
428 |
<?php
|
429 |
}
|
430 |
|
431 |
if( get_option('mo_openid_tumblr_share_enable') ) {
|
432 |
$link = 'http://www.tumblr.com/share/link?url='.$url.'&title='.$title;
|
433 |
?>
|
434 |
+
<a title="Tumblr" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" ><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-tumblr" style="margin-bottom:<?php echo $space_icons-4?>px!important;padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
435 |
<?php
|
436 |
}
|
437 |
|
438 |
if( get_option('mo_openid_stumble_share_enable') ) {
|
439 |
$link = 'http://www.stumbleupon.com/submit?url='.$url.'&title='.$title;
|
440 |
?>
|
441 |
+
<a title="StumbleUpon" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" ><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-stumbleupon" style="margin-bottom:<?php echo $space_icons-4?>px!important;padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
442 |
<?php
|
443 |
}
|
444 |
|
445 |
if( get_option('mo_openid_linkedin_share_enable') ) {
|
446 |
$link = 'https://www.linkedin.com/shareArticle?mini=true&title='.$title.'&url='.$url.'&summary='.$excerpt;
|
447 |
?>
|
448 |
+
<a title="LinkedIn" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" ><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-linkedin" style="margin-bottom:<?php echo $space_icons-4?>px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
449 |
<?php
|
450 |
}
|
451 |
|
452 |
if( get_option('mo_openid_reddit_share_enable') ) {
|
453 |
$link = 'http://www.reddit.com/submit?url='.$url.'&title='.$title;
|
454 |
?>
|
455 |
+
<a title="Reddit" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" ><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-reddit" style="margin-bottom:<?php echo $space_icons-4?>px!important;padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
456 |
<?php
|
457 |
}
|
458 |
|
459 |
if( get_option('mo_openid_pinterest_share_enable') ) {
|
460 |
?>
|
461 |
+
<a title="Pinterest" href='javascript:pinIt();' class="mo-openid-share-link" ><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-pinterest" style="margin-bottom:<?php echo $space_icons-4?>px !important;padding-top:3px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-10); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
462 |
<?php
|
463 |
}
|
464 |
|
465 |
if( get_option('mo_openid_pocket_share_enable') ) {
|
466 |
$link = 'https://getpocket.com/save?url='.$url.'&title='.$title;
|
467 |
?>
|
468 |
+
<a title="Pocket" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" ><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-get-pocket" style="margin-bottom:<?php echo $space_icons-4?>px!important;padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
469 |
<?php
|
470 |
}
|
471 |
|
472 |
if( get_option('mo_openid_digg_share_enable') ) {
|
473 |
$link = 'http://digg.com/submit?url='.$url.'&title='.$title;
|
474 |
?>
|
475 |
+
<a title="Digg" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" ><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-digg" style="margin-bottom:<?php echo $space_icons-4?>px!important;padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
476 |
<?php
|
477 |
}
|
478 |
|
479 |
if( get_option('mo_openid_delicious_share_enable') ) {
|
480 |
$link = 'http://www.delicious.com/save?v=5&noui&jump=close&url='.$url.'&title='.$title;
|
481 |
?>
|
482 |
+
<a title="Delicious" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" ><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-delicious" style="margin-bottom:<?php echo $space_icons-4?>px!important;padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
483 |
<?php
|
484 |
}
|
485 |
|
486 |
if( get_option('mo_openid_odnoklassniki_share_enable') ) {
|
487 |
$link = 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st.comments='.$excerpt.'&st._surl='.$url;
|
488 |
?>
|
489 |
+
<a title="Odnoklassniki" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" ><i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-odnoklassniki" style="margin-bottom:<?php echo $space_icons-4?>px!important;padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
490 |
<?php
|
491 |
}
|
492 |
if( get_option('mo_openid_mail_share_enable') ) {
|
493 |
?>
|
494 |
+
<a title="Email this page" onclick="popupCenter('mailto:?subject=<?php echo $email_subject ?>&body=<?php echo $email_body ?>',800,500);" class="mo-openid-share-link">
|
495 |
<i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-envelope" style="margin-bottom:<?php echo $space_icons-4?>px!important;padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
496 |
<?php
|
497 |
}
|
498 |
if( get_option('mo_openid_print_share_enable') ) {
|
499 |
?>
|
500 |
+
<a title="Print this page" onclick="javascript:window.print()"class="mo-openid-share-link">
|
501 |
<i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-print" style="margin-bottom:<?php echo $space_icons-4?>px!important;padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
502 |
<?php
|
503 |
}
|
504 |
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
505 |
?>
|
506 |
+
<a id="mobileshow" title="Whatsapp" href='whatsapp://send?text=<?php echo $url?>' class="mo-openid-share-link">
|
507 |
<i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-whatsapp" style="margin-bottom:<?php echo $space_icons-4?>px!important;padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
508 |
<?php
|
509 |
}
|
510 |
}
|
511 |
else if($custom_theme == 'customFont'){
|
512 |
if( get_option('mo_openid_facebook_share_enable') ) {
|
513 |
+
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href='.$url.'&redirect_uri=http%3A%2F%2Fminiorange.com%2Fsocial_share_redirect';
|
514 |
?>
|
515 |
+
<a title="Facebook" onclick="popupCenter('<?php echo $link; ?>', 800, 400);" class="mo-openid-share-link"><i class=" <?php echo $selected_theme; ?> fa fa-facebook" style="margin-bottom:<?php echo $space_icons-4?>px !important;padding-top : 4px !important;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
516 |
<?php
|
517 |
}
|
518 |
|
519 |
if( get_option('mo_openid_twitter_share_enable') ) {
|
520 |
$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;
|
521 |
?>
|
522 |
+
<a title="Twitter" onclick="popupCenter('<?php echo $link; ?>', 600, 300);" class="mo-openid-share-link" ><i class=" <?php echo $selected_theme; ?> fa fa-twitter" style="margin-bottom:<?php echo $space_icons-4?>px !important;padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
523 |
<?php
|
524 |
}
|
525 |
|
526 |
if( get_option('mo_openid_google_share_enable') ) {
|
527 |
$link = 'https://plus.google.com/share?url='.$url;
|
528 |
?>
|
529 |
+
<a title="Google" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link"><i class=" <?php echo $selected_theme; ?> fa fa-google-plus" style="margin-bottom:<?php echo $space_icons-4?>px !important;padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
530 |
<?php
|
531 |
}
|
532 |
|
533 |
if( get_option('mo_openid_vkontakte_share_enable') ) {
|
534 |
$link = 'http://vk.com/share.php?url='.$url.'&title='.$title.'&description='.$excerpt;
|
535 |
?>
|
536 |
+
<a title="Vkontakte" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link"><i class=" <?php echo $selected_theme; ?> fa fa-vk" style="margin-bottom:<?php echo $space_icons-4?>px !important;padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
537 |
<?php
|
538 |
}
|
539 |
|
540 |
if( get_option('mo_openid_tumblr_share_enable') ) {
|
541 |
$link = 'http://www.tumblr.com/share/link?url='.$url.'&title='.$title;
|
542 |
?>
|
543 |
+
<a title="Tumblr" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" ><i class=" <?php echo $selected_theme; ?> fa fa-tumblr" style="margin-bottom:<?php echo $space_icons-4?>px !important;padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
544 |
<?php
|
545 |
}
|
546 |
|
547 |
if( get_option('mo_openid_stumble_share_enable') ) {
|
548 |
$link = 'http://www.stumbleupon.com/submit?url='.$url.'&title='.$title;
|
549 |
?>
|
550 |
+
<a title="StumbleUpon" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" ><i class=" <?php echo $selected_theme; ?> fa fa-stumbleupon" style="margin-bottom:<?php echo $space_icons-4?>px !important;padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
551 |
<?php
|
552 |
}
|
553 |
|
554 |
if( get_option('mo_openid_linkedin_share_enable') ) {
|
555 |
$link = 'https://www.linkedin.com/shareArticle?mini=true&title='.$title.'&url='.$url.'&summary='.$excerpt;
|
556 |
?>
|
557 |
+
<a title="LinkedIn" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" ><i class=" <?php echo $selected_theme; ?> fa fa-linkedin" style="margin-bottom:<?php echo $space_icons-4?>px !important;padding-top:4px !important;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
558 |
<?php
|
559 |
}
|
560 |
|
561 |
if( get_option('mo_openid_reddit_share_enable') ) {
|
562 |
$link = 'http://www.reddit.com/submit?url='.$url.'&title='.$title;
|
563 |
?>
|
564 |
+
<a title="Reddit" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" ><i class=" <?php echo $selected_theme; ?> fa fa-reddit" style="margin-bottom:<?php echo $space_icons-4?>px !important;padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
565 |
<?php
|
566 |
}
|
567 |
|
568 |
if( get_option('mo_openid_pinterest_share_enable') ) {
|
569 |
?>
|
570 |
+
<a title="Pinterest" href='javascript:pinIt();' class="mo-openid-share-link" ><i class=" <?php echo $selected_theme; ?> fa fa-pinterest" style="margin-bottom:<?php echo $space_icons-4?>px !important;padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-5; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
571 |
<?php
|
572 |
}
|
573 |
|
574 |
if( get_option('mo_openid_pocket_share_enable') ) {
|
575 |
$link = 'https://getpocket.com/save?url='.$url.'&title='.$title;
|
576 |
?>
|
577 |
+
<a title="Pocket" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" ><i class=" <?php echo $selected_theme; ?> fa fa-get-pocket" style="margin-bottom:<?php echo $space_icons-4?>px !important;padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
578 |
<?php
|
579 |
}
|
580 |
|
581 |
if( get_option('mo_openid_digg_share_enable') ) {
|
582 |
$link = 'http://digg.com/submit?url='.$url.'&title='.$title;
|
583 |
?>
|
584 |
+
<a title="Digg" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" ><i class=" <?php echo $selected_theme; ?> fa fa-digg" style="margin-bottom:<?php echo $space_icons-4?>px !important;padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
585 |
<?php
|
586 |
}
|
587 |
|
588 |
if( get_option('mo_openid_delicious_share_enable') ) {
|
589 |
$link = 'http://www.delicious.com/save?v=5&noui&jump=close&url='.$url.'&title='.$title;
|
590 |
?>
|
591 |
+
<a title="Delicious" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" ><i class=" <?php echo $selected_theme; ?> fa fa-delicious" style="margin-bottom:<?php echo $space_icons-4?>px !important;padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
592 |
<?php
|
593 |
}
|
594 |
|
595 |
if( get_option('mo_openid_odnoklassniki_share_enable') ) {
|
596 |
$link = 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st.comments='.$excerpt.'&st._surl='.$url;
|
597 |
?>
|
598 |
+
<a title="Odnoklassniki" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" ><i class=" <?php echo $selected_theme; ?> fa fa-odnoklassniki" style="margin-bottom:<?php echo $space_icons-4?>px !important;padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
599 |
<?php
|
600 |
}
|
601 |
if( get_option('mo_openid_mail_share_enable') ) {
|
602 |
?>
|
603 |
+
<a title="Email this page" onclick="popupCenter('mailto:?subject=<?php echo $email_subject ?>&body=<?php echo $email_body ?>',800,500);" class="mo-openid-share-link">
|
604 |
<i class=" <?php echo $selected_theme; ?> fa fa-envelope" style=" padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
605 |
<?php
|
606 |
}
|
607 |
if( get_option('mo_openid_print_share_enable') ) {
|
608 |
?>
|
609 |
+
<a title="Print this page" onclick="javascript:window.print()" class="mo-openid-share-link">
|
610 |
<i class=" <?php echo $selected_theme; ?> fa fa-print" style="margin-bottom:<?php echo $space_icons-4?>px !important;padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
611 |
<?php
|
612 |
}
|
613 |
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
614 |
?>
|
615 |
+
<a id="mobileshow" title="Whatsapp" href='whatsapp://send?text=<?php echo $url?>' class="mo-openid-share-link">
|
616 |
<i class=" <?php echo $selected_theme; ?> fa fa-whatsapp" style="margin-bottom:<?php echo $space_icons-4?>px !important;padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
617 |
<?php
|
618 |
}
|
619 |
}
|
620 |
else{
|
621 |
if( get_option('mo_openid_facebook_share_enable') ) {
|
622 |
+
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href='.$url.'&redirect_uri=http%3A%2F%2Fminiorange.com%2Fsocial_share_redirect';
|
623 |
?>
|
624 |
+
<a title="Facebook" onclick="popupCenter('<?php echo $link; ?>', 800, 400);" class="mo-openid-share-link"><img alt='Facebook' style= 'margin-bottom:<?php echo $space_icons-6?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;background-color:white;' src="<?php echo plugins_url( 'includes/images/icons/facebook.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" ></a>
|
625 |
<?php
|
626 |
}
|
627 |
|
628 |
if( get_option('mo_openid_twitter_share_enable') ) {
|
629 |
$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;
|
630 |
?>
|
631 |
+
<a title="Twitter" onclick="popupCenter('<?php echo $link; ?>', 600, 300);" class="mo-openid-share-link" ><img alt='Twitter' style= 'margin-bottom:<?php echo $space_icons-6?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;background-color:white;' src="<?php echo plugins_url( 'includes/images/icons/twitter.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" ></a>
|
632 |
<?php
|
633 |
}
|
634 |
|
635 |
if( get_option('mo_openid_google_share_enable') ) {
|
636 |
$link = 'https://plus.google.com/share?url='.$url;
|
637 |
?>
|
638 |
+
<a title="Google" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link"><img alt='Google' style= 'margin-bottom:<?php echo $space_icons-6?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;background-color: <?php echo $selected_theme; ?>' src="<?php echo plugins_url( 'includes/images/icons/google.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" ></a>
|
639 |
<?php
|
640 |
}
|
641 |
|
642 |
if( get_option('mo_openid_vkontakte_share_enable') ) {
|
643 |
$link = 'http://vk.com/share.php?url='.$url.'&title='.$title.'&description='.$excerpt;
|
644 |
?>
|
645 |
+
<a title="Vkontakte" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link"><img alt='Vkontakte' style= 'margin-bottom:<?php echo $space_icons-6?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;background-color: <?php echo $selected_theme; ?>' src="<?php echo plugins_url( 'includes/images/icons/vk.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" ></a>
|
646 |
<?php
|
647 |
}
|
648 |
|
649 |
if( get_option('mo_openid_tumblr_share_enable') ) {
|
650 |
$link = 'http://www.tumblr.com/share/link?url='.$url.'&title='.$title;
|
651 |
?>
|
652 |
+
<a title="Tumblr" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" ><img alt='Tumblr' style= 'margin-bottom:<?php echo $space_icons-6?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/tumblr.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" ></a>
|
653 |
<?php
|
654 |
}
|
655 |
|
656 |
if( get_option('mo_openid_stumble_share_enable') ) {
|
657 |
$link = 'http://www.stumbleupon.com/submit?url='.$url.'&title='.$title;
|
658 |
?>
|
659 |
+
<a title="StumbleUpon" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" ><img alt='StumbleUpon' style= 'margin-bottom:<?php echo $space_icons-6?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/stumble.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" ></a>
|
660 |
<?php
|
661 |
}
|
662 |
|
663 |
if( get_option('mo_openid_linkedin_share_enable') ) {
|
664 |
$link = 'https://www.linkedin.com/shareArticle?mini=true&title='.$title.'&url='.$url.'&summary='.$excerpt;
|
665 |
?>
|
666 |
+
<a title="LinkedIn" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" ><img alt='LinkedIn' style= 'margin-bottom:<?php echo $space_icons-6?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;background-color:white;' src="<?php echo plugins_url( 'includes/images/icons/linkedin.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" ></a>
|
667 |
<?php
|
668 |
}
|
669 |
|
670 |
if( get_option('mo_openid_reddit_share_enable') ) {
|
671 |
$link = 'http://www.reddit.com/submit?url='.$url.'&title='.$title;
|
672 |
?>
|
673 |
+
<a title="Reddit" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" ><img alt='Reddit' style= 'margin-bottom:<?php echo $space_icons-6?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/reddit.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" ></a>
|
674 |
<?php
|
675 |
}
|
676 |
|
677 |
if( get_option('mo_openid_pinterest_share_enable') ) {
|
678 |
?>
|
679 |
+
<a title="Pinterest" href='javascript:pinIt();' class="mo-openid-share-link" ><img alt='Pinterest' style= 'margin-bottom:<?php echo $space_icons-6?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/pininterest.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" ></a>
|
680 |
<?php
|
681 |
}
|
682 |
|
683 |
if( get_option('mo_openid_pocket_share_enable') ) {
|
684 |
$link = 'https://getpocket.com/save?url='.$url.'&title='.$title;
|
685 |
?>
|
686 |
+
<a title="Pocket" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" ><img alt='Pocket' style= 'margin-bottom:<?php echo $space_icons-6?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/pocket.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" ></a>
|
687 |
<?php
|
688 |
}
|
689 |
|
690 |
if( get_option('mo_openid_digg_share_enable') ) {
|
691 |
$link = 'http://digg.com/submit?url='.$url.'&title='.$title;
|
692 |
?>
|
693 |
+
<a title="Digg" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" ><img alt='Digg' style= 'margin-bottom:<?php echo $space_icons-6?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/digg.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" ></a>
|
694 |
<?php
|
695 |
}
|
696 |
|
697 |
if( get_option('mo_openid_delicious_share_enable') ) {
|
698 |
$link = 'http://www.delicious.com/save?v=5&noui&jump=close&url='.$url.'&title='.$title;
|
699 |
?>
|
700 |
+
<a title="Delicious" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" ><img alt='Delicoius' style= 'margin-bottom:<?php echo $space_icons-6?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/delicious.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" ></a>
|
701 |
<?php
|
702 |
}
|
703 |
|
704 |
if( get_option('mo_openid_odnoklassniki_share_enable') ) {
|
705 |
$link = 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st.comments='.$excerpt.'&st._surl='.$url;
|
706 |
?>
|
707 |
+
<a title="Odnoklassniki" onclick="popupCenter('<?php echo $link; ?>', 800, 500);" class="mo-openid-share-link" ><img alt='Odnoklassniki' style= 'margin-bottom:<?php echo $space_icons-6?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/odnoklassniki.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" ></a>
|
708 |
<?php
|
709 |
}
|
710 |
|
711 |
if( get_option('mo_openid_mail_share_enable') ) {
|
712 |
?>
|
713 |
+
<a title="Email this page" onclick="popupCenter('mailto:?subject=<?php echo $email_subject ?>&body=<?php echo $email_body ?>',800,500);" class="mo-openid-share-link">
|
714 |
<img alt='Email this page' style= 'margin-bottom:<?php echo $space_icons-6?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/mail.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>"></a>
|
715 |
<?php
|
716 |
}
|
717 |
if( get_option('mo_openid_print_share_enable') ) {
|
718 |
?>
|
719 |
+
<a title="Print this page" onclick="javascript:window.print()"class="mo-openid-share-link">
|
720 |
<img alt='Print this page' style= 'margin-bottom:<?php echo $space_icons-6?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/print.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>"></a>
|
721 |
<?php
|
722 |
}
|
723 |
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
724 |
?>
|
725 |
+
<a id="mobileshow" title="Whatsapp" href='whatsapp://send?text=<?php echo $url?>' class="mo-openid-share-link">
|
726 |
<img alt='Whatsapp' style= 'margin-bottom:<?php echo $space_icons-6?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/whatsapp.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>"></a>
|
727 |
<?php
|
728 |
}
|
class-mo-openid-sso-customer.php
CHANGED
@@ -59,11 +59,17 @@ class CustomerOpenID {
|
|
59 |
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
|
60 |
curl_setopt( $ch, CURLOPT_AUTOREFERER, true );
|
61 |
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); # required for https urls
|
62 |
-
|
63 |
curl_setopt( $ch, CURLOPT_MAXREDIRS, 10 );
|
64 |
curl_setopt( $ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'charset: UTF - 8', 'Authorization: Basic' ) );
|
65 |
curl_setopt( $ch, CURLOPT_POST, true );
|
66 |
curl_setopt( $ch, CURLOPT_POSTFIELDS, $field_string );
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
$content = curl_exec( $ch );
|
68 |
|
69 |
if( curl_errno( $ch ) ){
|
@@ -93,11 +99,17 @@ class CustomerOpenID {
|
|
93 |
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
|
94 |
curl_setopt( $ch, CURLOPT_AUTOREFERER, true );
|
95 |
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); # required for https urls
|
96 |
-
|
97 |
curl_setopt( $ch, CURLOPT_MAXREDIRS, 10 );
|
98 |
curl_setopt( $ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'charset: UTF - 8', 'Authorization: Basic' ) );
|
99 |
curl_setopt( $ch, CURLOPT_POST, true);
|
100 |
curl_setopt( $ch, CURLOPT_POSTFIELDS, $field_string);
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
$content = curl_exec( $ch );
|
102 |
if( curl_errno( $ch ) ){
|
103 |
echo 'Request Error:' . curl_error( $ch );
|
@@ -123,11 +135,17 @@ class CustomerOpenID {
|
|
123 |
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
|
124 |
curl_setopt( $ch, CURLOPT_AUTOREFERER, true );
|
125 |
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); # required for https urls
|
126 |
-
|
127 |
curl_setopt( $ch, CURLOPT_MAXREDIRS, 10 );
|
128 |
curl_setopt( $ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'charset: UTF - 8', 'Authorization: Basic' ) );
|
129 |
curl_setopt( $ch, CURLOPT_POST, true);
|
130 |
curl_setopt( $ch, CURLOPT_POSTFIELDS, $field_string);
|
|
|
|
|
|
|
|
|
|
|
|
|
131 |
$content = curl_exec( $ch );
|
132 |
if( curl_errno( $ch ) ){
|
133 |
echo 'Request Error:' . curl_error( $ch );
|
@@ -154,7 +172,7 @@ class CustomerOpenID {
|
|
154 |
$hashValue = hash("sha512", $stringToHash);
|
155 |
|
156 |
$customerKeyHeader = "Customer-Key: " . $customerKey;
|
157 |
-
$timestampHeader = "Timestamp: " .
|
158 |
$authorizationHeader = "Authorization: " . $hashValue;
|
159 |
if($authType == 'EMAIL') {
|
160 |
$fields = array(
|
@@ -178,12 +196,18 @@ class CustomerOpenID {
|
|
178 |
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
|
179 |
curl_setopt( $ch, CURLOPT_AUTOREFERER, true );
|
180 |
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); # required for https urls
|
181 |
-
|
182 |
curl_setopt( $ch, CURLOPT_MAXREDIRS, 10 );
|
183 |
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json", $customerKeyHeader,
|
184 |
$timestampHeader, $authorizationHeader));
|
185 |
curl_setopt( $ch, CURLOPT_POST, true);
|
186 |
curl_setopt( $ch, CURLOPT_POSTFIELDS, $field_string);
|
|
|
|
|
|
|
|
|
|
|
|
|
187 |
$content = curl_exec($ch);
|
188 |
|
189 |
if(curl_errno($ch)){
|
@@ -210,7 +234,7 @@ class CustomerOpenID {
|
|
210 |
$hashValue = hash("sha512", $stringToHash);
|
211 |
|
212 |
$customerKeyHeader = "Customer-Key: " . $customerKey;
|
213 |
-
$timestampHeader = "Timestamp: " .
|
214 |
$authorizationHeader = "Authorization: " . $hashValue;
|
215 |
$fields = array(
|
216 |
'customerId' => $customerKey,
|
@@ -223,12 +247,18 @@ class CustomerOpenID {
|
|
223 |
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
|
224 |
curl_setopt( $ch, CURLOPT_AUTOREFERER, true );
|
225 |
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); # required for https urls
|
226 |
-
|
227 |
curl_setopt( $ch, CURLOPT_MAXREDIRS, 10 );
|
228 |
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json", $customerKeyHeader,
|
229 |
$timestampHeader, $authorizationHeader));
|
230 |
curl_setopt( $ch, CURLOPT_POST, true);
|
231 |
curl_setopt( $ch, CURLOPT_POSTFIELDS, $field_string);
|
|
|
|
|
|
|
|
|
|
|
|
|
232 |
$content = curl_exec($ch);
|
233 |
|
234 |
if(curl_errno($ch)){
|
@@ -256,7 +286,7 @@ class CustomerOpenID {
|
|
256 |
$hashValue = hash("sha512", $stringToHash);
|
257 |
|
258 |
$customerKeyHeader = "Customer-Key: " . $customerKey;
|
259 |
-
$timestampHeader = "Timestamp: " .
|
260 |
$authorizationHeader = "Authorization: " . $hashValue;
|
261 |
|
262 |
$fields = '';
|
@@ -274,12 +304,18 @@ class CustomerOpenID {
|
|
274 |
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
|
275 |
curl_setopt( $ch, CURLOPT_AUTOREFERER, true );
|
276 |
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); # required for https urls
|
277 |
-
|
278 |
curl_setopt( $ch, CURLOPT_MAXREDIRS, 10 );
|
279 |
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json", $customerKeyHeader,
|
280 |
$timestampHeader, $authorizationHeader));
|
281 |
curl_setopt( $ch, CURLOPT_POST, true);
|
282 |
curl_setopt( $ch, CURLOPT_POSTFIELDS, $field_string);
|
|
|
|
|
|
|
|
|
|
|
|
|
283 |
$content = curl_exec($ch);
|
284 |
|
285 |
if(curl_errno($ch)){
|
@@ -315,11 +351,17 @@ class CustomerOpenID {
|
|
315 |
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
|
316 |
curl_setopt( $ch, CURLOPT_AUTOREFERER, true );
|
317 |
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); # required for https urls
|
318 |
-
|
319 |
curl_setopt( $ch, CURLOPT_MAXREDIRS, 10 );
|
320 |
curl_setopt( $ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'charset: UTF-8', 'Authorization: Basic' ) );
|
321 |
curl_setopt( $ch, CURLOPT_POST, true);
|
322 |
curl_setopt( $ch, CURLOPT_POSTFIELDS, $field_string);
|
|
|
|
|
|
|
|
|
|
|
|
|
323 |
$content = curl_exec( $ch );
|
324 |
|
325 |
if( curl_errno( $ch ) ){
|
@@ -352,7 +394,7 @@ class CustomerOpenID {
|
|
352 |
$hashValue = hash("sha512", $stringToHash);
|
353 |
|
354 |
$customerKeyHeader = "Customer-Key: " . $customerKey;
|
355 |
-
$timestampHeader = "Timestamp: " .
|
356 |
$authorizationHeader = "Authorization: " . $hashValue;
|
357 |
|
358 |
$fields = '';
|
@@ -369,7 +411,7 @@ class CustomerOpenID {
|
|
369 |
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
|
370 |
curl_setopt( $ch, CURLOPT_AUTOREFERER, true );
|
371 |
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); # required for https urls
|
372 |
-
|
373 |
curl_setopt( $ch, CURLOPT_MAXREDIRS, 10 );
|
374 |
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json", $customerKeyHeader,
|
375 |
$timestampHeader, $authorizationHeader));
|
@@ -377,6 +419,12 @@ class CustomerOpenID {
|
|
377 |
curl_setopt( $ch, CURLOPT_POSTFIELDS, $field_string);
|
378 |
curl_setopt( $ch, CURLOPT_CONNECTTIMEOUT, 5);
|
379 |
curl_setopt( $ch, CURLOPT_TIMEOUT, 20);
|
|
|
|
|
|
|
|
|
|
|
|
|
380 |
$content = curl_exec($ch);
|
381 |
|
382 |
if(curl_errno($ch)){
|
@@ -385,4 +433,5 @@ class CustomerOpenID {
|
|
385 |
curl_close($ch);
|
386 |
return $content;
|
387 |
}
|
|
|
388 |
}?>
|
59 |
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
|
60 |
curl_setopt( $ch, CURLOPT_AUTOREFERER, true );
|
61 |
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); # required for https urls
|
62 |
+
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
|
63 |
curl_setopt( $ch, CURLOPT_MAXREDIRS, 10 );
|
64 |
curl_setopt( $ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'charset: UTF - 8', 'Authorization: Basic' ) );
|
65 |
curl_setopt( $ch, CURLOPT_POST, true );
|
66 |
curl_setopt( $ch, CURLOPT_POSTFIELDS, $field_string );
|
67 |
+
if(defined('WP_PROXY_HOST') && defined('WP_PROXY_PORT') && defined('WP_PROXY_USERNAME') && defined('WP_PROXY_PASSWORD')){
|
68 |
+
curl_setopt($ch, CURLOPT_PROXY, WP_PROXY_HOST);
|
69 |
+
curl_setopt($ch, CURLOPT_PROXYPORT, WP_PROXY_PORT);
|
70 |
+
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
|
71 |
+
curl_setopt($ch, CURLOPT_PROXYUSERPWD, WP_PROXY_USERNAME.':'.WP_PROXY_PASSWORD);
|
72 |
+
}
|
73 |
$content = curl_exec( $ch );
|
74 |
|
75 |
if( curl_errno( $ch ) ){
|
99 |
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
|
100 |
curl_setopt( $ch, CURLOPT_AUTOREFERER, true );
|
101 |
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); # required for https urls
|
102 |
+
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
|
103 |
curl_setopt( $ch, CURLOPT_MAXREDIRS, 10 );
|
104 |
curl_setopt( $ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'charset: UTF - 8', 'Authorization: Basic' ) );
|
105 |
curl_setopt( $ch, CURLOPT_POST, true);
|
106 |
curl_setopt( $ch, CURLOPT_POSTFIELDS, $field_string);
|
107 |
+
if(defined('WP_PROXY_HOST') && defined('WP_PROXY_PORT') && defined('WP_PROXY_USERNAME') && defined('WP_PROXY_PASSWORD')){
|
108 |
+
curl_setopt($ch, CURLOPT_PROXY, WP_PROXY_HOST);
|
109 |
+
curl_setopt($ch, CURLOPT_PROXYPORT, WP_PROXY_PORT);
|
110 |
+
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
|
111 |
+
curl_setopt($ch, CURLOPT_PROXYUSERPWD, WP_PROXY_USERNAME.':'.WP_PROXY_PASSWORD);
|
112 |
+
}
|
113 |
$content = curl_exec( $ch );
|
114 |
if( curl_errno( $ch ) ){
|
115 |
echo 'Request Error:' . curl_error( $ch );
|
135 |
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
|
136 |
curl_setopt( $ch, CURLOPT_AUTOREFERER, true );
|
137 |
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); # required for https urls
|
138 |
+
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
|
139 |
curl_setopt( $ch, CURLOPT_MAXREDIRS, 10 );
|
140 |
curl_setopt( $ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'charset: UTF - 8', 'Authorization: Basic' ) );
|
141 |
curl_setopt( $ch, CURLOPT_POST, true);
|
142 |
curl_setopt( $ch, CURLOPT_POSTFIELDS, $field_string);
|
143 |
+
if(defined('WP_PROXY_HOST') && defined('WP_PROXY_PORT') && defined('WP_PROXY_USERNAME') && defined('WP_PROXY_PASSWORD')){
|
144 |
+
curl_setopt($ch, CURLOPT_PROXY, WP_PROXY_HOST);
|
145 |
+
curl_setopt($ch, CURLOPT_PROXYPORT, WP_PROXY_PORT);
|
146 |
+
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
|
147 |
+
curl_setopt($ch, CURLOPT_PROXYUSERPWD, WP_PROXY_USERNAME.':'.WP_PROXY_PASSWORD);
|
148 |
+
}
|
149 |
$content = curl_exec( $ch );
|
150 |
if( curl_errno( $ch ) ){
|
151 |
echo 'Request Error:' . curl_error( $ch );
|
172 |
$hashValue = hash("sha512", $stringToHash);
|
173 |
|
174 |
$customerKeyHeader = "Customer-Key: " . $customerKey;
|
175 |
+
$timestampHeader = "Timestamp: " . $currentTimeInMillis;
|
176 |
$authorizationHeader = "Authorization: " . $hashValue;
|
177 |
if($authType == 'EMAIL') {
|
178 |
$fields = array(
|
196 |
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
|
197 |
curl_setopt( $ch, CURLOPT_AUTOREFERER, true );
|
198 |
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); # required for https urls
|
199 |
+
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
|
200 |
curl_setopt( $ch, CURLOPT_MAXREDIRS, 10 );
|
201 |
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json", $customerKeyHeader,
|
202 |
$timestampHeader, $authorizationHeader));
|
203 |
curl_setopt( $ch, CURLOPT_POST, true);
|
204 |
curl_setopt( $ch, CURLOPT_POSTFIELDS, $field_string);
|
205 |
+
if(defined('WP_PROXY_HOST') && defined('WP_PROXY_PORT') && defined('WP_PROXY_USERNAME') && defined('WP_PROXY_PASSWORD')){
|
206 |
+
curl_setopt($ch, CURLOPT_PROXY, WP_PROXY_HOST);
|
207 |
+
curl_setopt($ch, CURLOPT_PROXYPORT, WP_PROXY_PORT);
|
208 |
+
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
|
209 |
+
curl_setopt($ch, CURLOPT_PROXYUSERPWD, WP_PROXY_USERNAME.':'.WP_PROXY_PASSWORD);
|
210 |
+
}
|
211 |
$content = curl_exec($ch);
|
212 |
|
213 |
if(curl_errno($ch)){
|
234 |
$hashValue = hash("sha512", $stringToHash);
|
235 |
|
236 |
$customerKeyHeader = "Customer-Key: " . $customerKey;
|
237 |
+
$timestampHeader = "Timestamp: " . $currentTimeInMillis;
|
238 |
$authorizationHeader = "Authorization: " . $hashValue;
|
239 |
$fields = array(
|
240 |
'customerId' => $customerKey,
|
247 |
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
|
248 |
curl_setopt( $ch, CURLOPT_AUTOREFERER, true );
|
249 |
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); # required for https urls
|
250 |
+
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
|
251 |
curl_setopt( $ch, CURLOPT_MAXREDIRS, 10 );
|
252 |
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json", $customerKeyHeader,
|
253 |
$timestampHeader, $authorizationHeader));
|
254 |
curl_setopt( $ch, CURLOPT_POST, true);
|
255 |
curl_setopt( $ch, CURLOPT_POSTFIELDS, $field_string);
|
256 |
+
if(defined('WP_PROXY_HOST') && defined('WP_PROXY_PORT') && defined('WP_PROXY_USERNAME') && defined('WP_PROXY_PASSWORD')){
|
257 |
+
curl_setopt($ch, CURLOPT_PROXY, WP_PROXY_HOST);
|
258 |
+
curl_setopt($ch, CURLOPT_PROXYPORT, WP_PROXY_PORT);
|
259 |
+
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
|
260 |
+
curl_setopt($ch, CURLOPT_PROXYUSERPWD, WP_PROXY_USERNAME.':'.WP_PROXY_PASSWORD);
|
261 |
+
}
|
262 |
$content = curl_exec($ch);
|
263 |
|
264 |
if(curl_errno($ch)){
|
286 |
$hashValue = hash("sha512", $stringToHash);
|
287 |
|
288 |
$customerKeyHeader = "Customer-Key: " . $customerKey;
|
289 |
+
$timestampHeader = "Timestamp: " . $currentTimeInMillis;
|
290 |
$authorizationHeader = "Authorization: " . $hashValue;
|
291 |
|
292 |
$fields = '';
|
304 |
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
|
305 |
curl_setopt( $ch, CURLOPT_AUTOREFERER, true );
|
306 |
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); # required for https urls
|
307 |
+
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
|
308 |
curl_setopt( $ch, CURLOPT_MAXREDIRS, 10 );
|
309 |
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json", $customerKeyHeader,
|
310 |
$timestampHeader, $authorizationHeader));
|
311 |
curl_setopt( $ch, CURLOPT_POST, true);
|
312 |
curl_setopt( $ch, CURLOPT_POSTFIELDS, $field_string);
|
313 |
+
if(defined('WP_PROXY_HOST') && defined('WP_PROXY_PORT') && defined('WP_PROXY_USERNAME') && defined('WP_PROXY_PASSWORD')){
|
314 |
+
curl_setopt($ch, CURLOPT_PROXY, WP_PROXY_HOST);
|
315 |
+
curl_setopt($ch, CURLOPT_PROXYPORT, WP_PROXY_PORT);
|
316 |
+
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
|
317 |
+
curl_setopt($ch, CURLOPT_PROXYUSERPWD, WP_PROXY_USERNAME.':'.WP_PROXY_PASSWORD);
|
318 |
+
}
|
319 |
$content = curl_exec($ch);
|
320 |
|
321 |
if(curl_errno($ch)){
|
351 |
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
|
352 |
curl_setopt( $ch, CURLOPT_AUTOREFERER, true );
|
353 |
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); # required for https urls
|
354 |
+
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
|
355 |
curl_setopt( $ch, CURLOPT_MAXREDIRS, 10 );
|
356 |
curl_setopt( $ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'charset: UTF-8', 'Authorization: Basic' ) );
|
357 |
curl_setopt( $ch, CURLOPT_POST, true);
|
358 |
curl_setopt( $ch, CURLOPT_POSTFIELDS, $field_string);
|
359 |
+
if(defined('WP_PROXY_HOST') && defined('WP_PROXY_PORT') && defined('WP_PROXY_USERNAME') && defined('WP_PROXY_PASSWORD')){
|
360 |
+
curl_setopt($ch, CURLOPT_PROXY, WP_PROXY_HOST);
|
361 |
+
curl_setopt($ch, CURLOPT_PROXYPORT, WP_PROXY_PORT);
|
362 |
+
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
|
363 |
+
curl_setopt($ch, CURLOPT_PROXYUSERPWD, WP_PROXY_USERNAME.':'.WP_PROXY_PASSWORD);
|
364 |
+
}
|
365 |
$content = curl_exec( $ch );
|
366 |
|
367 |
if( curl_errno( $ch ) ){
|
394 |
$hashValue = hash("sha512", $stringToHash);
|
395 |
|
396 |
$customerKeyHeader = "Customer-Key: " . $customerKey;
|
397 |
+
$timestampHeader = "Timestamp: " . $currentTimeInMillis;
|
398 |
$authorizationHeader = "Authorization: " . $hashValue;
|
399 |
|
400 |
$fields = '';
|
411 |
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
|
412 |
curl_setopt( $ch, CURLOPT_AUTOREFERER, true );
|
413 |
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); # required for https urls
|
414 |
+
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
|
415 |
curl_setopt( $ch, CURLOPT_MAXREDIRS, 10 );
|
416 |
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json", $customerKeyHeader,
|
417 |
$timestampHeader, $authorizationHeader));
|
419 |
curl_setopt( $ch, CURLOPT_POSTFIELDS, $field_string);
|
420 |
curl_setopt( $ch, CURLOPT_CONNECTTIMEOUT, 5);
|
421 |
curl_setopt( $ch, CURLOPT_TIMEOUT, 20);
|
422 |
+
if(defined('WP_PROXY_HOST') && defined('WP_PROXY_PORT') && defined('WP_PROXY_USERNAME') && defined('WP_PROXY_PASSWORD')){
|
423 |
+
curl_setopt($ch, CURLOPT_PROXY, WP_PROXY_HOST);
|
424 |
+
curl_setopt($ch, CURLOPT_PROXYPORT, WP_PROXY_PORT);
|
425 |
+
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
|
426 |
+
curl_setopt($ch, CURLOPT_PROXYUSERPWD, WP_PROXY_USERNAME.':'.WP_PROXY_PASSWORD);
|
427 |
+
}
|
428 |
$content = curl_exec($ch);
|
429 |
|
430 |
if(curl_errno($ch)){
|
433 |
curl_close($ch);
|
434 |
return $content;
|
435 |
}
|
436 |
+
|
437 |
}?>
|
class-mo-openid-sso-shortcode-buttons.php
CHANGED
@@ -60,74 +60,74 @@ function mo_openid_share_shortcode( $atts = '', $title = '', $excerpt = '' ) {
|
|
60 |
|
61 |
|
62 |
if( get_option('mo_openid_facebook_share_enable') ) {
|
63 |
-
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href=
|
64 |
-
$html .= "<a
|
65 |
}
|
66 |
|
67 |
if( get_option('mo_openid_twitter_share_enable') ) {
|
68 |
$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;
|
69 |
-
$html .= "<a
|
70 |
|
71 |
}
|
72 |
|
73 |
if( get_option('mo_openid_google_share_enable') ) {
|
74 |
$link = 'https://plus.google.com/share?url='.$url;
|
75 |
-
$html .= "<a
|
76 |
}
|
77 |
if( get_option('mo_openid_vkontakte_share_enable') ) {
|
78 |
$link = 'http://vk.com/share.php?url='.$url.'&title='.$title.'&description='.$excerpt;
|
79 |
-
$html .= "<a
|
80 |
}
|
81 |
if( get_option('mo_openid_tumblr_share_enable') ) {
|
82 |
$link = 'http://www.tumblr.com/share/link?url='.$url.'&title='.$title;
|
83 |
-
$html .= "<a
|
84 |
}
|
85 |
if( get_option('mo_openid_stumble_share_enable') ) {
|
86 |
$link = 'http://www.stumbleupon.com/submit?url='.$url.'&title='.$title;
|
87 |
-
$html .= "<a
|
88 |
}
|
89 |
if( get_option('mo_openid_linkedin_share_enable') ) {
|
90 |
$link = 'https://www.linkedin.com/shareArticle?mini=true&title='.$title.'&url='.$url.'&summary='.$excerpt;
|
91 |
|
92 |
|
93 |
-
$html .= "<a
|
94 |
|
95 |
}
|
96 |
|
97 |
if( get_option('mo_openid_reddit_share_enable') ) {
|
98 |
$link = 'http://www.reddit.com/submit?url='.$url.'&title='.$title;
|
99 |
-
$html .= "<a
|
100 |
}
|
101 |
|
102 |
if( get_option('mo_openid_pinterest_share_enable') ) {
|
103 |
-
$html .= "<a
|
104 |
|
105 |
}
|
106 |
|
107 |
if( get_option('mo_openid_pocket_share_enable') ) {
|
108 |
$link = 'https://getpocket.com/save?url='.$url.'&title='.$title;
|
109 |
-
$html .= "<a
|
110 |
}
|
111 |
if( get_option('mo_openid_digg_share_enable') ) {
|
112 |
$link = 'http://digg.com/submit?url='.$url.'&title='.$title;
|
113 |
-
$html .= "<a
|
114 |
}
|
115 |
if( get_option('mo_openid_delicious_share_enable') ) {
|
116 |
$link = 'http://www.delicious.com/save?v=5&noui&jump=close&url='.$url.'&title='.$title;
|
117 |
-
$html .= "<a
|
118 |
}
|
119 |
if( get_option('mo_openid_odnoklassniki_share_enable') ) {
|
120 |
$link = 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st.comments='.$excerpt.'&st._surl='.$url;
|
121 |
-
$html .= "<a
|
122 |
}
|
123 |
if( get_option('mo_openid_mail_share_enable') ) {
|
124 |
-
$html .= "<a
|
125 |
}
|
126 |
if( get_option('mo_openid_print_share_enable') ) {
|
127 |
-
$html .= "<a
|
128 |
}
|
129 |
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
130 |
-
$html .= '<a
|
131 |
}
|
132 |
|
133 |
}
|
@@ -135,68 +135,68 @@ function mo_openid_share_shortcode( $atts = '', $title = '', $excerpt = '' ) {
|
|
135 |
else if($custom_theme == 'customFont') {
|
136 |
|
137 |
if( get_option('mo_openid_facebook_share_enable') ) {
|
138 |
-
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href=
|
139 |
-
$html .= "<a
|
140 |
}
|
141 |
|
142 |
if( get_option('mo_openid_twitter_share_enable') ) {
|
143 |
$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;
|
144 |
-
$html .= "<a
|
145 |
}
|
146 |
|
147 |
if( get_option('mo_openid_google_share_enable') ) {
|
148 |
|
149 |
$link = 'https://plus.google.com/share?url='.$url;
|
150 |
-
$html .= "<a
|
151 |
}
|
152 |
if( get_option('mo_openid_vkontakte_share_enable') ) {
|
153 |
$link = 'http://vk.com/share.php?url='.$url.'&title='.$title.'&description='.$excerpt;
|
154 |
-
$html .= "<a
|
155 |
}
|
156 |
if( get_option('mo_openid_tumblr_share_enable') ) {
|
157 |
$link = 'http://www.tumblr.com/share/link?url='.$url.'&title='.$title;
|
158 |
-
$html .= "<a
|
159 |
}
|
160 |
if( get_option('mo_openid_stumble_share_enable') ) {
|
161 |
$link = 'http://www.stumbleupon.com/submit?url='.$url.'&title='.$title;
|
162 |
-
$html .= "<a
|
163 |
}
|
164 |
if( get_option('mo_openid_linkedin_share_enable') ) {
|
165 |
$link = 'https://www.linkedin.com/shareArticle?mini=true&title='.$title.'&url='.$url.'&summary='.$excerpt;
|
166 |
-
$html .= "<a
|
167 |
}
|
168 |
if( get_option('mo_openid_reddit_share_enable') ) {
|
169 |
$link = 'http://www.reddit.com/submit?url='.$url.'&title='.$title;
|
170 |
-
$html .= "<a
|
171 |
}
|
172 |
if( get_option('mo_openid_pinterest_share_enable') ) {
|
173 |
-
$html .= "<a
|
174 |
}
|
175 |
|
176 |
if( get_option('mo_openid_pocket_share_enable') ) {
|
177 |
$link = 'https://getpocket.com/save?url='.$url.'&title='.$title;
|
178 |
-
$html .= "<a
|
179 |
}
|
180 |
if( get_option('mo_openid_digg_share_enable') ) {
|
181 |
$link = 'http://digg.com/submit?url='.$url.'&title='.$title;
|
182 |
-
$html .= "<a
|
183 |
}
|
184 |
if( get_option('mo_openid_delicious_share_enable') ) {
|
185 |
$link = 'http://www.delicious.com/save?v=5&noui&jump=close&url='.$url.'&title='.$title;
|
186 |
-
$html .= "<a
|
187 |
}
|
188 |
if( get_option('mo_openid_odnoklassniki_share_enable') ) {
|
189 |
$link = 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st.comments='.$excerpt.'&st._surl='.$url;
|
190 |
-
$html .= "<a
|
191 |
}
|
192 |
if( get_option('mo_openid_mail_share_enable') ) {
|
193 |
-
$html .= "<a
|
194 |
}
|
195 |
if( get_option('mo_openid_print_share_enable') ) {
|
196 |
-
$html .= "<a
|
197 |
}
|
198 |
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
199 |
-
$html .= '<a
|
200 |
}
|
201 |
|
202 |
|
@@ -205,69 +205,69 @@ function mo_openid_share_shortcode( $atts = '', $title = '', $excerpt = '' ) {
|
|
205 |
else {
|
206 |
|
207 |
if( get_option('mo_openid_facebook_share_enable') ) {
|
208 |
-
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href=
|
209 |
-
$html .= "<a
|
210 |
}
|
211 |
|
212 |
if( get_option('mo_openid_twitter_share_enable') ) {
|
213 |
$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;
|
214 |
-
$html .= "<a
|
215 |
}
|
216 |
|
217 |
if( get_option('mo_openid_google_share_enable') ) {
|
218 |
$link = 'https://plus.google.com/share?url='.$url;
|
219 |
-
$html .= "<a
|
220 |
}
|
221 |
if( get_option('mo_openid_vkontakte_share_enable') ) {
|
222 |
$link = 'http://vk.com/share.php?url='.$url.'&title='.$title.'&description='.$excerpt;
|
223 |
-
$html .= "<a
|
224 |
}
|
225 |
if( get_option('mo_openid_tumblr_share_enable') ) {
|
226 |
$link = 'http://www.tumblr.com/share/link?url='.$url.'&title='.$title;
|
227 |
-
$html .= "<a
|
228 |
}
|
229 |
if( get_option('mo_openid_stumble_share_enable') ) {
|
230 |
$link = 'http://www.stumbleupon.com/submit?url='.$url.'&title='.$title;
|
231 |
-
$html .= "<a
|
232 |
}
|
233 |
if( get_option('mo_openid_linkedin_share_enable') ) {
|
234 |
$link = 'https://www.linkedin.com/shareArticle?mini=true&title='.$title.'&url='.$url.'&summary='.$excerpt;
|
235 |
-
$html .= "<a
|
236 |
}
|
237 |
|
238 |
if( get_option('mo_openid_reddit_share_enable') ) {
|
239 |
$link = 'http://www.reddit.com/submit?url='.$url.'&title='.$title;
|
240 |
-
$html .= "<a
|
241 |
}
|
242 |
|
243 |
if( get_option('mo_openid_pinterest_share_enable') ) {
|
244 |
-
$html .= "<a
|
245 |
}
|
246 |
|
247 |
if( get_option('mo_openid_pocket_share_enable') ) {
|
248 |
$link = 'https://getpocket.com/save?url='.$url.'&title='.$title;
|
249 |
-
$html .= "<a
|
250 |
}
|
251 |
if( get_option('mo_openid_digg_share_enable') ) {
|
252 |
$link = 'http://digg.com/submit?url='.$url.'&title='.$title;
|
253 |
-
$html .= "<a
|
254 |
}
|
255 |
if( get_option('mo_openid_delicious_share_enable') ) {
|
256 |
$link = 'http://www.delicious.com/save?v=5&noui&jump=close&url='.$url.'&title='.$title;
|
257 |
-
$html .= "<a
|
258 |
}
|
259 |
if( get_option('mo_openid_odnoklassniki_share_enable') ) {
|
260 |
$link = 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st.comments='.$excerpt.'&st._surl='.$url;
|
261 |
-
$html .= "<a
|
262 |
}
|
263 |
if( get_option('mo_openid_mail_share_enable') ) {
|
264 |
-
$html .= "<a
|
265 |
}
|
266 |
if( get_option('mo_openid_print_share_enable') ) {
|
267 |
-
$html .= "<a
|
268 |
}
|
269 |
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
270 |
-
$html .= '<a
|
271 |
<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>';
|
272 |
}
|
273 |
|
@@ -352,76 +352,76 @@ function mo_openid_vertical_share_shortcode( $atts = '', $title = '', $excerpt =
|
|
352 |
if($custom_theme == 'custom'){
|
353 |
|
354 |
if( get_option('mo_openid_facebook_share_enable') ) {
|
355 |
-
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href=
|
356 |
-
$html .= "<a
|
357 |
}
|
358 |
|
359 |
if( get_option('mo_openid_twitter_share_enable') ) {
|
360 |
$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;
|
361 |
-
$html .= "<a
|
362 |
|
363 |
}
|
364 |
|
365 |
if( get_option('mo_openid_google_share_enable') ) {
|
366 |
$link = "https://plus.google.com/share?url=".$url;
|
367 |
-
$html .= "<a
|
368 |
|
369 |
}
|
370 |
if( get_option('mo_openid_vkontakte_share_enable') ) {
|
371 |
$link = 'http://vk.com/share.php?url='.$url.'&title='.$title.'&description='.$excerpt;
|
372 |
-
$html .= "<a
|
373 |
}
|
374 |
if( get_option('mo_openid_tumblr_share_enable') ) {
|
375 |
$link = 'http://www.tumblr.com/share/link?url='.$url.'&title='.$title;
|
376 |
-
$html .= "<a
|
377 |
}
|
378 |
if( get_option('mo_openid_stumble_share_enable') ) {
|
379 |
$link = 'http://www.stumbleupon.com/submit?url='.$url.'&title='.$title;
|
380 |
-
$html .= "<a
|
381 |
}
|
382 |
if( get_option('mo_openid_linkedin_share_enable') ) {
|
383 |
$link = 'https://www.linkedin.com/shareArticle?mini=true&title='.$title.'&url='.$url.'&summary='.$excerpt;
|
384 |
|
385 |
|
386 |
-
$html .= "<a
|
387 |
|
388 |
}
|
389 |
|
390 |
if( get_option('mo_openid_reddit_share_enable') ) {
|
391 |
$link = 'http://www.reddit.com/submit?url='.$url.'&title='.$title;
|
392 |
-
$html .= "<a
|
393 |
}
|
394 |
|
395 |
if( get_option('mo_openid_pinterest_share_enable') ) {
|
396 |
-
$html .= "<a
|
397 |
|
398 |
}
|
399 |
|
400 |
if( get_option('mo_openid_pocket_share_enable') ) {
|
401 |
$link = 'https://getpocket.com/save?url='.$url.'&title='.$title;
|
402 |
-
$html .= "<a
|
403 |
}
|
404 |
|
405 |
if( get_option('mo_openid_digg_share_enable') ) {
|
406 |
$link = 'http://digg.com/submit?url='.$url.'&title='.$title;
|
407 |
-
$html .= "<a
|
408 |
}
|
409 |
if( get_option('mo_openid_delicious_share_enable') ) {
|
410 |
$link = 'http://www.delicious.com/save?v=5&noui&jump=close&url='.$url.'&title='.$title;
|
411 |
-
$html .= "<a
|
412 |
}
|
413 |
if( get_option('mo_openid_odnoklassniki_share_enable') ) {
|
414 |
$link = 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st.comments='.$excerpt.'&st._surl='.$url;
|
415 |
-
$html .= "<a
|
416 |
}
|
417 |
if( get_option('mo_openid_mail_share_enable') ) {
|
418 |
-
$html .= "<a
|
419 |
}
|
420 |
if( get_option('mo_openid_print_share_enable') ) {
|
421 |
-
$html .= "<a
|
422 |
}
|
423 |
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
424 |
-
$html .= '<a
|
425 |
}
|
426 |
|
427 |
|
@@ -430,68 +430,68 @@ function mo_openid_vertical_share_shortcode( $atts = '', $title = '', $excerpt =
|
|
430 |
else if($custom_theme == 'customFont') {
|
431 |
|
432 |
if( get_option('mo_openid_facebook_share_enable') ) {
|
433 |
-
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href=
|
434 |
-
$html .= "<a
|
435 |
}
|
436 |
|
437 |
if( get_option('mo_openid_twitter_share_enable') ) {
|
438 |
$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;
|
439 |
-
$html .= "<a
|
440 |
}
|
441 |
|
442 |
if( get_option('mo_openid_google_share_enable') ) {
|
443 |
|
444 |
$link = 'https://plus.google.com/share?url='.$url;
|
445 |
-
$html .= "<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
|
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
|
454 |
}
|
455 |
if( get_option('mo_openid_stumble_share_enable') ) {
|
456 |
$link = 'http://www.stumbleupon.com/submit?url='.$url.'&title='.$title;
|
457 |
-
$html .= "<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
|
462 |
}
|
463 |
if( get_option('mo_openid_reddit_share_enable') ) {
|
464 |
$link = 'http://www.reddit.com/submit?url='.$url.'&title='.$title;
|
465 |
-
$html .= "<a
|
466 |
}
|
467 |
if( get_option('mo_openid_pinterest_share_enable') ) {
|
468 |
-
$html .= "<a
|
469 |
}
|
470 |
|
471 |
if( get_option('mo_openid_pocket_share_enable') ) {
|
472 |
$link = 'https://getpocket.com/save?url='.$url.'&title='.$title;
|
473 |
-
$html .= "<a
|
474 |
}
|
475 |
if( get_option('mo_openid_digg_share_enable') ) {
|
476 |
$link = 'http://digg.com/submit?url='.$url.'&title='.$title;
|
477 |
-
$html .= "<a
|
478 |
}
|
479 |
if( get_option('mo_openid_delicious_share_enable') ) {
|
480 |
$link = 'http://www.delicious.com/save?v=5&noui&jump=close&url='.$url.'&title='.$title;
|
481 |
-
$html .= "<a
|
482 |
}
|
483 |
if( get_option('mo_openid_odnoklassniki_share_enable') ) {
|
484 |
$link = 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st.comments='.$excerpt.'&st._surl='.$url;
|
485 |
-
$html .= "<a
|
486 |
}
|
487 |
if( get_option('mo_openid_mail_share_enable') ) {
|
488 |
-
$html .= "<a
|
489 |
}
|
490 |
if( get_option('mo_openid_print_share_enable') ) {
|
491 |
-
$html .= "<a
|
492 |
}
|
493 |
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
494 |
-
$html .= '<a
|
495 |
}
|
496 |
|
497 |
|
@@ -500,67 +500,67 @@ function mo_openid_vertical_share_shortcode( $atts = '', $title = '', $excerpt =
|
|
500 |
else {
|
501 |
|
502 |
if( get_option('mo_openid_facebook_share_enable') ) {
|
503 |
-
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href=
|
504 |
-
$html .= "<a
|
505 |
}
|
506 |
|
507 |
if( get_option('mo_openid_twitter_share_enable') ) {
|
508 |
$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;
|
509 |
-
$html .= "<a
|
510 |
}
|
511 |
|
512 |
if( get_option('mo_openid_google_share_enable') ) {
|
513 |
$link = 'https://plus.google.com/share?url='.$url;
|
514 |
|
515 |
-
$html .= "<a
|
516 |
}
|
517 |
if( get_option('mo_openid_vkontakte_share_enable') ) {
|
518 |
$link = 'http://vk.com/share.php?url='.$url.'&title='.$title.'&description='.$excerpt;
|
519 |
-
$html .= "<a
|
520 |
}
|
521 |
if( get_option('mo_openid_tumblr_share_enable') ) {
|
522 |
$link = 'http://www.tumblr.com/share/link?url='.$url.'&title='.$title;
|
523 |
-
$html .= "<a
|
524 |
}
|
525 |
if( get_option('mo_openid_stumble_share_enable') ) {
|
526 |
$link = 'http://www.stumbleupon.com/submit?url='.$url.'&title='.$title;
|
527 |
-
$html .= "<a
|
528 |
}
|
529 |
if( get_option('mo_openid_linkedin_share_enable') ) {
|
530 |
$link = 'https://www.linkedin.com/shareArticle?mini=true&title='.$title.'&url='.$url.'&summary='.$excerpt;
|
531 |
-
$html .= "<a
|
532 |
}
|
533 |
if( get_option('mo_openid_reddit_share_enable') ) {
|
534 |
$link = 'http://www.reddit.com/submit?url='.$url.'&title='.$title;
|
535 |
-
$html .= "<a
|
536 |
}
|
537 |
if( get_option('mo_openid_pinterest_share_enable') ) {
|
538 |
-
$html .= "<a
|
539 |
}
|
540 |
if( get_option('mo_openid_pocket_share_enable') ) {
|
541 |
$link = 'https://getpocket.com/save?url='.$url.'&title='.$title;
|
542 |
-
$html .= "<a
|
543 |
}
|
544 |
if( get_option('mo_openid_digg_share_enable') ) {
|
545 |
$link = 'http://digg.com/submit?url='.$url.'&title='.$title;
|
546 |
-
$html .= "<a
|
547 |
}
|
548 |
if( get_option('mo_openid_delicious_share_enable') ) {
|
549 |
$link = 'http://www.delicious.com/save?v=5&noui&jump=close&url='.$url.'&title='.$title;
|
550 |
-
$html .= "<a
|
551 |
}
|
552 |
if( get_option('mo_openid_odnoklassniki_share_enable') ) {
|
553 |
$link = 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st.comments='.$excerpt.'&st._surl='.$url;
|
554 |
-
$html .= "<a
|
555 |
}
|
556 |
if( get_option('mo_openid_mail_share_enable') ) {
|
557 |
-
$html .= "<a
|
558 |
}
|
559 |
if( get_option('mo_openid_print_share_enable') ) {
|
560 |
-
$html .= "<a
|
561 |
}
|
562 |
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
563 |
-
$html .= '<a
|
564 |
}
|
565 |
|
566 |
}
|
60 |
|
61 |
|
62 |
if( get_option('mo_openid_facebook_share_enable') ) {
|
63 |
+
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href='.$url.'&redirect_uri=http%3A%2F%2Fminiorange.com%2Fsocial_share_redirect';
|
64 |
+
$html .= "<a 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>";
|
65 |
}
|
66 |
|
67 |
if( get_option('mo_openid_twitter_share_enable') ) {
|
68 |
$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;
|
69 |
+
$html .= "<a 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>";
|
70 |
|
71 |
}
|
72 |
|
73 |
if( get_option('mo_openid_google_share_enable') ) {
|
74 |
$link = 'https://plus.google.com/share?url='.$url;
|
75 |
+
$html .= "<a 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>";
|
76 |
}
|
77 |
if( get_option('mo_openid_vkontakte_share_enable') ) {
|
78 |
$link = 'http://vk.com/share.php?url='.$url.'&title='.$title.'&description='.$excerpt;
|
79 |
+
$html .= "<a 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>";
|
80 |
}
|
81 |
if( get_option('mo_openid_tumblr_share_enable') ) {
|
82 |
$link = 'http://www.tumblr.com/share/link?url='.$url.'&title='.$title;
|
83 |
+
$html .= "<a 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>";
|
84 |
}
|
85 |
if( get_option('mo_openid_stumble_share_enable') ) {
|
86 |
$link = 'http://www.stumbleupon.com/submit?url='.$url.'&title='.$title;
|
87 |
+
$html .= "<a 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>";
|
88 |
}
|
89 |
if( get_option('mo_openid_linkedin_share_enable') ) {
|
90 |
$link = 'https://www.linkedin.com/shareArticle?mini=true&title='.$title.'&url='.$url.'&summary='.$excerpt;
|
91 |
|
92 |
|
93 |
+
$html .= "<a 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>";
|
94 |
|
95 |
}
|
96 |
|
97 |
if( get_option('mo_openid_reddit_share_enable') ) {
|
98 |
$link = 'http://www.reddit.com/submit?url='.$url.'&title='.$title;
|
99 |
+
$html .= "<a 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>";
|
100 |
}
|
101 |
|
102 |
if( get_option('mo_openid_pinterest_share_enable') ) {
|
103 |
+
$html .= "<a 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>";
|
104 |
|
105 |
}
|
106 |
|
107 |
if( get_option('mo_openid_pocket_share_enable') ) {
|
108 |
$link = 'https://getpocket.com/save?url='.$url.'&title='.$title;
|
109 |
+
$html .= "<a 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>";
|
110 |
}
|
111 |
if( get_option('mo_openid_digg_share_enable') ) {
|
112 |
$link = 'http://digg.com/submit?url='.$url.'&title='.$title;
|
113 |
+
$html .= "<a 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>";
|
114 |
}
|
115 |
if( get_option('mo_openid_delicious_share_enable') ) {
|
116 |
$link = 'http://www.delicious.com/save?v=5&noui&jump=close&url='.$url.'&title='.$title;
|
117 |
+
$html .= "<a 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>";
|
118 |
}
|
119 |
if( get_option('mo_openid_odnoklassniki_share_enable') ) {
|
120 |
$link = 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st.comments='.$excerpt.'&st._surl='.$url;
|
121 |
+
$html .= "<a 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>";
|
122 |
}
|
123 |
if( get_option('mo_openid_mail_share_enable') ) {
|
124 |
+
$html .= "<a 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>";
|
125 |
}
|
126 |
if( get_option('mo_openid_print_share_enable') ) {
|
127 |
+
$html .= "<a 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>";
|
128 |
}
|
129 |
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
130 |
+
$html .= '<a id="mobileshow" 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>';
|
131 |
}
|
132 |
|
133 |
}
|
135 |
else if($custom_theme == 'customFont') {
|
136 |
|
137 |
if( get_option('mo_openid_facebook_share_enable') ) {
|
138 |
+
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href='.$url.'&redirect_uri=http%3A%2F%2Fminiorange.com%2Fsocial_share_redirect';
|
139 |
+
$html .= "<a 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>";
|
140 |
}
|
141 |
|
142 |
if( get_option('mo_openid_twitter_share_enable') ) {
|
143 |
$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;
|
144 |
+
$html .= "<a 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>";
|
145 |
}
|
146 |
|
147 |
if( get_option('mo_openid_google_share_enable') ) {
|
148 |
|
149 |
$link = 'https://plus.google.com/share?url='.$url;
|
150 |
+
$html .= "<a 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>";
|
151 |
}
|
152 |
if( get_option('mo_openid_vkontakte_share_enable') ) {
|
153 |
$link = 'http://vk.com/share.php?url='.$url.'&title='.$title.'&description='.$excerpt;
|
154 |
+
$html .= "<a 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>";
|
155 |
}
|
156 |
if( get_option('mo_openid_tumblr_share_enable') ) {
|
157 |
$link = 'http://www.tumblr.com/share/link?url='.$url.'&title='.$title;
|
158 |
+
$html .= "<a 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>";
|
159 |
}
|
160 |
if( get_option('mo_openid_stumble_share_enable') ) {
|
161 |
$link = 'http://www.stumbleupon.com/submit?url='.$url.'&title='.$title;
|
162 |
+
$html .= "<a 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>";
|
163 |
}
|
164 |
if( get_option('mo_openid_linkedin_share_enable') ) {
|
165 |
$link = 'https://www.linkedin.com/shareArticle?mini=true&title='.$title.'&url='.$url.'&summary='.$excerpt;
|
166 |
+
$html .= "<a 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>";
|
167 |
}
|
168 |
if( get_option('mo_openid_reddit_share_enable') ) {
|
169 |
$link = 'http://www.reddit.com/submit?url='.$url.'&title='.$title;
|
170 |
+
$html .= "<a 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>";
|
171 |
}
|
172 |
if( get_option('mo_openid_pinterest_share_enable') ) {
|
173 |
+
$html .= "<a 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>";
|
174 |
}
|
175 |
|
176 |
if( get_option('mo_openid_pocket_share_enable') ) {
|
177 |
$link = 'https://getpocket.com/save?url='.$url.'&title='.$title;
|
178 |
+
$html .= "<a 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>";
|
179 |
}
|
180 |
if( get_option('mo_openid_digg_share_enable') ) {
|
181 |
$link = 'http://digg.com/submit?url='.$url.'&title='.$title;
|
182 |
+
$html .= "<a 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>";
|
183 |
}
|
184 |
if( get_option('mo_openid_delicious_share_enable') ) {
|
185 |
$link = 'http://www.delicious.com/save?v=5&noui&jump=close&url='.$url.'&title='.$title;
|
186 |
+
$html .= "<a 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>";
|
187 |
}
|
188 |
if( get_option('mo_openid_odnoklassniki_share_enable') ) {
|
189 |
$link = 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st.comments='.$excerpt.'&st._surl='.$url;
|
190 |
+
$html .= "<a 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>";
|
191 |
}
|
192 |
if( get_option('mo_openid_mail_share_enable') ) {
|
193 |
+
$html .= "<a 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>";
|
194 |
}
|
195 |
if( get_option('mo_openid_print_share_enable') ) {
|
196 |
+
$html .= "<a 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>";
|
197 |
}
|
198 |
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
199 |
+
$html .= '<a id="mobileshow" title="Whatsapp" href="whatsapp://send?text=' . $url . '" class="mo-openid-share-link" style="margin-left : '.($spaceBetweenIcons-6) . 'px !important;border-bottom:0px !important;"><i class=" '.$selected_theme. ' fa fa-whatsapp" style="padding-top:4px;text-align:center;color:'.$fontColor . ';font-size:' .$sharingSize. 'px !important;height:' .$sharingSize. 'px !important;width:' .$sharingSize. 'px !important;"></i></a>';
|
200 |
}
|
201 |
|
202 |
|
205 |
else {
|
206 |
|
207 |
if( get_option('mo_openid_facebook_share_enable') ) {
|
208 |
+
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href='.$url.'&redirect_uri=http%3A%2F%2Fminiorange.com%2Fsocial_share_redirect';
|
209 |
+
$html .= "<a 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>";
|
210 |
}
|
211 |
|
212 |
if( get_option('mo_openid_twitter_share_enable') ) {
|
213 |
$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;
|
214 |
+
$html .= "<a 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>";
|
215 |
}
|
216 |
|
217 |
if( get_option('mo_openid_google_share_enable') ) {
|
218 |
$link = 'https://plus.google.com/share?url='.$url;
|
219 |
+
$html .= "<a 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>";
|
220 |
}
|
221 |
if( get_option('mo_openid_vkontakte_share_enable') ) {
|
222 |
$link = 'http://vk.com/share.php?url='.$url.'&title='.$title.'&description='.$excerpt;
|
223 |
+
$html .= "<a 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>";
|
224 |
}
|
225 |
if( get_option('mo_openid_tumblr_share_enable') ) {
|
226 |
$link = 'http://www.tumblr.com/share/link?url='.$url.'&title='.$title;
|
227 |
+
$html .= "<a 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>";
|
228 |
}
|
229 |
if( get_option('mo_openid_stumble_share_enable') ) {
|
230 |
$link = 'http://www.stumbleupon.com/submit?url='.$url.'&title='.$title;
|
231 |
+
$html .= "<a 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>";
|
232 |
}
|
233 |
if( get_option('mo_openid_linkedin_share_enable') ) {
|
234 |
$link = 'https://www.linkedin.com/shareArticle?mini=true&title='.$title.'&url='.$url.'&summary='.$excerpt;
|
235 |
+
$html .= "<a 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>";
|
236 |
}
|
237 |
|
238 |
if( get_option('mo_openid_reddit_share_enable') ) {
|
239 |
$link = 'http://www.reddit.com/submit?url='.$url.'&title='.$title;
|
240 |
+
$html .= "<a 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>";
|
241 |
}
|
242 |
|
243 |
if( get_option('mo_openid_pinterest_share_enable') ) {
|
244 |
+
$html .= "<a 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>";
|
245 |
}
|
246 |
|
247 |
if( get_option('mo_openid_pocket_share_enable') ) {
|
248 |
$link = 'https://getpocket.com/save?url='.$url.'&title='.$title;
|
249 |
+
$html .= "<a 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>";
|
250 |
}
|
251 |
if( get_option('mo_openid_digg_share_enable') ) {
|
252 |
$link = 'http://digg.com/submit?url='.$url.'&title='.$title;
|
253 |
+
$html .= "<a 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>";
|
254 |
}
|
255 |
if( get_option('mo_openid_delicious_share_enable') ) {
|
256 |
$link = 'http://www.delicious.com/save?v=5&noui&jump=close&url='.$url.'&title='.$title;
|
257 |
+
$html .= "<a 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>";
|
258 |
}
|
259 |
if( get_option('mo_openid_odnoklassniki_share_enable') ) {
|
260 |
$link = 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st.comments='.$excerpt.'&st._surl='.$url;
|
261 |
+
$html .= "<a 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>";
|
262 |
}
|
263 |
if( get_option('mo_openid_mail_share_enable') ) {
|
264 |
+
$html .= "<a 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>";
|
265 |
}
|
266 |
if( get_option('mo_openid_print_share_enable') ) {
|
267 |
+
$html .= "<a 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>";
|
268 |
}
|
269 |
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
270 |
+
$html .= '<a id="mobileshow" title="Whatsapp" href="whatsapp://send?text=' . $url . '" class="mo-openid-share-link" style="margin-left : '. ($spaceBetweenIcons) . 'px !important; border-bottom:0px !important;">
|
271 |
<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>';
|
272 |
}
|
273 |
|
352 |
if($custom_theme == 'custom'){
|
353 |
|
354 |
if( get_option('mo_openid_facebook_share_enable') ) {
|
355 |
+
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href='.$url.'&redirect_uri=http%3A%2F%2Fminiorange.com%2Fsocial_share_redirect';
|
356 |
+
$html .= "<a 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>";
|
357 |
}
|
358 |
|
359 |
if( get_option('mo_openid_twitter_share_enable') ) {
|
360 |
$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;
|
361 |
+
$html .= "<a 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>";
|
362 |
|
363 |
}
|
364 |
|
365 |
if( get_option('mo_openid_google_share_enable') ) {
|
366 |
$link = "https://plus.google.com/share?url=".$url;
|
367 |
+
$html .= "<a 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>";
|
368 |
|
369 |
}
|
370 |
if( get_option('mo_openid_vkontakte_share_enable') ) {
|
371 |
$link = 'http://vk.com/share.php?url='.$url.'&title='.$title.'&description='.$excerpt;
|
372 |
+
$html .= "<a 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>";
|
373 |
}
|
374 |
if( get_option('mo_openid_tumblr_share_enable') ) {
|
375 |
$link = 'http://www.tumblr.com/share/link?url='.$url.'&title='.$title;
|
376 |
+
$html .= "<a 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>";
|
377 |
}
|
378 |
if( get_option('mo_openid_stumble_share_enable') ) {
|
379 |
$link = 'http://www.stumbleupon.com/submit?url='.$url.'&title='.$title;
|
380 |
+
$html .= "<a 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>";
|
381 |
}
|
382 |
if( get_option('mo_openid_linkedin_share_enable') ) {
|
383 |
$link = 'https://www.linkedin.com/shareArticle?mini=true&title='.$title.'&url='.$url.'&summary='.$excerpt;
|
384 |
|
385 |
|
386 |
+
$html .= "<a 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>";
|
387 |
|
388 |
}
|
389 |
|
390 |
if( get_option('mo_openid_reddit_share_enable') ) {
|
391 |
$link = 'http://www.reddit.com/submit?url='.$url.'&title='.$title;
|
392 |
+
$html .= "<a 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>";
|
393 |
}
|
394 |
|
395 |
if( get_option('mo_openid_pinterest_share_enable') ) {
|
396 |
+
$html .= "<a 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>";
|
397 |
|
398 |
}
|
399 |
|
400 |
if( get_option('mo_openid_pocket_share_enable') ) {
|
401 |
$link = 'https://getpocket.com/save?url='.$url.'&title='.$title;
|
402 |
+
$html .= "<a 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>";
|
403 |
}
|
404 |
|
405 |
if( get_option('mo_openid_digg_share_enable') ) {
|
406 |
$link = 'http://digg.com/submit?url='.$url.'&title='.$title;
|
407 |
+
$html .= "<a 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>";
|
408 |
}
|
409 |
if( get_option('mo_openid_delicious_share_enable') ) {
|
410 |
$link = 'http://www.delicious.com/save?v=5&noui&jump=close&url='.$url.'&title='.$title;
|
411 |
+
$html .= "<a 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>";
|
412 |
}
|
413 |
if( get_option('mo_openid_odnoklassniki_share_enable') ) {
|
414 |
$link = 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st.comments='.$excerpt.'&st._surl='.$url;
|
415 |
+
$html .= "<a 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>";
|
416 |
}
|
417 |
if( get_option('mo_openid_mail_share_enable') ) {
|
418 |
+
$html .= "<a 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>";
|
419 |
}
|
420 |
if( get_option('mo_openid_print_share_enable') ) {
|
421 |
+
$html .= "<a 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>";
|
422 |
}
|
423 |
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
424 |
+
$html .= '<a id="mobileshow" 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>";
|
425 |
}
|
426 |
|
427 |
|
430 |
else if($custom_theme == 'customFont') {
|
431 |
|
432 |
if( get_option('mo_openid_facebook_share_enable') ) {
|
433 |
+
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href='.$url.'&redirect_uri=http%3A%2F%2Fminiorange.com%2Fsocial_share_redirect';
|
434 |
+
$html .= "<a 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 |
if( get_option('mo_openid_twitter_share_enable') ) {
|
438 |
$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;
|
439 |
+
$html .= "<a 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>";
|
440 |
}
|
441 |
|
442 |
if( get_option('mo_openid_google_share_enable') ) {
|
443 |
|
444 |
$link = 'https://plus.google.com/share?url='.$url;
|
445 |
+
$html .= "<a 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 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 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 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 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 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 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 |
if( get_option('mo_openid_pocket_share_enable') ) {
|
472 |
$link = 'https://getpocket.com/save?url='.$url.'&title='.$title;
|
473 |
+
$html .= "<a 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>";
|
474 |
}
|
475 |
if( get_option('mo_openid_digg_share_enable') ) {
|
476 |
$link = 'http://digg.com/submit?url='.$url.'&title='.$title;
|
477 |
+
$html .= "<a 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>";
|
478 |
}
|
479 |
if( get_option('mo_openid_delicious_share_enable') ) {
|
480 |
$link = 'http://www.delicious.com/save?v=5&noui&jump=close&url='.$url.'&title='.$title;
|
481 |
+
$html .= "<a 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>";
|
482 |
}
|
483 |
if( get_option('mo_openid_odnoklassniki_share_enable') ) {
|
484 |
$link = 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st.comments='.$excerpt.'&st._surl='.$url;
|
485 |
+
$html .= "<a 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>";
|
486 |
}
|
487 |
if( get_option('mo_openid_mail_share_enable') ) {
|
488 |
+
$html .= "<a 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>";
|
489 |
}
|
490 |
if( get_option('mo_openid_print_share_enable') ) {
|
491 |
+
$html .= "<a 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>";
|
492 |
}
|
493 |
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
494 |
+
$html .= '<a id="mobileshow" 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>";
|
495 |
}
|
496 |
|
497 |
|
500 |
else {
|
501 |
|
502 |
if( get_option('mo_openid_facebook_share_enable') ) {
|
503 |
+
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href='.$url.'&redirect_uri=http%3A%2F%2Fminiorange.com%2Fsocial_share_redirect';
|
504 |
+
$html .= "<a 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>";
|
505 |
}
|
506 |
|
507 |
if( get_option('mo_openid_twitter_share_enable') ) {
|
508 |
$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;
|
509 |
+
$html .= "<a 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>";
|
510 |
}
|
511 |
|
512 |
if( get_option('mo_openid_google_share_enable') ) {
|
513 |
$link = 'https://plus.google.com/share?url='.$url;
|
514 |
|
515 |
+
$html .= "<a 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>";
|
516 |
}
|
517 |
if( get_option('mo_openid_vkontakte_share_enable') ) {
|
518 |
$link = 'http://vk.com/share.php?url='.$url.'&title='.$title.'&description='.$excerpt;
|
519 |
+
$html .= "<a 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>";
|
520 |
}
|
521 |
if( get_option('mo_openid_tumblr_share_enable') ) {
|
522 |
$link = 'http://www.tumblr.com/share/link?url='.$url.'&title='.$title;
|
523 |
+
$html .= "<a 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>";
|
524 |
}
|
525 |
if( get_option('mo_openid_stumble_share_enable') ) {
|
526 |
$link = 'http://www.stumbleupon.com/submit?url='.$url.'&title='.$title;
|
527 |
+
$html .= "<a 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>";
|
528 |
}
|
529 |
if( get_option('mo_openid_linkedin_share_enable') ) {
|
530 |
$link = 'https://www.linkedin.com/shareArticle?mini=true&title='.$title.'&url='.$url.'&summary='.$excerpt;
|
531 |
+
$html .= "<a 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>";
|
532 |
}
|
533 |
if( get_option('mo_openid_reddit_share_enable') ) {
|
534 |
$link = 'http://www.reddit.com/submit?url='.$url.'&title='.$title;
|
535 |
+
$html .= "<a 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>";
|
536 |
}
|
537 |
if( get_option('mo_openid_pinterest_share_enable') ) {
|
538 |
+
$html .= "<a 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>";
|
539 |
}
|
540 |
if( get_option('mo_openid_pocket_share_enable') ) {
|
541 |
$link = 'https://getpocket.com/save?url='.$url.'&title='.$title;
|
542 |
+
$html .= "<a 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>";
|
543 |
}
|
544 |
if( get_option('mo_openid_digg_share_enable') ) {
|
545 |
$link = 'http://digg.com/submit?url='.$url.'&title='.$title;
|
546 |
+
$html .= "<a 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>";
|
547 |
}
|
548 |
if( get_option('mo_openid_delicious_share_enable') ) {
|
549 |
$link = 'http://www.delicious.com/save?v=5&noui&jump=close&url='.$url.'&title='.$title;
|
550 |
+
$html .= "<a 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>";
|
551 |
}
|
552 |
if( get_option('mo_openid_odnoklassniki_share_enable') ) {
|
553 |
$link = 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st.comments='.$excerpt.'&st._surl='.$url;
|
554 |
+
$html .= "<a 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>";
|
555 |
}
|
556 |
if( get_option('mo_openid_mail_share_enable') ) {
|
557 |
+
$html .= "<a 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>";
|
558 |
}
|
559 |
if( get_option('mo_openid_print_share_enable') ) {
|
560 |
+
$html .= "<a 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>";
|
561 |
}
|
562 |
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
563 |
+
$html .= '<a id="mobileshow" 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>";
|
564 |
}
|
565 |
|
566 |
}
|
includes/css/bootstrap.min-preview.css
CHANGED
@@ -457,5 +457,3 @@ input[type=submit].btn-block,input[type=reset].btn-block,input[type=button].btn-
|
|
457 |
border-top-left-radius: 0;
|
458 |
border-top-right-radius: 0
|
459 |
}
|
460 |
-
|
461 |
-
|
457 |
border-top-left-radius: 0;
|
458 |
border-top-right-radius: 0
|
459 |
}
|
|
|
|
includes/css/bootstrap.min.css
CHANGED
@@ -457,5 +457,3 @@ input[type=submit].btn-block,input[type=reset].btn-block,input[type=button].btn-
|
|
457 |
border-top-left-radius: 0;
|
458 |
border-top-right-radius: 0
|
459 |
}
|
460 |
-
|
461 |
-
|
457 |
border-top-left-radius: 0;
|
458 |
border-top-right-radius: 0
|
459 |
}
|
|
|
|
miniorange_openid_sso_settings.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Social Login, Social Sharing by miniOrange
|
5 |
* Plugin URI: http://miniorange.com
|
6 |
* Description: Allow your users to login, comment and share with Facebook, Google, Twitter, LinkedIn etc using customizable buttons.
|
7 |
-
* Version: 5.1.
|
8 |
* Author: miniOrange
|
9 |
* Author URI: http://miniorange.com
|
10 |
* License: GPL2
|
@@ -33,6 +33,7 @@ class Miniorange_OpenID_SSO {
|
|
33 |
|
34 |
register_deactivation_hook(__FILE__, array( $this, 'mo_openid_deactivate'));
|
35 |
register_activation_hook( __FILE__, array( $this, 'mo_openid_activate' ) );
|
|
|
36 |
|
37 |
// add social login icons to default login form
|
38 |
if(get_option('mo_openid_default_login_enable') == 1){
|
@@ -164,6 +165,7 @@ class Miniorange_OpenID_SSO {
|
|
164 |
add_option( 'mo_openid_auto_register_enable', '1');
|
165 |
add_option( 'mo_openid_register_disabled_message', 'Registration is disabled for this website. Please contact the administrator for any queries.' );
|
166 |
add_option( 'moopenid_social_login_avatar','1' );
|
|
|
167 |
add_option( 'moopenid_user_attributes','0' );
|
168 |
add_option( 'mo_share_vertical_hide_mobile', '1' );
|
169 |
add_option( 'mo_openid_social_comment_blogpost','1' );
|
@@ -172,12 +174,13 @@ class Miniorange_OpenID_SSO {
|
|
172 |
add_option( 'mo_openid_social_comment_google_label', 'Google+ Comments' );
|
173 |
add_option( 'mo_openid_social_comment_disqus_label', 'Disqus Comments' );
|
174 |
add_option( 'mo_openid_social_comment_heading_label', 'Leave a Reply' );
|
175 |
-
add_option('mo_openid_login_role_mapping','subscriber');
|
176 |
-
add_option( 'mo_openid_user_number',0);
|
177 |
add_option( 'mo_openid_login_widget_customize_logout_name_text', 'Howdy, ##username## |' );
|
178 |
add_option( 'mo_openid_login_widget_customize_logout_text', 'Logout?' );
|
179 |
add_option( 'mo_openid_share_email_subject','I wanted you to see this site' );
|
180 |
add_option( 'mo_openid_share_email_body','Check out this site ##url##' );
|
|
|
|
|
181 |
}
|
182 |
|
183 |
function mo_openid_deactivate() {
|
@@ -194,12 +197,32 @@ class Miniorange_OpenID_SSO {
|
|
194 |
delete_option('mo_openid_message');
|
195 |
delete_option( 'mo_openid_admin_customer_valid');
|
196 |
delete_option( 'mo_openid_admin_customer_plan');
|
|
|
197 |
}
|
198 |
|
199 |
function mo_openid_activate() {
|
200 |
add_option('Activated_Plugin','Plugin-Slug');
|
201 |
}
|
202 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
203 |
|
204 |
function mo_openid_add_social_login(){
|
205 |
if(!is_user_logged_in() && mo_openid_is_customer_registered()){
|
@@ -645,6 +668,9 @@ class Miniorange_OpenID_SSO {
|
|
645 |
// avatar
|
646 |
update_option( 'moopenid_social_login_avatar', isset( $_POST['moopenid_social_login_avatar']) ? $_POST['moopenid_social_login_avatar'] : 0);
|
647 |
|
|
|
|
|
|
|
648 |
if(isset($_POST['mapping_value_default']) && mo_openid_is_customer_valid())
|
649 |
update_option('mo_openid_login_role_mapping', isset( $_POST['mapping_value_default']) ? $_POST['mapping_value_default'] : 'subscriber');
|
650 |
|
4 |
* Plugin Name: Social Login, Social Sharing by miniOrange
|
5 |
* Plugin URI: http://miniorange.com
|
6 |
* Description: Allow your users to login, comment and share with Facebook, Google, Twitter, LinkedIn etc using customizable buttons.
|
7 |
+
* Version: 5.1.7
|
8 |
* Author: miniOrange
|
9 |
* Author URI: http://miniorange.com
|
10 |
* License: GPL2
|
33 |
|
34 |
register_deactivation_hook(__FILE__, array( $this, 'mo_openid_deactivate'));
|
35 |
register_activation_hook( __FILE__, array( $this, 'mo_openid_activate' ) );
|
36 |
+
register_activation_hook( __FILE__, array( $this, 'mo_openid_modify_user_table' ) ); // add column provider and identifier
|
37 |
|
38 |
// add social login icons to default login form
|
39 |
if(get_option('mo_openid_default_login_enable') == 1){
|
165 |
add_option( 'mo_openid_auto_register_enable', '1');
|
166 |
add_option( 'mo_openid_register_disabled_message', 'Registration is disabled for this website. Please contact the administrator for any queries.' );
|
167 |
add_option( 'moopenid_social_login_avatar','1' );
|
168 |
+
|
169 |
add_option( 'moopenid_user_attributes','0' );
|
170 |
add_option( 'mo_share_vertical_hide_mobile', '1' );
|
171 |
add_option( 'mo_openid_social_comment_blogpost','1' );
|
174 |
add_option( 'mo_openid_social_comment_google_label', 'Google+ Comments' );
|
175 |
add_option( 'mo_openid_social_comment_disqus_label', 'Disqus Comments' );
|
176 |
add_option( 'mo_openid_social_comment_heading_label', 'Leave a Reply' );
|
177 |
+
add_option( 'mo_openid_login_role_mapping','subscriber');
|
|
|
178 |
add_option( 'mo_openid_login_widget_customize_logout_name_text', 'Howdy, ##username## |' );
|
179 |
add_option( 'mo_openid_login_widget_customize_logout_text', 'Logout?' );
|
180 |
add_option( 'mo_openid_share_email_subject','I wanted you to see this site' );
|
181 |
add_option( 'mo_openid_share_email_body','Check out this site ##url##' );
|
182 |
+
add_option( 'mo_openid_enable_profile_completion','1' );
|
183 |
+
add_option('mo_openid_user_count','1');
|
184 |
}
|
185 |
|
186 |
function mo_openid_deactivate() {
|
197 |
delete_option('mo_openid_message');
|
198 |
delete_option( 'mo_openid_admin_customer_valid');
|
199 |
delete_option( 'mo_openid_admin_customer_plan');
|
200 |
+
|
201 |
}
|
202 |
|
203 |
function mo_openid_activate() {
|
204 |
add_option('Activated_Plugin','Plugin-Slug');
|
205 |
}
|
206 |
|
207 |
+
// add columns provider and identifier to users table
|
208 |
+
function mo_openid_modify_user_table(){
|
209 |
+
|
210 |
+
global $wpdb;
|
211 |
+
$table_name = $wpdb->prefix . 'users';
|
212 |
+
$provider_column = 'provider';
|
213 |
+
$identifier_column = 'identifier';
|
214 |
+
|
215 |
+
$row = $wpdb->get_results("SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE table_name = ".$table_name." AND column_name = ".$provider_column);
|
216 |
+
if(empty($row)){
|
217 |
+
$wpdb->query("ALTER TABLE ".$table_name." ADD ".$provider_column." VARCHAR(20) NOT NULL ");
|
218 |
+
}
|
219 |
+
|
220 |
+
$row = $wpdb->get_results("SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE table_name = ".$table_name." AND column_name = ".$identifier_column);
|
221 |
+
if(empty($row)){
|
222 |
+
$wpdb->query("ALTER TABLE ".$table_name." ADD ".$identifier_column." VARCHAR(100) NOT NULL ");
|
223 |
+
}
|
224 |
+
|
225 |
+
}
|
226 |
|
227 |
function mo_openid_add_social_login(){
|
228 |
if(!is_user_logged_in() && mo_openid_is_customer_registered()){
|
668 |
// avatar
|
669 |
update_option( 'moopenid_social_login_avatar', isset( $_POST['moopenid_social_login_avatar']) ? $_POST['moopenid_social_login_avatar'] : 0);
|
670 |
|
671 |
+
//profile completion
|
672 |
+
update_option('mo_openid_enable_profile_completion', isset( $_POST['mo_openid_enable_profile_completion']) ? $_POST['mo_openid_enable_profile_completion'] : 0);
|
673 |
+
|
674 |
if(isset($_POST['mapping_value_default']) && mo_openid_is_customer_valid())
|
675 |
update_option('mo_openid_login_role_mapping', isset( $_POST['mapping_value_default']) ? $_POST['mapping_value_default'] : 'subscriber');
|
676 |
|
miniorange_openid_sso_settings_page.php
CHANGED
@@ -4,9 +4,12 @@ function mo_register_openid() {
|
|
4 |
$active_tab = $_GET[ 'tab' ];
|
5 |
} else if(mo_openid_is_customer_registered()) {
|
6 |
$active_tab = 'login';
|
7 |
-
} else {
|
8 |
$active_tab = 'register';
|
9 |
}
|
|
|
|
|
|
|
10 |
|
11 |
if(mo_openid_is_curl_installed()==0){ ?>
|
12 |
<p style="color:red;">(Warning: <a href="http://php.net/manual/en/curl.installation.php" target="_blank">PHP CURL extension</a> is not installed or disabled) Please go to Troubleshooting for steps to enable curl.</p>
|
@@ -27,7 +30,7 @@ function mo_register_openid() {
|
|
27 |
<div id="tab">
|
28 |
<h2 class="nav-tab-wrapper">
|
29 |
<?php if(!mo_openid_is_customer_registered()) { ?>
|
30 |
-
|
31 |
<?php } ?>
|
32 |
<a class="nav-tab <?php echo $active_tab == 'login' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'login'), $_SERVER['REQUEST_URI'] ); ?>">Social Login</a>
|
33 |
<a class="nav-tab <?php echo $active_tab == 'share' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'share'), $_SERVER['REQUEST_URI'] ); ?>">Social Sharing</a>
|
@@ -121,19 +124,19 @@ function mo_openid_show_new_registration_page() {
|
|
121 |
value="<?php echo $_SERVER['SERVER_NAME']; ?>"/></td>
|
122 |
</tr>
|
123 |
<tr>
|
124 |
-
<td><b> First Name:</b></td>
|
125 |
<td><input class="mo_openid_table_textbox" type="text" name="fname"
|
126 |
placeholder="Enter first name"
|
127 |
value="<?php echo $current_user->user_firstname;?>" /></td>
|
128 |
</tr>
|
129 |
<tr>
|
130 |
-
<td><b> Last Name:</b></td>
|
131 |
<td><input class="mo_openid_table_textbox" type="text" name="lname"
|
132 |
placeholder="Enter last name"
|
133 |
value="<?php echo $current_user->user_lastname;?>" /></td>
|
134 |
</tr>
|
135 |
<tr>
|
136 |
-
<td><b> Mobile number:</b></td>
|
137 |
<td><input class="mo_openid_table_textbox" type="tel" id="phone"
|
138 |
pattern="[\+]\d{10,14}|[\+]\d{1,4}[\s]\d{8,10}" name="phone"
|
139 |
title="Mobile number with country code eg. +1xxxxxxxxxx"
|
@@ -251,17 +254,17 @@ function mo_openid_apps_config() {
|
|
251 |
|
252 |
<div class="mo_openid_table_layout">
|
253 |
|
254 |
-
|
255 |
<div style="display:block;margin-top:10px;color:red;background-color:rgba(251, 232, 0, 0.15);padding:5px;border:solid 1px rgba(255, 0, 9, 0.36);">
|
256 |
Please <a href="<?php echo add_query_arg( array('tab' => 'register'), $_SERVER['REQUEST_URI'] ); ?>">Register or Login with miniOrange</a> to enable Social Login and Social Sharing. miniOrange takes care of creating applications for you so that you don't have to worry about creating applications in each social network.
|
257 |
</div>
|
258 |
-
<?php }
|
259 |
|
260 |
<table>
|
261 |
<tr>
|
262 |
<td colspan="2">
|
263 |
<h3>Social Login
|
264 |
-
<input type="submit" name="submit" value="Save" style="float:right; margin-right:2%; margin-top: -3px;width:100px;"
|
265 |
class="button button-primary button-large" />
|
266 |
</h3>
|
267 |
|
@@ -281,46 +284,46 @@ function mo_openid_apps_config() {
|
|
281 |
<td>
|
282 |
<table style="width:100%">
|
283 |
<tr>
|
284 |
-
<td><input type="checkbox"
|
285 |
<?php checked( get_option('mo_openid_facebook_enable') == 1 );?> /><strong>Facebook</strong>
|
286 |
</td>
|
287 |
<td>
|
288 |
-
<input type="checkbox"
|
289 |
<?php checked( get_option('mo_openid_google_enable') == 1 );?> /><strong>Google</strong>
|
290 |
</td>
|
291 |
<td>
|
292 |
-
<input type="checkbox"
|
293 |
id="vkontakte_enable" class="app_enable" name="mo_openid_vkontakte_enable" value="1" onchange="previewLoginIcons();"
|
294 |
<?php checked( get_option('mo_openid_vkontakte_enable') == 1 );?> /><strong>Vkontakte</strong>
|
295 |
</td>
|
296 |
<td>
|
297 |
-
<input type="checkbox"
|
298 |
id="twitter_enable" class="app_enable" name="mo_openid_twitter_enable" value="1" onchange="previewLoginIcons();"
|
299 |
<?php checked( get_option('mo_openid_twitter_enable') == 1 );?> /><strong>Twitter</strong>
|
300 |
</td>
|
301 |
<td>
|
302 |
-
<input type="checkbox"
|
303 |
id="instagram_enable" class="app_enable" name="mo_openid_instagram_enable" value="1" onchange="previewLoginIcons();"
|
304 |
<?php checked( get_option('mo_openid_instagram_enable') == 1 );?> /><strong>Instagram</strong>
|
305 |
</td>
|
306 |
</tr>
|
307 |
<tr>
|
308 |
<td>
|
309 |
-
<input type="checkbox"
|
310 |
<?php checked( get_option('mo_openid_linkedin_enable') == 1 );?> /><strong>LinkedIn</strong>
|
311 |
</td>
|
312 |
<td>
|
313 |
-
<input type="checkbox"
|
314 |
id="amazon_enable" class="app_enable" name="mo_openid_amazon_enable" value="1" onchange="previewLoginIcons();"
|
315 |
<?php checked( get_option('mo_openid_amazon_enable') == 1 );?> /><strong>Amazon</strong>
|
316 |
</td>
|
317 |
<td>
|
318 |
-
<input type="checkbox"
|
319 |
id="salesforce_enable" class="app_enable" name="mo_openid_salesforce_enable" value="1" onchange="previewLoginIcons();"
|
320 |
<?php checked( get_option('mo_openid_salesforce_enable') == 1 );?> /><strong>Salesforce</strong>
|
321 |
</td>
|
322 |
<td>
|
323 |
-
<input type="checkbox"
|
324 |
id="windowslive_enable" class="app_enable" name="mo_openid_windowslive_enable" value="1" onchange="previewLoginIcons();"
|
325 |
<?php checked( get_option('mo_openid_windowslive_enable') == 1 );?> /><strong>Windows Live</strong>
|
326 |
</td>
|
@@ -351,34 +354,34 @@ function mo_openid_apps_config() {
|
|
351 |
|
352 |
<td class="mo_openid_table_td_checkbox">
|
353 |
<input type="radio" name="mo_openid_login_theme" value="circle" onclick="checkLoginButton();moLoginPreview(document.getElementById('mo_login_icon_size').value ,'circle',setLoginCustomTheme(),document.getElementById('mo_login_icon_custom_color').value,document.getElementById('mo_login_icon_space').value,document.getElementById('mo_login_icon_custom_boundary').value)"
|
354 |
-
|
355 |
<?php checked( get_option('mo_openid_login_theme') == 'circle' );?> />Round
|
356 |
|
357 |
<span style="margin-left:106px;">
|
358 |
<input type="radio" id="mo_openid_login_default_radio" name="mo_openid_login_custom_theme" value="default" onclick="checkLoginButton();moLoginPreview(setSizeOfIcons(), setLoginTheme(),'default',document.getElementById('mo_login_icon_custom_color').value,document.getElementById('mo_login_icon_space').value,document.getElementById('mo_login_icon_height').value,document.getElementById('mo_login_icon_custom_boundary').value)"
|
359 |
-
<?php checked( get_option('mo_openid_login_custom_theme') == 'default' )
|
360 |
|
361 |
</span>
|
362 |
|
363 |
<span style="margin-left:111px;">
|
364 |
-
<input style="width:50px" onkeyup="moLoginSpaceValidate(this)" id="mo_login_icon_space" name="mo_login_icon_space" type="text" value="<?php echo get_option('mo_login_icon_space')?>"
|
365 |
-
<input id="mo_login_space_plus" type="button" value="+" onmouseup="moLoginPreview(setSizeOfIcons() ,setLoginTheme(),setLoginCustomTheme(),document.getElementById('mo_login_icon_custom_color').value,document.getElementById('mo_login_icon_space').value,document.getElementById('mo_login_icon_custom_boundary').value)"
|
366 |
-
<input id="mo_login_space_minus" type="button" value="-" onmouseup="moLoginPreview(setSizeOfIcons() ,setLoginTheme(),setLoginCustomTheme(),document.getElementById('mo_login_icon_custom_color').value,document.getElementById('mo_login_icon_space').value,document.getElementById('mo_login_icon_custom_boundary').value)"
|
367 |
</span>
|
368 |
|
369 |
|
370 |
<span id="commontheme" style="margin-left:115px">
|
371 |
-
<input style="width:50px" id="mo_login_icon_size" onkeyup="moLoginSizeValidate(this)" name="mo_login_icon_custom_size" type="text" value="<?php echo get_option('mo_login_icon_custom_size')?>"
|
372 |
-
<input id="mo_login_size_plus" type="button" value="+" onmouseup="moLoginPreview(document.getElementById('mo_login_icon_size').value ,setLoginTheme(),setLoginCustomTheme(),document.getElementById('mo_login_icon_custom_color').value,document.getElementById('mo_login_icon_space').value,document.getElementById('mo_login_icon_custom_boundary').value)"
|
373 |
-
<input id="mo_login_size_minus" type="button" value="-" onmouseup="moLoginPreview(document.getElementById('mo_login_icon_size').value ,setLoginTheme(),setLoginCustomTheme(),document.getElementById('mo_login_icon_custom_color').value,document.getElementById('mo_login_icon_space').value,document.getElementById('mo_login_icon_custom_boundary').value)"
|
374 |
|
375 |
</span>
|
376 |
<span style="margin-left:91px" class="longbuttontheme">Width:
|
377 |
-
<input style="width:50px" id="mo_login_icon_width" onkeyup="moLoginWidthValidate(this)" name="mo_login_icon_custom_width" type="text" value="<?php echo get_option('mo_login_icon_custom_width')?>"
|
378 |
<span style="margin-left:3px;">
|
379 |
|
380 |
-
<input id="mo_login_width_plus" type="button" value="+" onmouseup="moLoginPreview(document.getElementById('mo_login_icon_width').value ,setLoginTheme(),setLoginCustomTheme(),document.getElementById('mo_login_icon_custom_color').value,document.getElementById('mo_login_icon_space').value,document.getElementById('mo_login_icon_height').value,document.getElementById('mo_login_icon_custom_boundary').value)"
|
381 |
-
<input id="mo_login_width_minus" type="button" value="-" onmouseup="moLoginPreview(document.getElementById('mo_login_icon_width').value ,setLoginTheme(),setLoginCustomTheme(),document.getElementById('mo_login_icon_custom_color').value,document.getElementById('mo_login_icon_space').value,document.getElementById('mo_login_icon_height').value,document.getElementById('mo_login_icon_custom_boundary').value)"
|
382 |
|
383 |
</span>
|
384 |
</span>
|
@@ -390,11 +393,11 @@ function mo_openid_apps_config() {
|
|
390 |
<tr>
|
391 |
<td class="mo_openid_table_td_checkbox">
|
392 |
<input type="radio" name="mo_openid_login_theme" value="oval" onclick="checkLoginButton();moLoginPreview(document.getElementById('mo_login_icon_size').value,'oval',setLoginCustomTheme(),document.getElementById('mo_login_icon_custom_color').value,document.getElementById('mo_login_icon_space').value,document.getElementById('mo_login_icon_size').value,document.getElementById('mo_login_icon_custom_boundary').value )"
|
393 |
-
|
394 |
<?php checked( get_option('mo_openid_login_theme') == 'oval' );?> />Rounded Edges
|
395 |
|
396 |
<span style="margin-left:50px;">
|
397 |
-
<input type="radio" id="mo_openid_login_custom_radio" name="mo_openid_login_custom_theme" value="custom" onclick="checkLoginButton();moLoginPreview(setSizeOfIcons(), setLoginTheme(),'custom',document.getElementById('mo_login_icon_custom_color').value,document.getElementById('mo_login_icon_space').value,document.getElementById('mo_login_icon_height').value,document.getElementById('mo_login_icon_custom_boundary').value)"
|
398 |
<?php checked( get_option('mo_openid_login_custom_theme') == 'custom' );?> />Custom Background*
|
399 |
|
400 |
</span>
|
@@ -402,11 +405,11 @@ function mo_openid_apps_config() {
|
|
402 |
|
403 |
|
404 |
<span style="margin-left:235px" class="longbuttontheme" >Height:
|
405 |
-
<input style="width:50px" id="mo_login_icon_height" onkeyup="moLoginHeightValidate(this)" name="mo_login_icon_custom_height" type="text" value="<?php echo get_option('mo_login_icon_custom_height')?>"
|
406 |
<span style="margin-left:1px;">
|
407 |
|
408 |
-
<input id="mo_login_height_plus" type="button" value="+" onmouseup="moLoginPreview(document.getElementById('mo_login_icon_width').value,setLoginTheme(),setLoginCustomTheme(),document.getElementById('mo_login_icon_custom_color').value,document.getElementById('mo_login_icon_space').value,document.getElementById('mo_login_icon_height').value,document.getElementById('mo_login_icon_custom_boundary').value)"
|
409 |
-
<input id="mo_login_height_minus" type="button" value="-" onmouseup="moLoginPreview(document.getElementById('mo_login_icon_width').value,setLoginTheme(),setLoginCustomTheme(),document.getElementById('mo_login_icon_custom_color').value,document.getElementById('mo_login_icon_space').value,document.getElementById('mo_login_icon_height').value,document.getElementById('mo_login_icon_custom_boundary').value)"
|
410 |
</span>
|
411 |
</span>
|
412 |
</td>
|
@@ -415,21 +418,21 @@ function mo_openid_apps_config() {
|
|
415 |
<tr>
|
416 |
<td class="mo_openid_table_td_checkbox">
|
417 |
<input type="radio" name="mo_openid_login_theme" value="square" onclick="checkLoginButton();moLoginPreview(document.getElementById('mo_login_icon_size').value ,'square',setLoginCustomTheme(),document.getElementById('mo_login_icon_custom_color').value,document.getElementById('mo_login_icon_space').value,document.getElementById('mo_login_icon_size').value,document.getElementById('mo_login_icon_custom_boundary').value )"
|
418 |
-
|
419 |
<?php checked( get_option('mo_openid_login_theme') == 'square' );?> />Square
|
420 |
|
421 |
<span style="margin-left:113px;">
|
422 |
-
<input id="mo_login_icon_custom_color" style="width:135px;" name="mo_login_icon_custom_color" class="color" value="<?php echo get_option('mo_login_icon_custom_color')?>" onchange="moLoginPreview(setSizeOfIcons(), setLoginTheme(),'custom',document.getElementById('mo_login_icon_custom_color').value,document.getElementById('mo_login_icon_space').value,document.getElementById('mo_login_icon_custom_boundary').value)"
|
423 |
</span>
|
424 |
|
425 |
|
426 |
<span style="margin-left:228px" class="longbuttontheme">Curve:
|
427 |
<input style="width:50px" id="mo_login_icon_custom_boundary" onkeyup="moLoginBoundaryValidate(this)" name="mo_login_icon_custom_boundary" type="text" value=
|
428 |
-
"<?php echo get_option('mo_login_icon_custom_boundary')?>"
|
429 |
<span style="margin-left:6px;">
|
430 |
|
431 |
-
<input id="mo_login_boundary_plus" type="button" value="+" onmouseup="moLoginPreview(document.getElementById('mo_login_icon_width').value,setLoginTheme(),setLoginCustomTheme(),document.getElementById('mo_login_icon_custom_color').value,document.getElementById('mo_login_icon_space').value,document.getElementById('mo_login_icon_height').value,document.getElementById('mo_login_icon_custom_boundary').value)"
|
432 |
-
<input id="mo_login_boundary_minus" type="button" value="-" onmouseup="moLoginPreview(document.getElementById('mo_login_icon_width').value,setLoginTheme(),setLoginCustomTheme(),document.getElementById('mo_login_icon_custom_color').value,document.getElementById('mo_login_icon_space').value,document.getElementById('mo_login_icon_height').value,document.getElementById('mo_login_icon_custom_boundary').value)"
|
433 |
</span>
|
434 |
</span>
|
435 |
</td>
|
@@ -437,7 +440,6 @@ function mo_openid_apps_config() {
|
|
437 |
<tr>
|
438 |
<td class="mo_openid_table_td_checkbox">
|
439 |
<input type="radio" id="iconwithtext" name="mo_openid_login_theme" value="longbutton" onclick="checkLoginButton();moLoginPreview(document.getElementById('mo_login_icon_width').value ,'longbutton',setLoginCustomTheme(),document.getElementById('mo_login_icon_custom_color').value,document.getElementById('mo_login_icon_space').value,document.getElementById('mo_login_icon_height').value,document.getElementById('mo_login_icon_custom_boundary').value)"
|
440 |
-
<?php if(!mo_openid_is_customer_registered()) echo 'disabled'?>
|
441 |
<?php checked( get_option('mo_openid_login_theme') == 'longbutton' );?> />Long Button with Text</td>
|
442 |
</tr>
|
443 |
<tr>
|
@@ -531,21 +533,20 @@ function mo_openid_apps_config() {
|
|
531 |
<td>
|
532 |
<b>Select color for customize text:</b>
|
533 |
<span style="margin-left:1px;">
|
534 |
-
<input id="mo_openid_table_textbox" style="width:135px;" name="mo_login_openid_login_widget_customize_textcolor" class="color" value="<?php echo get_option('mo_login_openid_login_widget_customize_textcolor')?>"
|
535 |
</span>
|
536 |
</td>
|
537 |
</tr>
|
538 |
|
539 |
<tr>
|
540 |
-
<td><b>Enter text to show above login widget:</b>
|
541 |
|
542 |
-
<input class="mo_openid_table_textbox" style="width:50%" type="text" name="mo_openid_login_widget_customize_text"
|
543 |
</tr>
|
544 |
<tr>
|
545 |
<td><b>Enter text to show on your login buttons (If you have</b>
|
546 |
<br/><b> selected shape 4 from 'Customize Login Icons' section):</b>
|
547 |
-
<input class="mo_openid_table_textbox" style="width:50%" type="text" name="mo_openid_login_button_customize_text"
|
548 |
-
<?php if(!mo_openid_is_customer_registered()) echo 'disabled'?> value="<?php echo get_option('mo_openid_login_button_customize_text'); ?>" /></td>
|
549 |
</tr>
|
550 |
|
551 |
<tr>
|
@@ -558,12 +559,12 @@ function mo_openid_apps_config() {
|
|
558 |
<tr>
|
559 |
<td><b>Enter text to show before the logout link</b>
|
560 |
<br/>Use ##username## to display current username:
|
561 |
-
<input class="mo_openid_table_textbox" style="width:50%" type="text" name="mo_openid_login_widget_customize_logout_name_text"
|
562 |
</tr>
|
563 |
<tr>
|
564 |
<td><b>Enter text to show as logout link:</b>
|
565 |
<input class="mo_openid_table_textbox" style="width:50%" type="text" name="mo_openid_login_widget_customize_logout_text"
|
566 |
-
|
567 |
</tr>
|
568 |
<td>
|
569 |
<br>
|
@@ -578,22 +579,22 @@ function mo_openid_apps_config() {
|
|
578 |
<tr>
|
579 |
<td class="mo_openid_table_td_checkbox">
|
580 |
<input type="checkbox" id="default_login_enable" name="mo_openid_default_login_enable" value="1"
|
581 |
-
|
582 |
</tr>
|
583 |
<tr>
|
584 |
<td class="mo_openid_table_td_checkbox">
|
585 |
<input type="checkbox" id="default_register_enable" name="mo_openid_default_register_enable" value="1"
|
586 |
-
|
587 |
</tr>
|
588 |
<tr>
|
589 |
<td class="mo_openid_table_td_checkbox">
|
590 |
<input type="checkbox" id="default_comment_enable" name="mo_openid_default_comment_enable" value="1"
|
591 |
-
|
592 |
</tr>
|
593 |
<tr>
|
594 |
<td class="mo_openid_table_td_checkbox">
|
595 |
<input type="checkbox" id="woocommerce_login_form" name="mo_openid_woocommerce_login_form" value="1"
|
596 |
-
|
597 |
</tr>
|
598 |
<tr><td> </td></tr>
|
599 |
<tr>
|
@@ -604,62 +605,62 @@ function mo_openid_apps_config() {
|
|
604 |
<tr>
|
605 |
<td>
|
606 |
<input type="radio" id="login_redirect_same_page" name="mo_openid_login_redirect" value="same"
|
607 |
-
|
608 |
</td>
|
609 |
</tr>
|
610 |
<tr>
|
611 |
<td>
|
612 |
<input type="radio" id="login_redirect_homepage" name="mo_openid_login_redirect" value="homepage"
|
613 |
-
|
614 |
</td>
|
615 |
</tr>
|
616 |
<tr>
|
617 |
<td>
|
618 |
<input type="radio" id="login_redirect_dashboard" name="mo_openid_login_redirect" value="dashboard"
|
619 |
-
<?php
|
620 |
</td>
|
621 |
</tr>
|
622 |
<tr>
|
623 |
<td>
|
624 |
<input type="radio" id="login_redirect_customurl" name="mo_openid_login_redirect" value="custom"
|
625 |
-
|
626 |
|
627 |
-
<input type="url" id="login_redirect_url" style="width:50%" name="mo_openid_login_redirect_url" value="<?php echo get_option('mo_openid_login_redirect_url')?>"
|
628 |
</td>
|
629 |
</tr>
|
630 |
<tr><td> </td></tr>
|
631 |
<tr>
|
632 |
<td>
|
633 |
<input type="checkbox" id="logout_redirection_enable" name="mo_openid_logout_redirection_enable" value="1"
|
634 |
-
|
635 |
<b>Enable Logout Redirection</b>
|
636 |
</td>
|
637 |
</tr>
|
638 |
<tr>
|
639 |
<td>
|
640 |
<input type="radio" id="logout_redirect_home" name="mo_openid_logout_redirect" value="homepage"
|
641 |
-
|
642 |
</td>
|
643 |
</tr>
|
644 |
<tr>
|
645 |
<td>
|
646 |
<input type="radio" id="logout_redirect_current" name="mo_openid_logout_redirect" value="currentpage"
|
647 |
-
|
648 |
</td>
|
649 |
</tr>
|
650 |
<tr>
|
651 |
<td>
|
652 |
<input type="radio" id="logout_redirect_login" name="mo_openid_logout_redirect" value="login"
|
653 |
-
<?php
|
654 |
</td>
|
655 |
</tr>
|
656 |
<tr>
|
657 |
<td>
|
658 |
<input type="radio" id="logout_redirect_customurl" name="mo_openid_logout_redirect" value="custom"
|
659 |
-
|
660 |
|
661 |
<?php echo site_url();?>
|
662 |
-
<input type="text" id="logout_redirect_url" style="width:50%" name="mo_openid_logout_redirect_url" value="<?php echo get_option('mo_openid_logout_redirect_url')?>"
|
663 |
</td>
|
664 |
</tr>
|
665 |
<tr>
|
@@ -674,10 +675,10 @@ function mo_openid_apps_config() {
|
|
674 |
If Auto-register users is unchecked, users will not be able to register using Social Login. The users who already have an account will be able to login. This setting stands true only when users are registering using Social Login. This will not interfere with users registering through the regular WordPress.
|
675 |
<br/><br/>
|
676 |
<input type="checkbox" id="auto_register_enable" name="mo_openid_auto_register_enable" value="1"
|
677 |
-
<?php
|
678 |
<br/><br/>
|
679 |
<b>Registration disabled message: </b>
|
680 |
-
<textarea id="auto_register_disabled_message" style="width:80%" name="mo_openid_register_disabled_message"
|
681 |
</td>
|
682 |
</tr>
|
683 |
<?php if(mo_openid_is_customer_registered() && mo_openid_is_customer_valid()) { ?>
|
@@ -1035,17 +1036,26 @@ function mo_openid_apps_config() {
|
|
1035 |
<td>
|
1036 |
<br/>
|
1037 |
<hr>
|
1038 |
-
<h3>
|
1039 |
</td>
|
1040 |
</tr>
|
1041 |
<tr>
|
1042 |
-
<td><input type="checkbox" id="moopenid_social_login_avatar" name="moopenid_social_login_avatar" value="1" <?php
|
1043 |
</td>
|
1044 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1045 |
<?php if(mo_openid_is_customer_valid() && !mo_openid_get_customer_plan('Do It Yourself')) { ?>
|
1046 |
<tr><td> </td></tr>
|
1047 |
<tr>
|
1048 |
-
<td><input type="checkbox" id="moopenid_user_attributes" name="moopenid_user_attributes" value="1" <?php
|
1049 |
</td>
|
1050 |
</tr>
|
1051 |
<?php } else {
|
@@ -1054,7 +1064,7 @@ function mo_openid_apps_config() {
|
|
1054 |
</table>
|
1055 |
<table class="mo_openid_display_table">
|
1056 |
<tr>
|
1057 |
-
<td><br /><input type="submit" name="submit" value="Save" style="width:100px;"
|
1058 |
</td>
|
1059 |
</tr>
|
1060 |
<tr>
|
4 |
$active_tab = $_GET[ 'tab' ];
|
5 |
} else if(mo_openid_is_customer_registered()) {
|
6 |
$active_tab = 'login';
|
7 |
+
} else if( isset( $_GET[ 'tab' ]) && $_GET[ 'tab' ] == 'register' ) {
|
8 |
$active_tab = 'register';
|
9 |
}
|
10 |
+
else{
|
11 |
+
$active_tab = 'login';
|
12 |
+
}
|
13 |
|
14 |
if(mo_openid_is_curl_installed()==0){ ?>
|
15 |
<p style="color:red;">(Warning: <a href="http://php.net/manual/en/curl.installation.php" target="_blank">PHP CURL extension</a> is not installed or disabled) Please go to Troubleshooting for steps to enable curl.</p>
|
30 |
<div id="tab">
|
31 |
<h2 class="nav-tab-wrapper">
|
32 |
<?php if(!mo_openid_is_customer_registered()) { ?>
|
33 |
+
<a class="nav-tab <?php echo $active_tab == 'register' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'register'), $_SERVER['REQUEST_URI'] ); ?>">Account Setup</a>
|
34 |
<?php } ?>
|
35 |
<a class="nav-tab <?php echo $active_tab == 'login' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'login'), $_SERVER['REQUEST_URI'] ); ?>">Social Login</a>
|
36 |
<a class="nav-tab <?php echo $active_tab == 'share' ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array('tab' => 'share'), $_SERVER['REQUEST_URI'] ); ?>">Social Sharing</a>
|
124 |
value="<?php echo $_SERVER['SERVER_NAME']; ?>"/></td>
|
125 |
</tr>
|
126 |
<tr>
|
127 |
+
<td><b> First Name (optional):</b></td>
|
128 |
<td><input class="mo_openid_table_textbox" type="text" name="fname"
|
129 |
placeholder="Enter first name"
|
130 |
value="<?php echo $current_user->user_firstname;?>" /></td>
|
131 |
</tr>
|
132 |
<tr>
|
133 |
+
<td><b> Last Name (optional):</b></td>
|
134 |
<td><input class="mo_openid_table_textbox" type="text" name="lname"
|
135 |
placeholder="Enter last name"
|
136 |
value="<?php echo $current_user->user_lastname;?>" /></td>
|
137 |
</tr>
|
138 |
<tr>
|
139 |
+
<td><b> Mobile number (optional):</b></td>
|
140 |
<td><input class="mo_openid_table_textbox" type="tel" id="phone"
|
141 |
pattern="[\+]\d{10,14}|[\+]\d{1,4}[\s]\d{8,10}" name="phone"
|
142 |
title="Mobile number with country code eg. +1xxxxxxxxxx"
|
254 |
|
255 |
<div class="mo_openid_table_layout">
|
256 |
|
257 |
+
<!--<?php if(!mo_openid_is_customer_registered()) { ?>
|
258 |
<div style="display:block;margin-top:10px;color:red;background-color:rgba(251, 232, 0, 0.15);padding:5px;border:solid 1px rgba(255, 0, 9, 0.36);">
|
259 |
Please <a href="<?php echo add_query_arg( array('tab' => 'register'), $_SERVER['REQUEST_URI'] ); ?>">Register or Login with miniOrange</a> to enable Social Login and Social Sharing. miniOrange takes care of creating applications for you so that you don't have to worry about creating applications in each social network.
|
260 |
</div>
|
261 |
+
<?php }?> -->
|
262 |
|
263 |
<table>
|
264 |
<tr>
|
265 |
<td colspan="2">
|
266 |
<h3>Social Login
|
267 |
+
<input type="submit" name="submit" value="Save" style="float:right; margin-right:2%; margin-top: -3px;width:100px;"
|
268 |
class="button button-primary button-large" />
|
269 |
</h3>
|
270 |
|
284 |
<td>
|
285 |
<table style="width:100%">
|
286 |
<tr>
|
287 |
+
<td><input type="checkbox" id="facebook_enable" class="app_enable" name="mo_openid_facebook_enable" value="1" onchange="previewLoginIcons();"
|
288 |
<?php checked( get_option('mo_openid_facebook_enable') == 1 );?> /><strong>Facebook</strong>
|
289 |
</td>
|
290 |
<td>
|
291 |
+
<input type="checkbox" id="google_enable" class="app_enable" name="mo_openid_google_enable" value="1" onchange="previewLoginIcons();"
|
292 |
<?php checked( get_option('mo_openid_google_enable') == 1 );?> /><strong>Google</strong>
|
293 |
</td>
|
294 |
<td>
|
295 |
+
<input type="checkbox"
|
296 |
id="vkontakte_enable" class="app_enable" name="mo_openid_vkontakte_enable" value="1" onchange="previewLoginIcons();"
|
297 |
<?php checked( get_option('mo_openid_vkontakte_enable') == 1 );?> /><strong>Vkontakte</strong>
|
298 |
</td>
|
299 |
<td>
|
300 |
+
<input type="checkbox"
|
301 |
id="twitter_enable" class="app_enable" name="mo_openid_twitter_enable" value="1" onchange="previewLoginIcons();"
|
302 |
<?php checked( get_option('mo_openid_twitter_enable') == 1 );?> /><strong>Twitter</strong>
|
303 |
</td>
|
304 |
<td>
|
305 |
+
<input type="checkbox"
|
306 |
id="instagram_enable" class="app_enable" name="mo_openid_instagram_enable" value="1" onchange="previewLoginIcons();"
|
307 |
<?php checked( get_option('mo_openid_instagram_enable') == 1 );?> /><strong>Instagram</strong>
|
308 |
</td>
|
309 |
</tr>
|
310 |
<tr>
|
311 |
<td>
|
312 |
+
<input type="checkbox" id="linkedin_enable" class="app_enable" name="mo_openid_linkedin_enable" value="1" onchange="previewLoginIcons();"
|
313 |
<?php checked( get_option('mo_openid_linkedin_enable') == 1 );?> /><strong>LinkedIn</strong>
|
314 |
</td>
|
315 |
<td>
|
316 |
+
<input type="checkbox"
|
317 |
id="amazon_enable" class="app_enable" name="mo_openid_amazon_enable" value="1" onchange="previewLoginIcons();"
|
318 |
<?php checked( get_option('mo_openid_amazon_enable') == 1 );?> /><strong>Amazon</strong>
|
319 |
</td>
|
320 |
<td>
|
321 |
+
<input type="checkbox"
|
322 |
id="salesforce_enable" class="app_enable" name="mo_openid_salesforce_enable" value="1" onchange="previewLoginIcons();"
|
323 |
<?php checked( get_option('mo_openid_salesforce_enable') == 1 );?> /><strong>Salesforce</strong>
|
324 |
</td>
|
325 |
<td>
|
326 |
+
<input type="checkbox"
|
327 |
id="windowslive_enable" class="app_enable" name="mo_openid_windowslive_enable" value="1" onchange="previewLoginIcons();"
|
328 |
<?php checked( get_option('mo_openid_windowslive_enable') == 1 );?> /><strong>Windows Live</strong>
|
329 |
</td>
|
354 |
|
355 |
<td class="mo_openid_table_td_checkbox">
|
356 |
<input type="radio" name="mo_openid_login_theme" value="circle" onclick="checkLoginButton();moLoginPreview(document.getElementById('mo_login_icon_size').value ,'circle',setLoginCustomTheme(),document.getElementById('mo_login_icon_custom_color').value,document.getElementById('mo_login_icon_space').value,document.getElementById('mo_login_icon_custom_boundary').value)"
|
357 |
+
|
358 |
<?php checked( get_option('mo_openid_login_theme') == 'circle' );?> />Round
|
359 |
|
360 |
<span style="margin-left:106px;">
|
361 |
<input type="radio" id="mo_openid_login_default_radio" name="mo_openid_login_custom_theme" value="default" onclick="checkLoginButton();moLoginPreview(setSizeOfIcons(), setLoginTheme(),'default',document.getElementById('mo_login_icon_custom_color').value,document.getElementById('mo_login_icon_space').value,document.getElementById('mo_login_icon_height').value,document.getElementById('mo_login_icon_custom_boundary').value)"
|
362 |
+
<?php checked( get_option('mo_openid_login_custom_theme') == 'default' );?>/>Default
|
363 |
|
364 |
</span>
|
365 |
|
366 |
<span style="margin-left:111px;">
|
367 |
+
<input style="width:50px" onkeyup="moLoginSpaceValidate(this)" id="mo_login_icon_space" name="mo_login_icon_space" type="text" value="<?php echo get_option('mo_login_icon_space')?>"/>
|
368 |
+
<input id="mo_login_space_plus" type="button" value="+" onmouseup="moLoginPreview(setSizeOfIcons() ,setLoginTheme(),setLoginCustomTheme(),document.getElementById('mo_login_icon_custom_color').value,document.getElementById('mo_login_icon_space').value,document.getElementById('mo_login_icon_custom_boundary').value)"/>
|
369 |
+
<input id="mo_login_space_minus" type="button" value="-" onmouseup="moLoginPreview(setSizeOfIcons() ,setLoginTheme(),setLoginCustomTheme(),document.getElementById('mo_login_icon_custom_color').value,document.getElementById('mo_login_icon_space').value,document.getElementById('mo_login_icon_custom_boundary').value)"/>
|
370 |
</span>
|
371 |
|
372 |
|
373 |
<span id="commontheme" style="margin-left:115px">
|
374 |
+
<input style="width:50px" id="mo_login_icon_size" onkeyup="moLoginSizeValidate(this)" name="mo_login_icon_custom_size" type="text" value="<?php echo get_option('mo_login_icon_custom_size')?>">
|
375 |
+
<input id="mo_login_size_plus" type="button" value="+" onmouseup="moLoginPreview(document.getElementById('mo_login_icon_size').value ,setLoginTheme(),setLoginCustomTheme(),document.getElementById('mo_login_icon_custom_color').value,document.getElementById('mo_login_icon_space').value,document.getElementById('mo_login_icon_custom_boundary').value)">
|
376 |
+
<input id="mo_login_size_minus" type="button" value="-" onmouseup="moLoginPreview(document.getElementById('mo_login_icon_size').value ,setLoginTheme(),setLoginCustomTheme(),document.getElementById('mo_login_icon_custom_color').value,document.getElementById('mo_login_icon_space').value,document.getElementById('mo_login_icon_custom_boundary').value)">
|
377 |
|
378 |
</span>
|
379 |
<span style="margin-left:91px" class="longbuttontheme">Width:
|
380 |
+
<input style="width:50px" id="mo_login_icon_width" onkeyup="moLoginWidthValidate(this)" name="mo_login_icon_custom_width" type="text" value="<?php echo get_option('mo_login_icon_custom_width')?>">
|
381 |
<span style="margin-left:3px;">
|
382 |
|
383 |
+
<input id="mo_login_width_plus" type="button" value="+" onmouseup="moLoginPreview(document.getElementById('mo_login_icon_width').value ,setLoginTheme(),setLoginCustomTheme(),document.getElementById('mo_login_icon_custom_color').value,document.getElementById('mo_login_icon_space').value,document.getElementById('mo_login_icon_height').value,document.getElementById('mo_login_icon_custom_boundary').value)">
|
384 |
+
<input id="mo_login_width_minus" type="button" value="-" onmouseup="moLoginPreview(document.getElementById('mo_login_icon_width').value ,setLoginTheme(),setLoginCustomTheme(),document.getElementById('mo_login_icon_custom_color').value,document.getElementById('mo_login_icon_space').value,document.getElementById('mo_login_icon_height').value,document.getElementById('mo_login_icon_custom_boundary').value)">
|
385 |
|
386 |
</span>
|
387 |
</span>
|
393 |
<tr>
|
394 |
<td class="mo_openid_table_td_checkbox">
|
395 |
<input type="radio" name="mo_openid_login_theme" value="oval" onclick="checkLoginButton();moLoginPreview(document.getElementById('mo_login_icon_size').value,'oval',setLoginCustomTheme(),document.getElementById('mo_login_icon_custom_color').value,document.getElementById('mo_login_icon_space').value,document.getElementById('mo_login_icon_size').value,document.getElementById('mo_login_icon_custom_boundary').value )"
|
396 |
+
|
397 |
<?php checked( get_option('mo_openid_login_theme') == 'oval' );?> />Rounded Edges
|
398 |
|
399 |
<span style="margin-left:50px;">
|
400 |
+
<input type="radio" id="mo_openid_login_custom_radio" name="mo_openid_login_custom_theme" value="custom" onclick="checkLoginButton();moLoginPreview(setSizeOfIcons(), setLoginTheme(),'custom',document.getElementById('mo_login_icon_custom_color').value,document.getElementById('mo_login_icon_space').value,document.getElementById('mo_login_icon_height').value,document.getElementById('mo_login_icon_custom_boundary').value)"
|
401 |
<?php checked( get_option('mo_openid_login_custom_theme') == 'custom' );?> />Custom Background*
|
402 |
|
403 |
</span>
|
405 |
|
406 |
|
407 |
<span style="margin-left:235px" class="longbuttontheme" >Height:
|
408 |
+
<input style="width:50px" id="mo_login_icon_height" onkeyup="moLoginHeightValidate(this)" name="mo_login_icon_custom_height" type="text" value="<?php echo get_option('mo_login_icon_custom_height')?>">
|
409 |
<span style="margin-left:1px;">
|
410 |
|
411 |
+
<input id="mo_login_height_plus" type="button" value="+" onmouseup="moLoginPreview(document.getElementById('mo_login_icon_width').value,setLoginTheme(),setLoginCustomTheme(),document.getElementById('mo_login_icon_custom_color').value,document.getElementById('mo_login_icon_space').value,document.getElementById('mo_login_icon_height').value,document.getElementById('mo_login_icon_custom_boundary').value)">
|
412 |
+
<input id="mo_login_height_minus" type="button" value="-" onmouseup="moLoginPreview(document.getElementById('mo_login_icon_width').value,setLoginTheme(),setLoginCustomTheme(),document.getElementById('mo_login_icon_custom_color').value,document.getElementById('mo_login_icon_space').value,document.getElementById('mo_login_icon_height').value,document.getElementById('mo_login_icon_custom_boundary').value)">
|
413 |
</span>
|
414 |
</span>
|
415 |
</td>
|
418 |
<tr>
|
419 |
<td class="mo_openid_table_td_checkbox">
|
420 |
<input type="radio" name="mo_openid_login_theme" value="square" onclick="checkLoginButton();moLoginPreview(document.getElementById('mo_login_icon_size').value ,'square',setLoginCustomTheme(),document.getElementById('mo_login_icon_custom_color').value,document.getElementById('mo_login_icon_space').value,document.getElementById('mo_login_icon_size').value,document.getElementById('mo_login_icon_custom_boundary').value )"
|
421 |
+
|
422 |
<?php checked( get_option('mo_openid_login_theme') == 'square' );?> />Square
|
423 |
|
424 |
<span style="margin-left:113px;">
|
425 |
+
<input id="mo_login_icon_custom_color" style="width:135px;" name="mo_login_icon_custom_color" class="color" value="<?php echo get_option('mo_login_icon_custom_color')?>" onchange="moLoginPreview(setSizeOfIcons(), setLoginTheme(),'custom',document.getElementById('mo_login_icon_custom_color').value,document.getElementById('mo_login_icon_space').value,document.getElementById('mo_login_icon_custom_boundary').value)">
|
426 |
</span>
|
427 |
|
428 |
|
429 |
<span style="margin-left:228px" class="longbuttontheme">Curve:
|
430 |
<input style="width:50px" id="mo_login_icon_custom_boundary" onkeyup="moLoginBoundaryValidate(this)" name="mo_login_icon_custom_boundary" type="text" value=
|
431 |
+
"<?php echo get_option('mo_login_icon_custom_boundary')?>"/>
|
432 |
<span style="margin-left:6px;">
|
433 |
|
434 |
+
<input id="mo_login_boundary_plus" type="button" value="+" onmouseup="moLoginPreview(document.getElementById('mo_login_icon_width').value,setLoginTheme(),setLoginCustomTheme(),document.getElementById('mo_login_icon_custom_color').value,document.getElementById('mo_login_icon_space').value,document.getElementById('mo_login_icon_height').value,document.getElementById('mo_login_icon_custom_boundary').value)"/>
|
435 |
+
<input id="mo_login_boundary_minus" type="button" value="-" onmouseup="moLoginPreview(document.getElementById('mo_login_icon_width').value,setLoginTheme(),setLoginCustomTheme(),document.getElementById('mo_login_icon_custom_color').value,document.getElementById('mo_login_icon_space').value,document.getElementById('mo_login_icon_height').value,document.getElementById('mo_login_icon_custom_boundary').value)"/>
|
436 |
</span>
|
437 |
</span>
|
438 |
</td>
|
440 |
<tr>
|
441 |
<td class="mo_openid_table_td_checkbox">
|
442 |
<input type="radio" id="iconwithtext" name="mo_openid_login_theme" value="longbutton" onclick="checkLoginButton();moLoginPreview(document.getElementById('mo_login_icon_width').value ,'longbutton',setLoginCustomTheme(),document.getElementById('mo_login_icon_custom_color').value,document.getElementById('mo_login_icon_space').value,document.getElementById('mo_login_icon_height').value,document.getElementById('mo_login_icon_custom_boundary').value)"
|
|
|
443 |
<?php checked( get_option('mo_openid_login_theme') == 'longbutton' );?> />Long Button with Text</td>
|
444 |
</tr>
|
445 |
<tr>
|
533 |
<td>
|
534 |
<b>Select color for customize text:</b>
|
535 |
<span style="margin-left:1px;">
|
536 |
+
<input id="mo_openid_table_textbox" style="width:135px;" name="mo_login_openid_login_widget_customize_textcolor" class="color" value="<?php echo get_option('mo_login_openid_login_widget_customize_textcolor')?>"> </td>
|
537 |
</span>
|
538 |
</td>
|
539 |
</tr>
|
540 |
|
541 |
<tr>
|
542 |
+
<td><b>Enter text to show above login widget :</b>
|
543 |
|
544 |
+
<input class="mo_openid_table_textbox" style="width:50%" type="text" name="mo_openid_login_widget_customize_text" value="<?php echo get_option('mo_openid_login_widget_customize_text'); ?>" /></td>
|
545 |
</tr>
|
546 |
<tr>
|
547 |
<td><b>Enter text to show on your login buttons (If you have</b>
|
548 |
<br/><b> selected shape 4 from 'Customize Login Icons' section):</b>
|
549 |
+
<input class="mo_openid_table_textbox" style="width:50%" type="text" name="mo_openid_login_button_customize_text" value="<?php echo get_option('mo_openid_login_button_customize_text'); ?>" /></td>
|
|
|
550 |
</tr>
|
551 |
|
552 |
<tr>
|
559 |
<tr>
|
560 |
<td><b>Enter text to show before the logout link</b>
|
561 |
<br/>Use ##username## to display current username:
|
562 |
+
<input class="mo_openid_table_textbox" style="width:50%" type="text" name="mo_openid_login_widget_customize_logout_name_text" value="<?php echo get_option('mo_openid_login_widget_customize_logout_name_text'); ?>" /></td>
|
563 |
</tr>
|
564 |
<tr>
|
565 |
<td><b>Enter text to show as logout link:</b>
|
566 |
<input class="mo_openid_table_textbox" style="width:50%" type="text" name="mo_openid_login_widget_customize_logout_text"
|
567 |
+
value="<?php echo get_option('mo_openid_login_widget_customize_logout_text'); ?>" /></td>
|
568 |
</tr>
|
569 |
<td>
|
570 |
<br>
|
579 |
<tr>
|
580 |
<td class="mo_openid_table_td_checkbox">
|
581 |
<input type="checkbox" id="default_login_enable" name="mo_openid_default_login_enable" value="1"
|
582 |
+
<?php checked( get_option('mo_openid_default_login_enable') == 1 );?> />Default Login Form</td>
|
583 |
</tr>
|
584 |
<tr>
|
585 |
<td class="mo_openid_table_td_checkbox">
|
586 |
<input type="checkbox" id="default_register_enable" name="mo_openid_default_register_enable" value="1"
|
587 |
+
<?php checked( get_option('mo_openid_default_register_enable') == 1 );?> />Default Registration Form</td>
|
588 |
</tr>
|
589 |
<tr>
|
590 |
<td class="mo_openid_table_td_checkbox">
|
591 |
<input type="checkbox" id="default_comment_enable" name="mo_openid_default_comment_enable" value="1"
|
592 |
+
<?php checked( get_option('mo_openid_default_comment_enable') == 1 );?> />Comment Form</td>
|
593 |
</tr>
|
594 |
<tr>
|
595 |
<td class="mo_openid_table_td_checkbox">
|
596 |
<input type="checkbox" id="woocommerce_login_form" name="mo_openid_woocommerce_login_form" value="1"
|
597 |
+
<?php checked( get_option('mo_openid_woocommerce_login_form') == 1 );?> />WooCommerce Login Form</td>
|
598 |
</tr>
|
599 |
<tr><td> </td></tr>
|
600 |
<tr>
|
605 |
<tr>
|
606 |
<td>
|
607 |
<input type="radio" id="login_redirect_same_page" name="mo_openid_login_redirect" value="same"
|
608 |
+
<?php checked( get_option('mo_openid_login_redirect') == 'same' );?> />Same page where user logged in
|
609 |
</td>
|
610 |
</tr>
|
611 |
<tr>
|
612 |
<td>
|
613 |
<input type="radio" id="login_redirect_homepage" name="mo_openid_login_redirect" value="homepage"
|
614 |
+
<?php checked( get_option('mo_openid_login_redirect') == 'homepage' );?> />Homepage
|
615 |
</td>
|
616 |
</tr>
|
617 |
<tr>
|
618 |
<td>
|
619 |
<input type="radio" id="login_redirect_dashboard" name="mo_openid_login_redirect" value="dashboard"
|
620 |
+
<?php checked( get_option('mo_openid_login_redirect') == 'dashboard' );?> />Account dashboard
|
621 |
</td>
|
622 |
</tr>
|
623 |
<tr>
|
624 |
<td>
|
625 |
<input type="radio" id="login_redirect_customurl" name="mo_openid_login_redirect" value="custom"
|
626 |
+
<?php checked( get_option('mo_openid_login_redirect') == 'custom' );?> />Custom URL
|
627 |
|
628 |
+
<input type="url" id="login_redirect_url" style="width:50%" name="mo_openid_login_redirect_url" value="<?php echo get_option('mo_openid_login_redirect_url')?>" />
|
629 |
</td>
|
630 |
</tr>
|
631 |
<tr><td> </td></tr>
|
632 |
<tr>
|
633 |
<td>
|
634 |
<input type="checkbox" id="logout_redirection_enable" name="mo_openid_logout_redirection_enable" value="1"
|
635 |
+
<?php checked( get_option('mo_openid_logout_redirection_enable') == 1 );?> />
|
636 |
<b>Enable Logout Redirection</b>
|
637 |
</td>
|
638 |
</tr>
|
639 |
<tr>
|
640 |
<td>
|
641 |
<input type="radio" id="logout_redirect_home" name="mo_openid_logout_redirect" value="homepage"
|
642 |
+
<?php checked( get_option('mo_openid_logout_redirect') == 'homepage' );?> />Home Page
|
643 |
</td>
|
644 |
</tr>
|
645 |
<tr>
|
646 |
<td>
|
647 |
<input type="radio" id="logout_redirect_current" name="mo_openid_logout_redirect" value="currentpage"
|
648 |
+
<?php checked( get_option('mo_openid_logout_redirect') == 'currentpage' );?> />Current Page
|
649 |
</td>
|
650 |
</tr>
|
651 |
<tr>
|
652 |
<td>
|
653 |
<input type="radio" id="logout_redirect_login" name="mo_openid_logout_redirect" value="login"
|
654 |
+
<?php checked( get_option('mo_openid_logout_redirect') == 'login' );?> />Login Page
|
655 |
</td>
|
656 |
</tr>
|
657 |
<tr>
|
658 |
<td>
|
659 |
<input type="radio" id="logout_redirect_customurl" name="mo_openid_logout_redirect" value="custom"
|
660 |
+
<?php checked( get_option('mo_openid_logout_redirect') == 'custom' );?> />Relative URL
|
661 |
|
662 |
<?php echo site_url();?>
|
663 |
+
<input type="text" id="logout_redirect_url" style="width:50%" name="mo_openid_logout_redirect_url" value="<?php echo get_option('mo_openid_logout_redirect_url')?>"/>
|
664 |
</td>
|
665 |
</tr>
|
666 |
<tr>
|
675 |
If Auto-register users is unchecked, users will not be able to register using Social Login. The users who already have an account will be able to login. This setting stands true only when users are registering using Social Login. This will not interfere with users registering through the regular WordPress.
|
676 |
<br/><br/>
|
677 |
<input type="checkbox" id="auto_register_enable" name="mo_openid_auto_register_enable" value="1"
|
678 |
+
<?php checked( get_option('mo_openid_auto_register_enable') == 1 );?> /><b>Auto-register users</b>
|
679 |
<br/><br/>
|
680 |
<b>Registration disabled message: </b>
|
681 |
+
<textarea id="auto_register_disabled_message" style="width:80%" name="mo_openid_register_disabled_message"><?php echo get_option('mo_openid_register_disabled_message')?></textarea>
|
682 |
</td>
|
683 |
</tr>
|
684 |
<?php if(mo_openid_is_customer_registered() && mo_openid_is_customer_valid()) { ?>
|
1036 |
<td>
|
1037 |
<br/>
|
1038 |
<hr>
|
1039 |
+
<h3>Login Settings</h3>
|
1040 |
</td>
|
1041 |
</tr>
|
1042 |
<tr>
|
1043 |
+
<td><input type="checkbox" id="moopenid_social_login_avatar" name="moopenid_social_login_avatar" value="1" <?php checked( get_option('moopenid_social_login_avatar') == 1 );?> /><b>Set Display Picture for User</b>
|
1044 |
</td>
|
1045 |
</tr>
|
1046 |
+
|
1047 |
+
<tr>
|
1048 |
+
<td>
|
1049 |
+
<br/>
|
1050 |
+
<div style=" padding: 10px;padding-top: 5px;padding-left: 10px;background-color:rgba(1, 145, 191, 0.117647);color: black;">
|
1051 |
+
<span style=" color: black;font-weight: bold;float: right;font-size: 22px;font-family: Arial;"></span><h3><input type="checkbox" name="mo_openid_enable_profile_completion" value="1" <?php checked( get_option('mo_openid_enable_profile_completion') == '1' );?>>Profile Completion <p style="color:red">(Disabling this is not recommended)</p></h3>This is a new feature that requires SMTP to be setup.<br>In the case of unavailability of username or email from the social media application, user is asked to input the missing details.</div>
|
1052 |
+
</td>
|
1053 |
+
</tr>
|
1054 |
+
|
1055 |
<?php if(mo_openid_is_customer_valid() && !mo_openid_get_customer_plan('Do It Yourself')) { ?>
|
1056 |
<tr><td> </td></tr>
|
1057 |
<tr>
|
1058 |
+
<td><input type="checkbox" id="moopenid_user_attributes" name="moopenid_user_attributes" value="1" <?php checked( get_option('moopenid_user_attributes') == 1 );?> /><b>Extended User Attributes</b>
|
1059 |
</td>
|
1060 |
</tr>
|
1061 |
<?php } else {
|
1064 |
</table>
|
1065 |
<table class="mo_openid_display_table">
|
1066 |
<tr>
|
1067 |
+
<td><br /><input type="submit" name="submit" value="Save" style="width:100px;" class="button button-primary button-large" />
|
1068 |
</td>
|
1069 |
</tr>
|
1070 |
<tr>
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://miniorange.com
|
|
4 |
Tags: social login, social, facebook, twitter, login
|
5 |
Requires at least: 2.0.2
|
6 |
Tested up to: 4.8
|
7 |
-
Stable tag: 5.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -143,6 +143,12 @@ Please email us at info@miniorange.com. You can also submit your query from the
|
|
143 |
|
144 |
|
145 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
146 |
= 5.1.5 =
|
147 |
* Another Bug fix in Facebook share
|
148 |
|
@@ -373,6 +379,12 @@ Please email us at info@miniorange.com. You can also submit your query from the
|
|
373 |
* First version of Social Login, Social Sharing plugin.
|
374 |
|
375 |
== Upgrade Notice ==
|
|
|
|
|
|
|
|
|
|
|
|
|
376 |
= 5.1.5 =
|
377 |
* Another Bug fix in Facebook share
|
378 |
|
4 |
Tags: social login, social, facebook, twitter, login
|
5 |
Requires at least: 2.0.2
|
6 |
Tested up to: 4.8
|
7 |
+
Stable tag: 5.1.7
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
143 |
|
144 |
|
145 |
== Changelog ==
|
146 |
+
= 5.1.7 =
|
147 |
+
* Added Profile Completion Feature
|
148 |
+
|
149 |
+
= 5.1.6 =
|
150 |
+
* Minor Bug Fix
|
151 |
+
|
152 |
= 5.1.5 =
|
153 |
* Another Bug fix in Facebook share
|
154 |
|
379 |
* First version of Social Login, Social Sharing plugin.
|
380 |
|
381 |
== Upgrade Notice ==
|
382 |
+
= 5.1.7 =
|
383 |
+
* Added Profile Completion Feature
|
384 |
+
|
385 |
+
= 5.1.6 =
|
386 |
+
* Minor Bug Fix
|
387 |
+
|
388 |
= 5.1.5 =
|
389 |
* Another Bug fix in Facebook share
|
390 |
|
uninstall.php
CHANGED
@@ -114,5 +114,9 @@
|
|
114 |
|
115 |
delete_option( 'mo_openid_login_widget_customize_logout_name_text');
|
116 |
delete_option( 'mo_openid_login_widget_customize_logout_text');
|
117 |
-
delete_option( 'mo_login_openid_login_widget_customize_textcolor')
|
|
|
|
|
|
|
|
|
118 |
?>
|
114 |
|
115 |
delete_option( 'mo_openid_login_widget_customize_logout_name_text');
|
116 |
delete_option( 'mo_openid_login_widget_customize_logout_text');
|
117 |
+
delete_option( 'mo_login_openid_login_widget_customize_textcolor');
|
118 |
+
|
119 |
+
delete_option('mo_openid_user_count');
|
120 |
+
delete_option('mo_openid_enable_profile_completion');
|
121 |
+
|
122 |
?>
|