Version Description
- 2020-12-15 =
- Bug fix: Security vulnerability fixed, Upgrade immediately.
- Bug fix: Remove deprecated PHP function.
- Bug fix: Show Mobile title fix for mobile view.
- Enhancement: Social Sharing buttons layout fix for WooCommerce.
- Enhancement: Code optimization.
- Compatibility: Compatible with WordPress 5.6
Download this release
Release Info
Developer | hiddenpearls |
Plugin | Simple Social Media Share Buttons – Social Sharing for Everyone |
Version | 3.2.0 |
Comparing to | |
See all releases |
Code changes from version 3.1.1 to 3.2.0
- assets/css/front.css +7 -3
- assets/js/admin.js +0 -3
- assets/js/blocks.frontend.js +0 -1
- assets/js/front.js +2 -3
- classes/ssb-settings-strucutre.php +13 -1
- classes/ssb-settings.php +2 -2
- inc/utils.php +40 -17
- readme.txt +15 -7
- simple-social-buttons.php +31 -12
assets/css/front.css
CHANGED
@@ -8,7 +8,8 @@
|
|
8 |
font-weight: normal;
|
9 |
font-style: normal;
|
10 |
}
|
11 |
-
|
|
|
12 |
div.simplesocialbutton { float: left; }
|
13 |
div.ssb-button-googleplus { width: 100px; }
|
14 |
div.ssb-button-fblike { width: 140px; line-height: 1; }
|
@@ -2418,7 +2419,9 @@ div[class*="simplesocialbuttons-float"] button:nth-child(15){
|
|
2418 |
-webkit-animation-delay: 2.8s;
|
2419 |
animation-delay: 2.8s;
|
2420 |
}
|
2421 |
-
|
|
|
|
|
2422 |
position: fixed;
|
2423 |
width: 36px;
|
2424 |
z-index: 1000;
|
@@ -2619,8 +2622,9 @@ div[class*="simplesocialbuttons-float"] .ssb_total_counter{
|
|
2619 |
div[class*="simplesocialbuttons-float"].simplesocial-simple-round button[class*="-share"]:not(:hover):before{
|
2620 |
width: 0;
|
2621 |
}
|
|
|
2622 |
.ssb_inline-share_heading{
|
2623 |
-
|
2624 |
font-size: 24px;
|
2625 |
padding: 0 0 10px;
|
2626 |
margin: 0;
|
8 |
font-weight: normal;
|
9 |
font-style: normal;
|
10 |
}
|
11 |
+
/* Decrease the Margin 'Sahre Title' at Top */
|
12 |
+
div.simplesocialbuttons { height: auto; margin: -5px auto 5px -5px; text-align: left; clear: left; font-size: 0; direction: ltr;}
|
13 |
div.simplesocialbutton { float: left; }
|
14 |
div.ssb-button-googleplus { width: 100px; }
|
15 |
div.ssb-button-fblike { width: 140px; line-height: 1; }
|
2419 |
-webkit-animation-delay: 2.8s;
|
2420 |
animation-delay: 2.8s;
|
2421 |
}
|
2422 |
+
/* SSB floating issued fixed in woocommerce */
|
2423 |
+
div[class*="simplesocialbuttons-float"],
|
2424 |
+
body.woocommerce div[class*="simplesocialbuttons-float"]{
|
2425 |
position: fixed;
|
2426 |
width: 36px;
|
2427 |
z-index: 1000;
|
2622 |
div[class*="simplesocialbuttons-float"].simplesocial-simple-round button[class*="-share"]:not(:hover):before{
|
2623 |
width: 0;
|
2624 |
}
|
2625 |
+
/* Change default fonts to 'Calibri' fonts */
|
2626 |
.ssb_inline-share_heading{
|
2627 |
+
font-weight: 400;
|
2628 |
font-size: 24px;
|
2629 |
padding: 0 0 10px;
|
2630 |
margin: 0;
|
assets/js/admin.js
CHANGED
@@ -154,11 +154,9 @@
|
|
154 |
} else {
|
155 |
$('.ssb-ctt-wrapper').removeClass('hide-button')
|
156 |
}
|
157 |
-
console.log(hideLink);
|
158 |
if (hideLink == false) {
|
159 |
tweetText += '&url=https://simplesocialbuttons.com/'
|
160 |
}else{
|
161 |
-
console.log('adfadfa');
|
162 |
tweetText += '&url=0'
|
163 |
}
|
164 |
|
@@ -167,7 +165,6 @@
|
|
167 |
}
|
168 |
$('.ssb-ctt-wrapper > a').attr('data-href', 'https://twitter.com/share?text='+tweetText)
|
169 |
// $('.ssb-ctt-wrapper a').data('href', 'https://twitter.com/share?text='.tweetText)
|
170 |
-
console.log( $('.ssb-ctt-wrapper a').attr('data-href') )
|
171 |
}
|
172 |
initCTT()
|
173 |
|
154 |
} else {
|
155 |
$('.ssb-ctt-wrapper').removeClass('hide-button')
|
156 |
}
|
|
|
157 |
if (hideLink == false) {
|
158 |
tweetText += '&url=https://simplesocialbuttons.com/'
|
159 |
}else{
|
|
|
160 |
tweetText += '&url=0'
|
161 |
}
|
162 |
|
165 |
}
|
166 |
$('.ssb-ctt-wrapper > a').attr('data-href', 'https://twitter.com/share?text='+tweetText)
|
167 |
// $('.ssb-ctt-wrapper a').data('href', 'https://twitter.com/share?text='.tweetText)
|
|
|
168 |
}
|
169 |
initCTT()
|
170 |
|
assets/js/blocks.frontend.js
CHANGED
@@ -68,7 +68,6 @@
|
|
68 |
/***/ 97:
|
69 |
/***/ (function(module, exports) {
|
70 |
|
71 |
-
console.log('frontend');
|
72 |
|
73 |
/***/ })
|
74 |
|
68 |
/***/ 97:
|
69 |
/***/ (function(module, exports) {
|
70 |
|
|
|
71 |
|
72 |
/***/ })
|
73 |
|
assets/js/front.js
CHANGED
@@ -52,7 +52,6 @@ var ssbPlugin = ssbPlugin || {};
|
|
52 |
$.get('https://graph.facebook.com/?fields=og_object{likes.summary(true).limit(0)},share&id=' + ssb_alternate_post_url )
|
53 |
)
|
54 |
.then(function(a, b) {
|
55 |
-
|
56 |
if('undefined' !== typeof a[0].share) {
|
57 |
var f1 = absint(a[0].share.share_count);
|
58 |
var f2 = absint(a[0].share.comment_count);
|
@@ -82,11 +81,12 @@ var ssbPlugin = ssbPlugin || {};
|
|
82 |
|
83 |
ssbPostData = {
|
84 |
action: 'ssb_facebook_shares_update',
|
|
|
85 |
post_id: ssb_post_id,
|
86 |
share_counts: fShares
|
87 |
};
|
88 |
|
89 |
-
$.post(
|
90 |
}
|
91 |
});
|
92 |
}
|
@@ -129,7 +129,6 @@ var ssbPlugin = ssbPlugin || {};
|
|
129 |
$('.simplesocialbuttons.ssb_counter-activate:not(.simplesocial-round-txt):not(.simplesocial-round-icon):not(.simplesocial-simple-icons) button:not(.simplesocial-viber-share):not(.simplesocial-whatsapp-share):not(.simplesocial-msng-share):not(.simplesocial-email-share):not(.simplesocial-print-share):not(.simplesocial-linkedin-share)').each(function(){
|
130 |
var $elWidth = $(this).children('.ssb_counter').outerWidth();
|
131 |
$(this).css('padding-right', $elWidth + 10);
|
132 |
-
console.log($elWidth, $elWidth + 10, $(this).attr('class'));
|
133 |
});
|
134 |
// var sidebaroffset = $(window).width() - 1100;
|
135 |
// if($('.simplesocialbuttons-float-left-post').length>0){
|
52 |
$.get('https://graph.facebook.com/?fields=og_object{likes.summary(true).limit(0)},share&id=' + ssb_alternate_post_url )
|
53 |
)
|
54 |
.then(function(a, b) {
|
|
|
55 |
if('undefined' !== typeof a[0].share) {
|
56 |
var f1 = absint(a[0].share.share_count);
|
57 |
var f2 = absint(a[0].share.comment_count);
|
81 |
|
82 |
ssbPostData = {
|
83 |
action: 'ssb_facebook_shares_update',
|
84 |
+
security: SSB.fb_share_nonce,
|
85 |
post_id: ssb_post_id,
|
86 |
share_counts: fShares
|
87 |
};
|
88 |
|
89 |
+
$.post( SSB.ajax_url, ssbPostData );
|
90 |
}
|
91 |
});
|
92 |
}
|
129 |
$('.simplesocialbuttons.ssb_counter-activate:not(.simplesocial-round-txt):not(.simplesocial-round-icon):not(.simplesocial-simple-icons) button:not(.simplesocial-viber-share):not(.simplesocial-whatsapp-share):not(.simplesocial-msng-share):not(.simplesocial-email-share):not(.simplesocial-print-share):not(.simplesocial-linkedin-share)').each(function(){
|
130 |
var $elWidth = $(this).children('.ssb_counter').outerWidth();
|
131 |
$(this).css('padding-right', $elWidth + 10);
|
|
|
132 |
});
|
133 |
// var sidebaroffset = $(window).width() - 1100;
|
134 |
// if($('.simplesocialbuttons-float-left-post').length>0){
|
classes/ssb-settings-strucutre.php
CHANGED
@@ -95,7 +95,7 @@ if ( ! class_exists( 'Ssb_Settings_Structure' ) ) :
|
|
95 |
|
96 |
if ( isset( $section['desc'] ) && ! empty( $section['desc'] ) ) {
|
97 |
$section['desc'] = '<div class="inside">' . $section['desc'] . '</div>';
|
98 |
-
$callback
|
99 |
} elseif ( isset( $section['callback'] ) ) {
|
100 |
$callback = $section['callback'];
|
101 |
} else {
|
@@ -155,6 +155,18 @@ if ( ! class_exists( 'Ssb_Settings_Structure' ) ) :
|
|
155 |
}
|
156 |
}
|
157 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
158 |
/**
|
159 |
* Get field description for display
|
160 |
*
|
95 |
|
96 |
if ( isset( $section['desc'] ) && ! empty( $section['desc'] ) ) {
|
97 |
$section['desc'] = '<div class="inside">' . $section['desc'] . '</div>';
|
98 |
+
$callback = call_user_func( array( $this, 'get_description' ), $section['desc'] );
|
99 |
} elseif ( isset( $section['callback'] ) ) {
|
100 |
$callback = $section['callback'];
|
101 |
} else {
|
155 |
}
|
156 |
}
|
157 |
|
158 |
+
/**
|
159 |
+
* Get Section Description
|
160 |
+
* @param string $desc [description]
|
161 |
+
*
|
162 |
+
* @since 3.2.0
|
163 |
+
*/
|
164 |
+
|
165 |
+
public function get_description( $desc ) {
|
166 |
+
return $desc;
|
167 |
+
}
|
168 |
+
|
169 |
+
|
170 |
/**
|
171 |
* Get field description for display
|
172 |
*
|
classes/ssb-settings.php
CHANGED
@@ -183,7 +183,7 @@ class Ssb_Settings {
|
|
183 |
'name' => 'icon_space_value',
|
184 |
'type' => 'ssb_text',
|
185 |
'label' => 'Enter the Space in Pixel',
|
186 |
-
'placeholder' => '
|
187 |
'sanitize_callback' => 'sanitize_text_field',
|
188 |
'priority' => '30',
|
189 |
),
|
@@ -280,7 +280,7 @@ class Ssb_Settings {
|
|
280 |
'name' => 'icon_space_value',
|
281 |
'type' => 'ssb_text',
|
282 |
'label' => 'Enter the Space in Pixel',
|
283 |
-
'placeholder' => '
|
284 |
'sanitize_callback' => 'sanitize_text_field',
|
285 |
'priority' => '35',
|
286 |
),
|
183 |
'name' => 'icon_space_value',
|
184 |
'type' => 'ssb_text',
|
185 |
'label' => 'Enter the Space in Pixel',
|
186 |
+
'placeholder' => '10',
|
187 |
'sanitize_callback' => 'sanitize_text_field',
|
188 |
'priority' => '30',
|
189 |
),
|
280 |
'name' => 'icon_space_value',
|
281 |
'type' => 'ssb_text',
|
282 |
'label' => 'Enter the Space in Pixel',
|
283 |
+
'placeholder' => '10',
|
284 |
'sanitize_callback' => 'sanitize_text_field',
|
285 |
'priority' => '35',
|
286 |
),
|
inc/utils.php
CHANGED
@@ -260,14 +260,14 @@ function is_mobile() {
|
|
260 |
}
|
261 |
|
262 |
/**
|
263 |
-
* Generate
|
264 |
*
|
265 |
* @param String $url
|
266 |
* @return Srtring Final url after detection is it mobile or desktop.
|
267 |
* @since 2.0.23
|
268 |
*/
|
269 |
function ssb_whats_app_share_link( $url ) {
|
270 |
-
|
271 |
if ( wp_is_mobile() ) {
|
272 |
$whats_share_link = 'https://api.whatsapp.com/send?text=' . $url;
|
273 |
} else {
|
@@ -276,16 +276,39 @@ function ssb_whats_app_share_link( $url ) {
|
|
276 |
|
277 |
return $whats_share_link;
|
278 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
279 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
280 |
|
|
|
|
|
|
|
|
|
|
|
281 |
|
282 |
-
/**
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
function is_network_has_counts( $network ) {
|
290 |
$no_count_networks = array( 'totalshare', 'viber', 'fblike', 'whatsapp', 'print', 'email', 'messenger', 'linkedin' );
|
291 |
if ( in_array( $network, $no_count_networks ) ) {
|
@@ -295,14 +318,14 @@ function is_network_has_counts( $network ) {
|
|
295 |
}
|
296 |
}
|
297 |
|
298 |
-
/**
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
function ssb_count_format( $n, $precision = 1 ) {
|
307 |
if ( $n >= 0 && $n < 1000 ) {
|
308 |
// 1 - 999
|
260 |
}
|
261 |
|
262 |
/**
|
263 |
+
* Generate WhatsApp share link.
|
264 |
*
|
265 |
* @param String $url
|
266 |
* @return Srtring Final url after detection is it mobile or desktop.
|
267 |
* @since 2.0.23
|
268 |
*/
|
269 |
function ssb_whats_app_share_link( $url ) {
|
270 |
+
$whats_share_link = '';
|
271 |
if ( wp_is_mobile() ) {
|
272 |
$whats_share_link = 'https://api.whatsapp.com/send?text=' . $url;
|
273 |
} else {
|
276 |
|
277 |
return $whats_share_link;
|
278 |
}
|
279 |
+
/**
|
280 |
+
* Generate Viber share link.
|
281 |
+
*
|
282 |
+
* @param String $url
|
283 |
+
* @return Srtring Final url after detection is it desktop.
|
284 |
+
* @since 3.2.0
|
285 |
+
*/
|
286 |
|
287 |
+
// Viber Sharing API calling
|
288 |
+
function ssb_viber_share_link( $url ) {
|
289 |
+
$viber_share_link = 'viber://forward?text=' . $url;
|
290 |
+
return $viber_share_link;
|
291 |
+
}
|
292 |
+
/**
|
293 |
+
* Generate LinkdIn share link.
|
294 |
+
* @param String $url
|
295 |
+
* @return Srtring Final url after detection is it desktop.
|
296 |
+
* @since 3.2.0
|
297 |
+
*/
|
298 |
|
299 |
+
// LinkdIn Sharing API calling
|
300 |
+
function ssb_linkdin_share_link( $url ) {
|
301 |
+
$Linkdin_share_link = 'https://www.linkedin.com/cws/share?url=' . $url;
|
302 |
+
return $Linkdin_share_link;
|
303 |
+
}
|
304 |
|
305 |
+
/**
|
306 |
+
* Check is network has count.
|
307 |
+
*
|
308 |
+
* @since 2.1.4
|
309 |
+
* @param string $network network name.
|
310 |
+
* @return boolean
|
311 |
+
*/
|
312 |
function is_network_has_counts( $network ) {
|
313 |
$no_count_networks = array( 'totalshare', 'viber', 'fblike', 'whatsapp', 'print', 'email', 'messenger', 'linkedin' );
|
314 |
if ( in_array( $network, $no_count_networks ) ) {
|
318 |
}
|
319 |
}
|
320 |
|
321 |
+
/**
|
322 |
+
* Pretty counts format.
|
323 |
+
*
|
324 |
+
* @param integer $n .
|
325 |
+
* @param integer $precision .
|
326 |
+
* @return int|mixed
|
327 |
+
* @since 2.0.0
|
328 |
+
*/
|
329 |
function ssb_count_format( $n, $precision = 1 ) {
|
330 |
if ( $n >= 0 && $n < 1000 ) {
|
331 |
// 1 - 999
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: hiddenpearls, WPBrigade, desideveloper
|
|
3 |
Donate link: https://simplesocialbuttons.com/
|
4 |
Tags: Social share, Social buttons, Whatsapp, Viber, LinkedIn, facebook, twitter, pinterest, plus one
|
5 |
Requires at least: 4.0
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -145,13 +145,16 @@ like_button_size = small(default), large
|
|
145 |
8. Social Share buttons on Social popups.
|
146 |
9. Social Share buttons on flyins.
|
147 |
|
148 |
-
== Upgrade Notice ==
|
149 |
-
|
150 |
-
= 3.1.1 =
|
151 |
-
* Please upgrade immediately. Many enhancements, new features and bug fixes.
|
152 |
-
|
153 |
== Changelog ==
|
154 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
= 3.1.1 - 2020-02-27 =
|
156 |
* Bug fix: Illegal string offset ‘ssb_og_tags’ fix
|
157 |
|
@@ -438,3 +441,8 @@ like_button_size = small(default), large
|
|
438 |
|
439 |
= 1.7.9 =
|
440 |
* Fixed users permission
|
|
|
|
|
|
|
|
|
|
3 |
Donate link: https://simplesocialbuttons.com/
|
4 |
Tags: Social share, Social buttons, Whatsapp, Viber, LinkedIn, facebook, twitter, pinterest, plus one
|
5 |
Requires at least: 4.0
|
6 |
+
Tested up to: 5.6
|
7 |
+
Stable tag: 3.2.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
145 |
8. Social Share buttons on Social popups.
|
146 |
9. Social Share buttons on flyins.
|
147 |
|
|
|
|
|
|
|
|
|
|
|
148 |
== Changelog ==
|
149 |
|
150 |
+
= 3.2.0 - 2020-12-15 =
|
151 |
+
* Bug fix: Security vulnerability fixed, Upgrade immediately.
|
152 |
+
* Bug fix: Remove deprecated PHP function.
|
153 |
+
* Bug fix: Show Mobile title fix for mobile view.
|
154 |
+
* Enhancement: Social Sharing buttons layout fix for WooCommerce.
|
155 |
+
* Enhancement: Code optimization.
|
156 |
+
* Compatibility: Compatible with WordPress 5.6
|
157 |
+
|
158 |
= 3.1.1 - 2020-02-27 =
|
159 |
* Bug fix: Illegal string offset ‘ssb_og_tags’ fix
|
160 |
|
441 |
|
442 |
= 1.7.9 =
|
443 |
* Fixed users permission
|
444 |
+
|
445 |
+
== Upgrade Notice ==
|
446 |
+
|
447 |
+
= 3.2.0 =
|
448 |
+
* Please upgrade immediately.
|
simple-social-buttons.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Simple Social Buttons
|
4 |
* Plugin URI: https://simplesocialbuttons.com/
|
5 |
* Description: Simple Social Buttons adds an advanced set of social media sharing buttons to your WordPress sites, such as: Facebook, Twitter, WhatsApp, Viber, Reddit, LinkedIn and Pinterest. This makes it the most <code>Flexible Social Sharing Plugin ever for Everyone.</code>
|
6 |
-
* Version: 3.
|
7 |
* Author: WPBrigade
|
8 |
* Author URI: https://www.WPBrigade.com/
|
9 |
* Text Domain: simple-social-buttons
|
@@ -44,7 +44,7 @@ class SimpleSocialButtonsPR {
|
|
44 |
* @isnce
|
45 |
* @var string
|
46 |
*/
|
47 |
-
public $pluginVersion = '3.
|
48 |
|
49 |
/**
|
50 |
* Plugin Prefix
|
@@ -369,7 +369,7 @@ class SimpleSocialButtonsPR {
|
|
369 |
ob_start();
|
370 |
|
371 |
?>
|
372 |
-
|
373 |
document.addEventListener("DOMContentLoaded", function() {
|
374 |
var if_ssb_exist = document.getElementsByClassName( "simplesocialbuttons" ).length > 0;
|
375 |
if (if_ssb_exist) {
|
@@ -387,7 +387,7 @@ class SimpleSocialButtonsPR {
|
|
387 |
};
|
388 |
jQuery.post(ssb_admin_ajax, data, function(data, textStatus, xhr) {
|
389 |
var array = JSON.parse(data);
|
390 |
-
console.log( array );
|
391 |
jQuery.each( array, function( index, value ){
|
392 |
|
393 |
if( index == 'total' ){
|
@@ -401,11 +401,10 @@ class SimpleSocialButtonsPR {
|
|
401 |
}
|
402 |
})
|
403 |
|
404 |
-
//
|
405 |
}
|
406 |
});
|
407 |
|
408 |
-
|
409 |
<?php
|
410 |
$info['footer_output'] .= ob_get_clean();
|
411 |
|
@@ -415,6 +414,13 @@ class SimpleSocialButtonsPR {
|
|
415 |
// Update facebook by sending the ajax.
|
416 |
public function facebook_shares_update() {
|
417 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
418 |
$activity = $_POST['share_counts'];
|
419 |
$post_id = $_POST['post_id'];
|
420 |
|
@@ -487,6 +493,14 @@ class SimpleSocialButtonsPR {
|
|
487 |
wp_enqueue_script( 'jquery' );
|
488 |
wp_enqueue_script( 'ssb-front-js', plugins_url( 'assets/js/front.js', __FILE__ ), array( 'jquery' ), SSB_VERSION );
|
489 |
wp_enqueue_style( 'ssb-front-css', plugins_url( 'assets/css/front.css', __FILE__ ), false, SSB_VERSION );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
490 |
}
|
491 |
|
492 |
/**
|
@@ -750,7 +764,7 @@ class SimpleSocialButtonsPR {
|
|
750 |
|
751 |
if ( $this->_get_settings( 'inline', 'hide_mobile' ) ) {
|
752 |
$extra_class .= ' simplesocialbuttons-mobile-hidden'; }
|
753 |
-
|
754 |
|
755 |
$_selected_network = apply_filters( 'ssb_inline_social_networks', $this->selected_networks );
|
756 |
|
@@ -763,7 +777,12 @@ class SimpleSocialButtonsPR {
|
|
763 |
$sharing_text = '';
|
764 |
|
765 |
if ( isset( $this->inline_option['share_title'] ) && trim( $this->inline_option['share_title'] ) != '' ) {
|
766 |
-
|
|
|
|
|
|
|
|
|
|
|
767 |
}
|
768 |
if ( in_array( $this->get_post_type(), $this->_get_settings( 'inline', 'posts', array() ) ) ) {
|
769 |
if ( $this->inline_option['location'] == 'above' || $this->inline_option['location'] == 'above_below' ) {
|
@@ -954,7 +973,7 @@ class SimpleSocialButtonsPR {
|
|
954 |
|
955 |
if ( $theme == 'simple-icons' ) {
|
956 |
|
957 |
-
$_html = '<button class="ssb_linkedin-icon" data-href="
|
958 |
<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="15px" height="14.1px" viewBox="-301.4 387.5 15 14.1" enable-background="new -301.4 387.5 15 14.1" xml:space="preserve"> <g id="XMLID_398_"> <path id="XMLID_399_" fill="#FFFFFF" d="M-296.2,401.6c0-3.2,0-6.3,0-9.5h0.1c1,0,2,0,2.9,0c0.1,0,0.1,0,0.1,0.1c0,0.4,0,0.8,0,1.2 c0.1-0.1,0.2-0.3,0.3-0.4c0.5-0.7,1.2-1,2.1-1.1c0.8-0.1,1.5,0,2.2,0.3c0.7,0.4,1.2,0.8,1.5,1.4c0.4,0.8,0.6,1.7,0.6,2.5 c0,1.8,0,3.6,0,5.4v0.1c-1.1,0-2.1,0-3.2,0c0-0.1,0-0.1,0-0.2c0-1.6,0-3.2,0-4.8c0-0.4,0-0.8-0.2-1.2c-0.2-0.7-0.8-1-1.6-1 c-0.8,0.1-1.3,0.5-1.6,1.2c-0.1,0.2-0.1,0.5-0.1,0.8c0,1.7,0,3.4,0,5.1c0,0.2,0,0.2-0.2,0.2c-1,0-1.9,0-2.9,0 C-296.1,401.6-296.2,401.6-296.2,401.6z"/> <path id="XMLID_400_" fill="#FFFFFF" d="M-298,401.6L-298,401.6c-1.1,0-2.1,0-3,0c-0.1,0-0.1,0-0.1-0.1c0-3.1,0-6.1,0-9.2 c0-0.1,0-0.1,0.1-0.1c1,0,2,0,2.9,0h0.1C-298,395.3-298,398.5-298,401.6z"/> <path id="XMLID_401_" fill="#FFFFFF" d="M-299.6,390.9c-0.7-0.1-1.2-0.3-1.6-0.8c-0.5-0.8-0.2-2.1,1-2.4c0.6-0.2,1.2-0.1,1.8,0.2 c0.5,0.4,0.7,0.9,0.6,1.5c-0.1,0.7-0.5,1.1-1.1,1.3C-299.1,390.8-299.4,390.8-299.6,390.9L-299.6,390.9z"/> </g> </svg> </span>
|
959 |
<span class="simplesocialtxt">Share</span>';
|
960 |
|
@@ -964,7 +983,7 @@ class SimpleSocialButtonsPR {
|
|
964 |
$_html .= ' </button>';
|
965 |
} else {
|
966 |
|
967 |
-
$_html = '<button target="popup" class="simplesocial-linkedin-share" data-href="
|
968 |
|
969 |
// if ( $show_count ) {
|
970 |
// $_html .= '<span class="ssb_counter ssb_linkedin_counter">' . $linkedin_share . '</span>';
|
@@ -1043,13 +1062,13 @@ class SimpleSocialButtonsPR {
|
|
1043 |
break;
|
1044 |
case 'viber':
|
1045 |
if ( $theme == 'simple-icons' ) {
|
1046 |
-
$arrButtonsCode[] = '<button onclick="javascript:window.open(this.dataset.href, \'_self\' );return false;" class="simplesocial-viber-share ssb_viber-icon" data-href="
|
1047 |
<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>
|
1048 |
<span class="simplesocialtxt">Viber</span>
|
1049 |
</button>';
|
1050 |
} else {
|
1051 |
|
1052 |
-
$arrButtonsCode[] = '<button onclick="javascript:window.open(this.dataset.href, \'_self\' );return false;" class="simplesocial-viber-share" data-href="
|
1053 |
}
|
1054 |
break;
|
1055 |
case 'fblike':
|
3 |
* Plugin Name: Simple Social Buttons
|
4 |
* Plugin URI: https://simplesocialbuttons.com/
|
5 |
* Description: Simple Social Buttons adds an advanced set of social media sharing buttons to your WordPress sites, such as: Facebook, Twitter, WhatsApp, Viber, Reddit, LinkedIn and Pinterest. This makes it the most <code>Flexible Social Sharing Plugin ever for Everyone.</code>
|
6 |
+
* Version: 3.2.0
|
7 |
* Author: WPBrigade
|
8 |
* Author URI: https://www.WPBrigade.com/
|
9 |
* Text Domain: simple-social-buttons
|
44 |
* @isnce
|
45 |
* @var string
|
46 |
*/
|
47 |
+
public $pluginVersion = '3.2.0';
|
48 |
|
49 |
/**
|
50 |
* Plugin Prefix
|
369 |
ob_start();
|
370 |
|
371 |
?>
|
372 |
+
|
373 |
document.addEventListener("DOMContentLoaded", function() {
|
374 |
var if_ssb_exist = document.getElementsByClassName( "simplesocialbuttons" ).length > 0;
|
375 |
if (if_ssb_exist) {
|
387 |
};
|
388 |
jQuery.post(ssb_admin_ajax, data, function(data, textStatus, xhr) {
|
389 |
var array = JSON.parse(data);
|
390 |
+
// console.log( array );
|
391 |
jQuery.each( array, function( index, value ){
|
392 |
|
393 |
if( index == 'total' ){
|
401 |
}
|
402 |
})
|
403 |
|
404 |
+
//ssbPlugin.fetchFacebookShares();
|
405 |
}
|
406 |
});
|
407 |
|
|
|
408 |
<?php
|
409 |
$info['footer_output'] .= ob_get_clean();
|
410 |
|
414 |
// Update facebook by sending the ajax.
|
415 |
public function facebook_shares_update() {
|
416 |
|
417 |
+
if ( ! check_ajax_referer( 'fb_share_nonce', 'security' , false ) ) {
|
418 |
+
|
419 |
+
wp_send_json_error( 'Invalid security token sent. ');
|
420 |
+
wp_die();
|
421 |
+
|
422 |
+
}
|
423 |
+
|
424 |
$activity = $_POST['share_counts'];
|
425 |
$post_id = $_POST['post_id'];
|
426 |
|
493 |
wp_enqueue_script( 'jquery' );
|
494 |
wp_enqueue_script( 'ssb-front-js', plugins_url( 'assets/js/front.js', __FILE__ ), array( 'jquery' ), SSB_VERSION );
|
495 |
wp_enqueue_style( 'ssb-front-css', plugins_url( 'assets/css/front.css', __FILE__ ), false, SSB_VERSION );
|
496 |
+
wp_localize_script(
|
497 |
+
'ssb-front-js',
|
498 |
+
'SSB',
|
499 |
+
array(
|
500 |
+
'ajax_url' => admin_url( 'admin-ajax.php' ),
|
501 |
+
'fb_share_nonce' => wp_create_nonce( 'fb_share_nonce' ),
|
502 |
+
)
|
503 |
+
);
|
504 |
}
|
505 |
|
506 |
/**
|
764 |
|
765 |
if ( $this->_get_settings( 'inline', 'hide_mobile' ) ) {
|
766 |
$extra_class .= ' simplesocialbuttons-mobile-hidden'; }
|
767 |
+
$extra_class .= ' simplesocialbuttons-inline-' . $this->_get_settings( 'inline', 'animation', 'no-animation' );
|
768 |
|
769 |
$_selected_network = apply_filters( 'ssb_inline_social_networks', $this->selected_networks );
|
770 |
|
777 |
$sharing_text = '';
|
778 |
|
779 |
if ( isset( $this->inline_option['share_title'] ) && trim( $this->inline_option['share_title'] ) != '' ) {
|
780 |
+
if ( $this->_get_settings( 'inline', 'hide_mobile' ) ) {
|
781 |
+
$sharing_text = '<span class=" simplesocialbuttons-mobile-hidden ssb_inline-share_heading ' . $this->_get_settings( 'inline', 'icon_alignment', 'left' ) . '">' . $this->inline_option['share_title'] . '</span>';
|
782 |
+
}
|
783 |
+
else{
|
784 |
+
$sharing_text = '<span class=" ssb_inline-share_heading ' . $this->_get_settings( 'inline', 'icon_alignment', 'left' ) . '">' . $this->inline_option['share_title'] . '</span>';
|
785 |
+
}
|
786 |
}
|
787 |
if ( in_array( $this->get_post_type(), $this->_get_settings( 'inline', 'posts', array() ) ) ) {
|
788 |
if ( $this->inline_option['location'] == 'above' || $this->inline_option['location'] == 'above_below' ) {
|
973 |
|
974 |
if ( $theme == 'simple-icons' ) {
|
975 |
|
976 |
+
$_html = '<button class="ssb_linkedin-icon" data-href="' . ssb_linkdin_share_link( $permalink ) . '" onclick="javascript:window.open(this.dataset.href, \'\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600\');return false;" >
|
977 |
<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="15px" height="14.1px" viewBox="-301.4 387.5 15 14.1" enable-background="new -301.4 387.5 15 14.1" xml:space="preserve"> <g id="XMLID_398_"> <path id="XMLID_399_" fill="#FFFFFF" d="M-296.2,401.6c0-3.2,0-6.3,0-9.5h0.1c1,0,2,0,2.9,0c0.1,0,0.1,0,0.1,0.1c0,0.4,0,0.8,0,1.2 c0.1-0.1,0.2-0.3,0.3-0.4c0.5-0.7,1.2-1,2.1-1.1c0.8-0.1,1.5,0,2.2,0.3c0.7,0.4,1.2,0.8,1.5,1.4c0.4,0.8,0.6,1.7,0.6,2.5 c0,1.8,0,3.6,0,5.4v0.1c-1.1,0-2.1,0-3.2,0c0-0.1,0-0.1,0-0.2c0-1.6,0-3.2,0-4.8c0-0.4,0-0.8-0.2-1.2c-0.2-0.7-0.8-1-1.6-1 c-0.8,0.1-1.3,0.5-1.6,1.2c-0.1,0.2-0.1,0.5-0.1,0.8c0,1.7,0,3.4,0,5.1c0,0.2,0,0.2-0.2,0.2c-1,0-1.9,0-2.9,0 C-296.1,401.6-296.2,401.6-296.2,401.6z"/> <path id="XMLID_400_" fill="#FFFFFF" d="M-298,401.6L-298,401.6c-1.1,0-2.1,0-3,0c-0.1,0-0.1,0-0.1-0.1c0-3.1,0-6.1,0-9.2 c0-0.1,0-0.1,0.1-0.1c1,0,2,0,2.9,0h0.1C-298,395.3-298,398.5-298,401.6z"/> <path id="XMLID_401_" fill="#FFFFFF" d="M-299.6,390.9c-0.7-0.1-1.2-0.3-1.6-0.8c-0.5-0.8-0.2-2.1,1-2.4c0.6-0.2,1.2-0.1,1.8,0.2 c0.5,0.4,0.7,0.9,0.6,1.5c-0.1,0.7-0.5,1.1-1.1,1.3C-299.1,390.8-299.4,390.8-299.6,390.9L-299.6,390.9z"/> </g> </svg> </span>
|
978 |
<span class="simplesocialtxt">Share</span>';
|
979 |
|
983 |
$_html .= ' </button>';
|
984 |
} else {
|
985 |
|
986 |
+
$_html = '<button target="popup" class="simplesocial-linkedin-share" data-href="' . ssb_linkdin_share_link( $permalink ) .'" onclick="javascript:window.open(this.dataset.href, \'\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600\');return false;"><span class="simplesocialtxt">LinkedIn</span>';
|
987 |
|
988 |
// if ( $show_count ) {
|
989 |
// $_html .= '<span class="ssb_counter ssb_linkedin_counter">' . $linkedin_share . '</span>';
|
1062 |
break;
|
1063 |
case 'viber':
|
1064 |
if ( $theme == 'simple-icons' ) {
|
1065 |
+
$arrButtonsCode[] = '<button onclick="javascript:window.open(this.dataset.href, \'_self\' );return false;" class="simplesocial-viber-share ssb_viber-icon" data-href="' . ssb_viber_share_link($permalink) . '">
|
1066 |
<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>
|
1067 |
<span class="simplesocialtxt">Viber</span>
|
1068 |
</button>';
|
1069 |
} else {
|
1070 |
|
1071 |
+
$arrButtonsCode[] = '<button onclick="javascript:window.open(this.dataset.href, \'_self\' );return false;" class="simplesocial-viber-share" data-href="' . ssb_viber_share_link($permalink) . '"><span class="simplesocialtxt">Viber</span></button>';
|
1072 |
}
|
1073 |
break;
|
1074 |
case 'fblike':
|