WordPress Social Sharing Plugin – Sassy Social Share - Version 3.3.41

Version Description

[11 May 2022] = * [Improvement] Code quality improvement

Download this release

Release Info

Developer Heateor
Plugin Icon 128x128 WordPress Social Sharing Plugin – Sassy Social Share
Version 3.3.41
Comparing to
See all releases

Code changes from version 3.3.40 to 3.3.41

admin/class-sassy-social-share-admin.php CHANGED
@@ -224,9 +224,9 @@ class Sassy_Social_Share_Admin {
224
  foreach ( array_intersect( $this->options['horizontal_re_providers'], $valid_networks ) as $network ) {
225
  ?>
226
  <br/>
227
- <label for="heateor_sss_<?php echo $network ?>_horizontal_sharing_count">
228
  <span style="width: 242px; float:left"><?php _e( 'Starting share count for ' . ucfirst( str_replace ( '_', ' ', $network ) ), 'sassy-social-share' ) ?></span>
229
- <input type="text" name="_heateor_sss_meta[<?php echo $network ?>_horizontal_count]" id="heateor_sss_<?php echo $network ?>_horizontal_sharing_count" value="<?php echo is_array( $sharing_meta ) && isset( $sharing_meta[$network . '_horizontal_count'] ) ? $sharing_meta[$network . '_horizontal_count'] : '' ?>" />
230
  </label>
231
  <?php
232
  }
@@ -243,9 +243,9 @@ class Sassy_Social_Share_Admin {
243
  foreach ( array_intersect( $this->options['vertical_re_providers'], $valid_networks ) as $network ) {
244
  ?>
245
  <br/>
246
- <label for="heateor_sss_<?php echo $network ?>_vertical_sharing_count">
247
  <span style="width: 242px; float:left"><?php _e( 'Starting share count for ' . ucfirst( str_replace ( '_', ' ', $network ) ), 'sassy-social-share' ) ?></span>
248
- <input type="text" name="_heateor_sss_meta[<?php echo $network ?>_vertical_count]" id="heateor_sss_<?php echo $network ?>_vertical_sharing_count" value="<?php echo is_array( $sharing_meta ) && isset( $sharing_meta[$network . '_vertical_count'] ) ? $sharing_meta[$network . '_vertical_count'] : '' ?>" />
249
  </label>
250
  <?php
251
  }
@@ -426,6 +426,20 @@ class Sassy_Social_Share_Admin {
426
 
427
  }
428
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
429
  /**
430
  * Import plugin configuration
431
  *
@@ -440,11 +454,7 @@ class Sassy_Social_Share_Admin {
440
  if ( isset( $_POST['config'] ) && strlen( trim( $_POST['config'] ) ) > 0 ) {
441
  $config = json_decode( stripslashes( trim( $_POST['config'] ) ), true );
442
  if ( is_array( $config ) && count( $config ) > 0 ) {
443
- foreach ( $config as $key => $value ) {
444
- if ( is_string( $value ) ) {
445
- $config[$key] = sanitize_text_field( $value );
446
- }
447
- }
448
  update_option( 'heateor_sss', $config );
449
  die( json_encode(
450
  array(
224
  foreach ( array_intersect( $this->options['horizontal_re_providers'], $valid_networks ) as $network ) {
225
  ?>
226
  <br/>
227
+ <label for="heateor_sss_<?php echo esc_attr( $network ) ?>_horizontal_sharing_count">
228
  <span style="width: 242px; float:left"><?php _e( 'Starting share count for ' . ucfirst( str_replace ( '_', ' ', $network ) ), 'sassy-social-share' ) ?></span>
229
+ <input type="text" name="_heateor_sss_meta[<?php echo esc_attr( $network ) ?>_horizontal_count]" id="heateor_sss_<?php echo $network ?>_horizontal_sharing_count" value="<?php echo is_array( $sharing_meta ) && isset( $sharing_meta[$network . '_horizontal_count'] ) ? esc_attr( $sharing_meta[$network . '_horizontal_count'] ) : '' ?>" />
230
  </label>
231
  <?php
232
  }
243
  foreach ( array_intersect( $this->options['vertical_re_providers'], $valid_networks ) as $network ) {
244
  ?>
245
  <br/>
246
+ <label for="heateor_sss_<?php echo esc_attr( $network ) ?>_vertical_sharing_count">
247
  <span style="width: 242px; float:left"><?php _e( 'Starting share count for ' . ucfirst( str_replace ( '_', ' ', $network ) ), 'sassy-social-share' ) ?></span>
248
+ <input type="text" name="_heateor_sss_meta[<?php echo esc_attr( $network ) ?>_vertical_count]" id="heateor_sss_<?php echo $network ?>_vertical_sharing_count" value="<?php echo is_array( $sharing_meta ) && isset( $sharing_meta[$network . '_vertical_count'] ) ? esc_attr( $sharing_meta[$network . '_vertical_count'] ) : '' ?>" />
249
  </label>
250
  <?php
251
  }
426
 
427
  }
428
 
429
+ /**
430
+ * Sanitize the value of the passed configuration array
431
+ *
432
+ * @since 3.3.41
433
+ */
434
+ private function sanitize_configuration_array( $config_value ) {
435
+
436
+ if ( is_string( $config_value ) ) {
437
+ return sanitize_text_field( $config_value );
438
+ }
439
+ return $config_value;
440
+
441
+ }
442
+
443
  /**
444
  * Import plugin configuration
445
  *
454
  if ( isset( $_POST['config'] ) && strlen( trim( $_POST['config'] ) ) > 0 ) {
455
  $config = json_decode( stripslashes( trim( $_POST['config'] ) ), true );
456
  if ( is_array( $config ) && count( $config ) > 0 ) {
457
+ $config = array_map( array( $this, 'sanitize_configuration_array' ), $config );
 
 
 
 
458
  update_option( 'heateor_sss', $config );
459
  die( json_encode(
460
  array(
admin/partials/sassy-social-share-options-page.php CHANGED
@@ -97,21 +97,21 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
97
  }
98
  </style>
99
  <div>
100
- <div class="heateorSssCounterPreviewTop" style="width:<?php echo 60 + ( isset( $options['horizontal_sharing_shape'] ) && $options['horizontal_sharing_shape'] == 'rectangle' ? $options['horizontal_sharing_width'] : $options['horizontal_sharing_size'] ) ?>px">44</div>
101
  <div class="heateorSssCounterPreviewLeft">44</div>
102
  <div id="heateor_sss_preview" style="cursor:pointer;float:left">
103
  <div class="heateorSssCounterPreviewInnertop">44</div>
104
  <div class="heateorSssCounterPreviewInnerleft">44</div>
105
- <div id="horizontal_svg" style="float:left;width:100%;height:100%;background:url( 'data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22100%25%22%20height%3D%22100%25%22%20viewBox%3D%22-4%20-4%2040%2040%22%3E%3Cpath%20d%3D%22M17.78%2027.5V17.008h3.522l.527-4.09h-4.05v-2.61c0-1.182.33-1.99%202.023-1.99h2.166V4.66c-.375-.05-1.66-.16-3.155-.16-3.123%200-5.26%201.905-5.26%205.405v3.016h-3.53v4.09h3.53V27.5h4.223z%22%20fill%3D%22<?php echo $sharing_color ? str_replace( '#', '%23', $sharing_color) : "%23fff" ?>%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E' ) no-repeat center center; margin: auto"></div>
106
  <div class="heateorSssCounterPreviewInnerright">44</div>
107
  <div class="heateorSssCounterPreviewInnerbottom">44</div>
108
  </div>
109
  <div class="heateorSssCounterPreviewRight">44</div>
110
- <div class="heateorSssCounterPreviewBottom" style="width:<?php echo 60 + ( isset( $options['horizontal_sharing_shape'] ) && $options['horizontal_sharing_shape'] == 'rectangle' ? $options['horizontal_sharing_width'] : $options['horizontal_sharing_size'] ) ?>px">44</div>
111
  </div>
112
 
113
  <script type="text/javascript">
114
- var tempHorShape = '<?php echo $sharing_shape ?>', tempHorSize = '<?php echo $sharing_size ?>', tempHorHeight = '<?php echo $sharing_height ?>', tempHorWidth = '<?php echo $sharing_width ?>', heateorSssSharingBgHover = '<?php echo $horizontal_bg_hover ?>', heateorSssSharingBg = '<?php echo $horizontal_bg ? $horizontal_bg : "#3C589A" ?>', heateorSssBorderWidth = '<?php echo $border_width ?>', heateorSssBorderColor = '<?php echo $border_color ?>', heateorSssSharingBorderRadius = '<?php echo $sharing_border_radius ? $sharing_border_radius . "px" : "0px" ?>';
115
 
116
  heateorSssSharingHorizontalPreview();
117
 
@@ -176,7 +176,7 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
176
  <img id="heateor_sss_icon_size_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
177
  </th>
178
  <td>
179
- <input style="width:50px" id="heateor_sss_icon_size" name="heateor_sss[horizontal_sharing_size]" type="text" value="<?php echo $sharing_size; ?>" />
180
  <input id="heateor_sss_size_plus" type="button" value="+" onmouseup="tempHorSize = document.getElementById( 'heateor_sss_icon_size' ).value;heateorSssSharingHorizontalPreview()" />
181
  <input id="heateor_sss_size_minus" type="button" value="-" onmouseup="tempHorSize = document.getElementById( 'heateor_sss_icon_size' ).value;heateorSssSharingHorizontalPreview()" />
182
  <script type="text/javascript">
@@ -202,7 +202,7 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
202
  <img id="heateor_sss_icon_width_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
203
  </th>
204
  <td>
205
- <input style="width:50px" id="heateor_sss_icon_width" name="heateor_sss[horizontal_sharing_width]" type="text" value="<?php echo $sharing_width; ?>" />
206
  <input id="heateor_sss_width_plus" type="button" value="+" onmouseup="tempHorWidth = document.getElementById( 'heateor_sss_icon_width' ).value;heateorSssSharingHorizontalPreview()" />
207
  <input id="heateor_sss_width_minus" type="button" value="-" onmouseup="tempHorWidth = document.getElementById( 'heateor_sss_icon_width' ).value;heateorSssSharingHorizontalPreview()" />
208
  <script type="text/javascript">
@@ -226,7 +226,7 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
226
  <img id="heateor_sss_icon_height_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
227
  </th>
228
  <td>
229
- <input style="width:50px" id="heateor_sss_icon_height" name="heateor_sss[horizontal_sharing_height]" type="text" value="<?php echo $sharing_height; ?>" />
230
  <input id="heateor_sss_height_plus" type="button" value="+" onmouseup="tempHorHeight = document.getElementById( 'heateor_sss_icon_height' ).value;heateorSssSharingHorizontalPreview()" />
231
  <input id="heateor_sss_height_minus" type="button" value="-" onmouseup="tempHorHeight = document.getElementById( 'heateor_sss_icon_height' ).value;heateorSssSharingHorizontalPreview()" />
232
  <script type="text/javascript">
@@ -252,7 +252,7 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
252
  <img id="heateor_sss_icon_border_radius_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
253
  </th>
254
  <td>
255
- <input style="width:50px" id="heateor_sss_icon_border_radius" name="heateor_sss[horizontal_border_radius]" type="text" value="<?php echo $sharing_border_radius; ?>" onkeyup="heateorSssSharingBorderRadius = this.value.trim() ? this.value.trim() + 'px' : '0px';heateorSssUpdateSharingPreview(heateorSssSharingBorderRadius, 'borderRadius', '0px', 'heateor_sss_preview' )" />
256
  </td>
257
  </tr>
258
 
@@ -272,10 +272,10 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
272
  </th>
273
  <td>
274
  <script type="text/javascript">var heateorSssSharingTempColor = '<?php echo $sharing_color ? esc_js( $sharing_color ) : "#fff" ?>';</script>
275
- <label for="heateor_sss_font_color_default"><?php _e("Default", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_font_color_default" onkeyup="if (this.value.trim() == '' || this.value.trim().length >= 3) { jQuery( '#horizontal_svg' ).attr( 'style', jQuery( '#horizontal_svg' ).attr( 'style' ).replace(heateorSssSharingTempColor.replace( '#', '%23' ), this.value.trim() ? this.value.trim().replace( '#', '%23' ) : '%23fff' ) ); heateorSssSharingTempColor = this.value.trim() ? this.value.trim() : '#fff';jQuery( '#heateor_sss_preview' ).css( 'color', heateorSssSharingTempColor.replace( '%23','#' ) ) }" name="heateor_sss[horizontal_font_color_default]" type="text" value="<?php echo $sharing_color; ?>" />
276
- <input name="heateor_sss[horizontal_sharing_replace_color]" type="hidden" value="<?php echo isset( $options['horizontal_sharing_replace_color'] ) ? $options['horizontal_sharing_replace_color'] : ''; ?>" />
277
- <label style="margin-left:10px" for="heateor_sss_font_color_hover"><?php _e("On Hover", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_font_color_hover" name="heateor_sss[horizontal_font_color_hover]" type="text" onkeyup="" value="<?php echo $sharing_color_hover; ?>" />
278
- <input name="heateor_sss[horizontal_sharing_replace_color_hover]" type="hidden" value="<?php echo isset( $options['horizontal_sharing_replace_color_hover'] ) ? $options['horizontal_sharing_replace_color_hover'] : ''; ?>" />
279
  </td>
280
  </tr>
281
 
@@ -293,8 +293,8 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
293
  <img id="heateor_sss_bg_color_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
294
  </th>
295
  <td>
296
- <label for="heateor_sss_bg_color_default"><?php _e("Default", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_bg_color_default" name="heateor_sss[horizontal_bg_color_default]" type="text" onkeyup="heateorSssSharingBg = this.value.trim() ? this.value.trim() : '#3C589A'; heateorSssUpdateSharingPreview(this.value.trim(), 'backgroundColor', '#3C589A', 'heateor_sss_preview' )" value="<?php echo $horizontal_bg ?>" />
297
- <label style="margin-left:10px" for="heateor_sss_bg_color_hover"><?php _e("On Hover", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_bg_color_hover" name="heateor_sss[horizontal_bg_color_hover]" type="text" onkeyup="heateorSssSharingBgHover = this.value.trim() ? this.value.trim() : '#3C589A';" value="<?php echo $horizontal_bg_hover ?>" />
298
  </td>
299
  </tr>
300
 
@@ -315,13 +315,13 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
315
  <script type="text/javascript">var heateorSssBorderWidthHover = '<?php echo $border_width_hover = isset( $options['horizontal_border_width_hover'] ) ? esc_js( $options['horizontal_border_width_hover'] ) : ''; ?>', heateorSssBorderColorHover = '<?php echo $border_color_hover = isset( $options['horizontal_border_color_hover'] ) ? esc_js( $options['horizontal_border_color_hover'] ) : ''; ?>'</script>
316
  <label><strong><?php _e( "Default", 'sassy-social-share' ); ?></strong></label>
317
  <br/>
318
- <label for="heateor_sss_border_width_default"><?php _e("Border Width", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_border_width_default" onkeyup="heateorSssBorderWidth = this.value.trim(); jQuery( '#heateor_sss_preview' ).css( 'borderStyle', 'solid' ); heateorSssUpdateSharingPreview(this.value.trim(), 'borderWidth', '0px', 'heateor_sss_preview' ); heateorSssSharingHorizontalPreview();" name="heateor_sss[horizontal_border_width_default]" type="text" value="<?php echo $border_width ?>" />pixel(s)
319
- <label style="margin-left:10px" for="heateor_sss_border_color_default"><?php _e("Border Color", 'sassy-social-share' ); ?></label><input style="width: 100px" onkeyup="heateorSssBorderColor = this.value.trim(); jQuery( '#heateor_sss_preview' ).css( 'borderStyle', 'solid' ); heateorSssUpdateSharingPreview(this.value.trim(), 'borderColor', 'transparent', 'heateor_sss_preview' )" id="heateor_sss_border_color_default" name="heateor_sss[horizontal_border_color_default]" type="text" value="<?php echo $border_color ?>" />
320
  <br/><br/>
321
  <label><strong><?php _e("On Hover", 'sassy-social-share' ); ?></strong></label>
322
  <br/>
323
- <label for="heateor_sss_border_width_hover"><?php _e("Border Width", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_border_width_hover" name="heateor_sss[horizontal_border_width_hover]" type="text" value="<?php echo $border_width_hover ?>" onkeyup="heateorSssBorderWidthHover = this.value.trim();" />pixel(s)
324
- <label style="margin-left:10px" for="heateor_sss_border_color_hover"><?php _e("Border Color", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_border_color_hover" name="heateor_sss[horizontal_border_color_hover]" type="text" value="<?php echo $border_color_hover ?>" onkeyup="heateorSssBorderColorHover = this.value.trim();" />
325
  </td>
326
  </tr>
327
 
@@ -357,7 +357,7 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
357
  <label style="margin-right:10px" for="heateor_sss_counter_inner_bottom"><?php _e("Inner Bottom", 'sassy-social-share' ); ?></label>
358
  </td>
359
  </tr>
360
- <script type="text/javascript">heateorSssCounterPreview( '<?php echo $counter_position ?>' );</script>
361
 
362
  <tr class="heateor_sss_help_content" id="heateor_sss_counter_help_cont">
363
  <td colspan="2">
@@ -413,21 +413,21 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
413
  }
414
  </style>
415
  <div>
416
- <div class="heateorSssCounterVerticalPreviewTop" style="width:<?php echo 60 + ( isset( $options['vertical_sharing_shape'] ) && $options['vertical_sharing_shape'] == 'rectangle' ? $options['vertical_sharing_width'] : $options['vertical_sharing_size'] ) ?>px">44</div>
417
  <div class="heateorSssCounterVerticalPreviewLeft">44</div>
418
  <div id="heateor_sss_vertical_preview" style="cursor:pointer;float:left">
419
  <div class="heateorSssCounterVerticalPreviewInnertop">44</div>
420
  <div class="heateorSssCounterVerticalPreviewInnerleft">44</div>
421
- <div id="vertical_svg" style="float:left;width:100%;height:100%;background:url( 'data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22100%25%22%20height%3D%22100%25%22%20viewBox%3D%22-4%20-4%2040%2040%22%3E%3Cpath%20d%3D%22M17.78%2027.5V17.008h3.522l.527-4.09h-4.05v-2.61c0-1.182.33-1.99%202.023-1.99h2.166V4.66c-.375-.05-1.66-.16-3.155-.16-3.123%200-5.26%201.905-5.26%205.405v3.016h-3.53v4.09h3.53V27.5h4.223z%22%20fill%3D%22<?php echo $vertical_sharing_color ? str_replace( '#', '%23', $vertical_sharing_color) : "%23fff" ?>%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E' ) no-repeat center center; margin: auto"></div>
422
  <div class="heateorSssCounterVerticalPreviewInnerright">44</div>
423
  <div class="heateorSssCounterVerticalPreviewInnerbottom">44</div>
424
  </div>
425
  <div class="heateorSssCounterVerticalPreviewRight">44</div>
426
- <div class="heateorSssCounterVerticalPreviewBottom" style="width:<?php echo 60 + ( isset( $options['vertical_sharing_shape'] ) && $options['vertical_sharing_shape'] == 'rectangle' ? $options['vertical_sharing_width'] : $options['vertical_sharing_size'] ) ?>px">44</div>
427
  </div>
428
 
429
  <script type="text/javascript">
430
- var tempVerticalShape = '<?php echo $vertical_sharing_shape ?>', tempVerticalSize = '<?php echo $vertical_sharing_size ?>', tempVerticalHeight = '<?php echo $vertical_sharing_height ?>', tempVerticalWidth = '<?php echo $vertical_sharing_width ?>', heateorSssVerticalSharingBgHover = '<?php echo $vertical_bg_hover ?>', heateorSssVerticalSharingBg = '<?php echo $vertical_bg ? $vertical_bg : "#3C589A" ?>', heateorSssVerticalBorderWidth = '<?php echo $vertical_border_width ?>', heateorSssVerticalBorderColor = '<?php echo $vertical_border_color ?>', heateorSssVerticalBorderWidthHover = '<?php echo $vertical_border_width_hover = isset( $options['vertical_border_width_hover'] ) ? $options['vertical_border_width_hover'] : ''; ?>', heateorSssVerticalBorderColorHover = '<?php echo $vertical_border_color_hover = isset( $options['vertical_border_color_hover'] ) ? $options['vertical_border_color_hover'] : ''; ?>', heateorSssVerticalBorderRadius = '<?php echo $vertical_sharing_border_radius ? $vertical_sharing_border_radius . "px" : "0px" ?>';
431
 
432
  heateorSssSharingVerticalPreview();
433
 
@@ -492,7 +492,7 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
492
  <img id="heateor_sss_vertical_sharing_icon_size_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
493
  </th>
494
  <td>
495
- <input style="width:50px" id="heateor_sss_vertical_sharing_icon_size" name="heateor_sss[vertical_sharing_size]" type="text" value="<?php echo $vertical_sharing_size; ?>" />
496
  <input id="heateor_sss_vertical_sharing_size_plus" type="button" value="+" onmouseup="tempVerticalSize = document.getElementById( 'heateor_sss_vertical_sharing_icon_size' ).value;heateorSssSharingVerticalPreview()" />
497
  <input id="heateor_sss_vertical_sharing_size_minus" type="button" value="-" onmouseup="tempVerticalSize = document.getElementById( 'heateor_sss_vertical_sharing_icon_size' ).value;heateorSssSharingVerticalPreview()" />
498
  <script type="text/javascript">
@@ -518,7 +518,7 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
518
  <img id="heateor_sss_vertical_icon_width_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
519
  </th>
520
  <td>
521
- <input style="width:50px" id="heateor_sss_vertical_icon_width" name="heateor_sss[vertical_sharing_width]" type="text" value="<?php echo $vertical_sharing_width; ?>" />
522
  <input id="heateor_sss_vertical_width_plus" type="button" value="+" onmouseup="tempVerticalWidth = document.getElementById( 'heateor_sss_vertical_icon_width' ).value;heateorSssSharingVerticalPreview()" />
523
  <input id="heateor_sss_vertical_width_minus" type="button" value="-" onmouseup="tempVerticalWidth = document.getElementById( 'heateor_sss_vertical_icon_width' ).value;heateorSssSharingVerticalPreview()" />
524
  <script type="text/javascript">
@@ -542,7 +542,7 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
542
  <img id="heateor_sss_vertical_icon_height_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
543
  </th>
544
  <td>
545
- <input style="width:50px" id="heateor_sss_vertical_icon_height" name="heateor_sss[vertical_sharing_height]" type="text" value="<?php echo $vertical_sharing_height; ?>" />
546
  <input id="heateor_sss_vertical_height_plus" type="button" value="+" onmouseup="tempVerticalHeight = document.getElementById( 'heateor_sss_vertical_icon_height' ).value;heateorSssSharingVerticalPreview()" />
547
  <input id="heateor_sss_vertical_height_minus" type="button" value="-" onmouseup="tempVerticalHeight = document.getElementById( 'heateor_sss_vertical_icon_height' ).value;heateorSssSharingVerticalPreview()" />
548
  <script type="text/javascript">
@@ -568,7 +568,7 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
568
  <img id="heateor_sss_vertical_icon_border_radius_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
569
  </th>
570
  <td>
571
- <input style="width:50px" id="heateor_sss_vertical_icon_border_radius" name="heateor_sss[vertical_border_radius]" type="text" value="<?php echo $vertical_sharing_border_radius; ?>" onkeyup="heateorSssVerticalBorderRadius = this.value.trim() ? this.value.trim() + 'px' : '0px';heateorSssUpdateSharingPreview(heateorSssVerticalBorderRadius, 'borderRadius', '0px', 'heateor_sss_vertical_preview' )" />
572
  </td>
573
  </tr>
574
 
@@ -587,11 +587,11 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
587
  <img id="heateor_sss_vertical_font_color_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
588
  </th>
589
  <td>
590
- <script type="text/javascript">var heateorSssVerticalSharingTempColor = '<?php echo $vertical_sharing_color ? $vertical_sharing_color : "#fff" ?>';</script>
591
- <label for="heateor_sss_vertical_font_color_default"><?php _e("Default", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_vertical_font_color_default" name="heateor_sss[vertical_font_color_default]" onkeyup="if (this.value.trim() == '' || this.value.trim().length >= 3) { jQuery( '#vertical_svg' ).attr( 'style', jQuery( '#vertical_svg' ).attr( 'style' ).replace(heateorSssVerticalSharingTempColor.replace( '#', '%23' ), this.value.trim() ? this.value.trim().replace( '#', '%23' ) : '%23fff' ) ); heateorSssVerticalSharingTempColor = this.value.trim() ? this.value.trim() : '#fff';jQuery( '#heateor_sss_vertical_preview' ).css( 'color', heateorSssVerticalSharingTempColor.replace( '%23','#' ) ) }" type="text" value="<?php echo $vertical_sharing_color ?>" />
592
- <input name="heateor_sss[vertical_sharing_replace_color]" type="hidden" value="<?php echo isset( $options['vertical_sharing_replace_color'] ) ? $options['vertical_sharing_replace_color'] : ''; ?>" />
593
- <label style="margin-left:10px" for="heateor_sss_vertical_font_color_hover"><?php _e("On Hover", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_vertical_font_color_hover" name="heateor_sss[vertical_font_color_hover]" type="text" value="<?php echo $vertical_sharing_color_hover; ?>" />
594
- <input name="heateor_sss[vertical_sharing_replace_color_hover]" type="hidden" value="<?php echo isset( $options['vertical_sharing_replace_color_hover'] ) ? $options['vertical_sharing_replace_color_hover'] : ''; ?>" />
595
  </td>
596
  </tr>
597
 
@@ -609,8 +609,8 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
609
  <img id="heateor_sss_vertical_icon_bg_color_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
610
  </th>
611
  <td>
612
- <label for="heateor_sss_vertical_icon_bg_color_default"><?php _e("Default", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_vertical_icon_bg_color_default" name="heateor_sss[vertical_bg_color_default]" type="text" onkeyup="heateorSssVerticalSharingBg = this.value.trim() ? this.value.trim() : '#3C589A'; heateorSssUpdateSharingPreview(this.value.trim(), 'backgroundColor', '#3C589A', 'heateor_sss_vertical_preview' )" value="<?php echo $vertical_bg ?>" />
613
- <label style="margin-left:10px" for="heateor_sss_vertical_bg_color_hover"><?php _e("On Hover", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_vertical_bg_color_hover" name="heateor_sss[vertical_bg_color_hover]" type="text" onkeyup="heateorSssVerticalSharingBgHover = this.value.trim() ? this.value.trim() : '#3C589A';" value="<?php echo $vertical_bg_hover ?>" />
614
  </td>
615
  </tr>
616
 
@@ -630,13 +630,13 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
630
  <td>
631
  <label><strong><?php _e("Default", 'sassy-social-share' ); ?></strong></label>
632
  <br/>
633
- <label for="heateor_sss_vertical_border_width_default"><?php _e("Border Width", 'sassy-social-share' ); ?></label><input style="width: 100px" onkeyup="heateorSssVerticalBorderWidth = this.value.trim(); jQuery( '#heateor_sss_vertical_preview' ).css( 'borderStyle', 'solid' ); heateorSssUpdateSharingPreview(this.value.trim(), 'borderWidth', '0px', 'heateor_sss_vertical_preview' ); heateorSssSharingVerticalPreview();" id="heateor_sss_vertical_border_width_default" name="heateor_sss[vertical_border_width_default]" type="text" value="<?php echo $vertical_border_width ?>" />pixel(s)
634
- <label style="margin-left:10px" for="heateor_sss_vertical_border_color_default"><?php _e("Border Color", 'sassy-social-share' ); ?></label><input onkeyup="heateorSssVerticalBorderColor = this.value.trim(); jQuery( '#heateor_sss_vertical_preview' ).css( 'borderStyle', 'solid' ); heateorSssUpdateSharingPreview(this.value.trim(), 'borderColor', 'transparent', 'heateor_sss_vertical_preview' )" style="width: 100px" id="heateor_sss_vertical_border_color_default" name="heateor_sss[vertical_border_color_default]" type="text" value="<?php echo $vertical_border_color = isset( $options['vertical_border_color_default'] ) ? $options['vertical_border_color_default'] : ''; ?>" />
635
  <br/><br/>
636
  <label><strong><?php _e("On Hover", 'sassy-social-share' ); ?></strong></label>
637
  <br/>
638
- <label for="heateor_sss_vertical_border_width_hover"><?php _e("Border Width", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_vertical_border_width_hover" name="heateor_sss[vertical_border_width_hover]" onkeyup="heateorSssVerticalBorderWidthHover = this.value.trim();" type="text" value="<?php echo $vertical_border_width_hover ?>" />pixel(s)
639
- <label style="margin-left:10px" for="heateor_sss_vertical_border_color_hover"><?php _e("Border Color", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_vertical_border_color_hover" name="heateor_sss[vertical_border_color_hover]" onkeyup="heateorSssVerticalBorderColorHover = this.value.trim()" type="text" value="<?php echo $vertical_border_color_hover; ?>" />
640
  </td>
641
  </tr>
642
 
@@ -672,7 +672,7 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
672
  <label style="margin-right:10px" for="heateor_sss_vertical_counter_inner_bottom"><?php _e("Inner Bottom", 'sassy-social-share' ); ?></label>
673
  </td>
674
  </tr>
675
- <script type="text/javascript">heateorSssVerticalCounterPreview( '<?php echo $vertical_counter_position ?>' );</script>
676
 
677
  <tr class="heateor_sss_help_content" id="heateor_sss_vertical_counter_help_cont">
678
  <td colspan="2">
@@ -723,13 +723,13 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
723
  <img id="heateor_sss_horizontal_target_url_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
724
  </th>
725
  <td id="heateor_sss_target_url_column">
726
- <input id="heateor_sss_target_url_default" name="heateor_sss[horizontal_target_url]" type="radio" <?php echo !isset( $options['horizontal_target_url'] ) || $options['horizontal_target_url'] == 'default' ? 'checked = "checked"' : '';?> value="default" />
727
  <label for="heateor_sss_target_url_default"><?php _e( 'Url of the webpage where icons are located (default)', 'sassy-social-share' ) ?></label><br/>
728
  <input id="heateor_sss_target_url_home" name="heateor_sss[horizontal_target_url]" type="radio" <?php echo isset( $options['horizontal_target_url'] ) && $options['horizontal_target_url'] == 'home' ? 'checked = "checked"' : '';?> value="home" />
729
  <label for="heateor_sss_target_url_home"><?php _e( 'Url of the homepage of your website', 'sassy-social-share' ) ?></label><br/>
730
  <input id="heateor_sss_target_url_custom" name="heateor_sss[horizontal_target_url]" type="radio" <?php echo isset( $options['horizontal_target_url'] ) && $options['horizontal_target_url'] == 'custom' ? 'checked = "checked"' : '';?> value="custom" />
731
  <label for="heateor_sss_target_url_custom"><?php _e( 'Custom url', 'sassy-social-share' ) ?></label><br/>
732
- <input id="heateor_sss_target_url_custom_url" name="heateor_sss[horizontal_target_url_custom]" type="text" value="<?php echo isset( $options['horizontal_target_url_custom'] ) ? $options['horizontal_target_url_custom'] : '' ?>" />
733
  </td>
734
  </tr>
735
  <tr class="heateor_sss_help_content" id="heateor_sss_horizontal_target_url_help_cont">
@@ -746,7 +746,7 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
746
  <img id="heateor_sss_title_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
747
  </th>
748
  <td>
749
- <input id="heateor_sss_fblogin_title" name="heateor_sss[title]" type="text" value="<?php echo isset( $options['title'] ) ? $options['title'] : '' ?>" />
750
  </td>
751
  </tr>
752
 
@@ -784,14 +784,14 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
784
  $options['vertical_re_providers'] = array();
785
  }
786
  ?>
787
- <tbody id="heateor_sss_instagram_options" <?php echo ! isset( $options['horizontal_re_providers'] ) || ! in_array( 'instagram', $options['horizontal_re_providers'] ) ? 'style = "display: none"' : '';?> >
788
  <tr>
789
  <th>
790
  <label for="heateor_sss_instagram_username"><?php _e( "Instagram username", 'sassy-social-share' ); ?></label>
791
  <img id="heateor_sss_instagram_username_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
792
  </th>
793
  <td>
794
- <input id="heateor_sss_instagram_username" name="heateor_sss[instagram_username]" type="text" value="<?php echo $instagram_username ?>" />
795
  </td>
796
  </tr>
797
 
@@ -804,14 +804,14 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
804
  </tr>
805
  </tbody>
806
 
807
- <tbody id="heateor_sss_youtube_options" <?php echo ! isset( $options['horizontal_re_providers'] ) || ! in_array( 'youtube', $options['horizontal_re_providers'] ) ? 'style = "display: none"' : '';?> >
808
  <tr>
809
  <th>
810
  <label for="heateor_sss_youtube_username"><?php _e( "Youtube URL", 'sassy-social-share' ); ?></label>
811
  <img id="heateor_sss_youtube_username_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
812
  </th>
813
  <td>
814
- <input id="heateor_sss_youtube_username" name="heateor_sss[youtube_username]" type="text" value="<?php echo $youtube_username ?>" />
815
  </td>
816
  </tr>
817
 
@@ -824,14 +824,14 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
824
  </tr>
825
  </tbody>
826
 
827
- <tbody id="heateor_sss_comment_options" <?php echo ! isset( $options['horizontal_re_providers'] ) || ! in_array( 'Comment', $options['horizontal_re_providers'] ) ? 'style = "display: none"' : '';?> >
828
  <tr>
829
  <th>
830
  <label for="heateor_sss_comment_container_id"><?php _e( "HTML ID of container element of comment form", 'sassy-social-share' ); ?></label>
831
  <img id="heateor_sss_comment_container_id_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
832
  </th>
833
  <td>
834
- <input id="heateor_sss_comment_container_id" name="heateor_sss[comment_container_id]" type="text" value="<?php echo $commentform_container_id ?>" />
835
  </td>
836
  </tr>
837
 
@@ -878,32 +878,32 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
878
  $horSharingStyle .= 'border-radius:' . $options['horizontal_border_radius'] . 'px;';
879
  }
880
  ?>
881
- var heateorSssHorSharingStyle = '<?php echo $horSharingStyle ?>', heateorSssHorDeliciousRadius = '<?php echo $horDeliciousRadius ?>', heateorSssLikeButtons = ["<?php echo implode( '","', $like_buttons) ?>"];
882
  </script>
883
  <style type="text/css">
884
  <?php if ( $horizontal_bg != '' ) { ?>
885
- ul#heateor_sss_rearrange i.heateorSssInstagramBackground{background:<?php echo $horizontal_bg ?>!important;}
886
  <?php }
887
  if ( $horizontal_bg_hover != '' ) { ?>
888
- ul#heateor_sss_rearrange i.heateorSssInstagramBackground:hover{background:<?php echo $horizontal_bg_hover ?>!important;}
889
  <?php } ?>
890
  .heateorSssSharingBackground{
891
  <?php if ( $horizontal_bg ) { ?>
892
- background-color: <?php echo $horizontal_bg ?>;
893
  <?php } if ( $border_width ) { ?>
894
- border-width: <?php echo $border_width ?>px;
895
  border-style: solid;
896
  <?php } ?>
897
- border-color: <?php echo $border_color ? $border_color : 'transparent'; ?>;
898
  }
899
  .heateorSssSharingBackground:hover{
900
  <?php if ( $horizontal_bg_hover ) { ?>
901
- background-color: <?php echo $horizontal_bg_hover ?>;
902
  <?php }if ( $border_width_hover ) { ?>
903
- border-width: <?php echo $border_width_hover ?>px;
904
  border-style: solid;
905
  <?php } ?>
906
- border-color: <?php echo $border_color_hover ? $border_color_hover : 'transparent'; ?>;
907
  }
908
  </style>
909
  <ul id="heateor_sss_rearrange">
@@ -911,9 +911,9 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
911
  if ( isset( $options['horizontal_re_providers'] ) ) {
912
  foreach ( $options['horizontal_re_providers'] as $rearrange ) {
913
  ?>
914
- <li title="<?php echo ucfirst( str_replace( '_', ' ', $rearrange ) ) ?>" id="heateor_sss_re_horizontal_<?php echo str_replace(array( ' ', '.' ), '_', $rearrange) ?>" >
915
- <i style="display:block;<?php echo $horSharingStyle ?>" class="<?php echo in_array( $rearrange, $like_buttons) ? '' : 'heateorSssSharingBackground' ?> heateorSss<?php echo ucfirst(str_replace(array( '_', '.', ' ' ), '', $rearrange) ) ?>Background"><div class="heateorSssSharingSvg heateorSss<?php echo ucfirst(str_replace(array( '_', ' ', '.' ), '', $rearrange) ) ?>Svg" style="<?php echo $horDeliciousRadius ?>"></div></i>
916
- <input type="hidden" name="heateor_sss[horizontal_re_providers][]" value="<?php echo $rearrange ?>">
917
  </li>
918
  <?php
919
  }
@@ -952,8 +952,8 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
952
  foreach( $like_buttons as $like_button ) {
953
  ?>
954
  <div class="heateorSssHorizontalSharingProviderContainer">
955
- <input id="heateor_sss_<?php echo $like_button ?>" type="checkbox" <?php echo isset( $options['horizontal_re_providers'] ) && in_array( $like_button, $options['horizontal_re_providers'] ) ? 'checked = "checked"' : '';?> value="<?php echo $like_button ?>" />
956
- <label for="heateor_sss_<?php echo $like_button ?>"><img src="<?php echo plugins_url( '../../images/sharing/'. $like_button .'.png', __FILE__ ) ?>" /></label>
957
  </div>
958
  <?php
959
  }
@@ -965,9 +965,9 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
965
  foreach( $sharing_networks as $sharing_network ) {
966
  ?>
967
  <div class="heateorSssHorizontalSharingProviderContainer">
968
- <input id="heateor_sss_<?php echo $sharing_network ?>" type="checkbox" <?php echo isset( $options['horizontal_re_providers'] ) && in_array( $sharing_network, $options['horizontal_re_providers'] ) ? 'checked = "checked"' : '';?> value="<?php echo $sharing_network ?>" />
969
- <label for="heateor_sss_<?php echo $sharing_network ?>"><i style="display:block;width:18px;height:18px;" class="heateorSssSharing heateorSss<?php echo str_replace( array( '_', '.', ' ' ), '', ucfirst( $sharing_network ) ) ?>Background"><ss style="display:block;" class="heateorSssSharingSvg heateorSss<?php echo str_replace(array( '_', '.', ' ' ), '', ucfirst( $sharing_network) ) ?>Svg"></ss></i></label>
970
- <label class="lblSocialNetwork" for="heateor_sss_<?php echo $sharing_network ?>"><?php echo str_replace( '_', ' ', ucfirst( $sharing_network ) ) ?></label>
971
  </div>
972
  <?php
973
  }
@@ -1050,8 +1050,8 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
1050
  if ( count( $post_types ) ) {
1051
  foreach ( $post_types as $post_type ) {
1052
  ?>
1053
- <input id="heateor_sss_<?php echo $post_type ?>" name="heateor_sss[<?php echo $post_type ?>]" type="checkbox" <?php echo isset( $options[$post_type] ) ? 'checked = "checked"' : '';?> value="1" />
1054
- <label for="heateor_sss_<?php echo $post_type ?>"><?php echo ucfirst( $post_type ) . 's'; ?></label><br/>
1055
  <?php
1056
  }
1057
  }
@@ -1064,7 +1064,7 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
1064
  <label for="heateor_sss_bp_group"><?php _e( 'BuddyPress group (only at top of content)', 'sassy-social-share' ) ?></label><br/>
1065
  <?php
1066
  }
1067
- if (function_exists( 'is_bbpress' ) ) {
1068
  ?>
1069
  <input id="heateor_sss_bb_forum" name="heateor_sss[bb_forum]" type="checkbox" <?php echo isset( $options['bb_forum'] ) ? 'checked = "checked"' : '';?> value="1" />
1070
  <label for="heateor_sss_bb_forum"><?php _e( 'BBPress forum', 'sassy-social-share' ) ?></label>
@@ -1210,13 +1210,13 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
1210
  <img id="heateor_sss_vertical_target_url_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1211
  </th>
1212
  <td id="heateor_sss_vertical_target_url_column">
1213
- <input id="heateor_sss_vertical_target_url_default" name="heateor_sss[vertical_target_url]" type="radio" <?php echo !isset( $options['vertical_target_url'] ) || $options['vertical_target_url'] == 'default' ? 'checked = "checked"' : '';?> value="default" />
1214
  <label for="heateor_sss_vertical_target_url_default"><?php _e( 'Url of the webpage where icons are located (default)', 'sassy-social-share' ) ?></label><br/>
1215
  <input id="heateor_sss_vertical_target_url_home" name="heateor_sss[vertical_target_url]" type="radio" <?php echo isset( $options['vertical_target_url'] ) && $options['vertical_target_url'] == 'home' ? 'checked = "checked"' : '';?> value="home" />
1216
  <label for="heateor_sss_vertical_target_url_home"><?php _e( 'Url of the homepage of your website', 'sassy-social-share' ) ?></label><br/>
1217
  <input id="heateor_sss_vertical_target_url_custom" name="heateor_sss[vertical_target_url]" type="radio" <?php echo isset( $options['vertical_target_url'] ) && $options['vertical_target_url'] == 'custom' ? 'checked = "checked"' : '';?> value="custom" />
1218
  <label for="heateor_sss_vertical_target_url_custom"><?php _e( 'Custom url', 'sassy-social-share' ) ?></label><br/>
1219
- <input id="heateor_sss_vertical_target_url_custom_url" name="heateor_sss[vertical_target_url_custom]" type="text" value="<?php echo isset( $options['vertical_target_url_custom'] ) ? $options['vertical_target_url_custom'] : '' ?>" />
1220
  </td>
1221
  </tr>
1222
  <tr class="heateor_sss_help_content" id="heateor_sss_vertical_target_url_help_cont">
@@ -1227,14 +1227,14 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
1227
  </td>
1228
  </tr>
1229
 
1230
- <tbody id="heateor_sss_vertical_instagram_options" <?php echo ! in_array( 'instagram', $options['vertical_re_providers'] ) ? 'style = "display: none"' : '';?> >
1231
  <tr>
1232
  <th>
1233
  <label for="heateor_sss_vertical_instagram_username"><?php _e("Instagram username", 'sassy-social-share' ); ?></label>
1234
  <img id="heateor_sss_vertical_instagram_username_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1235
  </th>
1236
  <td>
1237
- <input id="heateor_sss_vertical_instagram_username" name="heateor_sss[vertical_instagram_username]" type="text" value="<?php echo $instagram_username ?>" />
1238
  </td>
1239
  </tr>
1240
 
@@ -1246,7 +1246,7 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
1246
  </td>
1247
  </tr>
1248
  </tbody>
1249
- <tbody id="heateor_sss_vertical_youtube_options" <?php echo ! in_array( 'youtube', $options['vertical_re_providers'] ) ? 'style = "display: none"' : '';?> >
1250
  <tr>
1251
  <th>
1252
  <label for="heateor_sss_vertical_youtube_username"><?php _e( "Youtube URL", 'sassy-social-share' ); ?></label>
@@ -1255,7 +1255,7 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
1255
  <td>
1256
 
1257
 
1258
- <input id="heateor_sss_vertical_youtube_username" name="heateor_sss[vertical_youtube_username]" type="text" value="<?php echo $youtube_username ?>" />
1259
  </td>
1260
  </tr>
1261
 
@@ -1267,14 +1267,14 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
1267
  </td>
1268
  </tr>
1269
  </tbody>
1270
- <tbody id="heateor_sss_vertical_comment_options" <?php echo ! in_array( 'Comment', $options['vertical_re_providers'] ) ? 'style = "display: none"' : '';?> >
1271
  <tr>
1272
  <th>
1273
  <label for="heateor_sss_vertical_comment_container_id"><?php _e( "HTML ID of container element of comment form", 'sassy-social-share' ); ?></label>
1274
  <img id="heateor_sss_vertical_comment_container_id_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1275
  </th>
1276
  <td>
1277
- <input id="heateor_sss_vertical_comment_container_id" name="heateor_sss[vertical_comment_container_id]" type="text" value="<?php echo $commentform_container_id ?>" />
1278
  </td>
1279
  </tr>
1280
 
@@ -1309,32 +1309,32 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
1309
  $verticalSharingStyle .= 'border-radius:' . $options['vertical_border_radius'] . 'px;';
1310
  }
1311
  ?>
1312
- var heateorSssVerticalSharingStyle = '<?php echo $verticalSharingStyle ?>', heateorSssVerticalDeliciousRadius = '<?php echo $verticalDeliciousRadius ?>';
1313
  </script>
1314
  <style type="text/css">
1315
  <?php if ( $options['vertical_bg_color_default'] != '' ) {?>
1316
- ul#heateor_sss_vertical_rearrange i.heateorSssInstagramBackground{background:<?php echo $vertical_bg ?>!important;}
1317
  <?php }
1318
  if ( $options['vertical_bg_color_hover'] != '' ) { ?>
1319
- ul#heateor_sss_vertical_rearrange i.heateorSssInstagramBackground:hover{background:<?php echo $vertical_bg_hover ?>!important;}
1320
  <?php } ?>
1321
  .heateorSssVerticalSharingBackground{
1322
  <?php if ( $vertical_bg ) { ?>
1323
- background-color: <?php echo $vertical_bg ?>;
1324
  <?php }if ( $vertical_border_width) { ?>
1325
- border-width: <?php echo $vertical_border_width ?>px;
1326
  border-style: solid;
1327
  <?php } ?>
1328
- border-color: <?php echo $vertical_border_color ? $vertical_border_color : 'transparent'; ?>;
1329
  }
1330
  .heateorSssVerticalSharingBackground:hover{
1331
  <?php if ( $vertical_bg_hover ) { ?>
1332
- background-color: <?php echo $vertical_bg_hover ?>;
1333
  <?php } if ( $vertical_border_width_hover ) { ?>
1334
- border-width: <?php echo $vertical_border_width_hover ?>px;
1335
  border-style: solid;
1336
  <?php } ?>
1337
- border-color: <?php echo $vertical_border_color_hover ? $vertical_border_color_hover : 'transparent'; ?>;
1338
  }
1339
  </style>
1340
  <ul id="heateor_sss_vertical_rearrange">
@@ -1342,9 +1342,9 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
1342
  if ( isset( $options['vertical_re_providers'] ) ) {
1343
  foreach ( $options['vertical_re_providers'] as $rearrange ) {
1344
  ?>
1345
- <li title="<?php echo ucfirst( str_replace( '_', ' ', $rearrange ) ) ?>" id="heateor_sss_re_vertical_<?php echo str_replace( array( ' ', '.' ), '_', $rearrange ) ?>" >
1346
- <i style="display:block;<?php echo $verticalSharingStyle ?>" class="<?php echo in_array( $rearrange, $like_buttons ) ? '' : 'heateorSssVerticalSharingBackground' ?> heateorSss<?php echo ucfirst( str_replace( array( '_', '.', ' ' ), '', $rearrange ) ) ?>Background"><div class="heateorSssSharingSvg heateorSss<?php echo ucfirst( str_replace( array( '_', '.', ' ' ), '', $rearrange ) ) ?>Svg" style="<?php echo $verticalDeliciousRadius ?>"></div></i>
1347
- <input type="hidden" name="heateor_sss[vertical_re_providers][]" value="<?php echo $rearrange ?>">
1348
  </li>
1349
  <?php
1350
  }
@@ -1383,8 +1383,8 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
1383
  foreach( $like_buttons as $like_button ) {
1384
  ?>
1385
  <div class="heateorSssVerticalSharingProviderContainer">
1386
- <input id="heateor_sss_vertical_<?php echo $like_button ?>" type="checkbox" <?php echo isset( $options['vertical_re_providers'] ) && in_array( $like_button, $options['vertical_re_providers'] ) ? 'checked = "checked"' : '';?> value="<?php echo $like_button ?>" />
1387
- <label for="heateor_sss_vertical_<?php echo $like_button ?>"><img src="<?php echo plugins_url( '../../images/sharing/'. $like_button .'.png', __FILE__ ) ?>" /></label>
1388
  </div>
1389
  <?php
1390
  }
@@ -1396,9 +1396,9 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
1396
  foreach( $sharing_networks as $sharing_network) {
1397
  ?>
1398
  <div class="heateorSssVerticalSharingProviderContainer">
1399
- <input id="heateor_sss_vertical_sharing_<?php echo $sharing_network ?>" type="checkbox" <?php echo isset( $options['vertical_re_providers'] ) && in_array( $sharing_network, $options['vertical_re_providers'] ) ? 'checked = "checked"' : '';?> value="<?php echo $sharing_network ?>" />
1400
- <label for="heateor_sss_vertical_sharing_<?php echo $sharing_network ?>"><i style="display:block;width:18px;height:18px;" class="heateorSssSharing heateorSss<?php echo str_replace(array( '_', '.', ' ' ), '', ucfirst( $sharing_network) ) ?>Background"><ss style="display:block;" class="heateorSssSharingSvg heateorSss<?php echo str_replace(array( '_', '.', ' ' ), '', ucfirst( $sharing_network) ) ?>Svg"></ss></i></label>
1401
- <label class="lblSocialNetwork" for="heateor_sss_' . $sharing_network . '"><?php echo str_replace( '_', ' ', ucfirst( $sharing_network ) ) ?></label>
1402
  </div>
1403
  <?php
1404
  }
@@ -1412,7 +1412,7 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
1412
  <img id="heateor_sss_vertical_bg_color_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1413
  </th>
1414
  <td>
1415
- <input style="width: 100px" name="heateor_sss[vertical_bg]" type="text" value="<?php echo isset( $options['vertical_bg'] ) ? $options['vertical_bg'] : '' ?>" />
1416
  </td>
1417
  </tr>
1418
 
@@ -1448,11 +1448,11 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
1448
  <tbody id="heateor_sss_left_offset_rows" <?php echo ( isset( $options['alignment'] ) && $options['alignment'] == 'left' ) ? '' : 'style="display: none"' ?>>
1449
  <tr>
1450
  <th>
1451
- <label for="heateor_sss_left_offset"><?php _e("Left offset", 'sassy-social-share' ); ?></label>
1452
  <img id="heateor_sss_left_offset_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1453
  </th>
1454
  <td>
1455
- <input style="width: 100px" id="heateor_sss_left_offset" name="heateor_sss[left_offset]" type="text" value="<?php echo isset( $options['left_offset'] ) ? $options['left_offset'] : '' ?>" />px
1456
  </td>
1457
  </tr>
1458
 
@@ -1465,14 +1465,14 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
1465
  </tr>
1466
  </tbody>
1467
 
1468
- <tbody id="heateor_sss_right_offset_rows" <?php echo ( isset( $options['alignment'] ) && $options['alignment'] == 'right' ) ? '' : 'style="display: none"' ?>>
1469
  <tr>
1470
  <th>
1471
  <label for="heateor_sss_right_offset"><?php _e("Right offset", 'sassy-social-share' ); ?></label>
1472
  <img id="heateor_sss_right_offset_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1473
  </th>
1474
  <td>
1475
- <input style="width: 100px" id="heateor_sss_right_offset" name="heateor_sss[right_offset]" type="text" value="<?php echo isset( $options['right_offset'] ) ? $options['right_offset'] : '' ?>" />px
1476
  </td>
1477
  </tr>
1478
 
@@ -1491,7 +1491,7 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
1491
  <img id="heateor_sss_top_offset_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1492
  </th>
1493
  <td>
1494
- <input style="width: 100px" id="heateor_sss_top_offset" name="heateor_sss[top_offset]" type="text" value="<?php echo isset( $options['top_offset'] ) ? $options['top_offset'] : '' ?>" />px
1495
  </td>
1496
  </tr>
1497
 
@@ -1525,8 +1525,8 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
1525
  if ( count( $post_types ) ) {
1526
  foreach ( $post_types as $post_type ) {
1527
  ?>
1528
- <input id="heateor_sss_vertical_<?php echo $post_type ?>" name="heateor_sss[vertical_<?php echo $post_type ?>]" type="checkbox" <?php echo isset( $options['vertical_' . $post_type] ) ? 'checked = "checked"' : '';?> value="1" />
1529
- <label for="heateor_sss_vertical_<?php echo $post_type ?>"><?php echo ucfirst( $post_type ) . 's'; ?></label><br/>
1530
  <?php
1531
  }
1532
  }
@@ -1801,12 +1801,12 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
1801
  <img id="heateor_sss_share_count_cache_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1802
  </th>
1803
  <td>
1804
- <input style="width: 50px;" id="heateor_sss_share_count_cache" name="heateor_sss[share_count_cache_refresh_count]" type="text" value="<?php echo $options['share_count_cache_refresh_count']; ?>" />
1805
  <select name="heateor_sss[share_count_cache_refresh_unit]">
1806
- <option value="seconds" <?php echo $options['share_count_cache_refresh_unit'] == 'seconds' ? 'selected' : ''; ?>>Second(s)</option>
1807
- <option value="minutes" <?php echo $options['share_count_cache_refresh_unit'] == 'minutes' ? 'selected' : ''; ?>>Minute(s)</option>
1808
- <option value="hours" <?php echo $options['share_count_cache_refresh_unit'] == 'hours' ? 'selected' : ''; ?>>Hour(s)</option>
1809
- <option value="days" <?php echo $options['share_count_cache_refresh_unit'] == 'days' ? 'selected' : ''; ?>>Day(s)</option>
1810
  </select>
1811
  </td>
1812
  </tr>
@@ -1888,7 +1888,7 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
1888
  <img id="heateor_sss_bitly_access_token_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1889
  </th>
1890
  <td>
1891
- <input id="heateor_sss_bitly_access_token" name="heateor_sss[bitly_access_token]" type="text" value="<?php echo isset( $options['bitly_access_token'] ) ? $options['bitly_access_token'] : '' ?>" />
1892
  </td>
1893
  </tr>
1894
 
@@ -1957,7 +1957,7 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
1957
  <img id="heateor_sss_twitter_username_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1958
  </th>
1959
  <td>
1960
- <input id="heateor_sss_twitter_username" name="heateor_sss[twitter_username]" type="text" value="<?php echo isset( $options['twitter_username'] ) ? $options['twitter_username'] : '' ?>" />
1961
  </td>
1962
  </tr>
1963
 
@@ -1976,7 +1976,7 @@ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
1976
  <img id="heateor_sss_buffer_username_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1977
  </th>
1978
  <td>
1979
- <input id="heateor_sss_buffer_username" name="heateor_sss[buffer_username]" type="text" value="<?php echo isset( $options['buffer_username'] ) ? $options['buffer_username'] : '' ?>" />
1980
  </td>
1981
  </tr>
1982
 
97
  }
98
  </style>
99
  <div>
100
+ <div class="heateorSssCounterPreviewTop" style="width:<?php echo esc_attr( 60 + ( isset( $options['horizontal_sharing_shape'] ) && $options['horizontal_sharing_shape'] == 'rectangle' ? $options['horizontal_sharing_width'] : $options['horizontal_sharing_size'] ) ) ?>px">44</div>
101
  <div class="heateorSssCounterPreviewLeft">44</div>
102
  <div id="heateor_sss_preview" style="cursor:pointer;float:left">
103
  <div class="heateorSssCounterPreviewInnertop">44</div>
104
  <div class="heateorSssCounterPreviewInnerleft">44</div>
105
+ <div id="horizontal_svg" style="float:left;width:100%;height:100%;background:url( 'data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22100%25%22%20height%3D%22100%25%22%20viewBox%3D%22-4%20-4%2040%2040%22%3E%3Cpath%20d%3D%22M17.78%2027.5V17.008h3.522l.527-4.09h-4.05v-2.61c0-1.182.33-1.99%202.023-1.99h2.166V4.66c-.375-.05-1.66-.16-3.155-.16-3.123%200-5.26%201.905-5.26%205.405v3.016h-3.53v4.09h3.53V27.5h4.223z%22%20fill%3D%22<?php echo $sharing_color ? esc_attr( str_replace( '#', '%23', $sharing_color ) ) : "%23fff" ?>%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E' ) no-repeat center center; margin: auto"></div>
106
  <div class="heateorSssCounterPreviewInnerright">44</div>
107
  <div class="heateorSssCounterPreviewInnerbottom">44</div>
108
  </div>
109
  <div class="heateorSssCounterPreviewRight">44</div>
110
+ <div class="heateorSssCounterPreviewBottom" style="width:<?php echo esc_attr( 60 + ( isset( $options['horizontal_sharing_shape'] ) && $options['horizontal_sharing_shape'] == 'rectangle' ? $options['horizontal_sharing_width'] : $options['horizontal_sharing_size'] ) ) ?>px">44</div>
111
  </div>
112
 
113
  <script type="text/javascript">
114
+ var tempHorShape = '<?php echo esc_js( $sharing_shape ) ?>', tempHorSize = '<?php echo esc_js( $sharing_size ) ?>', tempHorHeight = '<?php echo esc_js( $sharing_height ) ?>', tempHorWidth = '<?php echo esc_js( $sharing_width ) ?>', heateorSssSharingBgHover = '<?php echo esc_js( $horizontal_bg_hover ) ?>', heateorSssSharingBg = '<?php echo esc_js( $horizontal_bg ) ? esc_js( $horizontal_bg ) : "#3C589A" ?>', heateorSssBorderWidth = '<?php echo esc_js( $border_width ) ?>', heateorSssBorderColor = '<?php echo esc_js( $border_color ) ?>', heateorSssSharingBorderRadius = '<?php echo $sharing_border_radius ? esc_js( $sharing_border_radius ) . "px" : "0px" ?>';
115
 
116
  heateorSssSharingHorizontalPreview();
117
 
176
  <img id="heateor_sss_icon_size_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
177
  </th>
178
  <td>
179
+ <input style="width:50px" id="heateor_sss_icon_size" name="heateor_sss[horizontal_sharing_size]" type="text" value="<?php echo esc_attr( $sharing_size ); ?>" />
180
  <input id="heateor_sss_size_plus" type="button" value="+" onmouseup="tempHorSize = document.getElementById( 'heateor_sss_icon_size' ).value;heateorSssSharingHorizontalPreview()" />
181
  <input id="heateor_sss_size_minus" type="button" value="-" onmouseup="tempHorSize = document.getElementById( 'heateor_sss_icon_size' ).value;heateorSssSharingHorizontalPreview()" />
182
  <script type="text/javascript">
202
  <img id="heateor_sss_icon_width_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
203
  </th>
204
  <td>
205
+ <input style="width:50px" id="heateor_sss_icon_width" name="heateor_sss[horizontal_sharing_width]" type="text" value="<?php echo esc_attr( $sharing_width ); ?>" />
206
  <input id="heateor_sss_width_plus" type="button" value="+" onmouseup="tempHorWidth = document.getElementById( 'heateor_sss_icon_width' ).value;heateorSssSharingHorizontalPreview()" />
207
  <input id="heateor_sss_width_minus" type="button" value="-" onmouseup="tempHorWidth = document.getElementById( 'heateor_sss_icon_width' ).value;heateorSssSharingHorizontalPreview()" />
208
  <script type="text/javascript">
226
  <img id="heateor_sss_icon_height_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
227
  </th>
228
  <td>
229
+ <input style="width:50px" id="heateor_sss_icon_height" name="heateor_sss[horizontal_sharing_height]" type="text" value="<?php echo esc_attr( $sharing_height ); ?>" />
230
  <input id="heateor_sss_height_plus" type="button" value="+" onmouseup="tempHorHeight = document.getElementById( 'heateor_sss_icon_height' ).value;heateorSssSharingHorizontalPreview()" />
231
  <input id="heateor_sss_height_minus" type="button" value="-" onmouseup="tempHorHeight = document.getElementById( 'heateor_sss_icon_height' ).value;heateorSssSharingHorizontalPreview()" />
232
  <script type="text/javascript">
252
  <img id="heateor_sss_icon_border_radius_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
253
  </th>
254
  <td>
255
+ <input style="width:50px" id="heateor_sss_icon_border_radius" name="heateor_sss[horizontal_border_radius]" type="text" value="<?php echo esc_attr( $sharing_border_radius ); ?>" onkeyup="heateorSssSharingBorderRadius = this.value.trim() ? this.value.trim() + 'px' : '0px';heateorSssUpdateSharingPreview(heateorSssSharingBorderRadius, 'borderRadius', '0px', 'heateor_sss_preview' )" />
256
  </td>
257
  </tr>
258
 
272
  </th>
273
  <td>
274
  <script type="text/javascript">var heateorSssSharingTempColor = '<?php echo $sharing_color ? esc_js( $sharing_color ) : "#fff" ?>';</script>
275
+ <label for="heateor_sss_font_color_default"><?php _e("Default", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_font_color_default" onkeyup="if (this.value.trim() == '' || this.value.trim().length >= 3) { jQuery( '#horizontal_svg' ).attr( 'style', jQuery( '#horizontal_svg' ).attr( 'style' ).replace(heateorSssSharingTempColor.replace( '#', '%23' ), this.value.trim() ? this.value.trim().replace( '#', '%23' ) : '%23fff' ) ); heateorSssSharingTempColor = this.value.trim() ? this.value.trim() : '#fff';jQuery( '#heateor_sss_preview' ).css( 'color', heateorSssSharingTempColor.replace( '%23','#' ) ) }" name="heateor_sss[horizontal_font_color_default]" type="text" value="<?php echo esc_attr( $sharing_color ); ?>" />
276
+ <input name="heateor_sss[horizontal_sharing_replace_color]" type="hidden" value="<?php echo isset( $options['horizontal_sharing_replace_color'] ) ? esc_attr( $options['horizontal_sharing_replace_color'] ) : ''; ?>" />
277
+ <label style="margin-left:10px" for="heateor_sss_font_color_hover"><?php _e("On Hover", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_font_color_hover" name="heateor_sss[horizontal_font_color_hover]" type="text" onkeyup="" value="<?php echo esc_attr( $sharing_color_hover ); ?>" />
278
+ <input name="heateor_sss[horizontal_sharing_replace_color_hover]" type="hidden" value="<?php echo isset( $options['horizontal_sharing_replace_color_hover'] ) ? esc_attr( $options['horizontal_sharing_replace_color_hover'] ) : ''; ?>" />
279
  </td>
280
  </tr>
281
 
293
  <img id="heateor_sss_bg_color_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
294
  </th>
295
  <td>
296
+ <label for="heateor_sss_bg_color_default"><?php _e("Default", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_bg_color_default" name="heateor_sss[horizontal_bg_color_default]" type="text" onkeyup="heateorSssSharingBg = this.value.trim() ? this.value.trim() : '#3C589A'; heateorSssUpdateSharingPreview(this.value.trim(), 'backgroundColor', '#3C589A', 'heateor_sss_preview' )" value="<?php echo esc_attr( $horizontal_bg ) ?>" />
297
+ <label style="margin-left:10px" for="heateor_sss_bg_color_hover"><?php _e("On Hover", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_bg_color_hover" name="heateor_sss[horizontal_bg_color_hover]" type="text" onkeyup="heateorSssSharingBgHover = this.value.trim() ? this.value.trim() : '#3C589A';" value="<?php echo esc_attr( $horizontal_bg_hover ) ?>" />
298
  </td>
299
  </tr>
300
 
315
  <script type="text/javascript">var heateorSssBorderWidthHover = '<?php echo $border_width_hover = isset( $options['horizontal_border_width_hover'] ) ? esc_js( $options['horizontal_border_width_hover'] ) : ''; ?>', heateorSssBorderColorHover = '<?php echo $border_color_hover = isset( $options['horizontal_border_color_hover'] ) ? esc_js( $options['horizontal_border_color_hover'] ) : ''; ?>'</script>
316
  <label><strong><?php _e( "Default", 'sassy-social-share' ); ?></strong></label>
317
  <br/>
318
+ <label for="heateor_sss_border_width_default"><?php _e("Border Width", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_border_width_default" onkeyup="heateorSssBorderWidth = this.value.trim(); jQuery( '#heateor_sss_preview' ).css( 'borderStyle', 'solid' ); heateorSssUpdateSharingPreview(this.value.trim(), 'borderWidth', '0px', 'heateor_sss_preview' ); heateorSssSharingHorizontalPreview();" name="heateor_sss[horizontal_border_width_default]" type="text" value="<?php echo esc_attr( $border_width ) ?>" />pixel(s)
319
+ <label style="margin-left:10px" for="heateor_sss_border_color_default"><?php _e("Border Color", 'sassy-social-share' ); ?></label><input style="width: 100px" onkeyup="heateorSssBorderColor = this.value.trim(); jQuery( '#heateor_sss_preview' ).css( 'borderStyle', 'solid' ); heateorSssUpdateSharingPreview(this.value.trim(), 'borderColor', 'transparent', 'heateor_sss_preview' )" id="heateor_sss_border_color_default" name="heateor_sss[horizontal_border_color_default]" type="text" value="<?php echo esc_attr( $border_color ) ?>" />
320
  <br/><br/>
321
  <label><strong><?php _e("On Hover", 'sassy-social-share' ); ?></strong></label>
322
  <br/>
323
+ <label for="heateor_sss_border_width_hover"><?php _e("Border Width", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_border_width_hover" name="heateor_sss[horizontal_border_width_hover]" type="text" value="<?php echo esc_attr( $border_width_hover ) ?>" onkeyup="heateorSssBorderWidthHover = this.value.trim();" />pixel(s)
324
+ <label style="margin-left:10px" for="heateor_sss_border_color_hover"><?php _e("Border Color", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_border_color_hover" name="heateor_sss[horizontal_border_color_hover]" type="text" value="<?php echo esc_attr( $border_color_hover ) ?>" onkeyup="heateorSssBorderColorHover = this.value.trim();" />
325
  </td>
326
  </tr>
327
 
357
  <label style="margin-right:10px" for="heateor_sss_counter_inner_bottom"><?php _e("Inner Bottom", 'sassy-social-share' ); ?></label>
358
  </td>
359
  </tr>
360
+ <script type="text/javascript">heateorSssCounterPreview( '<?php echo esc_js( $counter_position ) ?>' );</script>
361
 
362
  <tr class="heateor_sss_help_content" id="heateor_sss_counter_help_cont">
363
  <td colspan="2">
413
  }
414
  </style>
415
  <div>
416
+ <div class="heateorSssCounterVerticalPreviewTop" style="width:<?php echo esc_attr( 60 + ( isset( $options['vertical_sharing_shape'] ) && $options['vertical_sharing_shape'] == 'rectangle' ? $options['vertical_sharing_width'] : $options['vertical_sharing_size'] ) ) ?>px">44</div>
417
  <div class="heateorSssCounterVerticalPreviewLeft">44</div>
418
  <div id="heateor_sss_vertical_preview" style="cursor:pointer;float:left">
419
  <div class="heateorSssCounterVerticalPreviewInnertop">44</div>
420
  <div class="heateorSssCounterVerticalPreviewInnerleft">44</div>
421
+ <div id="vertical_svg" style="float:left;width:100%;height:100%;background:url( 'data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22100%25%22%20height%3D%22100%25%22%20viewBox%3D%22-4%20-4%2040%2040%22%3E%3Cpath%20d%3D%22M17.78%2027.5V17.008h3.522l.527-4.09h-4.05v-2.61c0-1.182.33-1.99%202.023-1.99h2.166V4.66c-.375-.05-1.66-.16-3.155-.16-3.123%200-5.26%201.905-5.26%205.405v3.016h-3.53v4.09h3.53V27.5h4.223z%22%20fill%3D%22<?php echo esc_attr( $vertical_sharing_color ? str_replace( '#', '%23', $vertical_sharing_color) : "%23fff" ) ?>%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E' ) no-repeat center center; margin: auto"></div>
422
  <div class="heateorSssCounterVerticalPreviewInnerright">44</div>
423
  <div class="heateorSssCounterVerticalPreviewInnerbottom">44</div>
424
  </div>
425
  <div class="heateorSssCounterVerticalPreviewRight">44</div>
426
+ <div class="heateorSssCounterVerticalPreviewBottom" style="width:<?php echo esc_attr( 60 + ( isset( $options['vertical_sharing_shape'] ) && $options['vertical_sharing_shape'] == 'rectangle' ? $options['vertical_sharing_width'] : $options['vertical_sharing_size'] ) ) ?>px">44</div>
427
  </div>
428
 
429
  <script type="text/javascript">
430
+ var tempVerticalShape = '<?php echo esc_js( $vertical_sharing_shape ) ?>', tempVerticalSize = '<?php echo esc_js( $vertical_sharing_size ) ?>', tempVerticalHeight = '<?php echo esc_js( $vertical_sharing_height ) ?>', tempVerticalWidth = '<?php echo esc_js( $vertical_sharing_width ) ?>', heateorSssVerticalSharingBgHover = '<?php echo esc_js( $vertical_bg_hover ) ?>', heateorSssVerticalSharingBg = '<?php echo esc_js( $vertical_bg ? $vertical_bg : "#3C589A" ) ?>', heateorSssVerticalBorderWidth = '<?php echo esc_js( $vertical_border_width ) ?>', heateorSssVerticalBorderColor = '<?php echo esc_js( $vertical_border_color ) ?>', heateorSssVerticalBorderWidthHover = '<?php echo $vertical_border_width_hover = isset( $options['vertical_border_width_hover'] ) ? esc_js( $options['vertical_border_width_hover'] ) : ''; ?>', heateorSssVerticalBorderColorHover = '<?php echo $vertical_border_color_hover = isset( $options['vertical_border_color_hover'] ) ? esc_js( $options['vertical_border_color_hover'] ) : ''; ?>', heateorSssVerticalBorderRadius = '<?php echo $vertical_sharing_border_radius ? esc_js( $vertical_sharing_border_radius ) . "px" : "0px" ?>';
431
 
432
  heateorSssSharingVerticalPreview();
433
 
492
  <img id="heateor_sss_vertical_sharing_icon_size_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
493
  </th>
494
  <td>
495
+ <input style="width:50px" id="heateor_sss_vertical_sharing_icon_size" name="heateor_sss[vertical_sharing_size]" type="text" value="<?php echo esc_attr( $vertical_sharing_size ); ?>" />
496
  <input id="heateor_sss_vertical_sharing_size_plus" type="button" value="+" onmouseup="tempVerticalSize = document.getElementById( 'heateor_sss_vertical_sharing_icon_size' ).value;heateorSssSharingVerticalPreview()" />
497
  <input id="heateor_sss_vertical_sharing_size_minus" type="button" value="-" onmouseup="tempVerticalSize = document.getElementById( 'heateor_sss_vertical_sharing_icon_size' ).value;heateorSssSharingVerticalPreview()" />
498
  <script type="text/javascript">
518
  <img id="heateor_sss_vertical_icon_width_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
519
  </th>
520
  <td>
521
+ <input style="width:50px" id="heateor_sss_vertical_icon_width" name="heateor_sss[vertical_sharing_width]" type="text" value="<?php echo esc_attr( $vertical_sharing_width ); ?>" />
522
  <input id="heateor_sss_vertical_width_plus" type="button" value="+" onmouseup="tempVerticalWidth = document.getElementById( 'heateor_sss_vertical_icon_width' ).value;heateorSssSharingVerticalPreview()" />
523
  <input id="heateor_sss_vertical_width_minus" type="button" value="-" onmouseup="tempVerticalWidth = document.getElementById( 'heateor_sss_vertical_icon_width' ).value;heateorSssSharingVerticalPreview()" />
524
  <script type="text/javascript">
542
  <img id="heateor_sss_vertical_icon_height_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
543
  </th>
544
  <td>
545
+ <input style="width:50px" id="heateor_sss_vertical_icon_height" name="heateor_sss[vertical_sharing_height]" type="text" value="<?php echo esc_attr( $vertical_sharing_height ); ?>" />
546
  <input id="heateor_sss_vertical_height_plus" type="button" value="+" onmouseup="tempVerticalHeight = document.getElementById( 'heateor_sss_vertical_icon_height' ).value;heateorSssSharingVerticalPreview()" />
547
  <input id="heateor_sss_vertical_height_minus" type="button" value="-" onmouseup="tempVerticalHeight = document.getElementById( 'heateor_sss_vertical_icon_height' ).value;heateorSssSharingVerticalPreview()" />
548
  <script type="text/javascript">
568
  <img id="heateor_sss_vertical_icon_border_radius_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
569
  </th>
570
  <td>
571
+ <input style="width:50px" id="heateor_sss_vertical_icon_border_radius" name="heateor_sss[vertical_border_radius]" type="text" value="<?php echo esc_attr( $vertical_sharing_border_radius ); ?>" onkeyup="heateorSssVerticalBorderRadius = this.value.trim() ? this.value.trim() + 'px' : '0px';heateorSssUpdateSharingPreview(heateorSssVerticalBorderRadius, 'borderRadius', '0px', 'heateor_sss_vertical_preview' )" />
572
  </td>
573
  </tr>
574
 
587
  <img id="heateor_sss_vertical_font_color_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
588
  </th>
589
  <td>
590
+ <script type="text/javascript">var heateorSssVerticalSharingTempColor = '<?php echo $vertical_sharing_color ? esc_js( $vertical_sharing_color ) : "#fff" ?>';</script>
591
+ <label for="heateor_sss_vertical_font_color_default"><?php _e("Default", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_vertical_font_color_default" name="heateor_sss[vertical_font_color_default]" onkeyup="if (this.value.trim() == '' || this.value.trim().length >= 3) { jQuery( '#vertical_svg' ).attr( 'style', jQuery( '#vertical_svg' ).attr( 'style' ).replace(heateorSssVerticalSharingTempColor.replace( '#', '%23' ), this.value.trim() ? this.value.trim().replace( '#', '%23' ) : '%23fff' ) ); heateorSssVerticalSharingTempColor = this.value.trim() ? this.value.trim() : '#fff';jQuery( '#heateor_sss_vertical_preview' ).css( 'color', heateorSssVerticalSharingTempColor.replace( '%23','#' ) ) }" type="text" value="<?php echo esc_attr( $vertical_sharing_color ) ?>" />
592
+ <input name="heateor_sss[vertical_sharing_replace_color]" type="hidden" value="<?php echo isset( $options['vertical_sharing_replace_color'] ) ? esc_attr( $options['vertical_sharing_replace_color'] ) : ''; ?>" />
593
+ <label style="margin-left:10px" for="heateor_sss_vertical_font_color_hover"><?php _e("On Hover", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_vertical_font_color_hover" name="heateor_sss[vertical_font_color_hover]" type="text" value="<?php echo esc_attr( $vertical_sharing_color_hover ); ?>" />
594
+ <input name="heateor_sss[vertical_sharing_replace_color_hover]" type="hidden" value="<?php echo isset( $options['vertical_sharing_replace_color_hover'] ) ? esc_attr( $options['vertical_sharing_replace_color_hover'] ) : ''; ?>" />
595
  </td>
596
  </tr>
597
 
609
  <img id="heateor_sss_vertical_icon_bg_color_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
610
  </th>
611
  <td>
612
+ <label for="heateor_sss_vertical_icon_bg_color_default"><?php _e("Default", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_vertical_icon_bg_color_default" name="heateor_sss[vertical_bg_color_default]" type="text" onkeyup="heateorSssVerticalSharingBg = this.value.trim() ? this.value.trim() : '#3C589A'; heateorSssUpdateSharingPreview(this.value.trim(), 'backgroundColor', '#3C589A', 'heateor_sss_vertical_preview' )" value="<?php echo esc_attr( $vertical_bg ) ?>" />
613
+ <label style="margin-left:10px" for="heateor_sss_vertical_bg_color_hover"><?php _e("On Hover", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_vertical_bg_color_hover" name="heateor_sss[vertical_bg_color_hover]" type="text" onkeyup="heateorSssVerticalSharingBgHover = this.value.trim() ? this.value.trim() : '#3C589A';" value="<?php echo esc_attr( $vertical_bg_hover ) ?>" />
614
  </td>
615
  </tr>
616
 
630
  <td>
631
  <label><strong><?php _e("Default", 'sassy-social-share' ); ?></strong></label>
632
  <br/>
633
+ <label for="heateor_sss_vertical_border_width_default"><?php _e("Border Width", 'sassy-social-share' ); ?></label><input style="width: 100px" onkeyup="heateorSssVerticalBorderWidth = this.value.trim(); jQuery( '#heateor_sss_vertical_preview' ).css( 'borderStyle', 'solid' ); heateorSssUpdateSharingPreview(this.value.trim(), 'borderWidth', '0px', 'heateor_sss_vertical_preview' ); heateorSssSharingVerticalPreview();" id="heateor_sss_vertical_border_width_default" name="heateor_sss[vertical_border_width_default]" type="text" value="<?php echo esc_attr( $vertical_border_width ) ?>" />pixel(s)
634
+ <label style="margin-left:10px" for="heateor_sss_vertical_border_color_default"><?php _e("Border Color", 'sassy-social-share' ); ?></label><input onkeyup="heateorSssVerticalBorderColor = this.value.trim(); jQuery( '#heateor_sss_vertical_preview' ).css( 'borderStyle', 'solid' ); heateorSssUpdateSharingPreview(this.value.trim(), 'borderColor', 'transparent', 'heateor_sss_vertical_preview' )" style="width: 100px" id="heateor_sss_vertical_border_color_default" name="heateor_sss[vertical_border_color_default]" type="text" value="<?php echo $vertical_border_color = isset( $options['vertical_border_color_default'] ) ? esc_attr( $options['vertical_border_color_default'] ) : ''; ?>" />
635
  <br/><br/>
636
  <label><strong><?php _e("On Hover", 'sassy-social-share' ); ?></strong></label>
637
  <br/>
638
+ <label for="heateor_sss_vertical_border_width_hover"><?php _e("Border Width", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_vertical_border_width_hover" name="heateor_sss[vertical_border_width_hover]" onkeyup="heateorSssVerticalBorderWidthHover = this.value.trim();" type="text" value="<?php echo esc_attr( $vertical_border_width_hover ) ?>" />pixel(s)
639
+ <label style="margin-left:10px" for="heateor_sss_vertical_border_color_hover"><?php _e("Border Color", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_vertical_border_color_hover" name="heateor_sss[vertical_border_color_hover]" onkeyup="heateorSssVerticalBorderColorHover = this.value.trim()" type="text" value="<?php echo esc_attr( $vertical_border_color_hover ); ?>" />
640
  </td>
641
  </tr>
642
 
672
  <label style="margin-right:10px" for="heateor_sss_vertical_counter_inner_bottom"><?php _e("Inner Bottom", 'sassy-social-share' ); ?></label>
673
  </td>
674
  </tr>
675
+ <script type="text/javascript">heateorSssVerticalCounterPreview( '<?php echo esc_js( $vertical_counter_position ) ?>' );</script>
676
 
677
  <tr class="heateor_sss_help_content" id="heateor_sss_vertical_counter_help_cont">
678
  <td colspan="2">
723
  <img id="heateor_sss_horizontal_target_url_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
724
  </th>
725
  <td id="heateor_sss_target_url_column">
726
+ <input id="heateor_sss_target_url_default" name="heateor_sss[horizontal_target_url]" type="radio" <?php echo ! isset( $options['horizontal_target_url'] ) || $options['horizontal_target_url'] == 'default' ? 'checked = "checked"' : '';?> value="default" />
727
  <label for="heateor_sss_target_url_default"><?php _e( 'Url of the webpage where icons are located (default)', 'sassy-social-share' ) ?></label><br/>
728
  <input id="heateor_sss_target_url_home" name="heateor_sss[horizontal_target_url]" type="radio" <?php echo isset( $options['horizontal_target_url'] ) && $options['horizontal_target_url'] == 'home' ? 'checked = "checked"' : '';?> value="home" />
729
  <label for="heateor_sss_target_url_home"><?php _e( 'Url of the homepage of your website', 'sassy-social-share' ) ?></label><br/>
730
  <input id="heateor_sss_target_url_custom" name="heateor_sss[horizontal_target_url]" type="radio" <?php echo isset( $options['horizontal_target_url'] ) && $options['horizontal_target_url'] == 'custom' ? 'checked = "checked"' : '';?> value="custom" />
731
  <label for="heateor_sss_target_url_custom"><?php _e( 'Custom url', 'sassy-social-share' ) ?></label><br/>
732
+ <input id="heateor_sss_target_url_custom_url" name="heateor_sss[horizontal_target_url_custom]" type="text" value="<?php echo isset( $options['horizontal_target_url_custom'] ) ? esc_url( $options['horizontal_target_url_custom'] ) : '' ?>" />
733
  </td>
734
  </tr>
735
  <tr class="heateor_sss_help_content" id="heateor_sss_horizontal_target_url_help_cont">
746
  <img id="heateor_sss_title_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
747
  </th>
748
  <td>
749
+ <input id="heateor_sss_fblogin_title" name="heateor_sss[title]" type="text" value="<?php echo isset( $options['title'] ) ? esc_attr( $options['title'] ) : '' ?>" />
750
  </td>
751
  </tr>
752
 
784
  $options['vertical_re_providers'] = array();
785
  }
786
  ?>
787
+ <tbody id="heateor_sss_instagram_options" <?php echo ! isset( $options['horizontal_re_providers'] ) || ! in_array( 'instagram', $options['horizontal_re_providers'] ) ? 'style="display: none"' : '';?> >
788
  <tr>
789
  <th>
790
  <label for="heateor_sss_instagram_username"><?php _e( "Instagram username", 'sassy-social-share' ); ?></label>
791
  <img id="heateor_sss_instagram_username_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
792
  </th>
793
  <td>
794
+ <input id="heateor_sss_instagram_username" name="heateor_sss[instagram_username]" type="text" value="<?php echo esc_attr( $instagram_username ) ?>" />
795
  </td>
796
  </tr>
797
 
804
  </tr>
805
  </tbody>
806
 
807
+ <tbody id="heateor_sss_youtube_options" <?php echo ! isset( $options['horizontal_re_providers'] ) || ! in_array( 'youtube', $options['horizontal_re_providers'] ) ? 'style="display: none"' : '';?> >
808
  <tr>
809
  <th>
810
  <label for="heateor_sss_youtube_username"><?php _e( "Youtube URL", 'sassy-social-share' ); ?></label>
811
  <img id="heateor_sss_youtube_username_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
812
  </th>
813
  <td>
814
+ <input id="heateor_sss_youtube_username" name="heateor_sss[youtube_username]" type="text" value="<?php echo esc_attr( $youtube_username ) ?>" />
815
  </td>
816
  </tr>
817
 
824
  </tr>
825
  </tbody>
826
 
827
+ <tbody id="heateor_sss_comment_options" <?php echo ! isset( $options['horizontal_re_providers'] ) || ! in_array( 'Comment', $options['horizontal_re_providers'] ) ? 'style="display: none"' : '';?> >
828
  <tr>
829
  <th>
830
  <label for="heateor_sss_comment_container_id"><?php _e( "HTML ID of container element of comment form", 'sassy-social-share' ); ?></label>
831
  <img id="heateor_sss_comment_container_id_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
832
  </th>
833
  <td>
834
+ <input id="heateor_sss_comment_container_id" name="heateor_sss[comment_container_id]" type="text" value="<?php echo esc_attr( $commentform_container_id ) ?>" />
835
  </td>
836
  </tr>
837
 
878
  $horSharingStyle .= 'border-radius:' . $options['horizontal_border_radius'] . 'px;';
879
  }
880
  ?>
881
+ var heateorSssHorSharingStyle = '<?php echo esc_js( $horSharingStyle ) ?>', heateorSssHorDeliciousRadius = '<?php echo esc_js( $horDeliciousRadius ) ?>', heateorSssLikeButtons = ["<?php echo esc_js( implode( '","', $like_buttons ) ) ?>"];
882
  </script>
883
  <style type="text/css">
884
  <?php if ( $horizontal_bg != '' ) { ?>
885
+ ul#heateor_sss_rearrange i.heateorSssInstagramBackground{background:<?php echo esc_html( $horizontal_bg ) ?>!important;}
886
  <?php }
887
  if ( $horizontal_bg_hover != '' ) { ?>
888
+ ul#heateor_sss_rearrange i.heateorSssInstagramBackground:hover{background:<?php echo esc_html( $horizontal_bg_hover ) ?>!important;}
889
  <?php } ?>
890
  .heateorSssSharingBackground{
891
  <?php if ( $horizontal_bg ) { ?>
892
+ background-color: <?php echo esc_html( $horizontal_bg ) ?>;
893
  <?php } if ( $border_width ) { ?>
894
+ border-width: <?php echo esc_html( $border_width ) ?>px;
895
  border-style: solid;
896
  <?php } ?>
897
+ border-color: <?php echo $border_color ? esc_html( $border_color ) : 'transparent'; ?>;
898
  }
899
  .heateorSssSharingBackground:hover{
900
  <?php if ( $horizontal_bg_hover ) { ?>
901
+ background-color: <?php echo esc_html( $horizontal_bg_hover ) ?>;
902
  <?php }if ( $border_width_hover ) { ?>
903
+ border-width: <?php echo esc_html( $border_width_hover ) ?>px;
904
  border-style: solid;
905
  <?php } ?>
906
+ border-color: <?php echo $border_color_hover ? esc_html( $border_color_hover ) : 'transparent'; ?>;
907
  }
908
  </style>
909
  <ul id="heateor_sss_rearrange">
911
  if ( isset( $options['horizontal_re_providers'] ) ) {
912
  foreach ( $options['horizontal_re_providers'] as $rearrange ) {
913
  ?>
914
+ <li title="<?php echo esc_attr( ucfirst( str_replace( '_', ' ', $rearrange ) ) ) ?>" id="heateor_sss_re_horizontal_<?php echo esc_attr( str_replace(array( ' ', '.' ), '_', $rearrange ) ) ?>" >
915
+ <i style="display:block;<?php echo esc_attr( $horSharingStyle ) ?>" class="<?php echo in_array( $rearrange, $like_buttons ) ? '' : 'heateorSssSharingBackground' ?> heateorSss<?php echo esc_attr( ucfirst( str_replace( array( '_', '.', ' ' ), '', $rearrange ) ) ) ?>Background"><div class="heateorSssSharingSvg heateorSss<?php echo esc_attr( ucfirst( str_replace( array( '_', ' ', '.' ), '', $rearrange ) ) ) ?>Svg" style="<?php echo esc_attr( $horDeliciousRadius ) ?>"></div></i>
916
+ <input type="hidden" name="heateor_sss[horizontal_re_providers][]" value="<?php echo esc_attr( $rearrange ) ?>">
917
  </li>
918
  <?php
919
  }
952
  foreach( $like_buttons as $like_button ) {
953
  ?>
954
  <div class="heateorSssHorizontalSharingProviderContainer">
955
+ <input id="heateor_sss_<?php echo esc_attr( $like_button ) ?>" type="checkbox" <?php echo isset( $options['horizontal_re_providers'] ) && in_array( $like_button, $options['horizontal_re_providers'] ) ? 'checked = "checked"' : '';?> value="<?php echo esc_attr( $like_button ) ?>" />
956
+ <label for="heateor_sss_<?php echo esc_attr( $like_button ) ?>"><img src="<?php echo plugins_url( '../../images/sharing/'. $like_button .'.png', __FILE__ ) ?>" /></label>
957
  </div>
958
  <?php
959
  }
965
  foreach( $sharing_networks as $sharing_network ) {
966
  ?>
967
  <div class="heateorSssHorizontalSharingProviderContainer">
968
+ <input id="heateor_sss_<?php echo esc_attr( $sharing_network ) ?>" type="checkbox" <?php echo isset( $options['horizontal_re_providers'] ) && in_array( $sharing_network, $options['horizontal_re_providers'] ) ? 'checked = "checked"' : '';?> value="<?php echo esc_attr( $sharing_network ) ?>" />
969
+ <label for="heateor_sss_<?php echo esc_attr( $sharing_network ) ?>"><i style="display:block;width:18px;height:18px;" class="heateorSssSharing heateorSss<?php echo esc_attr( str_replace( array( '_', '.', ' ' ), '', ucfirst( $sharing_network ) ) ) ?>Background"><ss style="display:block;" class="heateorSssSharingSvg heateorSss<?php echo esc_attr( str_replace( array( '_', '.', ' ' ), '', ucfirst( $sharing_network) ) ) ?>Svg"></ss></i></label>
970
+ <label class="lblSocialNetwork" for="heateor_sss_<?php echo esc_attr( $sharing_network ) ?>"><?php echo esc_html( str_replace( '_', ' ', ucfirst( $sharing_network ) ) ) ?></label>
971
  </div>
972
  <?php
973
  }
1050
  if ( count( $post_types ) ) {
1051
  foreach ( $post_types as $post_type ) {
1052
  ?>
1053
+ <input id="heateor_sss_<?php echo esc_attr( $post_type ) ?>" name="heateor_sss[<?php echo esc_attr( $post_type ) ?>]" type="checkbox" <?php echo isset( $options[$post_type] ) ? 'checked = "checked"' : '';?> value="1" />
1054
+ <label for="heateor_sss_<?php echo esc_attr( $post_type ) ?>"><?php echo esc_html( ucfirst( $post_type ) ); ?></label><br/>
1055
  <?php
1056
  }
1057
  }
1064
  <label for="heateor_sss_bp_group"><?php _e( 'BuddyPress group (only at top of content)', 'sassy-social-share' ) ?></label><br/>
1065
  <?php
1066
  }
1067
+ if ( function_exists( 'is_bbpress' ) ) {
1068
  ?>
1069
  <input id="heateor_sss_bb_forum" name="heateor_sss[bb_forum]" type="checkbox" <?php echo isset( $options['bb_forum'] ) ? 'checked = "checked"' : '';?> value="1" />
1070
  <label for="heateor_sss_bb_forum"><?php _e( 'BBPress forum', 'sassy-social-share' ) ?></label>
1210
  <img id="heateor_sss_vertical_target_url_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1211
  </th>
1212
  <td id="heateor_sss_vertical_target_url_column">
1213
+ <input id="heateor_sss_vertical_target_url_default" name="heateor_sss[vertical_target_url]" type="radio" <?php echo ! isset( $options['vertical_target_url'] ) || $options['vertical_target_url'] == 'default' ? 'checked = "checked"' : '';?> value="default" />
1214
  <label for="heateor_sss_vertical_target_url_default"><?php _e( 'Url of the webpage where icons are located (default)', 'sassy-social-share' ) ?></label><br/>
1215
  <input id="heateor_sss_vertical_target_url_home" name="heateor_sss[vertical_target_url]" type="radio" <?php echo isset( $options['vertical_target_url'] ) && $options['vertical_target_url'] == 'home' ? 'checked = "checked"' : '';?> value="home" />
1216
  <label for="heateor_sss_vertical_target_url_home"><?php _e( 'Url of the homepage of your website', 'sassy-social-share' ) ?></label><br/>
1217
  <input id="heateor_sss_vertical_target_url_custom" name="heateor_sss[vertical_target_url]" type="radio" <?php echo isset( $options['vertical_target_url'] ) && $options['vertical_target_url'] == 'custom' ? 'checked = "checked"' : '';?> value="custom" />
1218
  <label for="heateor_sss_vertical_target_url_custom"><?php _e( 'Custom url', 'sassy-social-share' ) ?></label><br/>
1219
+ <input id="heateor_sss_vertical_target_url_custom_url" name="heateor_sss[vertical_target_url_custom]" type="text" value="<?php echo isset( $options['vertical_target_url_custom'] ) ? esc_url( $options['vertical_target_url_custom'] ) : '' ?>" />
1220
  </td>
1221
  </tr>
1222
  <tr class="heateor_sss_help_content" id="heateor_sss_vertical_target_url_help_cont">
1227
  </td>
1228
  </tr>
1229
 
1230
+ <tbody id="heateor_sss_vertical_instagram_options" <?php echo ! in_array( 'instagram', $options['vertical_re_providers'] ) ? 'style="display:none"' : '';?> >
1231
  <tr>
1232
  <th>
1233
  <label for="heateor_sss_vertical_instagram_username"><?php _e("Instagram username", 'sassy-social-share' ); ?></label>
1234
  <img id="heateor_sss_vertical_instagram_username_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1235
  </th>
1236
  <td>
1237
+ <input id="heateor_sss_vertical_instagram_username" name="heateor_sss[vertical_instagram_username]" type="text" value="<?php echo esc_attr( $instagram_username ) ?>" />
1238
  </td>
1239
  </tr>
1240
 
1246
  </td>
1247
  </tr>
1248
  </tbody>
1249
+ <tbody id="heateor_sss_vertical_youtube_options" <?php echo ! in_array( 'youtube', $options['vertical_re_providers'] ) ? 'style="display:none"' : '';?> >
1250
  <tr>
1251
  <th>
1252
  <label for="heateor_sss_vertical_youtube_username"><?php _e( "Youtube URL", 'sassy-social-share' ); ?></label>
1255
  <td>
1256
 
1257
 
1258
+ <input id="heateor_sss_vertical_youtube_username" name="heateor_sss[vertical_youtube_username]" type="text" value="<?php echo esc_attr( $youtube_username ) ?>" />
1259
  </td>
1260
  </tr>
1261
 
1267
  </td>
1268
  </tr>
1269
  </tbody>
1270
+ <tbody id="heateor_sss_vertical_comment_options" <?php echo ! in_array( 'Comment', $options['vertical_re_providers'] ) ? 'style="display: none"' : '';?> >
1271
  <tr>
1272
  <th>
1273
  <label for="heateor_sss_vertical_comment_container_id"><?php _e( "HTML ID of container element of comment form", 'sassy-social-share' ); ?></label>
1274
  <img id="heateor_sss_vertical_comment_container_id_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1275
  </th>
1276
  <td>
1277
+ <input id="heateor_sss_vertical_comment_container_id" name="heateor_sss[vertical_comment_container_id]" type="text" value="<?php echo esc_attr( $commentform_container_id ) ?>" />
1278
  </td>
1279
  </tr>
1280
 
1309
  $verticalSharingStyle .= 'border-radius:' . $options['vertical_border_radius'] . 'px;';
1310
  }
1311
  ?>
1312
+ var heateorSssVerticalSharingStyle = '<?php echo esc_js( $verticalSharingStyle ) ?>', heateorSssVerticalDeliciousRadius = '<?php echo esc_js( $verticalDeliciousRadius ) ?>';
1313
  </script>
1314
  <style type="text/css">
1315
  <?php if ( $options['vertical_bg_color_default'] != '' ) {?>
1316
+ ul#heateor_sss_vertical_rearrange i.heateorSssInstagramBackground{background:<?php echo esc_html( $vertical_bg ) ?>!important;}
1317
  <?php }
1318
  if ( $options['vertical_bg_color_hover'] != '' ) { ?>
1319
+ ul#heateor_sss_vertical_rearrange i.heateorSssInstagramBackground:hover{background:<?php echo esc_html( $vertical_bg_hover ) ?>!important;}
1320
  <?php } ?>
1321
  .heateorSssVerticalSharingBackground{
1322
  <?php if ( $vertical_bg ) { ?>
1323
+ background-color: <?php echo esc_html( $vertical_bg ) ?>;
1324
  <?php }if ( $vertical_border_width) { ?>
1325
+ border-width: <?php echo esc_html( $vertical_border_width ) ?>px;
1326
  border-style: solid;
1327
  <?php } ?>
1328
+ border-color: <?php echo $vertical_border_color ? esc_html( $vertical_border_color ) : 'transparent'; ?>;
1329
  }
1330
  .heateorSssVerticalSharingBackground:hover{
1331
  <?php if ( $vertical_bg_hover ) { ?>
1332
+ background-color: <?php echo esc_html( $vertical_bg_hover ) ?>;
1333
  <?php } if ( $vertical_border_width_hover ) { ?>
1334
+ border-width: <?php echo esc_html( $vertical_border_width_hover ) ?>px;
1335
  border-style: solid;
1336
  <?php } ?>
1337
+ border-color: <?php echo $vertical_border_color_hover ? esc_html( $vertical_border_color_hover ) : 'transparent'; ?>;
1338
  }
1339
  </style>
1340
  <ul id="heateor_sss_vertical_rearrange">
1342
  if ( isset( $options['vertical_re_providers'] ) ) {
1343
  foreach ( $options['vertical_re_providers'] as $rearrange ) {
1344
  ?>
1345
+ <li title="<?php echo esc_attr( ucfirst( str_replace( '_', ' ', $rearrange ) ) ) ?>" id="heateor_sss_re_vertical_<?php echo esc_attr( str_replace( array( ' ', '.' ), '_', $rearrange ) ) ?>" >
1346
+ <i style="display:block;<?php echo esc_attr( $verticalSharingStyle ) ?>" class="<?php echo in_array( $rearrange, $like_buttons ) ? '' : 'heateorSssVerticalSharingBackground' ?> heateorSss<?php echo esc_attr( ucfirst( str_replace( array( '_', '.', ' ' ), '', $rearrange ) ) ) ?>Background"><div class="heateorSssSharingSvg heateorSss<?php echo esc_attr( ucfirst( str_replace( array( '_', '.', ' ' ), '', $rearrange ) ) ) ?>Svg" style="<?php echo esc_attr( $verticalDeliciousRadius ) ?>"></div></i>
1347
+ <input type="hidden" name="heateor_sss[vertical_re_providers][]" value="<?php echo esc_attr( $rearrange ) ?>">
1348
  </li>
1349
  <?php
1350
  }
1383
  foreach( $like_buttons as $like_button ) {
1384
  ?>
1385
  <div class="heateorSssVerticalSharingProviderContainer">
1386
+ <input id="heateor_sss_vertical_<?php echo esc_attr( $like_button ) ?>" type="checkbox" <?php echo isset( $options['vertical_re_providers'] ) && in_array( $like_button, $options['vertical_re_providers'] ) ? 'checked = "checked"' : ''; ?> value="<?php echo esc_attr( $like_button ) ?>" />
1387
+ <label for="heateor_sss_vertical_<?php echo esc_attr( $like_button ) ?>"><img src="<?php echo plugins_url( '../../images/sharing/'. $like_button .'.png', __FILE__ ) ?>" /></label>
1388
  </div>
1389
  <?php
1390
  }
1396
  foreach( $sharing_networks as $sharing_network) {
1397
  ?>
1398
  <div class="heateorSssVerticalSharingProviderContainer">
1399
+ <input id="heateor_sss_vertical_sharing_<?php echo esc_attr( $sharing_network ) ?>" type="checkbox" <?php echo isset( $options['vertical_re_providers'] ) && in_array( $sharing_network, $options['vertical_re_providers'] ) ? 'checked = "checked"' : '';?> value="<?php echo esc_attr( $sharing_network ) ?>" />
1400
+ <label for="heateor_sss_vertical_sharing_<?php echo esc_attr( $sharing_network ) ?>"><i style="display:block;width:18px;height:18px;" class="heateorSssSharing heateorSss<?php echo esc_attr( str_replace( array( '_', '.', ' ' ), '', ucfirst( $sharing_network ) ) ) ?>Background"><ss style="display:block;" class="heateorSssSharingSvg heateorSss<?php echo esc_attr( str_replace( array( '_', '.', ' ' ), '', ucfirst( $sharing_network ) ) ) ?>Svg"></ss></i></label>
1401
+ <label class="lblSocialNetwork" for="heateor_sss_' . $sharing_network . '"><?php echo esc_html( str_replace( '_', ' ', ucfirst( $sharing_network ) ) ) ?></label>
1402
  </div>
1403
  <?php
1404
  }
1412
  <img id="heateor_sss_vertical_bg_color_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1413
  </th>
1414
  <td>
1415
+ <input style="width: 100px" name="heateor_sss[vertical_bg]" type="text" value="<?php echo isset( $options['vertical_bg'] ) ? esc_attr( $options['vertical_bg'] ) : '' ?>" />
1416
  </td>
1417
  </tr>
1418
 
1448
  <tbody id="heateor_sss_left_offset_rows" <?php echo ( isset( $options['alignment'] ) && $options['alignment'] == 'left' ) ? '' : 'style="display: none"' ?>>
1449
  <tr>
1450
  <th>
1451
+ <label for="heateor_sss_left_offset"><?php _e( "Left offset", 'sassy-social-share' ); ?></label>
1452
  <img id="heateor_sss_left_offset_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1453
  </th>
1454
  <td>
1455
+ <input style="width: 100px" id="heateor_sss_left_offset" name="heateor_sss[left_offset]" type="text" value="<?php echo isset( $options['left_offset'] ) ? esc_attr( $options['left_offset'] ) : '' ?>" />px
1456
  </td>
1457
  </tr>
1458
 
1465
  </tr>
1466
  </tbody>
1467
 
1468
+ <tbody id="heateor_sss_right_offset_rows" <?php echo ( isset( $options['alignment'] ) && $options['alignment'] == 'right' ) ? '' : 'style="display:none"' ?>>
1469
  <tr>
1470
  <th>
1471
  <label for="heateor_sss_right_offset"><?php _e("Right offset", 'sassy-social-share' ); ?></label>
1472
  <img id="heateor_sss_right_offset_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1473
  </th>
1474
  <td>
1475
+ <input style="width: 100px" id="heateor_sss_right_offset" name="heateor_sss[right_offset]" type="text" value="<?php echo isset( $options['right_offset'] ) ? esc_attr( $options['right_offset'] ) : '' ?>" />px
1476
  </td>
1477
  </tr>
1478
 
1491
  <img id="heateor_sss_top_offset_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1492
  </th>
1493
  <td>
1494
+ <input style="width: 100px" id="heateor_sss_top_offset" name="heateor_sss[top_offset]" type="text" value="<?php echo isset( $options['top_offset'] ) ? esc_attr( $options['top_offset'] ) : '' ?>" />px
1495
  </td>
1496
  </tr>
1497
 
1525
  if ( count( $post_types ) ) {
1526
  foreach ( $post_types as $post_type ) {
1527
  ?>
1528
+ <input id="heateor_sss_vertical_<?php echo esc_attr( $post_type ) ?>" name="heateor_sss[vertical_<?php echo $post_type ?>]" type="checkbox" <?php echo isset( $options['vertical_' . $post_type] ) ? 'checked = "checked"' : '';?> value="1" />
1529
+ <label for="heateor_sss_vertical_<?php echo esc_attr( $post_type ) ?>"><?php echo esc_html( ucfirst( $post_type ) ); ?></label><br/>
1530
  <?php
1531
  }
1532
  }
1801
  <img id="heateor_sss_share_count_cache_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1802
  </th>
1803
  <td>
1804
+ <input style="width: 50px;" id="heateor_sss_share_count_cache" name="heateor_sss[share_count_cache_refresh_count]" type="text" value="<?php echo esc_attr( $options['share_count_cache_refresh_count'] ); ?>" />
1805
  <select name="heateor_sss[share_count_cache_refresh_unit]">
1806
+ <option value="seconds" <?php echo $options['share_count_cache_refresh_unit'] == 'seconds' ? 'selected' : ''; ?>><?php _e( 'Second(s)', 'sassy-social-share' ) ?></option>
1807
+ <option value="minutes" <?php echo $options['share_count_cache_refresh_unit'] == 'minutes' ? 'selected' : ''; ?>><?php _e( 'Minute(s)', 'sassy-social-share' ) ?></option>
1808
+ <option value="hours" <?php echo $options['share_count_cache_refresh_unit'] == 'hours' ? 'selected' : ''; ?>><?php _e( 'Hour(s)', 'sassy-social-share' ) ?></option>
1809
+ <option value="days" <?php echo $options['share_count_cache_refresh_unit'] == 'days' ? 'selected' : ''; ?>><?php _e( 'Day(s)', 'sassy-social-share' ) ?></option>
1810
  </select>
1811
  </td>
1812
  </tr>
1888
  <img id="heateor_sss_bitly_access_token_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1889
  </th>
1890
  <td>
1891
+ <input id="heateor_sss_bitly_access_token" name="heateor_sss[bitly_access_token]" type="text" value="<?php echo isset( $options['bitly_access_token'] ) ? esc_attr( $options['bitly_access_token'] ) : '' ?>" />
1892
  </td>
1893
  </tr>
1894
 
1957
  <img id="heateor_sss_twitter_username_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1958
  </th>
1959
  <td>
1960
+ <input id="heateor_sss_twitter_username" name="heateor_sss[twitter_username]" type="text" value="<?php echo isset( $options['twitter_username'] ) ? esc_attr( $options['twitter_username'] ) : '' ?>" />
1961
  </td>
1962
  </tr>
1963
 
1976
  <img id="heateor_sss_buffer_username_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1977
  </th>
1978
  <td>
1979
+ <input id="heateor_sss_buffer_username" name="heateor_sss[buffer_username]" type="text" value="<?php echo isset( $options['buffer_username'] ) ? esc_attr( $options['buffer_username'] ) : '' ?>" />
1980
  </td>
1981
  </tr>
1982
 
includes/class-sassy-social-share-shortcodes.php CHANGED
@@ -199,16 +199,16 @@ class Sassy_Social_Share_Shortcodes {
199
  $target_url = esc_url( home_url() );
200
  $post_id = 0;
201
  } elseif ( ! is_singular() && $type == 'vertical' ) {
202
- $target_url = esc_url( $this->public_class_object->get_http_protocol() . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] );
203
  $post_id = 0;
204
  } elseif ( isset( $_SERVER['QUERY_STRING'] ) && $_SERVER['QUERY_STRING'] ) {
205
- $target_url = esc_url( $this->public_class_object->get_http_protocol() . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] );
206
  $post_id = $post -> ID;
207
  } elseif ( get_permalink( $post -> ID ) ) {
208
  $target_url = get_permalink( $post -> ID );
209
  $post_id = $post -> ID;
210
  } else {
211
- $target_url = esc_url( $this->public_class_object->get_http_protocol() . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] );
212
  $post_id = 0;
213
  }
214
  $share_count_url = $target_url;
199
  $target_url = esc_url( home_url() );
200
  $post_id = 0;
201
  } elseif ( ! is_singular() && $type == 'vertical' ) {
202
+ $target_url = esc_url_raw( $this->public_class_object->get_http_protocol() . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] );
203
  $post_id = 0;
204
  } elseif ( isset( $_SERVER['QUERY_STRING'] ) && $_SERVER['QUERY_STRING'] ) {
205
+ $target_url = esc_url_raw( $this->public_class_object->get_http_protocol() . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] );
206
  $post_id = $post -> ID;
207
  } elseif ( get_permalink( $post -> ID ) ) {
208
  $target_url = get_permalink( $post -> ID );
209
  $post_id = $post -> ID;
210
  } else {
211
+ $target_url = esc_url_raw( $this->public_class_object->get_http_protocol() . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] );
212
  $post_id = 0;
213
  }
214
  $share_count_url = $target_url;
includes/class-sassy-social-share-widgets.php CHANGED
@@ -98,14 +98,14 @@ class Sassy_Social_Share_Standard_Widget extends WP_Widget {
98
  }
99
  if ( isset( $instance['target_url'] ) ) {
100
  if ( $instance['target_url'] == 'default' ) {
101
- $sharing_url = esc_url( $this->public_class_object->get_http_protocol() . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] );
102
  if ( is_home() ) {
103
  $sharing_url = home_url();
104
  $post_id = 0;
105
  } elseif ( ! is_singular() ) {
106
  $post_id = 0;
107
  } elseif ( isset( $_SERVER['QUERY_STRING'] ) && $_SERVER['QUERY_STRING'] ) {
108
- $sharing_url = esc_url( $this->public_class_object->get_http_protocol() . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] );
109
  } elseif ( get_permalink( $post -> ID ) ) {
110
  $sharing_url = get_permalink( $post->ID );
111
  }
@@ -143,12 +143,12 @@ class Sassy_Social_Share_Standard_Widget extends WP_Widget {
143
 
144
  foreach ( $sharing_divs as $sharing_div ) {
145
  if ( $sharing_div ) {
146
- echo "<div class='heateor_sss_sharing_container heateor_sss_horizontal_sharing' " . ( $this->public_class_object->is_amp_page() ? "" : "data-heateor-sss-href='" . ( isset( $share_count_url ) && $share_count_url ? $share_count_url : $sharing_url ) . "'" ) . ( ( $cached_share_count === false || $this->public_class_object->is_amp_page() ) ? "" : 'data-heateor-sss-no-counts="1"' ) . ">";
 
147
  if ( ! empty( $instance['title'] ) ) {
148
  $title = apply_filters( 'widget_title', $instance[ 'title' ] );
149
- echo $before_title . $title . $after_title;
150
  }
151
- global $heateor_sss_allowed_tags;
152
  echo wp_kses( $sharing_div, $heateor_sss_allowed_tags );
153
  echo '</div>';
154
  }
@@ -346,14 +346,14 @@ class Sassy_Social_Share_Floating_Widget extends WP_Widget {
346
  $post_id = $post->ID;
347
  if ( isset( $instance['target_url'] ) ) {
348
  if ( $instance['target_url'] == 'default' ) {
349
- $sharing_url = esc_url( $this->public_class_object->get_http_protocol() . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] );
350
  if ( is_home() ) {
351
  $sharing_url = home_url();
352
  $post_id = 0;
353
  } elseif ( ! is_singular() ) {
354
  $post_id = 0;
355
  } elseif ( isset( $_SERVER['QUERY_STRING'] ) && $_SERVER['QUERY_STRING'] ) {
356
- $sharing_url = esc_url( $this->public_class_object->get_http_protocol() . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] );
357
  } elseif ( get_permalink( $post->ID ) ) {
358
  $sharing_url = get_permalink( $post->ID );
359
  }
@@ -387,11 +387,13 @@ class Sassy_Social_Share_Floating_Widget extends WP_Widget {
387
 
388
  echo $before_widget;
389
 
390
- echo "<div class='heateor_sss_sharing_container heateor_sss_vertical_sharing" . ( isset( $this->options['hide_mobile_sharing'] ) ? ' heateor_sss_hide_sharing' : '' ) . ( isset( $this->options['bottom_mobile_sharing'] ) ? ' heateor_sss_bottom_sharing' : '' ) . "' data-heateor-ss-offset='" . $ss_offset . "' style='width:" . ( ( $this->options['vertical_sharing_size'] ? $this->options['vertical_sharing_size'] : 35 ) + 4 ) . "px;" . ( isset( $instance['alignment'] ) && $instance['alignment'] != '' && isset( $instance[$instance['alignment'] . '_offset'] ) ? $instance['alignment'] . ': ' . ( $instance[$instance['alignment'].'_offset'] == '' ? 0 : $instance[$instance['alignment'] . '_offset'] ) . 'px;' : '' ) . ( isset( $instance['top_offset'] ) ? 'top: ' . ( $instance['top_offset'] == '' ? 0 : $instance['top_offset'] ) . 'px;' : '' ) . ( isset( $instance['vertical_bg'] ) && $instance['vertical_bg'] != '' ? 'background-color:' . $instance['vertical_bg'] . ';' : '-webkit-box-shadow:none;box-shadow:none;' ) . "' " . ( $this->public_class_object->is_amp_page() ? "" : "data-heateor-sss-href='" . ( isset( $share_count_url ) && $share_count_url ? $share_count_url : $sharing_url ) . "'" ) . ( ( $cached_share_count === false || $this->public_class_object->is_amp_page() ) ? "" : 'data-heateor-sss-no-counts="1"' ) . ">";
 
391
 
392
  $short_url = $this->public_class_object->get_short_url( $sharing_url, $post_id );
393
 
394
- echo $this->public_class_object->prepare_sharing_html( $short_url ? $short_url : $sharing_url, 'vertical', isset( $instance['show_counts'] ), isset( $instance['total_shares'] ) );
 
395
  echo '</div>';
396
  if ( ( isset( $instance['show_counts'] ) || isset( $instance['total_shares'] ) ) && $cached_share_count === false ) {
397
  echo '<script>heateorSssLoadEvent(
@@ -476,7 +478,7 @@ class Sassy_Social_Share_Floating_Widget extends WP_Widget {
476
  <option value="homepage" <?php echo isset( $instance['target_url'] ) && $instance['target_url'] == 'homepage' ? 'selected' : '' ; ?>><?php _e( 'Url of the homepage of your website', 'sassy-social-share' ) ?></option>
477
  <option value="custom" <?php echo isset( $instance['target_url'] ) && $instance['target_url'] == 'custom' ? 'selected' : '' ; ?>><?php _e( 'Custom Url', 'sassy-social-share' ) ?></option>
478
  </select>
479
- <input placeholder="Custom url" style="width:95%; margin-top: 5px; <?php echo ! isset( $instance['target_url'] ) || $instance['target_url'] != 'custom' ? 'display: none' : '' ; ?>" class="widefat heateorSssVerticalSharingTargetUrl" id="<?php echo esc_attr( $this->get_field_id( 'target_url_custom' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'target_url_custom' ) ); ?>" type="text" value="<?php echo isset( $instance['target_url_custom'] ) ? $instance['target_url_custom'] : ''; ?>" />
480
  <label for="<?php echo esc_attr( $this->get_field_id( 'alignment' ) ); ?>"><?php _e( 'Alignment', 'sassy-social-share' ); ?></label>
481
  <select onchange="heateorSssToggleSharingOffset(this.value)" style="width: 95%" class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'alignment' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'alignment' ) ); ?>">
482
  <option value="left" <?php echo ! isset( $instance['alignment'] ) || $instance['alignment'] == 'left' ? 'selected' : ''; ?>><?php _e( 'Left', 'sassy-social-share' ) ?></option>
@@ -677,7 +679,7 @@ class Sassy_Social_Share_Follow_Widget extends WP_Widget {
677
  }
678
  }
679
 
680
- echo $this->follow_icons( $instance );
681
 
682
  echo '<div style="clear:both"></div>';
683
  echo '</div>';
@@ -957,7 +959,7 @@ class Sassy_Social_Share_Follow_Widget extends WP_Widget {
957
  <br><br>
958
  <input id="<?php echo esc_attr( $this->get_field_id('mobile_sharing_bottom' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'bottom_mobile_sharing' ) ); ?>" type="checkbox" <?php echo isset( $instance['bottom_mobile_sharing'] ) ? 'checked = "checked"' : '';?> value="1" />
959
 
960
- <label><?php echo sprintf( __( 'Stick vertical floating interface horizontally at bottom only when screen is narrower than %s pixels', 'sassy-social-share' ), '<input style="width:46px" name="' . esc_attr( $this->get_field_name( 'horizontal_screen_width' ) ) . '" type="text" value="' . ( isset( $instance['horizontal_screen_width'] ) ? $instance['horizontal_screen_width'] : '' ) . '" />' ) ?></label>
961
 
962
  <br><br>
963
 
@@ -994,8 +996,8 @@ class Sassy_Social_Share_Follow_Widget extends WP_Widget {
994
  }
995
  }
996
  jQuery(function(){
997
- heateorSssFloatingAlignment('<?php echo isset( $instance['type'] ) ? $instance['type'] : 'standard'; ?>');
998
- heateorSssAlignmentOffsetLabel('<?php echo isset( $instance['alignment'] ) ? $instance['alignment'] : 'left'; ?>');
999
  });
1000
  </script>
1001
  <label for="<?php echo esc_attr( $this->get_field_id( 'custom_color' ) ); ?>"><?php _e( 'Apply icon color and background color from Theme Selection section:', 'sassy-social-share' ); ?></label>
@@ -1031,26 +1033,26 @@ class Sassy_Social_Share_Follow_Widget extends WP_Widget {
1031
  <label for="<?php echo esc_attr( $this->get_field_id( 'github' ) ); ?>"><?php _e( 'Github URL:', 'sassy-social-share' ); ?></label>
1032
  <input style="width: 95%" class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'github' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'github' ) ); ?>" type="text" value="<?php echo esc_attr( $instance['github'] ); ?>" /><br/>
1033
  <span>https://github.com/ID</span><br/><br/>
1034
- <label for="<?php echo $this->get_field_id( 'linkedin' ); ?>"><?php _e( 'Linkedin URL:', 'sassy-social-share' ); ?></label>
1035
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id( 'linkedin' ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'linkedin' ) ); ?>" type="text" value="<?php echo esc_attr( $instance['linkedin'] ); ?>" /><br/>
1036
  <span>https://www.linkedin.com/in/ID</span><br/><br/>
1037
- <label for="<?php echo $this->get_field_id( 'linkedin_company' ); ?>"><?php _e( 'Linkedin Company URL:', 'sassy-social-share' ); ?></label>
1038
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id( 'linkedin_company' ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'linkedin_company' ) ); ?>" type="text" value="<?php echo esc_attr( $instance['linkedin_company'] ); ?>" /><br/>
1039
  <span>https://www.linkedin.com/company/ID</span><br/><br/>
1040
- <label for="<?php echo $this->get_field_id( 'medium' ); ?>"><?php _e( 'Medium URL:', 'sassy-social-share' ); ?></label>
1041
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id( 'medium' ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'medium' ) ); ?>" type="text" value="<?php echo esc_attr( $instance['medium'] ); ?>" /><br/>
1042
  <span>https://medium.com/@ID</span><br/><br/>
1043
- <label for="<?php echo $this->get_field_id( 'mewe' ); ?>"><?php _e( 'MeWe URL:', 'sassy-social-share' ); ?></label>
1044
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id( 'mewe' ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'mewe' ) ); ?>" type="text" value="<?php echo esc_attr( $instance['mewe'] ); ?>" /><br/>
1045
  <span>https://mewe.com/profile/ID</span><br/><br/>
1046
- <label for="<?php echo $this->get_field_id( 'odnoklassniki' ); ?>"><?php _e( 'Odnoklassniki URL:', 'sassy-social-share' ); ?></label>
1047
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id( 'odnoklassniki' ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'odnoklassniki' ) ); ?>" type="text" value="<?php echo esc_attr( $instance['odnoklassniki'] ); ?>" /><br/>
1048
  <span>https://ok.ru/profile/ID</span><br/><br/>
1049
- <label for="<?php echo $this->get_field_id( 'telegram' ); ?>"><?php _e( 'Telegram URL:', 'sassy-social-share' ); ?></label>
1050
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id( 'telegram' ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'telegram' ) ); ?>" type="text" value="<?php echo esc_attr( $instance['telegram'] ); ?>" /><br/>
1051
  <span>https://t.me/username</span><br/><br/>
1052
- <label for="<?php echo $this->get_field_id( 'tumblr' ); ?>"><?php _e( 'Tumblr URL:', 'sassy-social-share' ); ?></label>
1053
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id( 'tumblr' ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'tumblr' ) ); ?>" type="text" value="<?php echo esc_attr( $instance['tumblr'] ); ?>" /><br/>
1054
  <span>https://ID.tumblr.com</span><br/><br/>
1055
  <label for="<?php echo esc_attr( $this->get_field_id( 'vimeo' ) ); ?>"><?php _e( 'Vimeo URL:', 'sassy-social-share' ); ?></label>
1056
  <input style="width: 95%" class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'vimeo' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'vimeo' ) ); ?>" type="text" value="<?php echo esc_attr( $instance['vimeo'] ); ?>" /><br/>
@@ -1077,7 +1079,7 @@ class Sassy_Social_Share_Follow_Widget extends WP_Widget {
1077
  <input style="width: 95%" class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'gab' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'gab' ) ); ?>" type="text" value="<?php echo esc_attr( $instance['gab'] ); ?>" /><br/>
1078
  <span>https://gab.com/ID</span><br/><br/>
1079
  <label for="<?php echo esc_attr( $this->get_field_id( 'after_widget_content' ) ); ?>"><?php _e( 'After widget content:', 'sassy-social-share' ); ?></label>
1080
- <input class="widefat" id="<?php echo $this->get_field_id( 'after_widget_content' ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'after_widget_content' ) ); ?>" type="text" value="<?php echo esc_attr( $instance['after_widget_content'] ); ?>" />
1081
  </p>
1082
  <?php
1083
  }
98
  }
99
  if ( isset( $instance['target_url'] ) ) {
100
  if ( $instance['target_url'] == 'default' ) {
101
+ $sharing_url = esc_url_raw( $this->public_class_object->get_http_protocol() . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] );
102
  if ( is_home() ) {
103
  $sharing_url = home_url();
104
  $post_id = 0;
105
  } elseif ( ! is_singular() ) {
106
  $post_id = 0;
107
  } elseif ( isset( $_SERVER['QUERY_STRING'] ) && $_SERVER['QUERY_STRING'] ) {
108
+ $sharing_url = esc_url_raw( $this->public_class_object->get_http_protocol() . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] );
109
  } elseif ( get_permalink( $post -> ID ) ) {
110
  $sharing_url = get_permalink( $post->ID );
111
  }
143
 
144
  foreach ( $sharing_divs as $sharing_div ) {
145
  if ( $sharing_div ) {
146
+ global $heateor_sss_allowed_tags;
147
+ echo wp_kses( "<div class='heateor_sss_sharing_container heateor_sss_horizontal_sharing' " . ( $this->public_class_object->is_amp_page() ? "" : "data-heateor-sss-href='" . ( isset( $share_count_url ) && $share_count_url ? $share_count_url : $sharing_url ) . "'" ) . ( ( $cached_share_count === false || $this->public_class_object->is_amp_page() ) ? "" : 'data-heateor-sss-no-counts="1"' ) . ">", $heateor_sss_allowed_tags );
148
  if ( ! empty( $instance['title'] ) ) {
149
  $title = apply_filters( 'widget_title', $instance[ 'title' ] );
150
+ echo $before_title . esc_html( $title ) . $after_title;
151
  }
 
152
  echo wp_kses( $sharing_div, $heateor_sss_allowed_tags );
153
  echo '</div>';
154
  }
346
  $post_id = $post->ID;
347
  if ( isset( $instance['target_url'] ) ) {
348
  if ( $instance['target_url'] == 'default' ) {
349
+ $sharing_url = esc_url_raw( $this->public_class_object->get_http_protocol() . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] );
350
  if ( is_home() ) {
351
  $sharing_url = home_url();
352
  $post_id = 0;
353
  } elseif ( ! is_singular() ) {
354
  $post_id = 0;
355
  } elseif ( isset( $_SERVER['QUERY_STRING'] ) && $_SERVER['QUERY_STRING'] ) {
356
+ $sharing_url = esc_url_raw( $this->public_class_object->get_http_protocol() . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] );
357
  } elseif ( get_permalink( $post->ID ) ) {
358
  $sharing_url = get_permalink( $post->ID );
359
  }
387
 
388
  echo $before_widget;
389
 
390
+ global $heateor_sss_allowed_tags;
391
+ echo wp_kses( "<div class='heateor_sss_sharing_container heateor_sss_vertical_sharing" . ( isset( $this->options['hide_mobile_sharing'] ) ? ' heateor_sss_hide_sharing' : '' ) . ( isset( $this->options['bottom_mobile_sharing'] ) ? ' heateor_sss_bottom_sharing' : '' ) . "' data-heateor-ss-offset='" . $ss_offset . "' style='width:" . ( ( $this->options['vertical_sharing_size'] ? $this->options['vertical_sharing_size'] : 35 ) + 4 ) . "px;" . ( isset( $instance['alignment'] ) && $instance['alignment'] != '' && isset( $instance[$instance['alignment'] . '_offset'] ) ? $instance['alignment'] . ': ' . ( $instance[$instance['alignment'].'_offset'] == '' ? 0 : $instance[$instance['alignment'] . '_offset'] ) . 'px;' : '' ) . ( isset( $instance['top_offset'] ) ? 'top: ' . ( $instance['top_offset'] == '' ? 0 : $instance['top_offset'] ) . 'px;' : '' ) . ( isset( $instance['vertical_bg'] ) && $instance['vertical_bg'] != '' ? 'background-color:' . $instance['vertical_bg'] . ';' : '-webkit-box-shadow:none;box-shadow:none;' ) . "' " . ( $this->public_class_object->is_amp_page() ? "" : "data-heateor-sss-href='" . ( isset( $share_count_url ) && $share_count_url ? $share_count_url : $sharing_url ) . "'" ) . ( ( $cached_share_count === false || $this->public_class_object->is_amp_page() ) ? "" : 'data-heateor-sss-no-counts="1"' ) . ">", $heateor_sss_allowed_tags );
392
 
393
  $short_url = $this->public_class_object->get_short_url( $sharing_url, $post_id );
394
 
395
+ global $heateor_sss_allowed_tags;
396
+ echo wp_kses( $this->public_class_object->prepare_sharing_html( $short_url ? $short_url : $sharing_url, 'vertical', isset( $instance['show_counts'] ), isset( $instance['total_shares'] ) ), $heateor_sss_allowed_tags );
397
  echo '</div>';
398
  if ( ( isset( $instance['show_counts'] ) || isset( $instance['total_shares'] ) ) && $cached_share_count === false ) {
399
  echo '<script>heateorSssLoadEvent(
478
  <option value="homepage" <?php echo isset( $instance['target_url'] ) && $instance['target_url'] == 'homepage' ? 'selected' : '' ; ?>><?php _e( 'Url of the homepage of your website', 'sassy-social-share' ) ?></option>
479
  <option value="custom" <?php echo isset( $instance['target_url'] ) && $instance['target_url'] == 'custom' ? 'selected' : '' ; ?>><?php _e( 'Custom Url', 'sassy-social-share' ) ?></option>
480
  </select>
481
+ <input placeholder="Custom url" style="width:95%; margin-top: 5px; <?php echo ! isset( $instance['target_url'] ) || $instance['target_url'] != 'custom' ? 'display: none' : '' ; ?>" class="widefat heateorSssVerticalSharingTargetUrl" id="<?php echo esc_attr( $this->get_field_id( 'target_url_custom' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'target_url_custom' ) ); ?>" type="text" value="<?php echo isset( $instance['target_url_custom'] ) ? esc_url( $instance['target_url_custom'] ) : ''; ?>" />
482
  <label for="<?php echo esc_attr( $this->get_field_id( 'alignment' ) ); ?>"><?php _e( 'Alignment', 'sassy-social-share' ); ?></label>
483
  <select onchange="heateorSssToggleSharingOffset(this.value)" style="width: 95%" class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'alignment' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'alignment' ) ); ?>">
484
  <option value="left" <?php echo ! isset( $instance['alignment'] ) || $instance['alignment'] == 'left' ? 'selected' : ''; ?>><?php _e( 'Left', 'sassy-social-share' ) ?></option>
679
  }
680
  }
681
 
682
+ echo wp_kses( $this->follow_icons( $instance ), $heateor_sss_allowed_tags );
683
 
684
  echo '<div style="clear:both"></div>';
685
  echo '</div>';
959
  <br><br>
960
  <input id="<?php echo esc_attr( $this->get_field_id('mobile_sharing_bottom' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'bottom_mobile_sharing' ) ); ?>" type="checkbox" <?php echo isset( $instance['bottom_mobile_sharing'] ) ? 'checked = "checked"' : '';?> value="1" />
961
 
962
+ <label><?php echo sprintf( __( 'Stick vertical floating interface horizontally at bottom only when screen is narrower than %s pixels', 'sassy-social-share' ), '<input style="width:46px" name="' . esc_attr( $this->get_field_name( 'horizontal_screen_width' ) ) . '" type="text" value="' . ( isset( $instance['horizontal_screen_width'] ) ? esc_attr( $instance['horizontal_screen_width'] ) : '' ) . '" />' ) ?></label>
963
 
964
  <br><br>
965
 
996
  }
997
  }
998
  jQuery(function(){
999
+ heateorSssFloatingAlignment('<?php echo isset( $instance['type'] ) ? esc_js( $instance['type'] ) : 'standard'; ?>');
1000
+ heateorSssAlignmentOffsetLabel('<?php echo isset( $instance['alignment'] ) ? esc_js( $instance['alignment'] ) : 'left'; ?>');
1001
  });
1002
  </script>
1003
  <label for="<?php echo esc_attr( $this->get_field_id( 'custom_color' ) ); ?>"><?php _e( 'Apply icon color and background color from Theme Selection section:', 'sassy-social-share' ); ?></label>
1033
  <label for="<?php echo esc_attr( $this->get_field_id( 'github' ) ); ?>"><?php _e( 'Github URL:', 'sassy-social-share' ); ?></label>
1034
  <input style="width: 95%" class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'github' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'github' ) ); ?>" type="text" value="<?php echo esc_attr( $instance['github'] ); ?>" /><br/>
1035
  <span>https://github.com/ID</span><br/><br/>
1036
+ <label for="<?php echo esc_attr( $this->get_field_id( 'linkedin' ) ); ?>"><?php _e( 'Linkedin URL:', 'sassy-social-share' ); ?></label>
1037
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'linkedin' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'linkedin' ) ); ?>" type="text" value="<?php echo esc_attr( $instance['linkedin'] ); ?>" /><br/>
1038
  <span>https://www.linkedin.com/in/ID</span><br/><br/>
1039
+ <label for="<?php echo esc_attr( $this->get_field_id( 'linkedin_company' ) ); ?>"><?php _e( 'Linkedin Company URL:', 'sassy-social-share' ); ?></label>
1040
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'linkedin_company' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'linkedin_company' ) ); ?>" type="text" value="<?php echo esc_attr( $instance['linkedin_company'] ); ?>" /><br/>
1041
  <span>https://www.linkedin.com/company/ID</span><br/><br/>
1042
+ <label for="<?php echo esc_attr( $this->get_field_id( 'medium' ) ); ?>"><?php _e( 'Medium URL:', 'sassy-social-share' ); ?></label>
1043
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'medium' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'medium' ) ); ?>" type="text" value="<?php echo esc_attr( $instance['medium'] ); ?>" /><br/>
1044
  <span>https://medium.com/@ID</span><br/><br/>
1045
+ <label for="<?php echo esc_attr( $this->get_field_id( 'mewe' ) ); ?>"><?php _e( 'MeWe URL:', 'sassy-social-share' ); ?></label>
1046
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'mewe' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'mewe' ) ); ?>" type="text" value="<?php echo esc_attr( $instance['mewe'] ); ?>" /><br/>
1047
  <span>https://mewe.com/profile/ID</span><br/><br/>
1048
+ <label for="<?php echo esc_attr( $this->get_field_id( 'odnoklassniki' ) ); ?>"><?php _e( 'Odnoklassniki URL:', 'sassy-social-share' ); ?></label>
1049
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'odnoklassniki' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'odnoklassniki' ) ); ?>" type="text" value="<?php echo esc_attr( $instance['odnoklassniki'] ); ?>" /><br/>
1050
  <span>https://ok.ru/profile/ID</span><br/><br/>
1051
+ <label for="<?php echo esc_attr( $this->get_field_id( 'telegram' ) ); ?>"><?php _e( 'Telegram URL:', 'sassy-social-share' ); ?></label>
1052
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'telegram' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'telegram' ) ); ?>" type="text" value="<?php echo esc_attr( $instance['telegram'] ); ?>" /><br/>
1053
  <span>https://t.me/username</span><br/><br/>
1054
+ <label for="<?php echo esc_attr( $this->get_field_id( 'tumblr' ) ); ?>"><?php _e( 'Tumblr URL:', 'sassy-social-share' ); ?></label>
1055
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'tumblr' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'tumblr' ) ); ?>" type="text" value="<?php echo esc_attr( $instance['tumblr'] ); ?>" /><br/>
1056
  <span>https://ID.tumblr.com</span><br/><br/>
1057
  <label for="<?php echo esc_attr( $this->get_field_id( 'vimeo' ) ); ?>"><?php _e( 'Vimeo URL:', 'sassy-social-share' ); ?></label>
1058
  <input style="width: 95%" class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'vimeo' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'vimeo' ) ); ?>" type="text" value="<?php echo esc_attr( $instance['vimeo'] ); ?>" /><br/>
1079
  <input style="width: 95%" class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'gab' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'gab' ) ); ?>" type="text" value="<?php echo esc_attr( $instance['gab'] ); ?>" /><br/>
1080
  <span>https://gab.com/ID</span><br/><br/>
1081
  <label for="<?php echo esc_attr( $this->get_field_id( 'after_widget_content' ) ); ?>"><?php _e( 'After widget content:', 'sassy-social-share' ); ?></label>
1082
+ <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'after_widget_content' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'after_widget_content' ) ); ?>" type="text" value="<?php echo esc_attr( $instance['after_widget_content'] ); ?>" />
1083
  </p>
1084
  <?php
1085
  }
public/class-sassy-social-share-public.php CHANGED
@@ -216,7 +216,7 @@ class Sassy_Social_Share_Public {
216
  if ( ! is_wp_error( $response ) ) {
217
  $short_url_object = json_decode( wp_remote_retrieve_body( $response ) );
218
  if ( isset( $short_url_object->link ) ) {
219
- $short_url = esc_url( $short_url_object->link );
220
  update_post_meta( $post_id, '_heateor_sss_bitly_url', $short_url );
221
  return $short_url;
222
  }
@@ -718,7 +718,7 @@ class Sassy_Social_Share_Public {
718
  } else {
719
  if ( $this->options['horizontal_target_url'] == 'default' ) {
720
  if ( ( isset( $_SERVER['QUERY_STRING'] ) && $_SERVER['QUERY_STRING'] ) || $post_url == '' ) {
721
- $post_url = html_entity_decode( esc_url( str_replace( array( '%3Cscript%3E', '%3C/script%3E' ), '', $this->get_http_protocol() . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] ) ) );
722
  }
723
  if ( $share_count_url == '' ) {
724
  $share_count_url = $post_url;
@@ -728,7 +728,7 @@ class Sassy_Social_Share_Public {
728
  $share_count_url = $post_url;
729
  $post_id = 0;
730
  } elseif ( $this->options['horizontal_target_url'] == 'custom' && $this->options['horizontal_target_url_custom'] ) {
731
- $post_url = esc_url( $this->options['horizontal_target_url_custom'] );
732
  $share_count_url = $post_url;
733
  $post_id = 0;
734
  }
@@ -759,7 +759,8 @@ class Sassy_Social_Share_Public {
759
  // show horizontal sharing
760
  if ( ( isset( $this->options['home'] ) && is_front_page() ) || ( isset( $this->options['category'] ) && is_category() ) || ( isset( $this->options['archive'] ) && is_archive() ) || ( isset( $this->options['post'] ) && is_single() && isset( $post->post_type ) && $post->post_type == 'post' ) || ( isset( $this->options['page'] ) && is_page() && isset( $post->post_type ) && $post->post_type == 'page' ) || ( isset( $this->options['excerpt'] ) && (is_home() || current_filter() == 'the_excerpt' ) ) || ( isset( $this->options['bb_reply'] ) && current_filter() == 'bbp_get_reply_content' ) || ( isset( $this->options['bb_forum'] ) && ( isset( $this->options['top'] ) && current_filter() == 'bbp_template_before_single_forum' || isset( $this->options['bottom'] ) && current_filter() == 'bbp_template_after_single_forum' ) ) || ( isset( $this->options['bb_topic'] ) && ( isset( $this->options['top'] ) && in_array( current_filter(), array( 'bbp_template_before_single_topic', 'bbp_template_before_lead_topic' ) ) || isset( $this->options['bottom'] ) && in_array( current_filter(), array( 'bbp_template_after_single_topic', 'bbp_template_after_lead_topic' ) ) ) ) || ( isset( $this->options['woocom_shop'] ) && current_filter() == 'woocommerce_after_shop_loop_item' ) || ( isset( $this->options['woocom_product'] ) && current_filter() == 'woocommerce_share' ) || ( isset( $this->options['woocom_thankyou'] ) && current_filter() == 'woocommerce_thankyou' ) || (current_filter() == 'bp_before_group_header' && isset( $this->options['bp_group'] ) ) ) {
761
  if ( in_array( current_filter(), array( 'bbp_template_before_single_topic', 'bbp_template_before_lead_topic', 'bbp_template_before_single_forum', 'bbp_template_after_single_topic', 'bbp_template_after_lead_topic', 'bbp_template_after_single_forum', 'woocommerce_after_shop_loop_item', 'woocommerce_share', 'woocommerce_thankyou', 'bp_before_group_header' ) ) ) {
762
- echo '<div class="heateorSssClear"></div>' . $horizontal_div . '<div class="heateorSssClear"></div>';
 
763
  } else {
764
  if ( isset( $this->options['top'] ) && isset( $this->options['bottom'] ) ) {
765
  $content = $horizontal_div . '<br/>' . $content . '<br/>' . $horizontal_div;
@@ -795,11 +796,11 @@ class Sassy_Social_Share_Public {
795
  if ( $this->options['vertical_target_url'] == 'default' ) {
796
  $post_url = get_permalink( $post->ID );
797
  if ( ! is_singular() ) {
798
- $post_url = html_entity_decode( esc_url( str_replace( array( '%3Cscript%3E', '%3C/script%3E' ), '', $this->get_http_protocol() . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] ) ) );
799
  $post_id = 0;
800
  $share_count_url = $post_url;
801
  } elseif ( ( isset( $_SERVER['QUERY_STRING'] ) && $_SERVER['QUERY_STRING'] ) || $post_url == '' ) {
802
- $post_url = html_entity_decode( esc_url( str_replace( array( '%3Cscript%3E', '%3C/script%3E' ), '', $this->get_http_protocol() . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] ) ) );
803
  }
804
  if ( $share_count_url == '' ) {
805
  $share_count_url = $post_url;
@@ -809,7 +810,7 @@ class Sassy_Social_Share_Public {
809
  $share_count_url = $post_url;
810
  $post_id = 0;
811
  } elseif ( $this->options['vertical_target_url'] == 'custom' && $this->options['vertical_target_url_custom'] ) {
812
- $post_url = esc_url( $this->options['vertical_target_url_custom'] );
813
  $share_count_url = $post_url;
814
  $post_id = 0;
815
  }
@@ -904,6 +905,19 @@ class Sassy_Social_Share_Public {
904
 
905
  }
906
 
 
 
 
 
 
 
 
 
 
 
 
 
 
907
  /**
908
  * Get share counts for sharing networks
909
  *
@@ -911,14 +925,10 @@ class Sassy_Social_Share_Public {
911
  */
912
  public function fetch_share_counts() {
913
 
914
- if ( isset( $_GET['urls'] ) && count( $_GET['urls'] ) > 0 ) {
915
- $target_urls = array_unique( $_GET['urls'] );
916
- foreach ( $target_urls as $k => $v ) {
917
- if ( $this->validate_url( $v ) === false ) {
918
- unset( $target_urls[$k] );
919
- } else {
920
- $target_urls[$k] = esc_url( $v );
921
- }
922
  }
923
  } else {
924
  $this->ajax_response( array( 'status' => 0, 'message' => __( 'Invalid request' ) ) );
@@ -1139,6 +1149,17 @@ class Sassy_Social_Share_Public {
1139
 
1140
  }
1141
 
 
 
 
 
 
 
 
 
 
 
 
1142
  /**
1143
  * Save Facebook share counts in transient
1144
  *
@@ -1147,10 +1168,7 @@ class Sassy_Social_Share_Public {
1147
  public function save_facebook_shares() {
1148
 
1149
  if ( isset( $_GET['share_counts'] ) && is_array( $_GET['share_counts'] ) && count( $_GET['share_counts'] ) > 0 ) {
1150
- $target_urls = $_GET['share_counts'];
1151
- foreach ( $target_urls as $k => $v ) {
1152
- $target_urls[$k] = sanitize_text_field( $v );
1153
- }
1154
  } else {
1155
  $this->ajax_response( array( 'status' => 0, 'message' => __( 'Invalid request' ) ) );
1156
  }
@@ -1295,9 +1313,9 @@ class Sassy_Social_Share_Public {
1295
  background: <?php echo esc_html( $this->options['horizontal_bg_color_hover'] ) ?>!important;
1296
  <?php }
1297
  if ( $this->options['horizontal_font_color_hover'] != '' ) { ?>
1298
- color: <?php echo $this->options['horizontal_font_color_hover'] ?>;
1299
  <?php } ?>
1300
- border-color: <?php echo $this->options['horizontal_border_color_hover'] != '' ? $this->options['horizontal_border_color_hover'] : 'transparent'; ?>;
1301
  }
1302
  .heateor_sss_vertical_sharing span.heateor_sss_svg,.heateor_sss_floating_follow_icons_container span.heateor_sss_svg{
1303
  <?php if ( $this->options['vertical_bg_color_default'] != '' ) { ?>
@@ -1389,7 +1407,7 @@ class Sassy_Social_Share_Public {
1389
  $more_icon_enabled = isset($this->options['vertical_more']) ? 1 : 0;
1390
  $bottom_sharing_responsive_css = 'div.heateor_sss_bottom_sharing{width:100%!important;left:0!important;}div.heateor_sss_bottom_sharing a{width:'.(100/($num_sharing_icons+$total_share_count_enabled+$more_icon_enabled)).'% !important;}div.heateor_sss_bottom_sharing .heateor_sss_svg{width: 100% !important;}div.heateor_sss_bottom_sharing div.heateorSssTotalShareCount{font-size:1em!important;line-height:' . ( $vertical_sharing_icon_height*70/100 ) . 'px!important}div.heateor_sss_bottom_sharing div.heateorSssTotalShareText{font-size:.7em!important;line-height:0px!important}';
1391
  }
1392
- echo isset( $this->options['vertical_enable'] ) && isset( $this->options['bottom_mobile_sharing'] ) && $this->options['horizontal_screen_width'] != '' ? 'div.heateor_sss_mobile_footer{display:none;}@media screen and (max-width:' . $this->options['horizontal_screen_width'] . 'px){div.heateor_sss_bottom_sharing .heateorSssTCBackground{background-color:white}'.$bottom_sharing_responsive_css.'div.heateor_sss_mobile_footer{display:block;height:'.($this->options['vertical_sharing_shape'] == 'rectangle' ? $this->options['vertical_sharing_height'] : $this->options['vertical_sharing_size']).'px;}.heateor_sss_bottom_sharing{padding:0!important;' . ( $this->options['bottom_sharing_position_radio'] == 'nonresponsive' && $this->options['bottom_sharing_position'] != '' ? $this->options['bottom_sharing_alignment'] . ':' . $this->options['bottom_sharing_position'] . 'px!important;' . $bottom_sharing_postion_inverse . ':auto!important;' : '' ) . 'display:block!important;width:auto!important;bottom:' . ( isset( $this->options['vertical_total_shares'] ) && ! $this->is_amp_page() ? '-5' : '-2' ) . 'px!important;top: auto!important;}.heateor_sss_bottom_sharing .heateor_sss_square_count{line-height:inherit;}.heateor_sss_bottom_sharing .heateorSssSharingArrow{display:none;}.heateor_sss_bottom_sharing .heateorSssTCBackground{margin-right:1.1em!important}}' : '';
1393
  echo esc_html( $this->options['custom_css'] );
1394
  echo isset( $this->options['hide_slider'] ) ? 'div.heateorSssSharingArrow{display:none}' : '';
1395
  if ( isset( $this->options['hor_enable'] ) && $this->options['hor_sharing_alignment'] == "center" ) {
216
  if ( ! is_wp_error( $response ) ) {
217
  $short_url_object = json_decode( wp_remote_retrieve_body( $response ) );
218
  if ( isset( $short_url_object->link ) ) {
219
+ $short_url = esc_url_raw( $short_url_object->link );
220
  update_post_meta( $post_id, '_heateor_sss_bitly_url', $short_url );
221
  return $short_url;
222
  }
718
  } else {
719
  if ( $this->options['horizontal_target_url'] == 'default' ) {
720
  if ( ( isset( $_SERVER['QUERY_STRING'] ) && $_SERVER['QUERY_STRING'] ) || $post_url == '' ) {
721
+ $post_url = sanitize_url( str_replace( array( '%3Cscript%3E', '%3C/script%3E' ), '', $this->get_http_protocol() . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] ) );
722
  }
723
  if ( $share_count_url == '' ) {
724
  $share_count_url = $post_url;
728
  $share_count_url = $post_url;
729
  $post_id = 0;
730
  } elseif ( $this->options['horizontal_target_url'] == 'custom' && $this->options['horizontal_target_url_custom'] ) {
731
+ $post_url = sanitize_url( $this->options['horizontal_target_url_custom'] );
732
  $share_count_url = $post_url;
733
  $post_id = 0;
734
  }
759
  // show horizontal sharing
760
  if ( ( isset( $this->options['home'] ) && is_front_page() ) || ( isset( $this->options['category'] ) && is_category() ) || ( isset( $this->options['archive'] ) && is_archive() ) || ( isset( $this->options['post'] ) && is_single() && isset( $post->post_type ) && $post->post_type == 'post' ) || ( isset( $this->options['page'] ) && is_page() && isset( $post->post_type ) && $post->post_type == 'page' ) || ( isset( $this->options['excerpt'] ) && (is_home() || current_filter() == 'the_excerpt' ) ) || ( isset( $this->options['bb_reply'] ) && current_filter() == 'bbp_get_reply_content' ) || ( isset( $this->options['bb_forum'] ) && ( isset( $this->options['top'] ) && current_filter() == 'bbp_template_before_single_forum' || isset( $this->options['bottom'] ) && current_filter() == 'bbp_template_after_single_forum' ) ) || ( isset( $this->options['bb_topic'] ) && ( isset( $this->options['top'] ) && in_array( current_filter(), array( 'bbp_template_before_single_topic', 'bbp_template_before_lead_topic' ) ) || isset( $this->options['bottom'] ) && in_array( current_filter(), array( 'bbp_template_after_single_topic', 'bbp_template_after_lead_topic' ) ) ) ) || ( isset( $this->options['woocom_shop'] ) && current_filter() == 'woocommerce_after_shop_loop_item' ) || ( isset( $this->options['woocom_product'] ) && current_filter() == 'woocommerce_share' ) || ( isset( $this->options['woocom_thankyou'] ) && current_filter() == 'woocommerce_thankyou' ) || (current_filter() == 'bp_before_group_header' && isset( $this->options['bp_group'] ) ) ) {
761
  if ( in_array( current_filter(), array( 'bbp_template_before_single_topic', 'bbp_template_before_lead_topic', 'bbp_template_before_single_forum', 'bbp_template_after_single_topic', 'bbp_template_after_lead_topic', 'bbp_template_after_single_forum', 'woocommerce_after_shop_loop_item', 'woocommerce_share', 'woocommerce_thankyou', 'bp_before_group_header' ) ) ) {
762
+ global $heateor_sss_allowed_tags;
763
+ echo wp_kses( '<div class="heateorSssClear"></div>' . $horizontal_div . '<div class="heateorSssClear"></div>', $heateor_sss_allowed_tags );
764
  } else {
765
  if ( isset( $this->options['top'] ) && isset( $this->options['bottom'] ) ) {
766
  $content = $horizontal_div . '<br/>' . $content . '<br/>' . $horizontal_div;
796
  if ( $this->options['vertical_target_url'] == 'default' ) {
797
  $post_url = get_permalink( $post->ID );
798
  if ( ! is_singular() ) {
799
+ $post_url = sanitize_url( str_replace( array( '%3Cscript%3E', '%3C/script%3E' ), '', $this->get_http_protocol() . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] ) );
800
  $post_id = 0;
801
  $share_count_url = $post_url;
802
  } elseif ( ( isset( $_SERVER['QUERY_STRING'] ) && $_SERVER['QUERY_STRING'] ) || $post_url == '' ) {
803
+ $post_url = sanitize_url( str_replace( array( '%3Cscript%3E', '%3C/script%3E' ), '', $this->get_http_protocol() . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] ) );
804
  }
805
  if ( $share_count_url == '' ) {
806
  $share_count_url = $post_url;
810
  $share_count_url = $post_url;
811
  $post_id = 0;
812
  } elseif ( $this->options['vertical_target_url'] == 'custom' && $this->options['vertical_target_url_custom'] ) {
813
+ $post_url = sanitize_url( $this->options['vertical_target_url_custom'] );
814
  $share_count_url = $post_url;
815
  $post_id = 0;
816
  }
905
 
906
  }
907
 
908
+ /**
909
+ * Sanitize the URLs of passed array
910
+ *
911
+ * @since 3.3.41
912
+ */
913
+ private function sanitize_url_array( $url ) {
914
+
915
+ if ( $this->validate_url( $url ) !== false ) {
916
+ return sanitize_url( $url );
917
+ }
918
+
919
+ }
920
+
921
  /**
922
  * Get share counts for sharing networks
923
  *
925
  */
926
  public function fetch_share_counts() {
927
 
928
+ if ( isset( $_GET['urls'] ) && is_array( $_GET['urls'] ) && count( $_GET['urls'] ) > 0 ) {
929
+ $target_urls = array_map( array( $this, 'sanitize_url_array' ), array_unique( $_GET['urls'] ) );
930
+ if ( ! is_array( $target_urls ) ) {
931
+ $target_urls = array();
 
 
 
 
932
  }
933
  } else {
934
  $this->ajax_response( array( 'status' => 0, 'message' => __( 'Invalid request' ) ) );
1149
 
1150
  }
1151
 
1152
+ /**
1153
+ * Sanitize the share counts of the passed array
1154
+ *
1155
+ * @since 3.3.41
1156
+ */
1157
+ private function sanitize_share_count_array( $share_count ) {
1158
+
1159
+ return sanitize_text_field( $share_count );
1160
+
1161
+ }
1162
+
1163
  /**
1164
  * Save Facebook share counts in transient
1165
  *
1168
  public function save_facebook_shares() {
1169
 
1170
  if ( isset( $_GET['share_counts'] ) && is_array( $_GET['share_counts'] ) && count( $_GET['share_counts'] ) > 0 ) {
1171
+ $target_urls = array_map( array( $this, 'sanitize_share_count_array' ), $_GET['share_counts'] );
 
 
 
1172
  } else {
1173
  $this->ajax_response( array( 'status' => 0, 'message' => __( 'Invalid request' ) ) );
1174
  }
1313
  background: <?php echo esc_html( $this->options['horizontal_bg_color_hover'] ) ?>!important;
1314
  <?php }
1315
  if ( $this->options['horizontal_font_color_hover'] != '' ) { ?>
1316
+ color: <?php echo esc_html( $this->options['horizontal_font_color_hover'] ) ?>;
1317
  <?php } ?>
1318
+ border-color: <?php echo $this->options['horizontal_border_color_hover'] != '' ? esc_html( $this->options['horizontal_border_color_hover'] ) : 'transparent'; ?>;
1319
  }
1320
  .heateor_sss_vertical_sharing span.heateor_sss_svg,.heateor_sss_floating_follow_icons_container span.heateor_sss_svg{
1321
  <?php if ( $this->options['vertical_bg_color_default'] != '' ) { ?>
1407
  $more_icon_enabled = isset($this->options['vertical_more']) ? 1 : 0;
1408
  $bottom_sharing_responsive_css = 'div.heateor_sss_bottom_sharing{width:100%!important;left:0!important;}div.heateor_sss_bottom_sharing a{width:'.(100/($num_sharing_icons+$total_share_count_enabled+$more_icon_enabled)).'% !important;}div.heateor_sss_bottom_sharing .heateor_sss_svg{width: 100% !important;}div.heateor_sss_bottom_sharing div.heateorSssTotalShareCount{font-size:1em!important;line-height:' . ( $vertical_sharing_icon_height*70/100 ) . 'px!important}div.heateor_sss_bottom_sharing div.heateorSssTotalShareText{font-size:.7em!important;line-height:0px!important}';
1409
  }
1410
+ echo isset( $this->options['vertical_enable'] ) && isset( $this->options['bottom_mobile_sharing'] ) && $this->options['horizontal_screen_width'] != '' ? 'div.heateor_sss_mobile_footer{display:none;}@media screen and (max-width:' . intval( $this->options['horizontal_screen_width'] ) . 'px){div.heateor_sss_bottom_sharing .heateorSssTCBackground{background-color:white}' . $bottom_sharing_responsive_css . 'div.heateor_sss_mobile_footer{display:block;height:' . esc_html( $this->options['vertical_sharing_shape'] == 'rectangle' ? $this->options['vertical_sharing_height'] : $this->options['vertical_sharing_size'] ) . 'px;}.heateor_sss_bottom_sharing{padding:0!important;' . esc_html( $this->options['bottom_sharing_position_radio'] == 'nonresponsive' && $this->options['bottom_sharing_position'] != '' ? esc_html( $this->options['bottom_sharing_alignment'] ) . ':' . esc_html( $this->options['bottom_sharing_position'] ) . 'px!important;' . esc_html( $bottom_sharing_postion_inverse ) . ':auto!important;' : '' ) . 'display:block!important;width:auto!important;bottom:' . ( isset( $this->options['vertical_total_shares'] ) && ! $this->is_amp_page() ? '-5' : '-2' ) . 'px!important;top: auto!important;}.heateor_sss_bottom_sharing .heateor_sss_square_count{line-height:inherit;}.heateor_sss_bottom_sharing .heateorSssSharingArrow{display:none;}.heateor_sss_bottom_sharing .heateorSssTCBackground{margin-right:1.1em!important}}' : '';
1411
  echo esc_html( $this->options['custom_css'] );
1412
  echo isset( $this->options['hide_slider'] ) ? 'div.heateorSssSharingArrow{display:none}' : '';
1413
  if ( isset( $this->options['hor_enable'] ) && $this->options['hor_sharing_alignment'] == "center" ) {
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Heateor, jatin8heateor, farhan8heateor
3
  Donate link: https://www.heateor.com/donate/?action=Sassy+Social+Share
4
  Tags: social share, social sharing, social media share, share facebook, facebook social share, wordpress social share, share buttons, social share buttons, facebook like, twitter tweet, whatsapp share, line share, gab share, gab, parler share, gettr, gettr share, mewe share, mewe
5
  Requires at least: 2.5.0
6
- Tested up to: 5.9.2
7
- Stable tag: 3.3.40
8
  License: GPLv2 or later
9
 
10
  Slickest, Simplest and Optimized Share buttons. Facebook, Twitter, Reddit, Pinterest, Whatsapp, Parler, Gab, Gettr and over 100 more.
@@ -125,6 +125,9 @@ Yes, we can help you with it. Just drop an email at support[at]heateor[dot]com
125
  4. **Universal Sharing Popup**: Universal Sharing popup having all the supported sharing and bookmarking services
126
 
127
  == Changelog ==
 
 
 
128
  = 3.3.40 [24 March 2022] =
129
  * [Security] Fixed two XSS Vulnerability issues
130
  * [Bugfix] Right and Bottom counter positions in the Theme Selection section were not working
@@ -1183,4 +1186,7 @@ Yes, we can help you with it. Just drop an email at support[at]heateor[dot]com
1183
  * [Bugfix] Right and Bottom counter positions in the Theme Selection section were not working
1184
  * [Improvement] Updated the official Facebook SDK being used throughout the plugin to the latest version 13.0
1185
  * [Improvement] Anchor HTML tag for the More share icon now has an HREF attribute
1186
- * [Improvement] Performmance improvement
 
 
 
3
  Donate link: https://www.heateor.com/donate/?action=Sassy+Social+Share
4
  Tags: social share, social sharing, social media share, share facebook, facebook social share, wordpress social share, share buttons, social share buttons, facebook like, twitter tweet, whatsapp share, line share, gab share, gab, parler share, gettr, gettr share, mewe share, mewe
5
  Requires at least: 2.5.0
6
+ Tested up to: 5.9.3
7
+ Stable tag: 3.3.41
8
  License: GPLv2 or later
9
 
10
  Slickest, Simplest and Optimized Share buttons. Facebook, Twitter, Reddit, Pinterest, Whatsapp, Parler, Gab, Gettr and over 100 more.
125
  4. **Universal Sharing Popup**: Universal Sharing popup having all the supported sharing and bookmarking services
126
 
127
  == Changelog ==
128
+ = 3.3.41 [11 May 2022] =
129
+ * [Improvement] Code quality improvement
130
+
131
  = 3.3.40 [24 March 2022] =
132
  * [Security] Fixed two XSS Vulnerability issues
133
  * [Bugfix] Right and Bottom counter positions in the Theme Selection section were not working
1186
  * [Bugfix] Right and Bottom counter positions in the Theme Selection section were not working
1187
  * [Improvement] Updated the official Facebook SDK being used throughout the plugin to the latest version 13.0
1188
  * [Improvement] Anchor HTML tag for the More share icon now has an HREF attribute
1189
+ * [Improvement] Performmance improvement
1190
+
1191
+ = 3.3.41 [11 May 2022] =
1192
+ * [Improvement] Code quality improvement
sassy-social-share.php CHANGED
@@ -6,7 +6,7 @@
6
  * Plugin Name: Sassy Social Share
7
  * Plugin URI: https://www.heateor.com
8
  * Description: Slickest, Simplest and Optimized Share buttons. Facebook, Twitter, Reddit, Pinterest, WhatsApp and over 100 more
9
- * Version: 3.3.40
10
  * Author: Team Heateor
11
  * Author URI: https://www.heateor.com
12
  * Text Domain: sassy-social-share
@@ -20,7 +20,7 @@ if ( ! defined( 'WPINC' ) ) {
20
  die;
21
  }
22
 
23
- define( 'HEATEOR_SSS_VERSION', '3.3.40' );
24
  define( 'HEATEOR_SSS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
25
 
26
  // core plugin class object
6
  * Plugin Name: Sassy Social Share
7
  * Plugin URI: https://www.heateor.com
8
  * Description: Slickest, Simplest and Optimized Share buttons. Facebook, Twitter, Reddit, Pinterest, WhatsApp and over 100 more
9
+ * Version: 3.3.41
10
  * Author: Team Heateor
11
  * Author URI: https://www.heateor.com
12
  * Text Domain: sassy-social-share
20
  die;
21
  }
22
 
23
+ define( 'HEATEOR_SSS_VERSION', '3.3.41' );
24
  define( 'HEATEOR_SSS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
25
 
26
  // core plugin class object