[Plugin: Social Sharing Toolkit] Fixes for errors – HTML5 themes
-
Line 10 in includes/buttons/button_email.php should be encoding the spaces of the page title.
$url = 'mailto:?subject='.rawurlencode($title).'&body='.$url;
Wrapping spans around the Facebook div fb_like button code causes the subsequent social buttons not to render due to validation errors. The code needs to be changed to use div’s:
Line 73 in includes/buttons/button.facebook.php
return '<div style="display: inline-block; width: '.$width.'px; height: '.$height.'px; overflow: hidden;">'.$retval.'</div>';
In social_sharing_toolkit.php
function get_bookmark_button($button, $url, $title, $type, $display = 'div', $align = '', $id = '', $media = '', $description = '', $text = '', $icon = '') { $retval = ''; if ($button == 'ln_break_1' || $button == 'ln_break_2' || $button == 'ln_break_3') { $retval = '</div><div class="mr_social_sharing_wrapper">'; } else { $display = "div"; foreach ($this->buttons as $tmp) { if (method_exists($tmp, $button)) { $retval = '<'.$display.' style="display: inline-block;" class="mr_social_sharing'.$align.'">'.$tmp->$button($url, $title, $type, $id, $media, $description, $text, $icon).'</'.$display.'>'; } } } return $retval; }
Results:
<div style="display: inline-block;" class="mr_social_sharing_top"> <div style="display: inline-block; width: 51px; height: 24px; overflow: hidden;"> <div class="fb-like" data-href="https://www.domain.com/" data-send="false" data-width="51" data-show-faces="false"></div> </div>
https://www.ads-software.com/extend/plugins/social-sharing-toolkit/
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘[Plugin: Social Sharing Toolkit] Fixes for errors – HTML5 themes’ is closed to new replies.