else
$likeText = '';
else if($showShareButton && !$showFacebook)
{
if($buttonStyle == 'standard' || $buttonStyle == 'button')
$style = 'button';
else if($buttonStyle == 'box_count')
$style = 'box_count';
else
$style = 'button_count';
$likeText .= '{JFBCShare layout=' . $style . $widthField . ' href=' . $url . $renderKeyString . '}';
}
function _getLikeButton($article, $buttonStyle, $showFacebook, $showFaces, $showShareButton, $showLinkedInButton, $showTwitterButton, $showGooglePlusButton, $showPinterestButton, $width, $verbToDisplay, $font, $colorScheme, $pinImage, $pinText, $renderKeyString, $isJoomla)
{
$likeText = '';
$url = SCArticleContent::getCurrentURL($article, $isJoomla);
//Only set width for standard layout, not box_count or button_count
if ($buttonStyle == 'standard')
$widthField = ' width=' . $width;
else
$widthField = '';
if($showFacebook)
$likeText = '{JFBCLike layout=' . $buttonStyle . ' show_faces=' . $showFaces . ' share=' . $showShareButton
. $widthField . ' action=' . $verbToDisplay . ' font=' . $font
. ' colorscheme=' . $colorScheme . ' href=' . $url . $renderKeyString . '}';
else if($showShareButton && !$showFacebook)
{
if($buttonStyle == 'standard' || $buttonStyle == 'button')
$style = 'button';
else if($buttonStyle == 'box_count')
$style = 'box_count';
else
$style = 'button_count';
$likeText = '{JFBCShare layout=' . $style . $widthField . ' href=' . $url . $renderKeyString . '}';
}
$buttonText = '<div style="position: relative; top:0px; left:0px; z-index: 99;" class="scsocialbuttons '.$buttonStyle.'">';
if ($showLinkedInButton || $showTwitterButton || $showGooglePlusButton || $showPinterestButton)
{
$extraButtonText = SCSocialUtilities::getExtraShareButtons($url, $buttonStyle, false, false, $showTwitterButton, $showGooglePlusButton, $renderKeyString, $showLinkedInButton, '50', $showPinterestButton, $pinImage, $pinText);
$buttonText .= $extraButtonText;
}
$buttonText .= $likeText;
$buttonText .= '</div><div style="clear:left"></div>';
$likeText = $buttonText;
return $likeText;
}
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.