Version Description
- Added WhatsApp share for Desktop site
Download this release
Release Info
Developer | cyberlord92 |
Plugin | Social Login |
Version | 5.2.2 |
Comparing to | |
See all releases |
Code changes from version 5.2.1 to 5.2.2
class-mo-openid-social-share.php
CHANGED
@@ -162,12 +162,20 @@ $url = $http . $_SERVER["HTTP_HOST"] . $_SERVER['REQUEST_URI'];
|
|
162 |
<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>
|
163 |
<?php
|
164 |
}
|
165 |
-
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
|
|
166 |
?>
|
167 |
-
<a rel='nofollow'
|
168 |
<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>
|
169 |
<?php
|
170 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
171 |
}
|
172 |
|
173 |
else if($custom_theme == 'customFont'){
|
@@ -271,12 +279,20 @@ $url = $http . $_SERVER["HTTP_HOST"] . $_SERVER['REQUEST_URI'];
|
|
271 |
<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>
|
272 |
<?php
|
273 |
}
|
274 |
-
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
|
|
275 |
?>
|
276 |
-
<a rel='nofollow'
|
277 |
<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>
|
278 |
<?php
|
279 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
280 |
}
|
281 |
|
282 |
else{
|
@@ -380,12 +396,20 @@ $url = $http . $_SERVER["HTTP_HOST"] . $_SERVER['REQUEST_URI'];
|
|
380 |
</a>
|
381 |
<?php
|
382 |
}
|
383 |
-
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
|
|
384 |
?>
|
385 |
-
<a rel='nofollow'
|
386 |
<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>
|
387 |
<?php
|
388 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
389 |
}
|
390 |
?></p>
|
391 |
</div>
|
@@ -496,12 +520,20 @@ $url = $http . $_SERVER["HTTP_HOST"] . $_SERVER['REQUEST_URI'];
|
|
496 |
<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>
|
497 |
<?php
|
498 |
}
|
499 |
-
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
|
|
500 |
?>
|
501 |
-
<a rel='nofollow'
|
502 |
<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>
|
503 |
<?php
|
504 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
505 |
}
|
506 |
else if($custom_theme == 'customFont'){
|
507 |
if( get_option('mo_openid_facebook_share_enable') ) {
|
@@ -605,12 +637,20 @@ $url = $http . $_SERVER["HTTP_HOST"] . $_SERVER['REQUEST_URI'];
|
|
605 |
<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>
|
606 |
<?php
|
607 |
}
|
608 |
-
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
|
|
609 |
?>
|
610 |
-
<a rel='nofollow'
|
611 |
<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>
|
612 |
<?php
|
613 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
614 |
}
|
615 |
else{
|
616 |
if( get_option('mo_openid_facebook_share_enable') ) {
|
@@ -715,12 +755,19 @@ $url = $http . $_SERVER["HTTP_HOST"] . $_SERVER['REQUEST_URI'];
|
|
715 |
<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>
|
716 |
<?php
|
717 |
}
|
718 |
-
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
|
|
719 |
?>
|
720 |
-
<a rel='nofollow'
|
721 |
<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>
|
722 |
<?php
|
723 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
724 |
}
|
725 |
?></p>
|
726 |
</div>
|
162 |
<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>
|
163 |
<?php
|
164 |
}
|
165 |
+
if( get_option('mo_openid_whatsapp_share_enable') && wp_is_mobile()) {
|
166 |
+
|
167 |
?>
|
168 |
+
<a rel='nofollow' title="Whatsapp" href='whatsapp://send?text=<?php echo $url?>' class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important">
|
169 |
<i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-whatsapp" style="padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
170 |
<?php
|
171 |
}
|
172 |
+
else if( get_option('mo_openid_whatsapp_share_enable') ) {
|
173 |
+
|
174 |
+
?>
|
175 |
+
<a rel='nofollow' title="Whatsapp" href='https://web.whatsapp.com/send?text=<?php echo $url?>' class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important">
|
176 |
+
<i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-whatsapp" style="padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
177 |
+
<?php
|
178 |
+
}
|
179 |
}
|
180 |
|
181 |
else if($custom_theme == 'customFont'){
|
279 |
<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>
|
280 |
<?php
|
281 |
}
|
282 |
+
if( get_option('mo_openid_whatsapp_share_enable')&& wp_is_mobile() ) {
|
283 |
+
|
284 |
?>
|
285 |
+
<a rel='nofollow' title="Whatsapp" href='whatsapp://send?text=<?php echo $url?>' class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important">
|
286 |
<i class=" <?php echo $selected_theme; ?> fa fa-whatsapp" style="padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
287 |
<?php
|
288 |
}
|
289 |
+
else if( get_option('mo_openid_whatsapp_share_enable') ) {
|
290 |
+
|
291 |
+
?>
|
292 |
+
<a rel='nofollow' title="Whatsapp" href='https://web.whatsapp.com/send?text=<?php echo $url?>' class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important">
|
293 |
+
<i class=" <?php echo $selected_theme; ?> fa fa-whatsapp" style="padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize-4; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
294 |
+
<?php
|
295 |
+
}
|
296 |
}
|
297 |
|
298 |
else{
|
396 |
</a>
|
397 |
<?php
|
398 |
}
|
399 |
+
if( get_option('mo_openid_whatsapp_share_enable') && wp_is_mobile()) {
|
400 |
+
|
401 |
?>
|
402 |
+
<a rel='nofollow' title="Whatsapp" href='whatsapp://send?text=<?php echo $url?>' class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important">
|
403 |
<img alt='Whatsapp' style= 'height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/whatsapp.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" data-action="share/whatsapp/share"></a>
|
404 |
<?php
|
405 |
}
|
406 |
+
else if( get_option('mo_openid_whatsapp_share_enable') ) {
|
407 |
+
|
408 |
+
?>
|
409 |
+
<a rel='nofollow'title="Whatsapp" href='https://web.whatsapp.com/send?text=<?php echo $url?>' class="mo-openid-share-link" style="margin-left : <?php echo $spaceBetweenIcons?>px !important">
|
410 |
+
<img alt='Whatsapp' style= 'height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/whatsapp.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>" data-action="share/whatsapp/share"></a>
|
411 |
+
<?php
|
412 |
+
}
|
413 |
}
|
414 |
?></p>
|
415 |
</div>
|
520 |
<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>
|
521 |
<?php
|
522 |
}
|
523 |
+
if( get_option('mo_openid_whatsapp_share_enable')&& wp_is_mobile() ) {
|
524 |
+
|
525 |
?>
|
526 |
+
<a rel='nofollow' title="Whatsapp" href='whatsapp://send?text=<?php echo $url?>' class="mo-openid-share-link">
|
527 |
<i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-whatsapp" style="margin-bottom:<?php echo $space_icons-4?>px!important;padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
528 |
<?php
|
529 |
}
|
530 |
+
else if( get_option('mo_openid_whatsapp_share_enable') ) {
|
531 |
+
|
532 |
+
?>
|
533 |
+
<a rel='nofollow' title="Whatsapp" href='https://web.whatsapp.com/send?text=<?php echo $url?>' class="mo-openid-share-link">
|
534 |
+
<i class="mo-custom-share-icon <?php echo $selected_theme; ?> fa fa-whatsapp" style="margin-bottom:<?php echo $space_icons-4?>px!important;padding-top:8px;text-align:center;color:#ffffff;font-size:<?php echo ($sharingSize-16); ?>px !important;background-color:#<?php echo $custom_color?>;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
535 |
+
<?php
|
536 |
+
}
|
537 |
}
|
538 |
else if($custom_theme == 'customFont'){
|
539 |
if( get_option('mo_openid_facebook_share_enable') ) {
|
637 |
<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>
|
638 |
<?php
|
639 |
}
|
640 |
+
if( get_option('mo_openid_whatsapp_share_enable') && wp_is_mobile()) {
|
641 |
+
|
642 |
?>
|
643 |
+
<a rel='nofollow'title="Whatsapp" href='whatsapp://send?text=<?php echo $url?>' class="mo-openid-share-link">
|
644 |
<i class=" <?php echo $selected_theme; ?> fa fa-whatsapp" style="margin-bottom:<?php echo $space_icons-4?>px !important;padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
645 |
<?php
|
646 |
}
|
647 |
+
else if( get_option('mo_openid_whatsapp_share_enable') ) {
|
648 |
+
|
649 |
+
?>
|
650 |
+
<a rel='nofollow' title="Whatsapp" href='https://web.whatsapp.com/send?text=<?php echo $url?>' class="mo-openid-share-link">
|
651 |
+
<i class=" <?php echo $selected_theme; ?> fa fa-whatsapp" style="margin-bottom:<?php echo $space_icons-4?>px !important;padding-top:4px;text-align:center;color:#<?php echo $fontColor ?> !important;font-size:<?php echo $sharingSize; ?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important"></i></a>
|
652 |
+
<?php
|
653 |
+
}
|
654 |
}
|
655 |
else{
|
656 |
if( get_option('mo_openid_facebook_share_enable') ) {
|
755 |
<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>
|
756 |
<?php
|
757 |
}
|
758 |
+
if( get_option('mo_openid_whatsapp_share_enable') && wp_is_mobile()) {
|
759 |
+
|
760 |
?>
|
761 |
+
<a rel='nofollow' title="Whatsapp" href='whatsapp://send?text=<?php echo $url?>' class="mo-openid-share-link">
|
762 |
<img alt='Whatsapp' style= 'margin-bottom:<?php echo $space_icons-6?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/whatsapp.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>"></a>
|
763 |
<?php
|
764 |
}
|
765 |
+
else if( get_option('mo_openid_whatsapp_share_enable')) {
|
766 |
+
?>
|
767 |
+
<a rel='nofollow' title="Whatsapp" href='https://web.whatsapp.com/send?text=<?php echo $url?>' class="mo-openid-share-link">
|
768 |
+
<img alt='Whatsapp' style= 'margin-bottom:<?php echo $space_icons-6?>px !important;height:<?php echo $sharingSize; ?>px !important;width:<?php echo $sharingSize; ?>px !important;' src="<?php echo plugins_url( 'includes/images/icons/whatsapp.png', __FILE__ )?>" class="mo-openid-app-share-icons <?php echo $selected_theme; ?>"></a>
|
769 |
+
<?php
|
770 |
+
}
|
771 |
}
|
772 |
?></p>
|
773 |
</div>
|
class-mo-openid-sso-shortcode-buttons.php
CHANGED
@@ -116,7 +116,15 @@ function mo_openid_share_shortcode( $atts = '', $title = '', $excerpt = '' ) {
|
|
116 |
$html .= "<a rel='nofollow' title='Print this page' onclick='javascript:window.print();' class='mo-openid-share-link' style='margin-left : " .($spaceBetweenIcons) . "px !important'><i class='mo-custom-share-icon " .$selected_theme. " fa fa-print' style='padding-top:8px;text-align:center;color:#ffffff;font-size:" .($sharingSize-16). "px !important;background-color:#" .$custom_color. ";height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
117 |
}
|
118 |
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
119 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
120 |
}
|
121 |
|
122 |
}
|
@@ -124,6 +132,7 @@ function mo_openid_share_shortcode( $atts = '', $title = '', $excerpt = '' ) {
|
|
124 |
else if($custom_theme == 'customFont') {
|
125 |
|
126 |
if( get_option('mo_openid_facebook_share_enable') ) {
|
|
|
127 |
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href='.$url;
|
128 |
$html .= "<a rel='nofollow' title='Facebook' onclick='popupCenter(". '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " .($spaceBetweenIcons-6) . "px !important'><i class=' " .$selected_theme. " fa fa-facebook' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" .$sharingSize. "px !important;height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
129 |
}
|
@@ -185,7 +194,13 @@ function mo_openid_share_shortcode( $atts = '', $title = '', $excerpt = '' ) {
|
|
185 |
$html .= "<a rel='nofollow' title='Print this page' onclick='javascript:window.print();' class='mo-openid-share-link' style='margin-left : " .($spaceBetweenIcons) . "px !important'><i class=' " .$selected_theme. " fa fa-print' style='padding-top:4px;text-align:center;color:" .$fontColor . ";font-size:" .$sharingSize. "px !important;height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
186 |
}
|
187 |
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
188 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
189 |
}
|
190 |
|
191 |
|
@@ -194,6 +209,7 @@ function mo_openid_share_shortcode( $atts = '', $title = '', $excerpt = '' ) {
|
|
194 |
else {
|
195 |
|
196 |
if( get_option('mo_openid_facebook_share_enable') ) {
|
|
|
197 |
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href='.$url;
|
198 |
$html .= "<a rel='nofollow' title='Facebook' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 400);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><img alt='Facebook' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url( 'includes/images/icons/facebook.png', __FILE__ ) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
199 |
}
|
@@ -256,9 +272,18 @@ function mo_openid_share_shortcode( $atts = '', $title = '', $excerpt = '' ) {
|
|
256 |
$html .= "<a rel='nofollow' title='Print this page' onclick='javascript:window.print();' class='mo-openid-share-link' style='margin-left : " .($spaceBetweenIcons) . "px !important'><img alt='Print this page' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url( 'includes/images/icons/print.png', __FILE__ ) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
257 |
}
|
258 |
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
259 |
-
|
|
|
|
|
260 |
<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>';
|
|
|
|
|
|
|
|
|
|
|
|
|
261 |
}
|
|
|
262 |
|
263 |
|
264 |
}
|
@@ -404,7 +429,13 @@ function mo_openid_vertical_share_shortcode( $atts = '', $title = '', $excerpt =
|
|
404 |
$html .= "<a rel='nofollow' title='Print this page' onclick='javascript:window.print();' class='mo-openid-share-link' ><i class='mo-custom-share-icon " .$selected_theme. " fa fa-print' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" .($sharingSize-16). "px !important;background-color:#" .$custom_color. ";height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
405 |
}
|
406 |
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
407 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
408 |
}
|
409 |
|
410 |
|
@@ -474,7 +505,13 @@ function mo_openid_vertical_share_shortcode( $atts = '', $title = '', $excerpt =
|
|
474 |
$html .= "<a rel='nofollow' title='Print this page' onclick='javascript:window.print();' class='mo-openid-share-link' ><i class='fa fa-print' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:4px;text-align:center;color:" .$fontColor . ";font-size:" .$sharingSize. "px !important;height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
475 |
}
|
476 |
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
477 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
478 |
}
|
479 |
|
480 |
|
@@ -543,7 +580,12 @@ function mo_openid_vertical_share_shortcode( $atts = '', $title = '', $excerpt =
|
|
543 |
$html .= "<a rel='nofollow' title='Print this page' onclick='javascript:window.print();' class='mo-openid-share-link'><img alt='Print this page' style= 'margin-bottom : " . ($spaceBetweenIcons-6) . "px !important; height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url( 'includes/images/icons/print.png', __FILE__ ) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
544 |
}
|
545 |
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
546 |
-
|
|
|
|
|
|
|
|
|
|
|
547 |
}
|
548 |
|
549 |
}
|
116 |
$html .= "<a rel='nofollow' title='Print this page' onclick='javascript:window.print();' class='mo-openid-share-link' style='margin-left : " .($spaceBetweenIcons) . "px !important'><i class='mo-custom-share-icon " .$selected_theme. " fa fa-print' style='padding-top:8px;text-align:center;color:#ffffff;font-size:" .($sharingSize-16). "px !important;background-color:#" .$custom_color. ";height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
117 |
}
|
118 |
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
119 |
+
|
120 |
+
if(!wp_is_mobile()){
|
121 |
+
$html .= '<a rel="nofollow" title="Whatsapp" href="https://web.whatsapp.com/send?text=' . $url .'" class="mo-openid-share-link" style="margin-left : '.($spaceBetweenIcons) . 'px !important;border-bottom:0px !important;"><i class="mo-custom-share-icon ' .$selected_theme. ' fa fa-whatsapp" style="padding-top:8px;text-align:center;color:#ffffff;font-size: '.($sharingSize-16). 'px !important;background-color:#' .$custom_color. ';height: '.$sharingSize. 'px !important;width:' .$sharingSize. 'px !important;"></i></a>';
|
122 |
+
}
|
123 |
+
else{
|
124 |
+
$html .= '<a rel="nofollow" title="Whatsapp" href="whatsapp://send?text=' . $url .'" class="mo-openid-share-link" style="margin-left : '.($spaceBetweenIcons) . 'px !important;border-bottom:0px !important;"><i class="mo-custom-share-icon ' .$selected_theme. ' fa fa-whatsapp" style="padding-top:8px;text-align:center;color:#ffffff;font-size: '.($sharingSize-16). 'px !important;background-color:#' .$custom_color. ';height: '.$sharingSize. 'px !important;width:' .$sharingSize. 'px !important;"></i></a>';
|
125 |
+
|
126 |
+
}
|
127 |
+
|
128 |
}
|
129 |
|
130 |
}
|
132 |
else if($custom_theme == 'customFont') {
|
133 |
|
134 |
if( get_option('mo_openid_facebook_share_enable') ) {
|
135 |
+
|
136 |
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href='.$url;
|
137 |
$html .= "<a rel='nofollow' title='Facebook' onclick='popupCenter(". '"' . $link . '"' . ", 800, 500);' class='mo-openid-share-link' style='margin-left : " .($spaceBetweenIcons-6) . "px !important'><i class=' " .$selected_theme. " fa fa-facebook' style='padding-top:4px;text-align:center;color:" . $fontColor . ";font-size:" .$sharingSize. "px !important;height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
138 |
}
|
194 |
$html .= "<a rel='nofollow' title='Print this page' onclick='javascript:window.print();' class='mo-openid-share-link' style='margin-left : " .($spaceBetweenIcons) . "px !important'><i class=' " .$selected_theme. " fa fa-print' style='padding-top:4px;text-align:center;color:" .$fontColor . ";font-size:" .$sharingSize. "px !important;height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
195 |
}
|
196 |
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
197 |
+
|
198 |
+
if(wp_is_mobile()){
|
199 |
+
$html .= '<a rel="nofollow" title="Whatsapp" href="whatsapp://send?text=' . $url . '" class="mo-openid-share-link" style="margin-left : '.($spaceBetweenIcons-6) . 'px !important;border-bottom:0px !important;"><i class=" '.$selected_theme. ' fa fa-whatsapp" style="padding-top:4px;text-align:center;color:'.$fontColor . ';font-size:' .$sharingSize. 'px !important;height:' .$sharingSize. 'px !important;width:' .$sharingSize. 'px !important;"></i></a>';
|
200 |
+
}
|
201 |
+
else{
|
202 |
+
$html .= '<a rel="nofollow" title="Whatsapp" href="https://web.whatsapp.com/send?text=' . $url . '" class="mo-openid-share-link" style="margin-left : '.($spaceBetweenIcons-6) . 'px !important;border-bottom:0px !important;"><i class=" '.$selected_theme. ' fa fa-whatsapp" style="padding-top:4px;text-align:center;color:'.$fontColor . ';font-size:' .$sharingSize. 'px !important;height:' .$sharingSize. 'px !important;width:' .$sharingSize. 'px !important;"></i></a>';
|
203 |
+
}
|
204 |
}
|
205 |
|
206 |
|
209 |
else {
|
210 |
|
211 |
if( get_option('mo_openid_facebook_share_enable') ) {
|
212 |
+
|
213 |
$link = 'https://www.facebook.com/dialog/share?app_id=766555246789034&display=popup&href='.$url;
|
214 |
$html .= "<a rel='nofollow' title='Facebook' onclick='popupCenter(" . '"' . $link . '"' . ", 800, 400);' class='mo-openid-share-link' style='margin-left : " . ($spaceBetweenIcons) . "px !important'><img alt='Facebook' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url( 'includes/images/icons/facebook.png', __FILE__ ) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
215 |
}
|
272 |
$html .= "<a rel='nofollow' title='Print this page' onclick='javascript:window.print();' class='mo-openid-share-link' style='margin-left : " .($spaceBetweenIcons) . "px !important'><img alt='Print this page' style= 'height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url( 'includes/images/icons/print.png', __FILE__ ) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
273 |
}
|
274 |
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
275 |
+
|
276 |
+
if (wp_is_mobile()){
|
277 |
+
$html .= '<a rel="nofollow" title="Whatsapp" href="whatsapp://send?text=' . $url . '" class="mo-openid-share-link" style="margin-left : '. ($spaceBetweenIcons) . 'px !important; border-bottom:0px !important;">
|
278 |
<img alt="Whatsapp" style= "height: '. $sharingSize . 'px !important;width: '. $sharingSize . 'px !important;" src=" '. plugins_url( "includes/images/icons/whatsapp.png", __FILE__ ) . '" class="mo-openid-app-share-icons '. $selected_theme . '" ></a>';
|
279 |
+
}
|
280 |
+
else{
|
281 |
+
$html .= '<a rel="nofollow" title="Whatsapp" href="https://web.whatsapp.com/send?text=' . $url . '" class="mo-openid-share-link" style="margin-left : '. ($spaceBetweenIcons) . 'px !important; border-bottom:0px !important;">
|
282 |
+
<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>';
|
283 |
+
}
|
284 |
+
|
285 |
}
|
286 |
+
|
287 |
|
288 |
|
289 |
}
|
429 |
$html .= "<a rel='nofollow' title='Print this page' onclick='javascript:window.print();' class='mo-openid-share-link' ><i class='mo-custom-share-icon " .$selected_theme. " fa fa-print' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" .($sharingSize-16). "px !important;background-color:#" .$custom_color. ";height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
430 |
}
|
431 |
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
432 |
+
|
433 |
+
if(wp_is_mobile()){
|
434 |
+
$html .= '<a rel="nofollow" title="Whatsapp" href="whatsapp://send?text=' . $url ."\" class='mo-openid-share-link' ><i class='mo-custom-share-icon " .$selected_theme. " fa fa-whatsapp' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" .($sharingSize-16). "px !important;background-color:#" .$custom_color. ";height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
435 |
+
}
|
436 |
+
else{
|
437 |
+
$html .= '<a rel="nofollow" title="Whatsapp" href="https://web.whatsapp.com/send?text=' . $url ."\" class='mo-openid-share-link' ><i class='mo-custom-share-icon " .$selected_theme. " fa fa-whatsapp' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:8px;text-align:center;color:#ffffff;font-size:" .($sharingSize-16). "px !important;background-color:#" .$custom_color. ";height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
438 |
+
}
|
439 |
}
|
440 |
|
441 |
|
505 |
$html .= "<a rel='nofollow' title='Print this page' onclick='javascript:window.print();' class='mo-openid-share-link' ><i class='fa fa-print' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:4px;text-align:center;color:" .$fontColor . ";font-size:" .$sharingSize. "px !important;height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
506 |
}
|
507 |
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
508 |
+
|
509 |
+
if(wp_is_mobile()){
|
510 |
+
$html .= '<a rel="nofollow" title="Whatsapp" href="whatsapp://send?text=' . $url ."\" class='mo-openid-share-link' ><i class='fa fa-whatsapp' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:4px;text-align:center;color:" .$fontColor . ";font-size:" .$sharingSize. "px !important;height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
511 |
+
}
|
512 |
+
else{
|
513 |
+
$html .= '<a rel="nofollow" title="Whatsapp" href="https://web.whatsapp.com/send?text=' . $url ."\" class='mo-openid-share-link' ><i class='fa fa-whatsapp' style='margin-bottom : " . ($spaceBetweenIcons-4) . "px !important;padding-top:4px;text-align:center;color:" .$fontColor . ";font-size:" .$sharingSize. "px !important;height:" .$sharingSize. "px !important;width:" .$sharingSize. "px !important;'></i></a>";
|
514 |
+
}
|
515 |
}
|
516 |
|
517 |
|
580 |
$html .= "<a rel='nofollow' title='Print this page' onclick='javascript:window.print();' class='mo-openid-share-link'><img alt='Print this page' style= 'margin-bottom : " . ($spaceBetweenIcons-6) . "px !important; height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url( 'includes/images/icons/print.png', __FILE__ ) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
581 |
}
|
582 |
if( get_option('mo_openid_whatsapp_share_enable') ) {
|
583 |
+
if(wp_is_mobile()){
|
584 |
+
$html .= '<a rel="nofollow" title="Whatsapp" href="whatsapp://send?text=' . $url ."\" class='mo-openid-share-link'><img alt='Whatsapp' style= 'margin-bottom : " . ($spaceBetweenIcons-6) . "px !important;height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url( 'includes/images/icons/whatsapp.png', __FILE__ ) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
585 |
+
}
|
586 |
+
else{
|
587 |
+
$html .= '<a rel="nofollow" title="Whatsapp" href="https://web.whatsapp.com/send?text=' . $url ."\" class='mo-openid-share-link'><img alt='Whatsapp' style= 'margin-bottom : " . ($spaceBetweenIcons-6) . "px !important;height: " . $sharingSize . "px !important;width: " . $sharingSize . "px !important;' src='" . plugins_url( 'includes/images/icons/whatsapp.png', __FILE__ ) . "' class='mo-openid-app-share-icons " . $selected_theme . "' ></a>";
|
588 |
+
}
|
589 |
}
|
590 |
|
591 |
}
|
includes/css/mo_openid_style.css
CHANGED
@@ -278,16 +278,6 @@ text-decoration:none !important;
|
|
278 |
.mo_openid_license_select_option option {
|
279 |
text-align:center;
|
280 |
}
|
281 |
-
|
282 |
-
#mobileshow {
|
283 |
-
display:none;
|
284 |
-
}
|
285 |
-
|
286 |
-
@media screen and (max-width: 600px) {
|
287 |
-
#mobileshow {
|
288 |
-
display:block;
|
289 |
-
}
|
290 |
-
}
|
291 |
.mo-openid-app-icons>a{
|
292 |
box-shadow: inset 0 -1px 0 rgba(15, 15, 15, 0) !important;
|
293 |
}
|
278 |
.mo_openid_license_select_option option {
|
279 |
text-align:center;
|
280 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
281 |
.mo-openid-app-icons>a{
|
282 |
box-shadow: inset 0 -1px 0 rgba(15, 15, 15, 0) !important;
|
283 |
}
|
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.2.
|
8 |
* Author: miniOrange
|
9 |
* Author URI: http://miniorange.com
|
10 |
* License: GPL2
|
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.2.2
|
8 |
* Author: miniOrange
|
9 |
* Author URI: http://miniorange.com
|
10 |
* License: GPL2
|
miniorange_openid_sso_settings_page.php
CHANGED
@@ -1419,7 +1419,6 @@ function mo_openid_other_settings(){
|
|
1419 |
<strong>Whatsapp</strong>
|
1420 |
</td>
|
1421 |
</tr>
|
1422 |
-
<tr><td>(Only visible on Mobile Phones)</td></tr>
|
1423 |
</table>
|
1424 |
</td>
|
1425 |
</tr>
|
1419 |
<strong>Whatsapp</strong>
|
1420 |
</td>
|
1421 |
</tr>
|
|
|
1422 |
</table>
|
1423 |
</td>
|
1424 |
</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.9
|
7 |
-
Stable tag: 5.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -144,6 +144,9 @@ Please email us at info@miniorange.com. You can also submit your query from the
|
|
144 |
|
145 |
|
146 |
== Changelog ==
|
|
|
|
|
|
|
147 |
= 5.2.1 =
|
148 |
* Fixed Issue related to Custom User Role with Admin capabilities
|
149 |
|
@@ -395,6 +398,9 @@ Please email us at info@miniorange.com. You can also submit your query from the
|
|
395 |
* First version of Social Login, Social Sharing plugin.
|
396 |
|
397 |
== Upgrade Notice ==
|
|
|
|
|
|
|
398 |
= 5.2.1 =
|
399 |
* Fixed Issue related to Custom User Role with Admin capabilities
|
400 |
|
4 |
Tags: social login, social, facebook, twitter, login
|
5 |
Requires at least: 2.0.2
|
6 |
Tested up to: 4.9
|
7 |
+
Stable tag: 5.2.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
144 |
|
145 |
|
146 |
== Changelog ==
|
147 |
+
= 5.2.2 =
|
148 |
+
* Added WhatsApp share for Desktop site
|
149 |
+
|
150 |
= 5.2.1 =
|
151 |
* Fixed Issue related to Custom User Role with Admin capabilities
|
152 |
|
398 |
* First version of Social Login, Social Sharing plugin.
|
399 |
|
400 |
== Upgrade Notice ==
|
401 |
+
= 5.2.2 =
|
402 |
+
* Added WhatsApp share for Desktop site
|
403 |
+
|
404 |
= 5.2.1 =
|
405 |
* Fixed Issue related to Custom User Role with Admin capabilities
|
406 |
|