Version Description
- Please upgrade immediately. Releasing New features, few bugfixes and improvements.
=
Download this release
Release Info
Developer | hiddenpearls |
Plugin | Simple Social Media Share Buttons – Social Sharing for Everyone |
Version | 2.0.12 |
Comparing to | |
See all releases |
Code changes from version 2.0.11 to 2.0.12
- assets/css/admin.css +52 -0
- assets/css/front.css +1 -1
- assets/js/admin.js +10 -0
- assets/js/front.js +111 -110
- classes/ssb-settings.php +7 -2
- classes/ssb-widget.php +20 -1
- inc/ssb-widget-fields.php +20 -0
- inc/ssb-widget-front.php +3 -0
- inc/utils.php +24 -4
- readme.txt +9 -3
- simple-social-buttons.php +84 -52
assets/css/admin.css
CHANGED
@@ -1541,6 +1541,8 @@ div.inside .simplesocial-form-section ul.options li {
|
|
1541 |
box-shadow: none;
|
1542 |
resize: none;
|
1543 |
height: 80px;
|
|
|
|
|
1544 |
}
|
1545 |
|
1546 |
.simplesocial-input textarea:focus ~ .highlight {
|
@@ -1927,3 +1929,53 @@ div.inside .simplesocial-form-section ul.options li {
|
|
1927 |
/*font-weight: bold;*/
|
1928 |
/*}*/
|
1929 |
/*End Select Settings social follow*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1541 |
box-shadow: none;
|
1542 |
resize: none;
|
1543 |
height: 80px;
|
1544 |
+
padding: 0;
|
1545 |
+
display: block;
|
1546 |
}
|
1547 |
|
1548 |
.simplesocial-input textarea:focus ~ .highlight {
|
1929 |
/*font-weight: bold;*/
|
1930 |
/*}*/
|
1931 |
/*End Select Settings social follow*/
|
1932 |
+
|
1933 |
+
|
1934 |
+
/*=============================================
|
1935 |
+
= Code RTL Share Button =
|
1936 |
+
=============================================*/
|
1937 |
+
|
1938 |
+
html[dir="rtl"] .simplesocial-form-section h5{
|
1939 |
+
float: right;
|
1940 |
+
}
|
1941 |
+
html[dir="rtl"] .simplesocial-form-section .select{
|
1942 |
+
float: right;
|
1943 |
+
}
|
1944 |
+
html[dir="rtl"] .ssb_right_sidebar{
|
1945 |
+
float: left;
|
1946 |
+
}
|
1947 |
+
html[dir="rtl"] .ssb_settings_container{
|
1948 |
+
float: right;
|
1949 |
+
}
|
1950 |
+
html[dir="rtl"] .ssb_right_sidebar .ssb_social_links li a{
|
1951 |
+
right: auto;
|
1952 |
+
padding-right: 35px;
|
1953 |
+
}
|
1954 |
+
html[dir="rtl"] .ssb_right_sidebar input[type=url],html[dir="rtl"] .ssb_right_sidebar input[type=email]{
|
1955 |
+
text-align: right;
|
1956 |
+
}
|
1957 |
+
html[dir="rtl"] .selection-color{
|
1958 |
+
float: right;
|
1959 |
+
}
|
1960 |
+
html[dir="rtl"] .simplesocial-form-section .styledSelect:after{
|
1961 |
+
right: auto;
|
1962 |
+
left: 14px;
|
1963 |
+
}
|
1964 |
+
html[dir="rtl"] .simplesocial-inline-form-section{
|
1965 |
+
direction: ltr;
|
1966 |
+
display: -webkit-box;
|
1967 |
+
display: -ms-flexbox;
|
1968 |
+
display: flex;
|
1969 |
+
-webkit-box-orient: horizontal;
|
1970 |
+
-webkit-box-direction: reverse;
|
1971 |
+
-ms-flex-direction: row-reverse;
|
1972 |
+
flex-direction: row-reverse;
|
1973 |
+
}
|
1974 |
+
html[dir="rtl"] .simplesocial-input{
|
1975 |
+
float: right;
|
1976 |
+
}
|
1977 |
+
html[dir="rtl"] .simplesocial-inline-form-section label{
|
1978 |
+
margin-right: 0;
|
1979 |
+
margin-left: 40px;
|
1980 |
+
}
|
1981 |
+
/*===== End of Code RTL Share Button ======*/
|
assets/css/front.css
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
font-weight: normal;
|
9 |
font-style: normal;
|
10 |
}
|
11 |
-
div.simplesocialbuttons { height: auto; margin: 5px auto 5px -5px; text-align: left; clear: left; font-size: 0; }
|
12 |
div.simplesocialbutton { float: left; }
|
13 |
div.ssb-button-googleplus { width: 100px; }
|
14 |
div.ssb-button-fblike { width: 140px; line-height: 1; }
|
8 |
font-weight: normal;
|
9 |
font-style: normal;
|
10 |
}
|
11 |
+
div.simplesocialbuttons { height: auto; margin: 5px auto 5px -5px; text-align: left; clear: left; font-size: 0; direction: ltr;}
|
12 |
div.simplesocialbutton { float: left; }
|
13 |
div.ssb-button-googleplus { width: 100px; }
|
14 |
div.ssb-button-fblike { width: 140px; line-height: 1; }
|
assets/js/admin.js
CHANGED
@@ -277,6 +277,16 @@
|
|
277 |
}
|
278 |
});
|
279 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
280 |
//end widget js;
|
281 |
|
282 |
|
277 |
}
|
278 |
});
|
279 |
|
280 |
+
$(document).on('click', '.show_whatsapp_check', function () {
|
281 |
+
var widget_content = $(this).parent().parent();
|
282 |
+
if ($(this).is(':checked')) {
|
283 |
+
$(widget_content).find('.show_whatsapp').css('display', 'block');
|
284 |
+
} else {
|
285 |
+
$(widget_content).find('.show_whatsapp').css('display', 'none');
|
286 |
+
}
|
287 |
+
|
288 |
+
});
|
289 |
+
|
290 |
//end widget js;
|
291 |
|
292 |
|
assets/js/front.js
CHANGED
@@ -1,115 +1,116 @@
|
|
1 |
-
(function($) {
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
|
29 |
})(jQuery);
|
30 |
// IIFE - Immediately Invoked Function Expression
|
31 |
-
(function($, window, document) {
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
|
115 |
}(window.jQuery, window, document));
|
|
1 |
+
(function ($) {
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Copyright 2012, Digital Fusion
|
5 |
+
* Licensed under the MIT license.
|
6 |
+
* http://teamdf.com/jquery-plugins/license/
|
7 |
+
*
|
8 |
+
* @author Sam Sehnert
|
9 |
+
* @desc A small plugin that checks whether elements are within
|
10 |
+
* the user visible viewport of a web browser.
|
11 |
+
* only accounts for vertical position, not horizontal.
|
12 |
+
*/
|
13 |
+
|
14 |
+
$.fn.visible = function (partial) {
|
15 |
+
|
16 |
+
var $t = $(this),
|
17 |
+
$w = $(window),
|
18 |
+
viewTop = $w.scrollTop(),
|
19 |
+
viewBottom = viewTop + $w.height(),
|
20 |
+
_top = $t.offset().top,
|
21 |
+
_bottom = _top + $t.height(),
|
22 |
+
compareTop = partial === true ? _bottom : _top,
|
23 |
+
compareBottom = partial === true ? _top : _bottom;
|
24 |
+
|
25 |
+
return ((compareBottom <= viewBottom) && (compareTop >= viewTop));
|
26 |
+
|
27 |
+
};
|
28 |
|
29 |
})(jQuery);
|
30 |
// IIFE - Immediately Invoked Function Expression
|
31 |
+
(function ($, window, document) {
|
32 |
+
|
33 |
+
// Listen for the jQuery ready event on the document
|
34 |
+
$(function () {
|
35 |
+
|
36 |
+
// The DOM is ready!
|
37 |
+
if ($('div[class*="simplesocialbuttons-float"]').length > 0) {
|
38 |
+
$('body').addClass('body_has_simplesocialbuttons');
|
39 |
+
}
|
40 |
+
|
41 |
+
});
|
42 |
+
|
43 |
+
$(window).load(function () {
|
44 |
+
var allMods = $(".simplesocialbuttons_inline");
|
45 |
+
|
46 |
+
// Already visible modules
|
47 |
+
allMods.each(function (i, el) {
|
48 |
+
var el = $(el);
|
49 |
+
if (el.visible(true)) {
|
50 |
+
el.addClass('simplesocialbuttons-inline-in');
|
51 |
+
}
|
52 |
+
});
|
53 |
+
|
54 |
+
$(window).scroll(function (event) {
|
55 |
+
|
56 |
+
allMods.each(function (i, el) {
|
57 |
+
var el = $(el);
|
58 |
+
if (el.visible(true)) {
|
59 |
+
el.addClass('simplesocialbuttons-inline-in');
|
60 |
+
}
|
61 |
+
});
|
62 |
+
|
63 |
+
});
|
64 |
+
// $('.simplesocialbuttons_inline').addClass('simplesocialbuttons-inline-in');
|
65 |
+
var sidebarwidth = $('div[class*="simplesocialbuttons-float"]>a:first-child').outerWidth(true);
|
66 |
+
$('div[class*="simplesocialbuttons-float"]').css('width', sidebarwidth + 'px');
|
67 |
+
// var sidebaroffset = $(window).width() - 1100;
|
68 |
+
// if($('.simplesocialbuttons-float-left-post').length>0){
|
69 |
+
// $('.simplesocialbuttons-float-left-post').css('left', sidebaroffset/2+'px');
|
70 |
+
// $('.simplesocialbuttons-float-left-post').removeClass('float-touched-sidebar');
|
71 |
+
// }
|
72 |
+
// if($('.simplesocialbuttons-float-right-post').length>0){
|
73 |
+
// $('.simplesocialbuttons-float-right-post').css('right', sidebaroffset/2+'px');
|
74 |
+
// $('.simplesocialbuttons-float-left-post').removeClass('float-touched-sidebar');
|
75 |
+
// $('.simplesocialbuttons-float-right-post').removeClass('float-touched-sidebar');
|
76 |
+
// }
|
77 |
+
// if(sidebaroffset/2 <= 50){
|
78 |
+
// $('.simplesocialbuttons-float-left-post').addClass('float-touched-sidebar');
|
79 |
+
// $('.simplesocialbuttons-float-right-post').addClass('float-touched-sidebar');
|
80 |
+
// }
|
81 |
+
});
|
82 |
+
// $(window).on('resize',function(){
|
83 |
+
// var sidebaroffset = $(window).width() - 1100;
|
84 |
+
// if($('.simplesocialbuttons-float-left-post').length>0){
|
85 |
+
// $('.simplesocialbuttons-float-left-post').css('left', sidebaroffset/2+'px');
|
86 |
+
// $('.simplesocialbuttons-float-left-post').removeClass('float-touched-sidebar');
|
87 |
+
// }
|
88 |
+
// if($('.simplesocialbuttons-float-right-post').length>0){
|
89 |
+
// $('.simplesocialbuttons-float-right-post').css('right', sidebaroffset/2+'px');
|
90 |
+
// $('.simplesocialbuttons-float-left-post').removeClass('float-touched-sidebar');
|
91 |
+
// }
|
92 |
+
// if(sidebaroffset/2 <= 50){
|
93 |
+
// $('.simplesocialbuttons-float-left-post').addClass('float-touched-sidebar');
|
94 |
+
// }
|
95 |
+
// });
|
96 |
+
|
97 |
+
|
98 |
+
// $(window).on('scroll', function(){
|
99 |
+
// if($('.simplesocialbuttons-float-left-post').length>0){
|
100 |
+
// if($(window).scrollTop() >= 500){
|
101 |
+
// $('.simplesocialbuttons-float-left-post').addClass('float-in')
|
102 |
+
// }else{
|
103 |
+
// $('.simplesocialbuttons-float-left-post').removeClass('float-in')
|
104 |
+
// }
|
105 |
+
// }
|
106 |
+
// if($('.simplesocialbuttons-float-right-post').length>0){
|
107 |
+
// if($(window).scrollTop() >= 500){
|
108 |
+
// $('.simplesocialbuttons-float-right-post').addClass('float-in')
|
109 |
+
// }else{
|
110 |
+
// $('.simplesocialbuttons-float-right-post').removeClass('float-in')
|
111 |
+
// }
|
112 |
+
// }
|
113 |
+
// })
|
114 |
|
115 |
}(window.jQuery, window, document));
|
116 |
+
|
classes/ssb-settings.php
CHANGED
@@ -321,11 +321,11 @@ class Ssb_Settings {
|
|
321 |
'priority' => '99',
|
322 |
),
|
323 |
array(
|
324 |
-
'name'
|
325 |
'type' => 'ssb_go_pro',
|
326 |
'label' => __( 'Want to style the Inline Social buttons matches your theme colors?', 'simple-social-buttons' ),
|
327 |
'desc' => __( 'By upgrading to Simple Social Buttons Pro, you get access to Styling Social buttons of your own choice that matches with your website color schemes. These social buttons will help in driving more engagement and traffic to your site. Some of the Pro features include: Show Social media buttons on Images/Photos, Social Popups on exit/intent, Social Flyin slides and so much more!', 'simple-social-buttons' ),
|
328 |
-
'link'
|
329 |
),
|
330 |
);
|
331 |
|
@@ -401,6 +401,11 @@ class Ssb_Settings {
|
|
401 |
'label' => __( 'Twitter @username:', 'simple-social-buttons' ),
|
402 |
'sanitize_callback' => 'sanitize_text_field',
|
403 |
),
|
|
|
|
|
|
|
|
|
|
|
404 |
),
|
405 |
);
|
406 |
|
321 |
'priority' => '99',
|
322 |
),
|
323 |
array(
|
324 |
+
'name' => 'go_pro',
|
325 |
'type' => 'ssb_go_pro',
|
326 |
'label' => __( 'Want to style the Inline Social buttons matches your theme colors?', 'simple-social-buttons' ),
|
327 |
'desc' => __( 'By upgrading to Simple Social Buttons Pro, you get access to Styling Social buttons of your own choice that matches with your website color schemes. These social buttons will help in driving more engagement and traffic to your site. Some of the Pro features include: Show Social media buttons on Images/Photos, Social Popups on exit/intent, Social Flyin slides and so much more!', 'simple-social-buttons' ),
|
328 |
+
'link' => 'http://www.WPBrigade.com/wordpress/plugins/simple-social-buttons-pro/?utm_source=simple-social-buttons-lite&utm_medium=settings-inline&utm_campaign=pro-upgrade'
|
329 |
),
|
330 |
);
|
331 |
|
401 |
'label' => __( 'Twitter @username:', 'simple-social-buttons' ),
|
402 |
'sanitize_callback' => 'sanitize_text_field',
|
403 |
),
|
404 |
+
array(
|
405 |
+
'name' => 'http_https_resolve',
|
406 |
+
'type' => 'ssb_checkbox',
|
407 |
+
'label' => __( 'Http/Https counts resolve:', 'simple-social-buttons' ),
|
408 |
+
),
|
409 |
),
|
410 |
);
|
411 |
|
classes/ssb-widget.php
CHANGED
@@ -55,6 +55,7 @@ class Ssb_Follower_Widget extends WP_Widget {
|
|
55 |
$show_youtube = $instance['show_youtube'];
|
56 |
$show_pinterest = $instance['show_pinterest'];
|
57 |
$show_instagram = $instance['show_instagram'];
|
|
|
58 |
|
59 |
$facebook_id = $instance['facebook_id'];
|
60 |
$facebook_show_counter = $instance['facebook_show_counter'];
|
@@ -85,6 +86,9 @@ class Ssb_Follower_Widget extends WP_Widget {
|
|
85 |
$instagram_show_counter = $instance['instagram_show_counter'];
|
86 |
$instagram_text = $instance['instagram_text'];
|
87 |
|
|
|
|
|
|
|
88 |
$fb_likes = $this->get_facebook_likes_count( $facebook_id, $facebook_access_token, $facebook_show_counter );
|
89 |
$twitter_follower = $this->get_twitter_followers( $twitter_id, $twitter_api_key, $twitter_secret_key, $twitter_show_counter );
|
90 |
$google_follower = $this->get_google_plus_follower( $google_id, $google_show_counter );
|
@@ -113,6 +117,7 @@ class Ssb_Follower_Widget extends WP_Widget {
|
|
113 |
$instance['twitter_text'] = __( 'Follow us on Twitter', 'simple-social-buttons' );
|
114 |
$instance['pinterest_text'] = __( 'Pin us on Pinterest', 'simple-social-buttons' );
|
115 |
$instance['instagram_text'] = __( 'Follow us on Instagram', 'simple-social-buttons' );
|
|
|
116 |
|
117 |
}
|
118 |
|
@@ -125,6 +130,7 @@ class Ssb_Follower_Widget extends WP_Widget {
|
|
125 |
$show_youtube = ! empty( $instance['show_youtube'] ) ? $instance['show_youtube'] : '';
|
126 |
$show_pinterest = ! empty( $instance['show_pinterest'] ) ? $instance['show_pinterest'] : '';
|
127 |
$show_instagram = ! empty( $instance['show_instagram'] ) ? $instance['show_instagram'] : '';
|
|
|
128 |
|
129 |
$facebook_id = ! empty( $instance['facebook_id'] ) ? $instance['facebook_id'] : '';
|
130 |
$facebook_show_counter = ! empty( $instance['facebook_show_counter'] ) ? $instance['facebook_show_counter'] : '';
|
@@ -158,6 +164,11 @@ class Ssb_Follower_Widget extends WP_Widget {
|
|
158 |
$instagram_text = ! empty( $instance['instagram_text'] ) ? $instance['instagram_text'] : '';
|
159 |
$instagram_show_counter = ! empty( $instance['instagram_show_counter'] ) ? $instance['instagram_show_counter'] : '';
|
160 |
|
|
|
|
|
|
|
|
|
|
|
161 |
include SSB_PLUGIN_DIR . '/inc/ssb-widget-fields.php';
|
162 |
|
163 |
}
|
@@ -182,6 +193,9 @@ class Ssb_Follower_Widget extends WP_Widget {
|
|
182 |
delete_transient( 'ssb_follow_pinterest_counter' );
|
183 |
delete_transient( 'ssb_follow_instagram_counter' );
|
184 |
|
|
|
|
|
|
|
185 |
$instance = array();
|
186 |
$instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_instance['title'] ) : '';
|
187 |
|
@@ -191,6 +205,7 @@ class Ssb_Follower_Widget extends WP_Widget {
|
|
191 |
$instance['show_youtube'] = ! empty( $new_instance['show_youtube'] ) ? strip_tags( $new_instance['show_youtube'] ) : '0';
|
192 |
$instance['show_pinterest'] = ! empty( $new_instance['show_pinterest'] ) ? strip_tags( $new_instance['show_pinterest'] ) : '0';
|
193 |
$instance['show_instagram'] = ! empty( $new_instance['show_instagram'] ) ? strip_tags( $new_instance['show_instagram'] ) : '0';
|
|
|
194 |
|
195 |
$instance['facebook_id'] = sanitize_text_field( wp_unslash( $new_instance['facebook_id'] ) );
|
196 |
$instance['facebook_app_id'] = sanitize_text_field( wp_unslash( $new_instance['facebook_app_id'] ) );
|
@@ -218,10 +233,14 @@ class Ssb_Follower_Widget extends WP_Widget {
|
|
218 |
$instance['pinterest_show_counter'] = ( ! empty( $new_instance['pinterest_show_counter'] ) ) ? strip_tags( $new_instance['pinterest_show_counter'] ) : '0';
|
219 |
$instance['pinterest_text'] = sanitize_text_field( wp_unslash( $new_instance['pinterest_text'] ) );
|
220 |
$instance['pinterest_api_key'] = sanitize_text_field( wp_unslash( $new_instance['pinterest_api_key'] ) );
|
|
|
221 |
$instance['instagram'] = sanitize_text_field( wp_unslash( $new_instance['instagram'] ) );
|
222 |
-
|
223 |
$instance['instagram_text'] = sanitize_text_field( wp_unslash( $new_instance['instagram_text'] ) );
|
224 |
|
|
|
|
|
|
|
225 |
return $instance;
|
226 |
}
|
227 |
|
55 |
$show_youtube = $instance['show_youtube'];
|
56 |
$show_pinterest = $instance['show_pinterest'];
|
57 |
$show_instagram = $instance['show_instagram'];
|
58 |
+
$show_whatsapp = $instance['show_whatsapp'];
|
59 |
|
60 |
$facebook_id = $instance['facebook_id'];
|
61 |
$facebook_show_counter = $instance['facebook_show_counter'];
|
86 |
$instagram_show_counter = $instance['instagram_show_counter'];
|
87 |
$instagram_text = $instance['instagram_text'];
|
88 |
|
89 |
+
$whatsapp = $instance['whatsapp'];
|
90 |
+
$whatsapp_text = $instance['whatsapp_text'];
|
91 |
+
|
92 |
$fb_likes = $this->get_facebook_likes_count( $facebook_id, $facebook_access_token, $facebook_show_counter );
|
93 |
$twitter_follower = $this->get_twitter_followers( $twitter_id, $twitter_api_key, $twitter_secret_key, $twitter_show_counter );
|
94 |
$google_follower = $this->get_google_plus_follower( $google_id, $google_show_counter );
|
117 |
$instance['twitter_text'] = __( 'Follow us on Twitter', 'simple-social-buttons' );
|
118 |
$instance['pinterest_text'] = __( 'Pin us on Pinterest', 'simple-social-buttons' );
|
119 |
$instance['instagram_text'] = __( 'Follow us on Instagram', 'simple-social-buttons' );
|
120 |
+
$instance['whatsapp_text'] = __( 'Contact us on WhatsApp', 'simple-social-buttons' );
|
121 |
|
122 |
}
|
123 |
|
130 |
$show_youtube = ! empty( $instance['show_youtube'] ) ? $instance['show_youtube'] : '';
|
131 |
$show_pinterest = ! empty( $instance['show_pinterest'] ) ? $instance['show_pinterest'] : '';
|
132 |
$show_instagram = ! empty( $instance['show_instagram'] ) ? $instance['show_instagram'] : '';
|
133 |
+
$show_whatsapp = ! empty( $instance['show_whatsapp'] ) ? $instance['show_whatsapp'] : '';
|
134 |
|
135 |
$facebook_id = ! empty( $instance['facebook_id'] ) ? $instance['facebook_id'] : '';
|
136 |
$facebook_show_counter = ! empty( $instance['facebook_show_counter'] ) ? $instance['facebook_show_counter'] : '';
|
164 |
$instagram_text = ! empty( $instance['instagram_text'] ) ? $instance['instagram_text'] : '';
|
165 |
$instagram_show_counter = ! empty( $instance['instagram_show_counter'] ) ? $instance['instagram_show_counter'] : '';
|
166 |
|
167 |
+
//whats app mobile number will store in $whatsapp
|
168 |
+
$whatsapp = ! empty( $instance['whatsapp'] ) ? $instance['whatsapp'] : '';
|
169 |
+
$whatsapp_text = ! empty( $instance['whatsapp_text'] ) ? $instance['whatsapp_text'] : '';
|
170 |
+
|
171 |
+
|
172 |
include SSB_PLUGIN_DIR . '/inc/ssb-widget-fields.php';
|
173 |
|
174 |
}
|
193 |
delete_transient( 'ssb_follow_pinterest_counter' );
|
194 |
delete_transient( 'ssb_follow_instagram_counter' );
|
195 |
|
196 |
+
/*var_dump( $new_instance );
|
197 |
+
die;*/
|
198 |
+
|
199 |
$instance = array();
|
200 |
$instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_instance['title'] ) : '';
|
201 |
|
205 |
$instance['show_youtube'] = ! empty( $new_instance['show_youtube'] ) ? strip_tags( $new_instance['show_youtube'] ) : '0';
|
206 |
$instance['show_pinterest'] = ! empty( $new_instance['show_pinterest'] ) ? strip_tags( $new_instance['show_pinterest'] ) : '0';
|
207 |
$instance['show_instagram'] = ! empty( $new_instance['show_instagram'] ) ? strip_tags( $new_instance['show_instagram'] ) : '0';
|
208 |
+
$instance['show_whatsapp'] = ! empty( $new_instance['show_whatsapp'] ) ? strip_tags( $new_instance['show_whatsapp'] ) : '0';
|
209 |
|
210 |
$instance['facebook_id'] = sanitize_text_field( wp_unslash( $new_instance['facebook_id'] ) );
|
211 |
$instance['facebook_app_id'] = sanitize_text_field( wp_unslash( $new_instance['facebook_app_id'] ) );
|
233 |
$instance['pinterest_show_counter'] = ( ! empty( $new_instance['pinterest_show_counter'] ) ) ? strip_tags( $new_instance['pinterest_show_counter'] ) : '0';
|
234 |
$instance['pinterest_text'] = sanitize_text_field( wp_unslash( $new_instance['pinterest_text'] ) );
|
235 |
$instance['pinterest_api_key'] = sanitize_text_field( wp_unslash( $new_instance['pinterest_api_key'] ) );
|
236 |
+
|
237 |
$instance['instagram'] = sanitize_text_field( wp_unslash( $new_instance['instagram'] ) );
|
238 |
+
$instance['instagram_show_counter'] = ( ! empty( $new_instance['instagram_show_counter'] ) ) ? strip_tags( $new_instance['instagram_show_counter'] ) : '0';
|
239 |
$instance['instagram_text'] = sanitize_text_field( wp_unslash( $new_instance['instagram_text'] ) );
|
240 |
|
241 |
+
$instance['whatsapp'] = sanitize_text_field( wp_unslash( $new_instance['whatsapp'] ) );
|
242 |
+
$instance['whatsapp_text'] = sanitize_text_field( wp_unslash( $new_instance['whatsapp_text'] ) );
|
243 |
+
|
244 |
return $instance;
|
245 |
}
|
246 |
|
inc/ssb-widget-fields.php
CHANGED
@@ -16,6 +16,8 @@
|
|
16 |
<input type="checkbox" value="1" class="show_pinterest_check" name="<?php echo esc_attr( $this->get_field_name( 'show_pinterest' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'show_pinterest' ) ); ?>" <?php checked($show_pinterest ,1);?> > <label for="<?php echo esc_attr( $this->get_field_id( 'show_pinterest' ) ); ?>">Pinterest</label>
|
17 |
<br/>
|
18 |
<input type="checkbox" value="1" class="show_instagram_check" name="<?php echo esc_attr( $this->get_field_name( 'show_instagram' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'show_instagram' ) ); ?>" <?php checked($show_instagram ,1);?> > <label for="<?php echo esc_attr( $this->get_field_id( 'show_instagram' ) ); ?>">Instagram</label>
|
|
|
|
|
19 |
</div>
|
20 |
<!--facebook-->
|
21 |
<div class="show_fb simpleshare-widget-settings" style="display: <?php echo ( $display == $show_facebook )? 'block' : 'none' ?>">
|
@@ -166,3 +168,21 @@
|
|
166 |
|
167 |
<hr/>
|
168 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
<input type="checkbox" value="1" class="show_pinterest_check" name="<?php echo esc_attr( $this->get_field_name( 'show_pinterest' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'show_pinterest' ) ); ?>" <?php checked($show_pinterest ,1);?> > <label for="<?php echo esc_attr( $this->get_field_id( 'show_pinterest' ) ); ?>">Pinterest</label>
|
17 |
<br/>
|
18 |
<input type="checkbox" value="1" class="show_instagram_check" name="<?php echo esc_attr( $this->get_field_name( 'show_instagram' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'show_instagram' ) ); ?>" <?php checked($show_instagram ,1);?> > <label for="<?php echo esc_attr( $this->get_field_id( 'show_instagram' ) ); ?>">Instagram</label>
|
19 |
+
<br/>
|
20 |
+
<input type="checkbox" value="1" class="show_whatsapp_check" name="<?php echo esc_attr( $this->get_field_name( 'show_whatsapp' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'show_whatsapp' ) ); ?>" <?php checked($show_whatsapp ,1);?> > <label for="<?php echo esc_attr( $this->get_field_id( 'show_whatsapp' ) ); ?>">WhatsApp</label>
|
21 |
</div>
|
22 |
<!--facebook-->
|
23 |
<div class="show_fb simpleshare-widget-settings" style="display: <?php echo ( $display == $show_facebook )? 'block' : 'none' ?>">
|
168 |
|
169 |
<hr/>
|
170 |
</div>
|
171 |
+
|
172 |
+
<!--WhatsApp-->
|
173 |
+
<div class="show_whatsapp simpleshare-widget-settings" style="display: <?php echo ( $display == $show_whatsapp )? 'block' : 'none' ?>">
|
174 |
+
<h2><span>WhatsApp</span></h2>
|
175 |
+
<p>
|
176 |
+
<label for="<?php echo esc_attr( $this->get_field_id( 'whatsapp_text' ) ); ?> "><?php esc_attr_e( 'WhatsApp Button Text:', 'simple-social-buttons' ); ?></label>
|
177 |
+
<input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'whatsapp_text' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'whatsapp_text' ) ); ?>" type="text" value="<?php echo esc_attr( $whatsapp_text ); ?>" placeholder="Message us on WhatsApp">
|
178 |
+
</p>
|
179 |
+
<p class="whatsapp_text" style="display: block">
|
180 |
+
<label for="<?php echo esc_attr( $this->get_field_id( 'whatsapp' ) ); ?>"><?php esc_attr_e( '
|
181 |
+
WhatsApp Mobile Number:', 'simple-social-buttons' ); ?></label>
|
182 |
+
<input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'whatsapp' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'whatsapp' ) ); ?>" type="text" value="<?php echo esc_attr( $whatsapp ); ?>" placeholder="923444XXXXXX" >
|
183 |
+
|
184 |
+
</p>
|
185 |
+
|
186 |
+
<hr/>
|
187 |
+
</div>
|
188 |
+
|
inc/ssb-widget-front.php
CHANGED
@@ -27,6 +27,9 @@ if ( !empty( $widget_title ) ) {
|
|
27 |
<?php if ( $display == $show_instagram ):?>
|
28 |
<a class="ssb_button simplesocial-instagram-follow" rel="noopener" href="https://www.instagram.com/<?php echo $instagram_id;?>" target="_blank"><span class="simplesocialtxt"><?php echo $instagram_text;?> </span><span class="widget_counter"> <?php echo ( $display == $instagram_show_counter )? $instagram_follower: '';?> </span></a>
|
29 |
<?php endif;?>
|
|
|
|
|
|
|
30 |
|
31 |
</section>
|
32 |
<?php echo $after_widget;?>
|
27 |
<?php if ( $display == $show_instagram ):?>
|
28 |
<a class="ssb_button simplesocial-instagram-follow" rel="noopener" href="https://www.instagram.com/<?php echo $instagram_id;?>" target="_blank"><span class="simplesocialtxt"><?php echo $instagram_text;?> </span><span class="widget_counter"> <?php echo ( $display == $instagram_show_counter )? $instagram_follower: '';?> </span></a>
|
29 |
<?php endif;?>
|
30 |
+
<?php if ( $display == $show_whatsapp ):?>
|
31 |
+
<a class="ssb_button simplesocial-whatsapp-follow" rel="noopener" href="https://api.whatsapp.com/send?phone=<?php echo $whatsapp;?>" target="_blank"><span class="simplesocialtxt"><?php echo $whatsapp_text;?> </span></a>
|
32 |
+
<?php endif;?>
|
33 |
|
34 |
</section>
|
35 |
<?php echo $after_widget;?>
|
inc/utils.php
CHANGED
@@ -144,18 +144,38 @@ function ssb_fetch_shares_via_curl_multi( $data, $options = array() ) {
|
|
144 |
|
145 |
$stats_result = array();
|
146 |
$total = 0;
|
147 |
-
|
148 |
foreach ( $stats as $social_name => $counts ) {
|
149 |
if ( 'totalshare' == $social_name || 'fblike' == $social_name || 'viber' == $social_name || 'whatsapp' == $social_name ) { continue; }
|
150 |
$stats_counts = call_user_func( 'ssb_format_' . $social_name . '_response', $counts );
|
151 |
-
|
152 |
-
|
153 |
-
|
|
|
|
|
154 |
}
|
155 |
$stats_result['total'] = $total;
|
156 |
update_post_meta( $post_id, 'ssb_total_counts', $total );
|
157 |
return $stats_result;
|
158 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
159 |
|
160 |
/**
|
161 |
* Get the cahced counts.
|
144 |
|
145 |
$stats_result = array();
|
146 |
$total = 0;
|
147 |
+
$networks = get_post_meta( $post_id, 'ssb_old_counts', true );
|
148 |
foreach ( $stats as $social_name => $counts ) {
|
149 |
if ( 'totalshare' == $social_name || 'fblike' == $social_name || 'viber' == $social_name || 'whatsapp' == $social_name ) { continue; }
|
150 |
$stats_counts = call_user_func( 'ssb_format_' . $social_name . '_response', $counts );
|
151 |
+
$new_counts = $stats_counts + $networks[ $social_name];
|
152 |
+
$stats_result[ $social_name ] = $new_counts;
|
153 |
+
update_post_meta( $post_id, 'ssb_' . $social_name . '_counts', $new_counts);
|
154 |
+
|
155 |
+
$total += $new_counts;
|
156 |
}
|
157 |
$stats_result['total'] = $total;
|
158 |
update_post_meta( $post_id, 'ssb_total_counts', $total );
|
159 |
return $stats_result;
|
160 |
}
|
161 |
+
/**
|
162 |
+
* Fetch counts + http or https resolve .
|
163 |
+
*
|
164 |
+
* @param Array $stats
|
165 |
+
* @param String $post_id
|
166 |
+
* @return Array Simple array with counts.
|
167 |
+
* @since 2.0.12
|
168 |
+
*/
|
169 |
+
function ssb_fetch_http_or_https_counts( $stats, $post_id ){
|
170 |
+
$stats_result = array();
|
171 |
+
$networks = array();
|
172 |
+
foreach ( $stats as $social_name => $counts ) {
|
173 |
+
if ( 'totalshare' == $social_name || 'fblike' == $social_name || 'viber' == $social_name || 'whatsapp' == $social_name ) { continue; }
|
174 |
+
$stats_counts = call_user_func( 'ssb_format_' . $social_name . '_response', $counts );
|
175 |
+
$networks[ $social_name] = $stats_counts;
|
176 |
+
}
|
177 |
+
update_post_meta( $post_id, 'ssb_old_counts', $networks );
|
178 |
+
}
|
179 |
|
180 |
/**
|
181 |
* Get the cahced counts.
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://wpbrigade.com/
|
|
4 |
Tags: Social share, Social buttons, Whatsapp, Viber, LinkedIn, facebook, google, twitter, pinterest, plus one
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.9
|
7 |
-
Stable tag: 2.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -146,12 +146,18 @@ theme = theme1 or theme2 or theme3 or theme4 or Flat or Circle or Official
|
|
146 |
|
147 |
== Upgrade Notice ==
|
148 |
|
149 |
-
= 2.0.
|
150 |
-
*
|
151 |
|
152 |
|
153 |
== Changelog ==
|
154 |
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
= 2.0.11 - 2018-02-27 =
|
156 |
* New Feature: Add Instagram on Widget.
|
157 |
* New Feature: Add Print Button.
|
4 |
Tags: Social share, Social buttons, Whatsapp, Viber, LinkedIn, facebook, google, twitter, pinterest, plus one
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.9
|
7 |
+
Stable tag: 2.0.12
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
146 |
|
147 |
== Upgrade Notice ==
|
148 |
|
149 |
+
= 2.0.12 =
|
150 |
+
* Please upgrade immediately. Releasing New features, few bugfixes and improvements.
|
151 |
|
152 |
|
153 |
== Changelog ==
|
154 |
|
155 |
+
= 2.0.12 - 2018-03-12 =
|
156 |
+
* New Feature: Add WhatsApp in Widget.
|
157 |
+
* New Feature: Fetch old stats after SSL.
|
158 |
+
* Bug Fix: HTML markup fix.
|
159 |
+
* Improvement: RTL support.
|
160 |
+
|
161 |
= 2.0.11 - 2018-02-27 =
|
162 |
* New Feature: Add Instagram on Widget.
|
163 |
* New Feature: Add Print Button.
|
simple-social-buttons.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Simple Social Buttons
|
4 |
* Plugin URI: http://www.WPBrigade.com/wordpress/plugins/simple-social-buttons/
|
5 |
* Description: Simple Social Buttons adds an advanced set of social media sharing buttons to your WordPress sites, such as: Google +1, Facebook, WhatsApp, Viber, Twitter, Reddit, LinkedIn and Pinterest. This makes it the most <code>Flexible Social Sharing Plugin ever for Everyone.</code>
|
6 |
-
* Version: 2.0.
|
7 |
* Author: WPBrigade
|
8 |
* Author URI: http://www.WPBrigade.com/
|
9 |
* Text Domain: simple-social-buttons
|
@@ -30,7 +30,7 @@
|
|
30 |
|
31 |
class SimpleSocialButtonsPR {
|
32 |
public $pluginName = 'Simple Social Buttons';
|
33 |
-
public $pluginVersion = '2.0.
|
34 |
public $pluginPrefix = 'ssb_pr_';
|
35 |
public $hideCustomMetaKey = '_ssb_hide';
|
36 |
private $fb_app_id = '891268654262273';
|
@@ -107,7 +107,7 @@ class SimpleSocialButtonsPR {
|
|
107 |
add_action( 'wp_footer', array( $this, 'include_sidebar' ) );
|
108 |
add_action( 'wp_head', array( $this, 'css_file' ) );
|
109 |
|
110 |
-
add_action( 'admin_notices', array( $this, 'update_notice' ) );
|
111 |
add_action( 'admin_init', array( $this, 'review_update_notice' ) );
|
112 |
add_action( 'wp_footer', array( $this, 'fblike_script' ) );
|
113 |
|
@@ -119,8 +119,7 @@ class SimpleSocialButtonsPR {
|
|
119 |
function set_selected_networks() {
|
120 |
$networks = get_option( 'ssb_networks' );
|
121 |
$this->selected_networks = array_flip( array_merge( array( 0 ), explode( ',', $networks['icon_selection'] ) ) );
|
122 |
-
|
123 |
-
}
|
124 |
|
125 |
function set_selected_theme() {
|
126 |
$theme = get_option( 'ssb_themes' );
|
@@ -504,7 +503,6 @@ class SimpleSocialButtonsPR {
|
|
504 |
|
505 |
// define empty buttons code to use
|
506 |
$ssb_buttonscode = '';
|
507 |
-
|
508 |
// get post permalink and title
|
509 |
$permalink = get_permalink();
|
510 |
$title = get_the_title();
|
@@ -519,40 +517,59 @@ class SimpleSocialButtonsPR {
|
|
519 |
// echo '<pre>'; print_r( $arrButtons ); echo '</pre>';
|
520 |
@asort( $arrButtons );
|
521 |
|
522 |
-
|
523 |
if ( $show_total ) {
|
524 |
-
|
525 |
$post_id = get_the_id();
|
526 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
527 |
// // Reset the cache timestamp if needed
|
528 |
// // if false fetch the new share counts.
|
529 |
-
if ( isset( $this->settings['cache'] ) && $this->settings['cache'] == 'off' ) {
|
530 |
|
531 |
$_share_links = array();
|
|
|
532 |
foreach ( $arrButtons as $social_name => $priority ) {
|
533 |
if ( 'totalshare' == $social_name || 'viber' == $social_name || 'fblike' == $social_name || 'whatsapp' == $social_name || 'print' == $social_name || 'email' == $social_name || 'messenger' == $social_name) {
|
534 |
continue; }
|
535 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
536 |
}
|
537 |
|
538 |
-
$result = ssb_fetch_shares_via_curl_multi( array_filter( $_share_links ) );
|
539 |
-
|
540 |
-
// $result = ssb_fetch_shares_via_curl_multi(
|
541 |
-
// array(
|
542 |
-
// 'linkedin' => ssb_linkedin_generate_link( 'https://wpbrigade.com/first-wordcamp-talk/' ),
|
543 |
-
// 'fbshare' => ssb_fbshare_generate_link( 'https://propakistani.pk/2017/09/06/lahore-get-600-million-disneyland-like-amusement-park/' ),
|
544 |
-
// 'googleplus' => ssb_googleplus_generate_link( 'https://wpbrigade.com/first-wordcamp-talk/' ),
|
545 |
-
// 'twitter' => ssb_twitter_generate_link( 'https://wptavern.com/jetpack-5-3-adds-php-7-1-compatibility-better-control-for-wordads-placement' ),
|
546 |
-
// 'pinterest' => ssb_pinterest_generate_link( 'http://websitehostingcost.com/tag/dedicated/' ),
|
547 |
-
// 'reddit' => ssb_reddit_generate_link( 'http://stackoverflow.com/q/811074/1288' )
|
548 |
-
// )
|
549 |
-
// );
|
550 |
-
$share_counts = ssb_fetch_fresh_counts( $result, $post_id );
|
551 |
-
// update_post_meta( $post_id,'ssb_cache_timestamp',floor( ( ( date( 'U' ) / 60) / 60 ) ) );
|
552 |
-
} else {
|
553 |
-
$share_counts = ssb_fetch_cached_counts( array_flip( $arrButtons ), $post_id );
|
554 |
-
}
|
555 |
-
|
556 |
$arrButtonsCode = array();
|
557 |
foreach ( $arrButtons as $button_name => $button_sort ) {
|
558 |
switch ( $button_name ) {
|
@@ -616,9 +633,9 @@ class SimpleSocialButtonsPR {
|
|
616 |
<span class="icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 72 72"><path fill="none" d="M0 0h72v72H0z"/><path class="icon" fill="#fff" d="M68.812 15.14c-2.348 1.04-4.87 1.744-7.52 2.06 2.704-1.62 4.78-4.186 5.757-7.243-2.53 1.5-5.33 2.592-8.314 3.176C56.35 10.59 52.948 9 49.182 9c-7.23 0-13.092 5.86-13.092 13.093 0 1.026.118 2.02.338 2.98C25.543 24.527 15.9 19.318 9.44 11.396c-1.125 1.936-1.77 4.184-1.77 6.58 0 4.543 2.312 8.552 5.824 10.9-2.146-.07-4.165-.658-5.93-1.64-.002.056-.002.11-.002.163 0 6.345 4.513 11.638 10.504 12.84-1.1.298-2.256.457-3.45.457-.845 0-1.666-.078-2.464-.23 1.667 5.2 6.5 8.985 12.23 9.09-4.482 3.51-10.13 5.605-16.26 5.605-1.055 0-2.096-.06-3.122-.184 5.794 3.717 12.676 5.882 20.067 5.882 24.083 0 37.25-19.95 37.25-37.25 0-.565-.013-1.133-.038-1.693 2.558-1.847 4.778-4.15 6.532-6.774z"/></svg></span>';
|
617 |
|
618 |
if ( $show_count ) {
|
619 |
-
$_html .= '<
|
620 |
} else{
|
621 |
-
$_html .= '<
|
622 |
|
623 |
}
|
624 |
|
@@ -722,7 +739,7 @@ class SimpleSocialButtonsPR {
|
|
722 |
break;
|
723 |
case 'whatsapp':
|
724 |
if ( $this->selected_theme == 'simple-icons' ) {
|
725 |
-
$arrButtonsCode[] = ' <button
|
726 |
<span class="icon"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" width="512px" height="512px" viewBox="0 0 90 90" style="enable-background:new 0 0 90 90;" xml:space="preserve" class=""><g><g> <path id="WhatsApp" d="M90,43.841c0,24.213-19.779,43.841-44.182,43.841c-7.747,0-15.025-1.98-21.357-5.455L0,90l7.975-23.522 c-4.023-6.606-6.34-14.354-6.34-22.637C1.635,19.628,21.416,0,45.818,0C70.223,0,90,19.628,90,43.841z M45.818,6.982 c-20.484,0-37.146,16.535-37.146,36.859c0,8.065,2.629,15.534,7.076,21.61L11.107,79.14l14.275-4.537 c5.865,3.851,12.891,6.097,20.437,6.097c20.481,0,37.146-16.533,37.146-36.857S66.301,6.982,45.818,6.982z M68.129,53.938 c-0.273-0.447-0.994-0.717-2.076-1.254c-1.084-0.537-6.41-3.138-7.4-3.495c-0.993-0.358-1.717-0.538-2.438,0.537 c-0.721,1.076-2.797,3.495-3.43,4.212c-0.632,0.719-1.263,0.809-2.347,0.271c-1.082-0.537-4.571-1.673-8.708-5.333 c-3.219-2.848-5.393-6.364-6.025-7.441c-0.631-1.075-0.066-1.656,0.475-2.191c0.488-0.482,1.084-1.255,1.625-1.882 c0.543-0.628,0.723-1.075,1.082-1.793c0.363-0.717,0.182-1.344-0.09-1.883c-0.27-0.537-2.438-5.825-3.34-7.977 c-0.902-2.15-1.803-1.792-2.436-1.792c-0.631,0-1.354-0.09-2.076-0.09c-0.722,0-1.896,0.269-2.889,1.344 c-0.992,1.076-3.789,3.676-3.789,8.963c0,5.288,3.879,10.397,4.422,11.113c0.541,0.716,7.49,11.92,18.5,16.223 C58.2,65.771,58.2,64.336,60.186,64.156c1.984-0.179,6.406-2.599,7.312-5.107C68.398,56.537,68.398,54.386,68.129,53.938z"/> </g></g> </svg> </span>
|
727 |
<span class="simplesocialtxt">Whatsapp</span>
|
728 |
</button>';
|
@@ -734,7 +751,7 @@ class SimpleSocialButtonsPR {
|
|
734 |
|
735 |
case 'viber':
|
736 |
if ( $this->selected_theme == 'simple-icons' ) {
|
737 |
-
$arrButtonsCode[] = '<button
|
738 |
<span class="icon"> <svg aria-labelledby="simpleicons-viber-icon" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title id="simpleicons-viber-icon">Viber icon</title><path d="M20.812 2.343c-.596-.549-3.006-2.3-8.376-2.325 0 0-6.331-.38-9.415 2.451C1.302 4.189.698 6.698.634 9.82.569 12.934.487 18.774 6.12 20.36h.005l-.005 2.416s-.034.979.609 1.178c.779.24 1.236-.504 1.98-1.303.409-.439.972-1.088 1.397-1.582 3.851.322 6.813-.416 7.149-.525.777-.254 5.176-.816 5.893-6.658.738-6.021-.357-9.83-2.338-11.547v.004zm.652 11.112c-.615 4.876-4.184 5.187-4.83 5.396-.285.092-2.895.738-6.164.525 0 0-2.445 2.941-3.195 3.705-.121.121-.271.166-.361.145-.135-.029-.164-.18-.164-.404l.015-4.006c-.015 0 0 0 0 0-4.771-1.336-4.485-6.301-4.425-8.91.044-2.596.538-4.726 1.994-6.167 2.611-2.371 7.997-2.012 7.997-2.012 4.543.016 6.721 1.385 7.223 1.846 1.674 1.432 2.529 4.865 1.904 9.893l.006-.011zM7.741 4.983c.242 0 .459.109.629.311.004.002.58.695.83 1.034.235.32.551.83.711 1.115.285.51.104 1.032-.172 1.248l-.566.45c-.285.229-.25.653-.25.653s.84 3.157 3.959 3.953c0 0 .426.039.654-.246l.451-.569c.213-.285.734-.465 1.244-.181.285.15.795.466 1.116.704.339.24 1.032.826 1.036.826.33.271.404.689.18 1.109v.016c-.23.405-.541.78-.934 1.141h-.008c-.314.27-.629.42-.944.449-.03 0-.075.016-.136 0-.135 0-.27-.029-.404-.061v-.014c-.48-.135-1.275-.48-2.596-1.216-.855-.479-1.574-.96-2.189-1.455-.315-.255-.645-.54-.976-.87l-.076-.028-.03-.03-.029-.029c-.331-.33-.615-.66-.871-.98-.48-.609-.96-1.327-1.439-2.189-.735-1.32-1.08-2.115-1.215-2.596H5.7c-.045-.134-.075-.269-.06-.404-.015-.061 0-.105 0-.141.03-.299.189-.614.458-.944h.005c.355-.39.738-.704 1.146-.933.164-.091.329-.135.479-.135h.016l-.003.012zm4.095-.683h.116l.076.002h.02l.089.005h.511l.135.015h.074l.15.016h.03l.104.015h.016l.074.015c.046 0 .076.016.105.016h.091l.075.029.06.016.06.015.03.015h.045l.046.016h.029l.074.016.045.014.046.016.06.016.03.014c.03 0 .06.016.091.016l.044.015.046.016.119.044.061.031.135.06.045.015.045.016.09.045.061.015.029.015.076.031.029.014.061.031.045.014.045.03.059.03.046.029.03.016.061.03.044.03.075.045.045.016.074.044.016.015.045.031.09.074.046.03.044.03.031.014.045.031.074.074.061.045.045.03.016.015.029.016.074.061.046.044.03.03.045.029.045.031.029.015.12.12.06.061.135.135.031.029c.016.016.045.045.061.075l.029.03.166.194.045.06c.014.016.014.031.029.031l.09.135.045.045.09.12.076.12.045.09.059.105.045.09.016.029.029.061.076.15.074.149.031.075c.059.135.104.27.164.42.074.195.135.404.18.63.045.165.076.315.105.48l.029.27.045.3c.016.121.031.256.031.375.014.121.014.24.014.359v.256c0 .016-.006.029-.014.045-.016.03-.031.045-.061.075-.021.015-.049.046-.08.046-.029.014-.059.014-.09.014h-.045c-.029 0-.059-.014-.09-.029-.029-.016-.061-.03-.074-.061-.016-.029-.045-.061-.061-.09s-.031-.06-.031-.09v-.359c-.014-.209-.029-.425-.059-.639-.016-.146-.045-.284-.061-.42 0-.074-.016-.146-.029-.209l-.029-.15-.038-.141-.016-.09-.045-.15c-.029-.12-.074-.24-.119-.36-.029-.091-.061-.165-.105-.239l-.029-.076-.135-.27-.031-.045c-.061-.135-.135-.27-.225-.391l-.045-.074h-.201l-.064-.091c-.055-.089-.114-.165-.18-.239l-.125-.15-.015-.016-.046-.057-.035-.045-.075-.074-.015-.03-.07-.06-.045-.046-.083-.075-.04-.037-.046-.045-.015-.016c-.016-.015-.045-.045-.075-.06l-.076-.062-.03-.015-.061-.046-.074-.06-.045-.036-.03-.016-.06-.053c0-.016-.016-.016-.031-.016l-.029-.029-.015-.016v-.013l-.03-.014-.061-.037-.044-.031-.075-.045-.06-.045-.029-.016-.032-.013h-.09l-.019-.016-.065-.035-.009-.014-.03-.016-.045-.021h-.012l-.045-.016-.025-.015-.045-.015-.01-.011-.03-.016-.053-.029-.03-.015-.09-.03-.074-.029-.137-.016-.044-.029c-.015-.01-.03-.016-.046-.016l-.029-.015c-.029-.011-.045-.016-.075-.03l-.03-.016h-.029l-.061-.029-.029-.016-.045-.015h-.092c-.008 0-.019-.005-.03-.007h-.09l-.045-.016h-.015l-.045-.016h-.041c-.025-.014-.045-.014-.07-.014l-.01-.016-.06-.015c-.03-.016-.056-.016-.084-.016l-.045-.015-.05-.016-.045-.014-.061-.016h-.061l-.179-.022h-.09l-.116-.015h-.076l-.068-.008h-.03l-.054-.016h-.285l-.01-.015h-.061c-.03 0-.064-.015-.09-.03-.03-.016-.061-.029-.081-.06l-.03-.046c-.029-.029-.029-.06-.045-.09-.014-.028-.014-.059-.014-.089s0-.06.015-.09c.016-.029.029-.06.061-.075.015-.03.044-.044.074-.06.029-.016.061-.03.09-.03h.061l.015.066zm.554 1.574l.037.003.061.006c.008 0 .018 0 .029.003.022 0 .045.004.075.006l.06.008.024.016.045.015.048.015.045.016h.03l.042.015.07.015.056.016.026.014h.073l.119.028.046.015.045.015.045.016s.015 0 .015.015l.046.015.044.016.045.016c.015 0 .03.014.046.014.007 0 .014.016.025.016l.064.03h.029l.09.03.05.029.046.03.108.045.06.015.031.031c.045.014.09.044.135.059l.048.03.048.03.049.029c.045.03.082.046.121.076l.029.014.041.031.022.015.075.045.037.03.065.043.029.015.03.015.046.03.06.046c.015.014.022.014.034.029.01.015.016.015.025.03l.033.03.036.029.03.03.046.046.029.03.016.016.09.089.016.016c0 .015.015.03.029.03l.016.013.045.046.029.045.03.03.045.06.046.046.09.119.014.029.061.076.016.029.015.031.015.029.016.03c.016.015.016.03.029.06l.043.076.016.015.029.061.031.044c.014.015.014.029.029.045l.03.045.03.061.029.059.016.046c.015.044.045.075.06.12 0 .015.015.029.015.045l.045.119.061.195c0 .016.015.045.015.061l.046.135.044.18.046.24c.014.074.014.135.029.211.016.119.03.238.03.359l.015.21v.165c0 .016 0 .029-.015.045l-.044.043c-.029.023-.045.045-.074.061-.03.015-.061.029-.09.04-.031.016-.075.016-.105.016-.029 0-.061-.016-.09-.03-.016 0-.03-.016-.045-.021-.031-.014-.061-.039-.075-.065-.03-.03-.046-.06-.046-.091l-.014-.044v-.313c0-.133-.016-.256-.031-.385-.015-.135-.044-.285-.074-.42-.029-.09-.045-.18-.075-.26l-.03-.091-.029-.075-.016-.03-.045-.12-.045-.09-.075-.149-.069-.12v-.019l-.029-.047-.03-.038-.045-.075-.046-.061-.089-.119c-.046-.061-.09-.12-.142-.178-.014-.015-.029-.029-.029-.045l-.03-.029-.017-.016-.03-.014-.03-.027v-.146l-.119-.113-.075-.068v-.014l-.03-.031-.038-.029-.015-.016c0-.015-.016-.015-.029-.015l-.046-.016-.015-.015-.061-.045-.014-.016-.016-.015c-.012-.015-.023-.015-.03-.015l-.06-.045-.016-.016-.06-.029-.011-.016-.045-.029-.03-.016-.03-.029-.029-.031h-.016c-.029-.029-.06-.044-.105-.06l-.044-.03-.03-.014-.016-.016-.045-.03-.044-.015-.06-.03-.046-.015-.015-.016-.056-.014v-.012l-.091-.03-.06-.03-.03-.015h-.06c-.03-.015-.045-.015-.075-.03H13.2l-.045-.016h-.044l-.046-.014-.029-.016h-.061l-.061-.015-.029-.016h-.165l-.069-.015H12.3l-.046-.016c-.029-.014-.06-.029-.09-.06-.014-.03-.045-.06-.06-.089-.015-.031-.03-.061-.03-.091v-.09c.006-.046.016-.075.03-.105.008-.015.015-.03.03-.045.018-.03.045-.06.075-.075.015-.015.03-.015.044-.029.031-.016.061-.016.091-.016h.06l-.014.055zm.454 1.629c.015 0 .03 0 .044.004.016 0 .031 0 .046.002l.052.005c.104.009.213.024.318.046l.104.023.026.008.114.029.059.02.046.016c.045.014.091.045.135.06l.016.015.06.03.09.046.029.014c.016.016.031.016.046.03.015.016.045.03.06.045.061.03.105.075.15.105l.105.09.09.091.061.074.029.029.03.031.044.06.091.135.075.135.06.12.046.105c.044.104.06.195.09.299.029.091.045.196.06.285l.015.15.016.136V9.8c0 .045-.016.075-.03.105-.015.029-.046.074-.075.09-.03.029-.061.045-.105.061-.029.014-.06.014-.09.014-.029 0-.06 0-.09-.014l-.104-.046c-.03-.03-.06-.045-.091-.091-.015-.029-.029-.06-.045-.104v-.166l-.015-.105-.015-.119-.016-.105-.016-.06c0-.015-.014-.045-.014-.06-.03-.121-.09-.24-.15-.36l-.061-.06-.047-.06-.045-.045-.015-.03-.075-.06-.061-.061-.059-.045c-.016-.015-.03-.015-.061-.029l-.09-.061-.061-.03-.029-.015h-.016l-.076-.031-.09-.03-.09-.015h-.075l-.044-.015-.035-.007h-.045l-.06-.016h-.255l-.015-.075h-.039c-.03-.004-.055-.015-.08-.029-.035-.021-.064-.045-.09-.08-.018-.029-.034-.061-.045-.09-.008-.029-.012-.06-.012-.09 0-.037 0-.075.015-.113.015-.039.03-.07.06-.1l.061-.045c.029-.016.061-.03.09-.03l.062-.075h.032z"/></svg> </span>
|
739 |
<span class="simplesocialtxt">Viber</span>
|
740 |
</button>';
|
@@ -756,7 +773,7 @@ class SimpleSocialButtonsPR {
|
|
756 |
$link = urlencode( $permalink );
|
757 |
|
758 |
if ( $this->selected_theme == 'simple-icons' ) {
|
759 |
-
$arrButtonsCode[] = '<button
|
760 |
<span class="icon"> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="18px" height="19px" viewBox="-889.5 1161 18 19" enable-background="new -889.5 1161 18 19" xml:space="preserve">
|
761 |
<path opacity="0.99" fill="#FFFFFF" enable-background="new " d="M-880.5,1161c-5,0-9,3.8-9,8.5c0,2.4,1,4.5,2.7,6v4.5l3.8-2.3 c0.8,0.2,1.6,0.3,2.5,0.3c5,0,9-3.8,9-8.5S-875.5,1161-880.5,1161z M-879.6,1172.2l-2.4-2.4l-4.3,2.4l4.7-5.2l2.4,2.4l4.2-2.4 L-879.6,1172.2z"/>
|
762 |
</svg> </span>
|
@@ -769,7 +786,7 @@ class SimpleSocialButtonsPR {
|
|
769 |
break;
|
770 |
case 'email':
|
771 |
if ( $this->selected_theme == 'simple-icons' ) {
|
772 |
-
$arrButtonsCode[] = ' <button
|
773 |
<span class="icon"> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="16px" height="11.9px" viewBox="-1214.1 1563.9 16 11.9" enable-background="new -1214.1 1563.9 16 11.9" xml:space="preserve">
|
774 |
<path d="M-1214.1,1565.2v1l8,4l8-4v-1c0-0.7-0.6-1.3-1.3-1.3h-13.4C-1213.5,1563.9-1214.1,1564.4-1214.1,1565.2z M-1214.1,1567.4v7.1c0,0.7,0.6,1.3,1.3,1.3h13.4c0.7,0,1.3-0.6,1.3-1.3v-7.1l-8,4L-1214.1,1567.4z"/> </svg> </span>
|
775 |
<span class="simplesocialtxt">Email</span>
|
@@ -781,7 +798,7 @@ class SimpleSocialButtonsPR {
|
|
781 |
break;
|
782 |
case 'print':
|
783 |
if ( $this->selected_theme == 'simple-icons' ) {
|
784 |
-
$arrButtonsCode[] = ' <button
|
785 |
<span class="icon"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" width="16px" height="13.7px" viewBox="-1296.9 1876.4 16 13.7" enable-background="new -1296.9 1876.4 16 13.7" xml:space="preserve"><g>
|
786 |
<path fill="#FFFFFF" d="M-1288.9,1879.7c2.3,0,4.6,0,6.9,0c0.4,0,0.7,0.1,0.9,0.5c0.1,0.2,0.1,0.4,0.1,0.6c0,1.7,0,3.4,0,5.1 c0,0.7-0.4,1.1-1.1,1c-0.6,0-1.2,0-1.8,0c-0.1,0-0.2,0-0.2,0.2c0,0.7,0,1.4,0,2c0,0.6-0.4,1-1,1c-0.1,0-0.3,0-0.4,0 c-2.5,0-4.9,0-7.4,0c-0.3,0-0.5,0-0.8-0.1c-0.3-0.2-0.5-0.5-0.5-0.9c0-0.7,0-1.4,0-2c0-0.2-0.1-0.2-0.2-0.2c-0.6,0-1.2,0-1.7,0 c-0.7,0-1-0.4-1-1c0-1.7,0-3.4,0-5.1c0-0.4,0.2-0.8,0.6-0.9c0.2-0.1,0.3-0.1,0.5-0.1C-1293.5,1879.7-1291.2,1879.7-1288.9,1879.7z M-1288.9,1884.9C-1288.9,1884.9-1288.9,1884.9-1288.9,1884.9c-1.4,0-2.8,0-4.2,0c-0.1,0-0.2,0-0.2,0.2c0,0.3,0,0.7,0,1 c0,1,0,2,0,3c0,0.3,0.1,0.4,0.4,0.4c2.5,0,5.1,0,7.6,0c0.1,0,0.3,0,0.4,0c0.2,0,0.3-0.2,0.3-0.3c0-1.3,0-2.7,0-4 c0-0.2,0-0.2-0.2-0.2C-1286.1,1884.9-1287.5,1884.9-1288.9,1884.9z M-1284.2,1882.4c0.4,0,0.7-0.3,0.7-0.7c0-0.4-0.3-0.7-0.8-0.7 c-0.4,0-0.7,0.3-0.7,0.7C-1284.9,1882.1-1284.6,1882.4-1284.2,1882.4z"/>
|
787 |
<path fill="#FFFFFF" d="M-1283.9,1879c-0.2,0-0.4,0-0.5,0c-3.1,0-6.2,0-9.3,0c-0.1,0-0.2,0-0.2-0.2c0-0.5,0-1,0-1.5 c0-0.5,0.4-1,0.9-1c0.1,0,0.2,0,0.3,0c2.6,0,5.2,0,7.8,0c0.6,0,1,0.4,1,1c0,0.5,0,0.9,0,1.4 C-1283.9,1878.9-1283.9,1879-1283.9,1879z"/>
|
@@ -805,8 +822,7 @@ class SimpleSocialButtonsPR {
|
|
805 |
$ssb_buttonscode .= '</div>' . "\n";
|
806 |
|
807 |
}
|
808 |
-
|
809 |
-
return $ssb_buttonscode;
|
810 |
}
|
811 |
|
812 |
/**
|
@@ -862,15 +878,15 @@ class SimpleSocialButtonsPR {
|
|
862 |
// $class = 'simplesocialbuttons-float-left-post';
|
863 |
if ( $this->sidebar_option['hide_mobile'] ) {
|
864 |
$class .= ' simplesocialbuttons-mobile-hidden';
|
865 |
-
|
866 |
|
867 |
-
|
868 |
-
|
869 |
-
|
870 |
|
871 |
-
|
872 |
-
|
873 |
-
|
874 |
}
|
875 |
}
|
876 |
}
|
@@ -1296,7 +1312,7 @@ class SimpleSocialButtonsPR {
|
|
1296 |
break;
|
1297 |
case 'whatsapp':
|
1298 |
if ( $this->selected_theme == 'simple-icons' ) {
|
1299 |
-
$arrButtonsCode[] = ' <button
|
1300 |
<span class="icon"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" width="512px" height="512px" viewBox="0 0 90 90" style="enable-background:new 0 0 90 90;" xml:space="preserve" class=""><g><g> <path id="WhatsApp" d="M90,43.841c0,24.213-19.779,43.841-44.182,43.841c-7.747,0-15.025-1.98-21.357-5.455L0,90l7.975-23.522 c-4.023-6.606-6.34-14.354-6.34-22.637C1.635,19.628,21.416,0,45.818,0C70.223,0,90,19.628,90,43.841z M45.818,6.982 c-20.484,0-37.146,16.535-37.146,36.859c0,8.065,2.629,15.534,7.076,21.61L11.107,79.14l14.275-4.537 c5.865,3.851,12.891,6.097,20.437,6.097c20.481,0,37.146-16.533,37.146-36.857S66.301,6.982,45.818,6.982z M68.129,53.938 c-0.273-0.447-0.994-0.717-2.076-1.254c-1.084-0.537-6.41-3.138-7.4-3.495c-0.993-0.358-1.717-0.538-2.438,0.537 c-0.721,1.076-2.797,3.495-3.43,4.212c-0.632,0.719-1.263,0.809-2.347,0.271c-1.082-0.537-4.571-1.673-8.708-5.333 c-3.219-2.848-5.393-6.364-6.025-7.441c-0.631-1.075-0.066-1.656,0.475-2.191c0.488-0.482,1.084-1.255,1.625-1.882 c0.543-0.628,0.723-1.075,1.082-1.793c0.363-0.717,0.182-1.344-0.09-1.883c-0.27-0.537-2.438-5.825-3.34-7.977 c-0.902-2.15-1.803-1.792-2.436-1.792c-0.631,0-1.354-0.09-2.076-0.09c-0.722,0-1.896,0.269-2.889,1.344 c-0.992,1.076-3.789,3.676-3.789,8.963c0,5.288,3.879,10.397,4.422,11.113c0.541,0.716,7.49,11.92,18.5,16.223 C58.2,65.771,58.2,64.336,60.186,64.156c1.984-0.179,6.406-2.599,7.312-5.107C68.398,56.537,68.398,54.386,68.129,53.938z"/> </g></g> </svg> </span>
|
1301 |
<span class="simplesocialtxt">Whatsapp</span>
|
1302 |
</button>';
|
@@ -1308,7 +1324,7 @@ class SimpleSocialButtonsPR {
|
|
1308 |
|
1309 |
case 'viber':
|
1310 |
if ( $this->selected_theme == 'simple-icons' ) {
|
1311 |
-
$arrButtonsCode[] = '<button
|
1312 |
<span class="icon"> <svg aria-labelledby="simpleicons-viber-icon" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title id="simpleicons-viber-icon">Viber icon</title><path d="M20.812 2.343c-.596-.549-3.006-2.3-8.376-2.325 0 0-6.331-.38-9.415 2.451C1.302 4.189.698 6.698.634 9.82.569 12.934.487 18.774 6.12 20.36h.005l-.005 2.416s-.034.979.609 1.178c.779.24 1.236-.504 1.98-1.303.409-.439.972-1.088 1.397-1.582 3.851.322 6.813-.416 7.149-.525.777-.254 5.176-.816 5.893-6.658.738-6.021-.357-9.83-2.338-11.547v.004zm.652 11.112c-.615 4.876-4.184 5.187-4.83 5.396-.285.092-2.895.738-6.164.525 0 0-2.445 2.941-3.195 3.705-.121.121-.271.166-.361.145-.135-.029-.164-.18-.164-.404l.015-4.006c-.015 0 0 0 0 0-4.771-1.336-4.485-6.301-4.425-8.91.044-2.596.538-4.726 1.994-6.167 2.611-2.371 7.997-2.012 7.997-2.012 4.543.016 6.721 1.385 7.223 1.846 1.674 1.432 2.529 4.865 1.904 9.893l.006-.011zM7.741 4.983c.242 0 .459.109.629.311.004.002.58.695.83 1.034.235.32.551.83.711 1.115.285.51.104 1.032-.172 1.248l-.566.45c-.285.229-.25.653-.25.653s.84 3.157 3.959 3.953c0 0 .426.039.654-.246l.451-.569c.213-.285.734-.465 1.244-.181.285.15.795.466 1.116.704.339.24 1.032.826 1.036.826.33.271.404.689.18 1.109v.016c-.23.405-.541.78-.934 1.141h-.008c-.314.27-.629.42-.944.449-.03 0-.075.016-.136 0-.135 0-.27-.029-.404-.061v-.014c-.48-.135-1.275-.48-2.596-1.216-.855-.479-1.574-.96-2.189-1.455-.315-.255-.645-.54-.976-.87l-.076-.028-.03-.03-.029-.029c-.331-.33-.615-.66-.871-.98-.48-.609-.96-1.327-1.439-2.189-.735-1.32-1.08-2.115-1.215-2.596H5.7c-.045-.134-.075-.269-.06-.404-.015-.061 0-.105 0-.141.03-.299.189-.614.458-.944h.005c.355-.39.738-.704 1.146-.933.164-.091.329-.135.479-.135h.016l-.003.012zm4.095-.683h.116l.076.002h.02l.089.005h.511l.135.015h.074l.15.016h.03l.104.015h.016l.074.015c.046 0 .076.016.105.016h.091l.075.029.06.016.06.015.03.015h.045l.046.016h.029l.074.016.045.014.046.016.06.016.03.014c.03 0 .06.016.091.016l.044.015.046.016.119.044.061.031.135.06.045.015.045.016.09.045.061.015.029.015.076.031.029.014.061.031.045.014.045.03.059.03.046.029.03.016.061.03.044.03.075.045.045.016.074.044.016.015.045.031.09.074.046.03.044.03.031.014.045.031.074.074.061.045.045.03.016.015.029.016.074.061.046.044.03.03.045.029.045.031.029.015.12.12.06.061.135.135.031.029c.016.016.045.045.061.075l.029.03.166.194.045.06c.014.016.014.031.029.031l.09.135.045.045.09.12.076.12.045.09.059.105.045.09.016.029.029.061.076.15.074.149.031.075c.059.135.104.27.164.42.074.195.135.404.18.63.045.165.076.315.105.48l.029.27.045.3c.016.121.031.256.031.375.014.121.014.24.014.359v.256c0 .016-.006.029-.014.045-.016.03-.031.045-.061.075-.021.015-.049.046-.08.046-.029.014-.059.014-.09.014h-.045c-.029 0-.059-.014-.09-.029-.029-.016-.061-.03-.074-.061-.016-.029-.045-.061-.061-.09s-.031-.06-.031-.09v-.359c-.014-.209-.029-.425-.059-.639-.016-.146-.045-.284-.061-.42 0-.074-.016-.146-.029-.209l-.029-.15-.038-.141-.016-.09-.045-.15c-.029-.12-.074-.24-.119-.36-.029-.091-.061-.165-.105-.239l-.029-.076-.135-.27-.031-.045c-.061-.135-.135-.27-.225-.391l-.045-.074h-.201l-.064-.091c-.055-.089-.114-.165-.18-.239l-.125-.15-.015-.016-.046-.057-.035-.045-.075-.074-.015-.03-.07-.06-.045-.046-.083-.075-.04-.037-.046-.045-.015-.016c-.016-.015-.045-.045-.075-.06l-.076-.062-.03-.015-.061-.046-.074-.06-.045-.036-.03-.016-.06-.053c0-.016-.016-.016-.031-.016l-.029-.029-.015-.016v-.013l-.03-.014-.061-.037-.044-.031-.075-.045-.06-.045-.029-.016-.032-.013h-.09l-.019-.016-.065-.035-.009-.014-.03-.016-.045-.021h-.012l-.045-.016-.025-.015-.045-.015-.01-.011-.03-.016-.053-.029-.03-.015-.09-.03-.074-.029-.137-.016-.044-.029c-.015-.01-.03-.016-.046-.016l-.029-.015c-.029-.011-.045-.016-.075-.03l-.03-.016h-.029l-.061-.029-.029-.016-.045-.015h-.092c-.008 0-.019-.005-.03-.007h-.09l-.045-.016h-.015l-.045-.016h-.041c-.025-.014-.045-.014-.07-.014l-.01-.016-.06-.015c-.03-.016-.056-.016-.084-.016l-.045-.015-.05-.016-.045-.014-.061-.016h-.061l-.179-.022h-.09l-.116-.015h-.076l-.068-.008h-.03l-.054-.016h-.285l-.01-.015h-.061c-.03 0-.064-.015-.09-.03-.03-.016-.061-.029-.081-.06l-.03-.046c-.029-.029-.029-.06-.045-.09-.014-.028-.014-.059-.014-.089s0-.06.015-.09c.016-.029.029-.06.061-.075.015-.03.044-.044.074-.06.029-.016.061-.03.09-.03h.061l.015.066zm.554 1.574l.037.003.061.006c.008 0 .018 0 .029.003.022 0 .045.004.075.006l.06.008.024.016.045.015.048.015.045.016h.03l.042.015.07.015.056.016.026.014h.073l.119.028.046.015.045.015.045.016s.015 0 .015.015l.046.015.044.016.045.016c.015 0 .03.014.046.014.007 0 .014.016.025.016l.064.03h.029l.09.03.05.029.046.03.108.045.06.015.031.031c.045.014.09.044.135.059l.048.03.048.03.049.029c.045.03.082.046.121.076l.029.014.041.031.022.015.075.045.037.03.065.043.029.015.03.015.046.03.06.046c.015.014.022.014.034.029.01.015.016.015.025.03l.033.03.036.029.03.03.046.046.029.03.016.016.09.089.016.016c0 .015.015.03.029.03l.016.013.045.046.029.045.03.03.045.06.046.046.09.119.014.029.061.076.016.029.015.031.015.029.016.03c.016.015.016.03.029.06l.043.076.016.015.029.061.031.044c.014.015.014.029.029.045l.03.045.03.061.029.059.016.046c.015.044.045.075.06.12 0 .015.015.029.015.045l.045.119.061.195c0 .016.015.045.015.061l.046.135.044.18.046.24c.014.074.014.135.029.211.016.119.03.238.03.359l.015.21v.165c0 .016 0 .029-.015.045l-.044.043c-.029.023-.045.045-.074.061-.03.015-.061.029-.09.04-.031.016-.075.016-.105.016-.029 0-.061-.016-.09-.03-.016 0-.03-.016-.045-.021-.031-.014-.061-.039-.075-.065-.03-.03-.046-.06-.046-.091l-.014-.044v-.313c0-.133-.016-.256-.031-.385-.015-.135-.044-.285-.074-.42-.029-.09-.045-.18-.075-.26l-.03-.091-.029-.075-.016-.03-.045-.12-.045-.09-.075-.149-.069-.12v-.019l-.029-.047-.03-.038-.045-.075-.046-.061-.089-.119c-.046-.061-.09-.12-.142-.178-.014-.015-.029-.029-.029-.045l-.03-.029-.017-.016-.03-.014-.03-.027v-.146l-.119-.113-.075-.068v-.014l-.03-.031-.038-.029-.015-.016c0-.015-.016-.015-.029-.015l-.046-.016-.015-.015-.061-.045-.014-.016-.016-.015c-.012-.015-.023-.015-.03-.015l-.06-.045-.016-.016-.06-.029-.011-.016-.045-.029-.03-.016-.03-.029-.029-.031h-.016c-.029-.029-.06-.044-.105-.06l-.044-.03-.03-.014-.016-.016-.045-.03-.044-.015-.06-.03-.046-.015-.015-.016-.056-.014v-.012l-.091-.03-.06-.03-.03-.015h-.06c-.03-.015-.045-.015-.075-.03H13.2l-.045-.016h-.044l-.046-.014-.029-.016h-.061l-.061-.015-.029-.016h-.165l-.069-.015H12.3l-.046-.016c-.029-.014-.06-.029-.09-.06-.014-.03-.045-.06-.06-.089-.015-.031-.03-.061-.03-.091v-.09c.006-.046.016-.075.03-.105.008-.015.015-.03.03-.045.018-.03.045-.06.075-.075.015-.015.03-.015.044-.029.031-.016.061-.016.091-.016h.06l-.014.055zm.454 1.629c.015 0 .03 0 .044.004.016 0 .031 0 .046.002l.052.005c.104.009.213.024.318.046l.104.023.026.008.114.029.059.02.046.016c.045.014.091.045.135.06l.016.015.06.03.09.046.029.014c.016.016.031.016.046.03.015.016.045.03.06.045.061.03.105.075.15.105l.105.09.09.091.061.074.029.029.03.031.044.06.091.135.075.135.06.12.046.105c.044.104.06.195.09.299.029.091.045.196.06.285l.015.15.016.136V9.8c0 .045-.016.075-.03.105-.015.029-.046.074-.075.09-.03.029-.061.045-.105.061-.029.014-.06.014-.09.014-.029 0-.06 0-.09-.014l-.104-.046c-.03-.03-.06-.045-.091-.091-.015-.029-.029-.06-.045-.104v-.166l-.015-.105-.015-.119-.016-.105-.016-.06c0-.015-.014-.045-.014-.06-.03-.121-.09-.24-.15-.36l-.061-.06-.047-.06-.045-.045-.015-.03-.075-.06-.061-.061-.059-.045c-.016-.015-.03-.015-.061-.029l-.09-.061-.061-.03-.029-.015h-.016l-.076-.031-.09-.03-.09-.015h-.075l-.044-.015-.035-.007h-.045l-.06-.016h-.255l-.015-.075h-.039c-.03-.004-.055-.015-.08-.029-.035-.021-.064-.045-.09-.08-.018-.029-.034-.061-.045-.09-.008-.029-.012-.06-.012-.09 0-.037 0-.075.015-.113.015-.039.03-.07.06-.1l.061-.045c.029-.016.061-.03.09-.03l.062-.075h.032z"/></svg> </span>
|
1313 |
<span class="simplesocialtxt">Viber</span>
|
1314 |
</button>';
|
@@ -1329,7 +1345,7 @@ class SimpleSocialButtonsPR {
|
|
1329 |
$link = urlencode( $permalink );
|
1330 |
|
1331 |
if ( $this->selected_theme == 'simple-icons' ) {
|
1332 |
-
$arrButtonsCode[] = '<button
|
1333 |
<span class="icon"> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="18px" height="19px" viewBox="-889.5 1161 18 19" enable-background="new -889.5 1161 18 19" xml:space="preserve">
|
1334 |
<path opacity="0.99" fill="#FFFFFF" enable-background="new " d="M-880.5,1161c-5,0-9,3.8-9,8.5c0,2.4,1,4.5,2.7,6v4.5l3.8-2.3 c0.8,0.2,1.6,0.3,2.5,0.3c5,0,9-3.8,9-8.5S-875.5,1161-880.5,1161z M-879.6,1172.2l-2.4-2.4l-4.3,2.4l4.7-5.2l2.4,2.4l4.2-2.4 L-879.6,1172.2z"/>
|
1335 |
</svg> </span>
|
@@ -1343,7 +1359,7 @@ class SimpleSocialButtonsPR {
|
|
1343 |
break;
|
1344 |
case 'email':
|
1345 |
if ( $this->selected_theme == 'simple-icons' ) {
|
1346 |
-
$arrButtonsCode[] = ' <button
|
1347 |
<span class="icon"> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="16px" height="11.9px" viewBox="-1214.1 1563.9 16 11.9" enable-background="new -1214.1 1563.9 16 11.9" xml:space="preserve">
|
1348 |
<path d="M-1214.1,1565.2v1l8,4l8-4v-1c0-0.7-0.6-1.3-1.3-1.3h-13.4C-1213.5,1563.9-1214.1,1564.4-1214.1,1565.2z M-1214.1,1567.4v7.1c0,0.7,0.6,1.3,1.3,1.3h13.4c0.7,0,1.3-0.6,1.3-1.3v-7.1l-8,4L-1214.1,1567.4z"/> </svg> </span>
|
1349 |
<span class="simplesocialtxt">Email</span>
|
@@ -1355,7 +1371,7 @@ class SimpleSocialButtonsPR {
|
|
1355 |
break;
|
1356 |
case 'print':
|
1357 |
if ( $this->selected_theme == 'simple-icons' ) {
|
1358 |
-
$arrButtonsCode[] = ' <button
|
1359 |
<span class="icon"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" width="16px" height="13.7px" viewBox="-1296.9 1876.4 16 13.7" enable-background="new -1296.9 1876.4 16 13.7" xml:space="preserve"><g>
|
1360 |
<path fill="#FFFFFF" d="M-1288.9,1879.7c2.3,0,4.6,0,6.9,0c0.4,0,0.7,0.1,0.9,0.5c0.1,0.2,0.1,0.4,0.1,0.6c0,1.7,0,3.4,0,5.1 c0,0.7-0.4,1.1-1.1,1c-0.6,0-1.2,0-1.8,0c-0.1,0-0.2,0-0.2,0.2c0,0.7,0,1.4,0,2c0,0.6-0.4,1-1,1c-0.1,0-0.3,0-0.4,0 c-2.5,0-4.9,0-7.4,0c-0.3,0-0.5,0-0.8-0.1c-0.3-0.2-0.5-0.5-0.5-0.9c0-0.7,0-1.4,0-2c0-0.2-0.1-0.2-0.2-0.2c-0.6,0-1.2,0-1.7,0 c-0.7,0-1-0.4-1-1c0-1.7,0-3.4,0-5.1c0-0.4,0.2-0.8,0.6-0.9c0.2-0.1,0.3-0.1,0.5-0.1C-1293.5,1879.7-1291.2,1879.7-1288.9,1879.7z M-1288.9,1884.9C-1288.9,1884.9-1288.9,1884.9-1288.9,1884.9c-1.4,0-2.8,0-4.2,0c-0.1,0-0.2,0-0.2,0.2c0,0.3,0,0.7,0,1 c0,1,0,2,0,3c0,0.3,0.1,0.4,0.4,0.4c2.5,0,5.1,0,7.6,0c0.1,0,0.3,0,0.4,0c0.2,0,0.3-0.2,0.3-0.3c0-1.3,0-2.7,0-4 c0-0.2,0-0.2-0.2-0.2C-1286.1,1884.9-1287.5,1884.9-1288.9,1884.9z M-1284.2,1882.4c0.4,0,0.7-0.3,0.7-0.7c0-0.4-0.3-0.7-0.8-0.7 c-0.4,0-0.7,0.3-0.7,0.7C-1284.9,1882.1-1284.6,1882.4-1284.2,1882.4z"/>
|
1361 |
<path fill="#FFFFFF" d="M-1283.9,1879c-0.2,0-0.4,0-0.5,0c-3.1,0-6.2,0-9.3,0c-0.1,0-0.2,0-0.2-0.2c0-0.5,0-1,0-1.5 c0-0.5,0.4-1,0.9-1c0.1,0,0.2,0,0.3,0c2.6,0,5.2,0,7.8,0c0.6,0,1,0.4,1,1c0,0.5,0,0.9,0,1.4 C-1283.9,1878.9-1283.9,1879-1283.9,1879z"/>
|
@@ -1559,9 +1575,25 @@ class SimpleSocialButtonsPR {
|
|
1559 |
return $images;
|
1560 |
}
|
1561 |
|
1562 |
-
|
1563 |
-
|
1564 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1565 |
} // end class
|
1566 |
|
1567 |
|
3 |
* Plugin Name: Simple Social Buttons
|
4 |
* Plugin URI: http://www.WPBrigade.com/wordpress/plugins/simple-social-buttons/
|
5 |
* Description: Simple Social Buttons adds an advanced set of social media sharing buttons to your WordPress sites, such as: Google +1, Facebook, WhatsApp, Viber, Twitter, Reddit, LinkedIn and Pinterest. This makes it the most <code>Flexible Social Sharing Plugin ever for Everyone.</code>
|
6 |
+
* Version: 2.0.12
|
7 |
* Author: WPBrigade
|
8 |
* Author URI: http://www.WPBrigade.com/
|
9 |
* Text Domain: simple-social-buttons
|
30 |
|
31 |
class SimpleSocialButtonsPR {
|
32 |
public $pluginName = 'Simple Social Buttons';
|
33 |
+
public $pluginVersion = '2.0.12';
|
34 |
public $pluginPrefix = 'ssb_pr_';
|
35 |
public $hideCustomMetaKey = '_ssb_hide';
|
36 |
private $fb_app_id = '891268654262273';
|
107 |
add_action( 'wp_footer', array( $this, 'include_sidebar' ) );
|
108 |
add_action( 'wp_head', array( $this, 'css_file' ) );
|
109 |
|
110 |
+
// add_action( 'admin_notices', array( $this, 'update_notice' ) );
|
111 |
add_action( 'admin_init', array( $this, 'review_update_notice' ) );
|
112 |
add_action( 'wp_footer', array( $this, 'fblike_script' ) );
|
113 |
|
119 |
function set_selected_networks() {
|
120 |
$networks = get_option( 'ssb_networks' );
|
121 |
$this->selected_networks = array_flip( array_merge( array( 0 ), explode( ',', $networks['icon_selection'] ) ) );
|
122 |
+
}
|
|
|
123 |
|
124 |
function set_selected_theme() {
|
125 |
$theme = get_option( 'ssb_themes' );
|
503 |
|
504 |
// define empty buttons code to use
|
505 |
$ssb_buttonscode = '';
|
|
|
506 |
// get post permalink and title
|
507 |
$permalink = get_permalink();
|
508 |
$title = get_the_title();
|
517 |
// echo '<pre>'; print_r( $arrButtons ); echo '</pre>';
|
518 |
@asort( $arrButtons );
|
519 |
|
520 |
+
// add total share index in array.
|
521 |
if ( $show_total ) {
|
522 |
+
$arrButtons['totalshare'] = '100'; }
|
523 |
$post_id = get_the_id();
|
524 |
|
525 |
+
// get the value for http or https solve options
|
526 |
+
$http_solve = false;
|
527 |
+
if( isset( $this->extra_option['http_https_resolve'] ) ) {
|
528 |
+
if ( false == get_post_meta( $post_id, 'ssb_old_counts', true ) ){
|
529 |
+
$http_solve = true;
|
530 |
+
}
|
531 |
+
}
|
532 |
+
|
533 |
// // Reset the cache timestamp if needed
|
534 |
// // if false fetch the new share counts.
|
535 |
+
if ( ( isset( $this->settings['cache'] ) && $this->settings['cache'] == 'off') || ( true == $http_solve ) ) {
|
536 |
|
537 |
$_share_links = array();
|
538 |
+
$_alt_share_links = array();
|
539 |
foreach ( $arrButtons as $social_name => $priority ) {
|
540 |
if ( 'totalshare' == $social_name || 'viber' == $social_name || 'fblike' == $social_name || 'whatsapp' == $social_name || 'print' == $social_name || 'email' == $social_name || 'messenger' == $social_name) {
|
541 |
continue; }
|
542 |
+
$_share_links[ $social_name ] = call_user_func( 'ssb_' . $social_name . '_generate_link', $permalink );
|
543 |
+
$url=$this->http_or_https_resolve_url( $permalink );
|
544 |
+
//get alt hurl to cover http or https issue
|
545 |
+
$_alt_share_links[ $social_name ] = call_user_func( 'ssb_' . $social_name . '_generate_link', $url );
|
546 |
+
}
|
547 |
+
//solve http/https issue fetch result
|
548 |
+
$_result = ssb_fetch_shares_via_curl_multi( array_filter( $_alt_share_links ) );
|
549 |
+
//normal fetch
|
550 |
+
$result = ssb_fetch_shares_via_curl_multi( array_filter( $_share_links ) );
|
551 |
+
|
552 |
+
// $result = ssb_fetch_shares_via_curl_multi(
|
553 |
+
// array(
|
554 |
+
// 'linkedin' => ssb_linkedin_generate_link( 'https://wpbrigade.com/first-wordcamp-talk/' ),
|
555 |
+
// 'fbshare' => ssb_fbshare_generate_link( 'https://propakistani.pk/2017/09/06/lahore-get-600-million-disneyland-like-amusement-park/' ),
|
556 |
+
// 'googleplus' => ssb_googleplus_generate_link( 'https://wpbrigade.com/first-wordcamp-talk/' ),
|
557 |
+
// 'twitter' => ssb_twitter_generate_link( 'https://wptavern.com/jetpack-5-3-adds-php-7-1-compatibility-better-control-for-wordads-placement' ),
|
558 |
+
// 'pinterest' => ssb_pinterest_generate_link( 'http://websitehostingcost.com/tag/dedicated/' ),
|
559 |
+
// 'reddit' => ssb_reddit_generate_link( 'http://stackoverflow.com/q/811074/1288' )
|
560 |
+
// )
|
561 |
+
// );
|
562 |
+
|
563 |
+
|
564 |
+
//fetch http / https result and save in network_old_share_count meta tags
|
565 |
+
ssb_fetch_http_or_https_counts( $_result, $post_id);
|
566 |
+
$share_counts = ssb_fetch_fresh_counts( $result, $post_id );
|
567 |
+
|
568 |
+
// update_post_meta( $post_id,'ssb_cache_timestamp',floor( ( ( date( 'U' ) / 60) / 60 ) ) );
|
569 |
+
} else {
|
570 |
+
$share_counts = ssb_fetch_cached_counts( array_flip( $arrButtons ), $post_id );
|
571 |
}
|
572 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
573 |
$arrButtonsCode = array();
|
574 |
foreach ( $arrButtons as $button_name => $button_sort ) {
|
575 |
switch ( $button_name ) {
|
633 |
<span class="icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 72 72"><path fill="none" d="M0 0h72v72H0z"/><path class="icon" fill="#fff" d="M68.812 15.14c-2.348 1.04-4.87 1.744-7.52 2.06 2.704-1.62 4.78-4.186 5.757-7.243-2.53 1.5-5.33 2.592-8.314 3.176C56.35 10.59 52.948 9 49.182 9c-7.23 0-13.092 5.86-13.092 13.093 0 1.026.118 2.02.338 2.98C25.543 24.527 15.9 19.318 9.44 11.396c-1.125 1.936-1.77 4.184-1.77 6.58 0 4.543 2.312 8.552 5.824 10.9-2.146-.07-4.165-.658-5.93-1.64-.002.056-.002.11-.002.163 0 6.345 4.513 11.638 10.504 12.84-1.1.298-2.256.457-3.45.457-.845 0-1.666-.078-2.464-.23 1.667 5.2 6.5 8.985 12.23 9.09-4.482 3.51-10.13 5.605-16.26 5.605-1.055 0-2.096-.06-3.122-.184 5.794 3.717 12.676 5.882 20.067 5.882 24.083 0 37.25-19.95 37.25-37.25 0-.565-.013-1.133-.038-1.693 2.558-1.847 4.778-4.15 6.532-6.774z"/></svg></span>';
|
634 |
|
635 |
if ( $show_count ) {
|
636 |
+
$_html .= '<i class="simplesocialtxt">Tweet '. $twitter_share .'</i>';
|
637 |
} else{
|
638 |
+
$_html .= '<i class="simplesocialtxt">Tweet </i>';
|
639 |
|
640 |
}
|
641 |
|
739 |
break;
|
740 |
case 'whatsapp':
|
741 |
if ( $this->selected_theme == 'simple-icons' ) {
|
742 |
+
$arrButtonsCode[] = ' <button onclick="javascript:window.open(this.dataset.href, \'_blank\' );return false;" class="ssb_whatsapp-icon simplesocial-whatsapp-share" data-href="https://api.whatsapp.com/send?text=' . $permalink . '"><span class="simplesocialtxt">
|
743 |
<span class="icon"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" width="512px" height="512px" viewBox="0 0 90 90" style="enable-background:new 0 0 90 90;" xml:space="preserve" class=""><g><g> <path id="WhatsApp" d="M90,43.841c0,24.213-19.779,43.841-44.182,43.841c-7.747,0-15.025-1.98-21.357-5.455L0,90l7.975-23.522 c-4.023-6.606-6.34-14.354-6.34-22.637C1.635,19.628,21.416,0,45.818,0C70.223,0,90,19.628,90,43.841z M45.818,6.982 c-20.484,0-37.146,16.535-37.146,36.859c0,8.065,2.629,15.534,7.076,21.61L11.107,79.14l14.275-4.537 c5.865,3.851,12.891,6.097,20.437,6.097c20.481,0,37.146-16.533,37.146-36.857S66.301,6.982,45.818,6.982z M68.129,53.938 c-0.273-0.447-0.994-0.717-2.076-1.254c-1.084-0.537-6.41-3.138-7.4-3.495c-0.993-0.358-1.717-0.538-2.438,0.537 c-0.721,1.076-2.797,3.495-3.43,4.212c-0.632,0.719-1.263,0.809-2.347,0.271c-1.082-0.537-4.571-1.673-8.708-5.333 c-3.219-2.848-5.393-6.364-6.025-7.441c-0.631-1.075-0.066-1.656,0.475-2.191c0.488-0.482,1.084-1.255,1.625-1.882 c0.543-0.628,0.723-1.075,1.082-1.793c0.363-0.717,0.182-1.344-0.09-1.883c-0.27-0.537-2.438-5.825-3.34-7.977 c-0.902-2.15-1.803-1.792-2.436-1.792c-0.631,0-1.354-0.09-2.076-0.09c-0.722,0-1.896,0.269-2.889,1.344 c-0.992,1.076-3.789,3.676-3.789,8.963c0,5.288,3.879,10.397,4.422,11.113c0.541,0.716,7.49,11.92,18.5,16.223 C58.2,65.771,58.2,64.336,60.186,64.156c1.984-0.179,6.406-2.599,7.312-5.107C68.398,56.537,68.398,54.386,68.129,53.938z"/> </g></g> </svg> </span>
|
744 |
<span class="simplesocialtxt">Whatsapp</span>
|
745 |
</button>';
|
751 |
|
752 |
case 'viber':
|
753 |
if ( $this->selected_theme == 'simple-icons' ) {
|
754 |
+
$arrButtonsCode[] = '<button onclick="javascript:window.open(this.dataset.href, \'_self\' );return false;" class="simplesocial-viber-share ssb_viber-icon" data-href="viber://forward?text=' . $permalink . '">
|
755 |
<span class="icon"> <svg aria-labelledby="simpleicons-viber-icon" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title id="simpleicons-viber-icon">Viber icon</title><path d="M20.812 2.343c-.596-.549-3.006-2.3-8.376-2.325 0 0-6.331-.38-9.415 2.451C1.302 4.189.698 6.698.634 9.82.569 12.934.487 18.774 6.12 20.36h.005l-.005 2.416s-.034.979.609 1.178c.779.24 1.236-.504 1.98-1.303.409-.439.972-1.088 1.397-1.582 3.851.322 6.813-.416 7.149-.525.777-.254 5.176-.816 5.893-6.658.738-6.021-.357-9.83-2.338-11.547v.004zm.652 11.112c-.615 4.876-4.184 5.187-4.83 5.396-.285.092-2.895.738-6.164.525 0 0-2.445 2.941-3.195 3.705-.121.121-.271.166-.361.145-.135-.029-.164-.18-.164-.404l.015-4.006c-.015 0 0 0 0 0-4.771-1.336-4.485-6.301-4.425-8.91.044-2.596.538-4.726 1.994-6.167 2.611-2.371 7.997-2.012 7.997-2.012 4.543.016 6.721 1.385 7.223 1.846 1.674 1.432 2.529 4.865 1.904 9.893l.006-.011zM7.741 4.983c.242 0 .459.109.629.311.004.002.58.695.83 1.034.235.32.551.83.711 1.115.285.51.104 1.032-.172 1.248l-.566.45c-.285.229-.25.653-.25.653s.84 3.157 3.959 3.953c0 0 .426.039.654-.246l.451-.569c.213-.285.734-.465 1.244-.181.285.15.795.466 1.116.704.339.24 1.032.826 1.036.826.33.271.404.689.18 1.109v.016c-.23.405-.541.78-.934 1.141h-.008c-.314.27-.629.42-.944.449-.03 0-.075.016-.136 0-.135 0-.27-.029-.404-.061v-.014c-.48-.135-1.275-.48-2.596-1.216-.855-.479-1.574-.96-2.189-1.455-.315-.255-.645-.54-.976-.87l-.076-.028-.03-.03-.029-.029c-.331-.33-.615-.66-.871-.98-.48-.609-.96-1.327-1.439-2.189-.735-1.32-1.08-2.115-1.215-2.596H5.7c-.045-.134-.075-.269-.06-.404-.015-.061 0-.105 0-.141.03-.299.189-.614.458-.944h.005c.355-.39.738-.704 1.146-.933.164-.091.329-.135.479-.135h.016l-.003.012zm4.095-.683h.116l.076.002h.02l.089.005h.511l.135.015h.074l.15.016h.03l.104.015h.016l.074.015c.046 0 .076.016.105.016h.091l.075.029.06.016.06.015.03.015h.045l.046.016h.029l.074.016.045.014.046.016.06.016.03.014c.03 0 .06.016.091.016l.044.015.046.016.119.044.061.031.135.06.045.015.045.016.09.045.061.015.029.015.076.031.029.014.061.031.045.014.045.03.059.03.046.029.03.016.061.03.044.03.075.045.045.016.074.044.016.015.045.031.09.074.046.03.044.03.031.014.045.031.074.074.061.045.045.03.016.015.029.016.074.061.046.044.03.03.045.029.045.031.029.015.12.12.06.061.135.135.031.029c.016.016.045.045.061.075l.029.03.166.194.045.06c.014.016.014.031.029.031l.09.135.045.045.09.12.076.12.045.09.059.105.045.09.016.029.029.061.076.15.074.149.031.075c.059.135.104.27.164.42.074.195.135.404.18.63.045.165.076.315.105.48l.029.27.045.3c.016.121.031.256.031.375.014.121.014.24.014.359v.256c0 .016-.006.029-.014.045-.016.03-.031.045-.061.075-.021.015-.049.046-.08.046-.029.014-.059.014-.09.014h-.045c-.029 0-.059-.014-.09-.029-.029-.016-.061-.03-.074-.061-.016-.029-.045-.061-.061-.09s-.031-.06-.031-.09v-.359c-.014-.209-.029-.425-.059-.639-.016-.146-.045-.284-.061-.42 0-.074-.016-.146-.029-.209l-.029-.15-.038-.141-.016-.09-.045-.15c-.029-.12-.074-.24-.119-.36-.029-.091-.061-.165-.105-.239l-.029-.076-.135-.27-.031-.045c-.061-.135-.135-.27-.225-.391l-.045-.074h-.201l-.064-.091c-.055-.089-.114-.165-.18-.239l-.125-.15-.015-.016-.046-.057-.035-.045-.075-.074-.015-.03-.07-.06-.045-.046-.083-.075-.04-.037-.046-.045-.015-.016c-.016-.015-.045-.045-.075-.06l-.076-.062-.03-.015-.061-.046-.074-.06-.045-.036-.03-.016-.06-.053c0-.016-.016-.016-.031-.016l-.029-.029-.015-.016v-.013l-.03-.014-.061-.037-.044-.031-.075-.045-.06-.045-.029-.016-.032-.013h-.09l-.019-.016-.065-.035-.009-.014-.03-.016-.045-.021h-.012l-.045-.016-.025-.015-.045-.015-.01-.011-.03-.016-.053-.029-.03-.015-.09-.03-.074-.029-.137-.016-.044-.029c-.015-.01-.03-.016-.046-.016l-.029-.015c-.029-.011-.045-.016-.075-.03l-.03-.016h-.029l-.061-.029-.029-.016-.045-.015h-.092c-.008 0-.019-.005-.03-.007h-.09l-.045-.016h-.015l-.045-.016h-.041c-.025-.014-.045-.014-.07-.014l-.01-.016-.06-.015c-.03-.016-.056-.016-.084-.016l-.045-.015-.05-.016-.045-.014-.061-.016h-.061l-.179-.022h-.09l-.116-.015h-.076l-.068-.008h-.03l-.054-.016h-.285l-.01-.015h-.061c-.03 0-.064-.015-.09-.03-.03-.016-.061-.029-.081-.06l-.03-.046c-.029-.029-.029-.06-.045-.09-.014-.028-.014-.059-.014-.089s0-.06.015-.09c.016-.029.029-.06.061-.075.015-.03.044-.044.074-.06.029-.016.061-.03.09-.03h.061l.015.066zm.554 1.574l.037.003.061.006c.008 0 .018 0 .029.003.022 0 .045.004.075.006l.06.008.024.016.045.015.048.015.045.016h.03l.042.015.07.015.056.016.026.014h.073l.119.028.046.015.045.015.045.016s.015 0 .015.015l.046.015.044.016.045.016c.015 0 .03.014.046.014.007 0 .014.016.025.016l.064.03h.029l.09.03.05.029.046.03.108.045.06.015.031.031c.045.014.09.044.135.059l.048.03.048.03.049.029c.045.03.082.046.121.076l.029.014.041.031.022.015.075.045.037.03.065.043.029.015.03.015.046.03.06.046c.015.014.022.014.034.029.01.015.016.015.025.03l.033.03.036.029.03.03.046.046.029.03.016.016.09.089.016.016c0 .015.015.03.029.03l.016.013.045.046.029.045.03.03.045.06.046.046.09.119.014.029.061.076.016.029.015.031.015.029.016.03c.016.015.016.03.029.06l.043.076.016.015.029.061.031.044c.014.015.014.029.029.045l.03.045.03.061.029.059.016.046c.015.044.045.075.06.12 0 .015.015.029.015.045l.045.119.061.195c0 .016.015.045.015.061l.046.135.044.18.046.24c.014.074.014.135.029.211.016.119.03.238.03.359l.015.21v.165c0 .016 0 .029-.015.045l-.044.043c-.029.023-.045.045-.074.061-.03.015-.061.029-.09.04-.031.016-.075.016-.105.016-.029 0-.061-.016-.09-.03-.016 0-.03-.016-.045-.021-.031-.014-.061-.039-.075-.065-.03-.03-.046-.06-.046-.091l-.014-.044v-.313c0-.133-.016-.256-.031-.385-.015-.135-.044-.285-.074-.42-.029-.09-.045-.18-.075-.26l-.03-.091-.029-.075-.016-.03-.045-.12-.045-.09-.075-.149-.069-.12v-.019l-.029-.047-.03-.038-.045-.075-.046-.061-.089-.119c-.046-.061-.09-.12-.142-.178-.014-.015-.029-.029-.029-.045l-.03-.029-.017-.016-.03-.014-.03-.027v-.146l-.119-.113-.075-.068v-.014l-.03-.031-.038-.029-.015-.016c0-.015-.016-.015-.029-.015l-.046-.016-.015-.015-.061-.045-.014-.016-.016-.015c-.012-.015-.023-.015-.03-.015l-.06-.045-.016-.016-.06-.029-.011-.016-.045-.029-.03-.016-.03-.029-.029-.031h-.016c-.029-.029-.06-.044-.105-.06l-.044-.03-.03-.014-.016-.016-.045-.03-.044-.015-.06-.03-.046-.015-.015-.016-.056-.014v-.012l-.091-.03-.06-.03-.03-.015h-.06c-.03-.015-.045-.015-.075-.03H13.2l-.045-.016h-.044l-.046-.014-.029-.016h-.061l-.061-.015-.029-.016h-.165l-.069-.015H12.3l-.046-.016c-.029-.014-.06-.029-.09-.06-.014-.03-.045-.06-.06-.089-.015-.031-.03-.061-.03-.091v-.09c.006-.046.016-.075.03-.105.008-.015.015-.03.03-.045.018-.03.045-.06.075-.075.015-.015.03-.015.044-.029.031-.016.061-.016.091-.016h.06l-.014.055zm.454 1.629c.015 0 .03 0 .044.004.016 0 .031 0 .046.002l.052.005c.104.009.213.024.318.046l.104.023.026.008.114.029.059.02.046.016c.045.014.091.045.135.06l.016.015.06.03.09.046.029.014c.016.016.031.016.046.03.015.016.045.03.06.045.061.03.105.075.15.105l.105.09.09.091.061.074.029.029.03.031.044.06.091.135.075.135.06.12.046.105c.044.104.06.195.09.299.029.091.045.196.06.285l.015.15.016.136V9.8c0 .045-.016.075-.03.105-.015.029-.046.074-.075.09-.03.029-.061.045-.105.061-.029.014-.06.014-.09.014-.029 0-.06 0-.09-.014l-.104-.046c-.03-.03-.06-.045-.091-.091-.015-.029-.029-.06-.045-.104v-.166l-.015-.105-.015-.119-.016-.105-.016-.06c0-.015-.014-.045-.014-.06-.03-.121-.09-.24-.15-.36l-.061-.06-.047-.06-.045-.045-.015-.03-.075-.06-.061-.061-.059-.045c-.016-.015-.03-.015-.061-.029l-.09-.061-.061-.03-.029-.015h-.016l-.076-.031-.09-.03-.09-.015h-.075l-.044-.015-.035-.007h-.045l-.06-.016h-.255l-.015-.075h-.039c-.03-.004-.055-.015-.08-.029-.035-.021-.064-.045-.09-.08-.018-.029-.034-.061-.045-.09-.008-.029-.012-.06-.012-.09 0-.037 0-.075.015-.113.015-.039.03-.07.06-.1l.061-.045c.029-.016.061-.03.09-.03l.062-.075h.032z"/></svg> </span>
|
756 |
<span class="simplesocialtxt">Viber</span>
|
757 |
</button>';
|
773 |
$link = urlencode( $permalink );
|
774 |
|
775 |
if ( $this->selected_theme == 'simple-icons' ) {
|
776 |
+
$arrButtonsCode[] = '<button onclick="javascript:window.open(this.dataset.href, \'_blank\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600\' );return false;" class="simplesocial-viber-share ssb_msng-icon" data-href="http://www.facebook.com/dialog/send?app_id='. $this->fb_app_id .'&redirect_uri=' . $link . '&link=' . $link . '&display=popup">
|
777 |
<span class="icon"> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="18px" height="19px" viewBox="-889.5 1161 18 19" enable-background="new -889.5 1161 18 19" xml:space="preserve">
|
778 |
<path opacity="0.99" fill="#FFFFFF" enable-background="new " d="M-880.5,1161c-5,0-9,3.8-9,8.5c0,2.4,1,4.5,2.7,6v4.5l3.8-2.3 c0.8,0.2,1.6,0.3,2.5,0.3c5,0,9-3.8,9-8.5S-875.5,1161-880.5,1161z M-879.6,1172.2l-2.4-2.4l-4.3,2.4l4.7-5.2l2.4,2.4l4.2-2.4 L-879.6,1172.2z"/>
|
779 |
</svg> </span>
|
786 |
break;
|
787 |
case 'email':
|
788 |
if ( $this->selected_theme == 'simple-icons' ) {
|
789 |
+
$arrButtonsCode[] = ' <button onclick="javascript:window.location.href = this.dataset.href;return false;" class="ssb_email-icon simplesocial-email-share" data-href="mailto:?subject='. $title .'&body='. $permalink .'"><span class="simplesocialtxt">
|
790 |
<span class="icon"> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="16px" height="11.9px" viewBox="-1214.1 1563.9 16 11.9" enable-background="new -1214.1 1563.9 16 11.9" xml:space="preserve">
|
791 |
<path d="M-1214.1,1565.2v1l8,4l8-4v-1c0-0.7-0.6-1.3-1.3-1.3h-13.4C-1213.5,1563.9-1214.1,1564.4-1214.1,1565.2z M-1214.1,1567.4v7.1c0,0.7,0.6,1.3,1.3,1.3h13.4c0.7,0,1.3-0.6,1.3-1.3v-7.1l-8,4L-1214.1,1567.4z"/> </svg> </span>
|
792 |
<span class="simplesocialtxt">Email</span>
|
798 |
break;
|
799 |
case 'print':
|
800 |
if ( $this->selected_theme == 'simple-icons' ) {
|
801 |
+
$arrButtonsCode[] = ' <button onclick="javascript:window.print();return false;" class=" ssb_print-icon simplesocial-email-share" ><span class="simplesocialtxt">
|
802 |
<span class="icon"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" width="16px" height="13.7px" viewBox="-1296.9 1876.4 16 13.7" enable-background="new -1296.9 1876.4 16 13.7" xml:space="preserve"><g>
|
803 |
<path fill="#FFFFFF" d="M-1288.9,1879.7c2.3,0,4.6,0,6.9,0c0.4,0,0.7,0.1,0.9,0.5c0.1,0.2,0.1,0.4,0.1,0.6c0,1.7,0,3.4,0,5.1 c0,0.7-0.4,1.1-1.1,1c-0.6,0-1.2,0-1.8,0c-0.1,0-0.2,0-0.2,0.2c0,0.7,0,1.4,0,2c0,0.6-0.4,1-1,1c-0.1,0-0.3,0-0.4,0 c-2.5,0-4.9,0-7.4,0c-0.3,0-0.5,0-0.8-0.1c-0.3-0.2-0.5-0.5-0.5-0.9c0-0.7,0-1.4,0-2c0-0.2-0.1-0.2-0.2-0.2c-0.6,0-1.2,0-1.7,0 c-0.7,0-1-0.4-1-1c0-1.7,0-3.4,0-5.1c0-0.4,0.2-0.8,0.6-0.9c0.2-0.1,0.3-0.1,0.5-0.1C-1293.5,1879.7-1291.2,1879.7-1288.9,1879.7z M-1288.9,1884.9C-1288.9,1884.9-1288.9,1884.9-1288.9,1884.9c-1.4,0-2.8,0-4.2,0c-0.1,0-0.2,0-0.2,0.2c0,0.3,0,0.7,0,1 c0,1,0,2,0,3c0,0.3,0.1,0.4,0.4,0.4c2.5,0,5.1,0,7.6,0c0.1,0,0.3,0,0.4,0c0.2,0,0.3-0.2,0.3-0.3c0-1.3,0-2.7,0-4 c0-0.2,0-0.2-0.2-0.2C-1286.1,1884.9-1287.5,1884.9-1288.9,1884.9z M-1284.2,1882.4c0.4,0,0.7-0.3,0.7-0.7c0-0.4-0.3-0.7-0.8-0.7 c-0.4,0-0.7,0.3-0.7,0.7C-1284.9,1882.1-1284.6,1882.4-1284.2,1882.4z"/>
|
804 |
<path fill="#FFFFFF" d="M-1283.9,1879c-0.2,0-0.4,0-0.5,0c-3.1,0-6.2,0-9.3,0c-0.1,0-0.2,0-0.2-0.2c0-0.5,0-1,0-1.5 c0-0.5,0.4-1,0.9-1c0.1,0,0.2,0,0.3,0c2.6,0,5.2,0,7.8,0c0.6,0,1,0.4,1,1c0,0.5,0,0.9,0,1.4 C-1283.9,1878.9-1283.9,1879-1283.9,1879z"/>
|
822 |
$ssb_buttonscode .= '</div>' . "\n";
|
823 |
|
824 |
}
|
825 |
+
return $ssb_buttonscode;
|
|
|
826 |
}
|
827 |
|
828 |
/**
|
878 |
// $class = 'simplesocialbuttons-float-left-post';
|
879 |
if ( $this->sidebar_option['hide_mobile'] ) {
|
880 |
$class .= ' simplesocialbuttons-mobile-hidden';
|
881 |
+
}
|
882 |
|
883 |
+
if ( $this->_get_settings( 'sidebar', 'share_counts' ) ) {
|
884 |
+
$class .= ' ssb_counter-activate';
|
885 |
+
}
|
886 |
|
887 |
+
$class .= ' simplesocialbuttons-slide-' . $this->_get_settings( 'sidebar', 'animation', 'no-animation' );
|
888 |
+
$_selected_network = apply_filters( 'ssb_sidebar_social_networks', $this->selected_networks );
|
889 |
+
echo $this->generate_buttons_code( $_selected_network, $show_count, $show_total, $class );
|
890 |
}
|
891 |
}
|
892 |
}
|
1312 |
break;
|
1313 |
case 'whatsapp':
|
1314 |
if ( $this->selected_theme == 'simple-icons' ) {
|
1315 |
+
$arrButtonsCode[] = ' <button onclick="javascript:window.open(this.dataset.href, \'_blank\' );return false;" class="simplesocial-whatsapp-share ssb_whatsapp-icon" data-href="https://api.whatsapp.com/send?text=' . $permalink . '"><span class="simplesocialtxt">
|
1316 |
<span class="icon"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" width="512px" height="512px" viewBox="0 0 90 90" style="enable-background:new 0 0 90 90;" xml:space="preserve" class=""><g><g> <path id="WhatsApp" d="M90,43.841c0,24.213-19.779,43.841-44.182,43.841c-7.747,0-15.025-1.98-21.357-5.455L0,90l7.975-23.522 c-4.023-6.606-6.34-14.354-6.34-22.637C1.635,19.628,21.416,0,45.818,0C70.223,0,90,19.628,90,43.841z M45.818,6.982 c-20.484,0-37.146,16.535-37.146,36.859c0,8.065,2.629,15.534,7.076,21.61L11.107,79.14l14.275-4.537 c5.865,3.851,12.891,6.097,20.437,6.097c20.481,0,37.146-16.533,37.146-36.857S66.301,6.982,45.818,6.982z M68.129,53.938 c-0.273-0.447-0.994-0.717-2.076-1.254c-1.084-0.537-6.41-3.138-7.4-3.495c-0.993-0.358-1.717-0.538-2.438,0.537 c-0.721,1.076-2.797,3.495-3.43,4.212c-0.632,0.719-1.263,0.809-2.347,0.271c-1.082-0.537-4.571-1.673-8.708-5.333 c-3.219-2.848-5.393-6.364-6.025-7.441c-0.631-1.075-0.066-1.656,0.475-2.191c0.488-0.482,1.084-1.255,1.625-1.882 c0.543-0.628,0.723-1.075,1.082-1.793c0.363-0.717,0.182-1.344-0.09-1.883c-0.27-0.537-2.438-5.825-3.34-7.977 c-0.902-2.15-1.803-1.792-2.436-1.792c-0.631,0-1.354-0.09-2.076-0.09c-0.722,0-1.896,0.269-2.889,1.344 c-0.992,1.076-3.789,3.676-3.789,8.963c0,5.288,3.879,10.397,4.422,11.113c0.541,0.716,7.49,11.92,18.5,16.223 C58.2,65.771,58.2,64.336,60.186,64.156c1.984-0.179,6.406-2.599,7.312-5.107C68.398,56.537,68.398,54.386,68.129,53.938z"/> </g></g> </svg> </span>
|
1317 |
<span class="simplesocialtxt">Whatsapp</span>
|
1318 |
</button>';
|
1324 |
|
1325 |
case 'viber':
|
1326 |
if ( $this->selected_theme == 'simple-icons' ) {
|
1327 |
+
$arrButtonsCode[] = '<button onclick="javascript:window.open(this.dataset.href, \'_self\' );return false;" class="simplesocial-viber-share ssb_viber-icon" data-href="viber://forward?text=' . $permalink . '">
|
1328 |
<span class="icon"> <svg aria-labelledby="simpleicons-viber-icon" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title id="simpleicons-viber-icon">Viber icon</title><path d="M20.812 2.343c-.596-.549-3.006-2.3-8.376-2.325 0 0-6.331-.38-9.415 2.451C1.302 4.189.698 6.698.634 9.82.569 12.934.487 18.774 6.12 20.36h.005l-.005 2.416s-.034.979.609 1.178c.779.24 1.236-.504 1.98-1.303.409-.439.972-1.088 1.397-1.582 3.851.322 6.813-.416 7.149-.525.777-.254 5.176-.816 5.893-6.658.738-6.021-.357-9.83-2.338-11.547v.004zm.652 11.112c-.615 4.876-4.184 5.187-4.83 5.396-.285.092-2.895.738-6.164.525 0 0-2.445 2.941-3.195 3.705-.121.121-.271.166-.361.145-.135-.029-.164-.18-.164-.404l.015-4.006c-.015 0 0 0 0 0-4.771-1.336-4.485-6.301-4.425-8.91.044-2.596.538-4.726 1.994-6.167 2.611-2.371 7.997-2.012 7.997-2.012 4.543.016 6.721 1.385 7.223 1.846 1.674 1.432 2.529 4.865 1.904 9.893l.006-.011zM7.741 4.983c.242 0 .459.109.629.311.004.002.58.695.83 1.034.235.32.551.83.711 1.115.285.51.104 1.032-.172 1.248l-.566.45c-.285.229-.25.653-.25.653s.84 3.157 3.959 3.953c0 0 .426.039.654-.246l.451-.569c.213-.285.734-.465 1.244-.181.285.15.795.466 1.116.704.339.24 1.032.826 1.036.826.33.271.404.689.18 1.109v.016c-.23.405-.541.78-.934 1.141h-.008c-.314.27-.629.42-.944.449-.03 0-.075.016-.136 0-.135 0-.27-.029-.404-.061v-.014c-.48-.135-1.275-.48-2.596-1.216-.855-.479-1.574-.96-2.189-1.455-.315-.255-.645-.54-.976-.87l-.076-.028-.03-.03-.029-.029c-.331-.33-.615-.66-.871-.98-.48-.609-.96-1.327-1.439-2.189-.735-1.32-1.08-2.115-1.215-2.596H5.7c-.045-.134-.075-.269-.06-.404-.015-.061 0-.105 0-.141.03-.299.189-.614.458-.944h.005c.355-.39.738-.704 1.146-.933.164-.091.329-.135.479-.135h.016l-.003.012zm4.095-.683h.116l.076.002h.02l.089.005h.511l.135.015h.074l.15.016h.03l.104.015h.016l.074.015c.046 0 .076.016.105.016h.091l.075.029.06.016.06.015.03.015h.045l.046.016h.029l.074.016.045.014.046.016.06.016.03.014c.03 0 .06.016.091.016l.044.015.046.016.119.044.061.031.135.06.045.015.045.016.09.045.061.015.029.015.076.031.029.014.061.031.045.014.045.03.059.03.046.029.03.016.061.03.044.03.075.045.045.016.074.044.016.015.045.031.09.074.046.03.044.03.031.014.045.031.074.074.061.045.045.03.016.015.029.016.074.061.046.044.03.03.045.029.045.031.029.015.12.12.06.061.135.135.031.029c.016.016.045.045.061.075l.029.03.166.194.045.06c.014.016.014.031.029.031l.09.135.045.045.09.12.076.12.045.09.059.105.045.09.016.029.029.061.076.15.074.149.031.075c.059.135.104.27.164.42.074.195.135.404.18.63.045.165.076.315.105.48l.029.27.045.3c.016.121.031.256.031.375.014.121.014.24.014.359v.256c0 .016-.006.029-.014.045-.016.03-.031.045-.061.075-.021.015-.049.046-.08.046-.029.014-.059.014-.09.014h-.045c-.029 0-.059-.014-.09-.029-.029-.016-.061-.03-.074-.061-.016-.029-.045-.061-.061-.09s-.031-.06-.031-.09v-.359c-.014-.209-.029-.425-.059-.639-.016-.146-.045-.284-.061-.42 0-.074-.016-.146-.029-.209l-.029-.15-.038-.141-.016-.09-.045-.15c-.029-.12-.074-.24-.119-.36-.029-.091-.061-.165-.105-.239l-.029-.076-.135-.27-.031-.045c-.061-.135-.135-.27-.225-.391l-.045-.074h-.201l-.064-.091c-.055-.089-.114-.165-.18-.239l-.125-.15-.015-.016-.046-.057-.035-.045-.075-.074-.015-.03-.07-.06-.045-.046-.083-.075-.04-.037-.046-.045-.015-.016c-.016-.015-.045-.045-.075-.06l-.076-.062-.03-.015-.061-.046-.074-.06-.045-.036-.03-.016-.06-.053c0-.016-.016-.016-.031-.016l-.029-.029-.015-.016v-.013l-.03-.014-.061-.037-.044-.031-.075-.045-.06-.045-.029-.016-.032-.013h-.09l-.019-.016-.065-.035-.009-.014-.03-.016-.045-.021h-.012l-.045-.016-.025-.015-.045-.015-.01-.011-.03-.016-.053-.029-.03-.015-.09-.03-.074-.029-.137-.016-.044-.029c-.015-.01-.03-.016-.046-.016l-.029-.015c-.029-.011-.045-.016-.075-.03l-.03-.016h-.029l-.061-.029-.029-.016-.045-.015h-.092c-.008 0-.019-.005-.03-.007h-.09l-.045-.016h-.015l-.045-.016h-.041c-.025-.014-.045-.014-.07-.014l-.01-.016-.06-.015c-.03-.016-.056-.016-.084-.016l-.045-.015-.05-.016-.045-.014-.061-.016h-.061l-.179-.022h-.09l-.116-.015h-.076l-.068-.008h-.03l-.054-.016h-.285l-.01-.015h-.061c-.03 0-.064-.015-.09-.03-.03-.016-.061-.029-.081-.06l-.03-.046c-.029-.029-.029-.06-.045-.09-.014-.028-.014-.059-.014-.089s0-.06.015-.09c.016-.029.029-.06.061-.075.015-.03.044-.044.074-.06.029-.016.061-.03.09-.03h.061l.015.066zm.554 1.574l.037.003.061.006c.008 0 .018 0 .029.003.022 0 .045.004.075.006l.06.008.024.016.045.015.048.015.045.016h.03l.042.015.07.015.056.016.026.014h.073l.119.028.046.015.045.015.045.016s.015 0 .015.015l.046.015.044.016.045.016c.015 0 .03.014.046.014.007 0 .014.016.025.016l.064.03h.029l.09.03.05.029.046.03.108.045.06.015.031.031c.045.014.09.044.135.059l.048.03.048.03.049.029c.045.03.082.046.121.076l.029.014.041.031.022.015.075.045.037.03.065.043.029.015.03.015.046.03.06.046c.015.014.022.014.034.029.01.015.016.015.025.03l.033.03.036.029.03.03.046.046.029.03.016.016.09.089.016.016c0 .015.015.03.029.03l.016.013.045.046.029.045.03.03.045.06.046.046.09.119.014.029.061.076.016.029.015.031.015.029.016.03c.016.015.016.03.029.06l.043.076.016.015.029.061.031.044c.014.015.014.029.029.045l.03.045.03.061.029.059.016.046c.015.044.045.075.06.12 0 .015.015.029.015.045l.045.119.061.195c0 .016.015.045.015.061l.046.135.044.18.046.24c.014.074.014.135.029.211.016.119.03.238.03.359l.015.21v.165c0 .016 0 .029-.015.045l-.044.043c-.029.023-.045.045-.074.061-.03.015-.061.029-.09.04-.031.016-.075.016-.105.016-.029 0-.061-.016-.09-.03-.016 0-.03-.016-.045-.021-.031-.014-.061-.039-.075-.065-.03-.03-.046-.06-.046-.091l-.014-.044v-.313c0-.133-.016-.256-.031-.385-.015-.135-.044-.285-.074-.42-.029-.09-.045-.18-.075-.26l-.03-.091-.029-.075-.016-.03-.045-.12-.045-.09-.075-.149-.069-.12v-.019l-.029-.047-.03-.038-.045-.075-.046-.061-.089-.119c-.046-.061-.09-.12-.142-.178-.014-.015-.029-.029-.029-.045l-.03-.029-.017-.016-.03-.014-.03-.027v-.146l-.119-.113-.075-.068v-.014l-.03-.031-.038-.029-.015-.016c0-.015-.016-.015-.029-.015l-.046-.016-.015-.015-.061-.045-.014-.016-.016-.015c-.012-.015-.023-.015-.03-.015l-.06-.045-.016-.016-.06-.029-.011-.016-.045-.029-.03-.016-.03-.029-.029-.031h-.016c-.029-.029-.06-.044-.105-.06l-.044-.03-.03-.014-.016-.016-.045-.03-.044-.015-.06-.03-.046-.015-.015-.016-.056-.014v-.012l-.091-.03-.06-.03-.03-.015h-.06c-.03-.015-.045-.015-.075-.03H13.2l-.045-.016h-.044l-.046-.014-.029-.016h-.061l-.061-.015-.029-.016h-.165l-.069-.015H12.3l-.046-.016c-.029-.014-.06-.029-.09-.06-.014-.03-.045-.06-.06-.089-.015-.031-.03-.061-.03-.091v-.09c.006-.046.016-.075.03-.105.008-.015.015-.03.03-.045.018-.03.045-.06.075-.075.015-.015.03-.015.044-.029.031-.016.061-.016.091-.016h.06l-.014.055zm.454 1.629c.015 0 .03 0 .044.004.016 0 .031 0 .046.002l.052.005c.104.009.213.024.318.046l.104.023.026.008.114.029.059.02.046.016c.045.014.091.045.135.06l.016.015.06.03.09.046.029.014c.016.016.031.016.046.03.015.016.045.03.06.045.061.03.105.075.15.105l.105.09.09.091.061.074.029.029.03.031.044.06.091.135.075.135.06.12.046.105c.044.104.06.195.09.299.029.091.045.196.06.285l.015.15.016.136V9.8c0 .045-.016.075-.03.105-.015.029-.046.074-.075.09-.03.029-.061.045-.105.061-.029.014-.06.014-.09.014-.029 0-.06 0-.09-.014l-.104-.046c-.03-.03-.06-.045-.091-.091-.015-.029-.029-.06-.045-.104v-.166l-.015-.105-.015-.119-.016-.105-.016-.06c0-.015-.014-.045-.014-.06-.03-.121-.09-.24-.15-.36l-.061-.06-.047-.06-.045-.045-.015-.03-.075-.06-.061-.061-.059-.045c-.016-.015-.03-.015-.061-.029l-.09-.061-.061-.03-.029-.015h-.016l-.076-.031-.09-.03-.09-.015h-.075l-.044-.015-.035-.007h-.045l-.06-.016h-.255l-.015-.075h-.039c-.03-.004-.055-.015-.08-.029-.035-.021-.064-.045-.09-.08-.018-.029-.034-.061-.045-.09-.008-.029-.012-.06-.012-.09 0-.037 0-.075.015-.113.015-.039.03-.07.06-.1l.061-.045c.029-.016.061-.03.09-.03l.062-.075h.032z"/></svg> </span>
|
1329 |
<span class="simplesocialtxt">Viber</span>
|
1330 |
</button>';
|
1345 |
$link = urlencode( $permalink );
|
1346 |
|
1347 |
if ( $this->selected_theme == 'simple-icons' ) {
|
1348 |
+
$arrButtonsCode[] = '<button onclick="javascript:window.open(this.dataset.href, \'_blank\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600\' );return false;" class=" ssb_msng-icon simplesocial-viber-share" data-href="http://www.facebook.com/dialog/send?app_id='. $this->fb_app_id .'&redirect_uri=' . $link . '&link=' . $link . '&display=popup">
|
1349 |
<span class="icon"> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="18px" height="19px" viewBox="-889.5 1161 18 19" enable-background="new -889.5 1161 18 19" xml:space="preserve">
|
1350 |
<path opacity="0.99" fill="#FFFFFF" enable-background="new " d="M-880.5,1161c-5,0-9,3.8-9,8.5c0,2.4,1,4.5,2.7,6v4.5l3.8-2.3 c0.8,0.2,1.6,0.3,2.5,0.3c5,0,9-3.8,9-8.5S-875.5,1161-880.5,1161z M-879.6,1172.2l-2.4-2.4l-4.3,2.4l4.7-5.2l2.4,2.4l4.2-2.4 L-879.6,1172.2z"/>
|
1351 |
</svg> </span>
|
1359 |
break;
|
1360 |
case 'email':
|
1361 |
if ( $this->selected_theme == 'simple-icons' ) {
|
1362 |
+
$arrButtonsCode[] = ' <button onclick="javascript:window.location.href = this.dataset.href;return false;" class="ssb_email-icon simplesocial-email-share" data-href="mailto:?subject='. $title .'&body='. $permalink .'"><span class="simplesocialtxt">
|
1363 |
<span class="icon"> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="16px" height="11.9px" viewBox="-1214.1 1563.9 16 11.9" enable-background="new -1214.1 1563.9 16 11.9" xml:space="preserve">
|
1364 |
<path d="M-1214.1,1565.2v1l8,4l8-4v-1c0-0.7-0.6-1.3-1.3-1.3h-13.4C-1213.5,1563.9-1214.1,1564.4-1214.1,1565.2z M-1214.1,1567.4v7.1c0,0.7,0.6,1.3,1.3,1.3h13.4c0.7,0,1.3-0.6,1.3-1.3v-7.1l-8,4L-1214.1,1567.4z"/> </svg> </span>
|
1365 |
<span class="simplesocialtxt">Email</span>
|
1371 |
break;
|
1372 |
case 'print':
|
1373 |
if ( $this->selected_theme == 'simple-icons' ) {
|
1374 |
+
$arrButtonsCode[] = ' <button onclick="javascript:window.print();return false;" class="ssb_print-icon simplesocial-email-share" ><span class="simplesocialtxt">
|
1375 |
<span class="icon"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" width="16px" height="13.7px" viewBox="-1296.9 1876.4 16 13.7" enable-background="new -1296.9 1876.4 16 13.7" xml:space="preserve"><g>
|
1376 |
<path fill="#FFFFFF" d="M-1288.9,1879.7c2.3,0,4.6,0,6.9,0c0.4,0,0.7,0.1,0.9,0.5c0.1,0.2,0.1,0.4,0.1,0.6c0,1.7,0,3.4,0,5.1 c0,0.7-0.4,1.1-1.1,1c-0.6,0-1.2,0-1.8,0c-0.1,0-0.2,0-0.2,0.2c0,0.7,0,1.4,0,2c0,0.6-0.4,1-1,1c-0.1,0-0.3,0-0.4,0 c-2.5,0-4.9,0-7.4,0c-0.3,0-0.5,0-0.8-0.1c-0.3-0.2-0.5-0.5-0.5-0.9c0-0.7,0-1.4,0-2c0-0.2-0.1-0.2-0.2-0.2c-0.6,0-1.2,0-1.7,0 c-0.7,0-1-0.4-1-1c0-1.7,0-3.4,0-5.1c0-0.4,0.2-0.8,0.6-0.9c0.2-0.1,0.3-0.1,0.5-0.1C-1293.5,1879.7-1291.2,1879.7-1288.9,1879.7z M-1288.9,1884.9C-1288.9,1884.9-1288.9,1884.9-1288.9,1884.9c-1.4,0-2.8,0-4.2,0c-0.1,0-0.2,0-0.2,0.2c0,0.3,0,0.7,0,1 c0,1,0,2,0,3c0,0.3,0.1,0.4,0.4,0.4c2.5,0,5.1,0,7.6,0c0.1,0,0.3,0,0.4,0c0.2,0,0.3-0.2,0.3-0.3c0-1.3,0-2.7,0-4 c0-0.2,0-0.2-0.2-0.2C-1286.1,1884.9-1287.5,1884.9-1288.9,1884.9z M-1284.2,1882.4c0.4,0,0.7-0.3,0.7-0.7c0-0.4-0.3-0.7-0.8-0.7 c-0.4,0-0.7,0.3-0.7,0.7C-1284.9,1882.1-1284.6,1882.4-1284.2,1882.4z"/>
|
1377 |
<path fill="#FFFFFF" d="M-1283.9,1879c-0.2,0-0.4,0-0.5,0c-3.1,0-6.2,0-9.3,0c-0.1,0-0.2,0-0.2-0.2c0-0.5,0-1,0-1.5 c0-0.5,0.4-1,0.9-1c0.1,0,0.2,0,0.3,0c2.6,0,5.2,0,7.8,0c0.6,0,1,0.4,1,1c0,0.5,0,0.9,0,1.4 C-1283.9,1878.9-1283.9,1879-1283.9,1879z"/>
|
1575 |
return $images;
|
1576 |
}
|
1577 |
|
1578 |
+
/**
|
1579 |
+
* User to convert http to https or vice versa
|
1580 |
+
* @since 2.0.12
|
1581 |
+
* @param $url
|
1582 |
+
* @return url
|
1583 |
+
*/
|
1584 |
+
public function http_or_https_resolve_url( $url ){
|
1585 |
+
|
1586 |
+
$arr_parsed_url = parse_url($url);
|
1587 |
+
if ( ! empty($arr_parsed_url['scheme'] ) ) {
|
1588 |
+
if ( "http" === $arr_parsed_url['scheme'] )
|
1589 |
+
{
|
1590 |
+
return $url = str_replace( 'http', 'https', $url );
|
1591 |
+
} else if ( "https" === $arr_parsed_url['scheme'] )
|
1592 |
+
{
|
1593 |
+
return $url = str_replace( 'https', 'http', $url );
|
1594 |
+
}
|
1595 |
+
}
|
1596 |
+
}
|
1597 |
} // end class
|
1598 |
|
1599 |
|