ID);
$title = get_the_title();
$sfsiLikeWith="45px;";
/* check for counter display */
//if($sfsi_section6['sfsi_plus_icons_DisplayCounts']=="yes")
if($sfsi_section8['sfsi_plus_icons_DisplayCounts']=="yes")
{
$show_count=1;
$sfsiLikeWith="75px;";
}
else
{
$show_count=0;
}
//$txt=(isset($sfsi_section6['sfsi_plus_textBefor_icons']))? $sfsi_section6['sfsi_plus_textBefor_icons'] : "Share this Post with :" ;
$txt=(isset($sfsi_section8['sfsi_plus_textBefor_icons']))? $sfsi_section8['sfsi_plus_textBefor_icons'] : "Please follow and like us:" ;
//$float= $sfsi_section6['sfsi_plus_icons_alignment'];
$float= $sfsi_section8['sfsi_plus_icons_alignment'];
if($sfsi_section8['sfsi_plus_rectsub'] == 'yes' || $sfsi_section8['sfsi_plus_rectfb'] == 'yes' || $sfsi_section8['sfsi_plus_rectgp'] == 'yes' || $sfsi_section8['sfsi_plus_rectshr'] == 'yes' || $sfsi_section8['sfsi_plus_recttwtr'] == 'yes' || $sfsi_section8['sfsi_plus_rectpinit'] == 'yes' || $sfsi_section8['sfsi_plus_rectfbshare'] == 'yes')
{
$icons="
".$txt."
";
}
if($sfsi_section8['sfsi_plus_rectsub'] == 'yes')
{
if($show_count){$sfsiLikeWithsub = "93px";}else{$sfsiLikeWithsub = "64px";}
if(!isset($sfsiLikeWithsub)){$sfsiLikeWithsub = $sfsiLikeWith;}
$icons.="
".sfsi_plus_Subscribelike($permalink,$show_count)."
";
}
if($sfsi_section8['sfsi_plus_rectfb'] == 'yes' || $sfsi_section8['sfsi_plus_rectfbshare'] == 'yes')
{
if($show_count){}else{$sfsiLikeWithfb = "48px";}
if(!isset($sfsiLikeWithfb)){$sfsiLikeWithfb = $sfsiLikeWith;}
$icons.="
".sfsi_plus_FBlike($permalink,$show_count)."
";
}
if($sfsi_section8['sfsi_plus_recttwtr'] == 'yes')
{
if($show_count){$sfsiLikeWithtwtr = "77px";}else{$sfsiLikeWithtwtr = "56px";}
if(!isset($sfsiLikeWithtwtr)){$sfsiLikeWithtwtr = $sfsiLikeWith;}
$icons.="
".sfsi_plus_twitterlike($permalink,$show_count)."
";
}
if($sfsi_section8['sfsi_plus_rectpinit'] == 'yes')
{
if($show_count){$sfsiLikeWithpinit = "100px";}else{$sfsiLikeWithpinit = "auto";}
$icons.="
".sfsi_plus_pinitpinterest($permalink,$show_count)."
";
}
if($sfsi_section8['sfsi_plus_rectgp'] == 'yes')
{
if($show_count){$sfsiLikeWithpingogl = "63px";}else{$sfsiLikeWithpingogl = "auto";}
$icons.="
".sfsi_plus_googlePlus($permalink,$show_count)."
";
}
if($sfsi_section8['sfsi_plus_rectshr'] == 'yes')
{
$icons.="
".sfsi_plus_Addthis($show_count, $permalink, $title)."
";
}
$icons.="
";
if(!is_feed() && !is_home() && !is_page())
{
$content = $content .$icons;
}
//}
return $content;
}
/*subscribe like*/
function sfsi_plus_Subscribelike($permalink, $show_count)
{
global $socialObj;
$socialObj = new sfsi_plus_SocialHelper();
$sfsi_plus_section2_options= unserialize(get_option('sfsi_plus_section2_options',false));
$sfsi_plus_section4_options = unserialize(get_option('sfsi_plus_section4_options',false));
$sfsi_plus_section8_options= unserialize(get_option('sfsi_plus_section8_options',false));
$option5 = unserialize(get_option('sfsi_plus_section5_options',false));
$post_icons = $option5['sfsi_plus_follow_icons_language'];
$visit_icon1 = SFSI_PLUS_DOCROOT.'/images/visit_icons/Follow/icon_'.$post_icons.'.png';
$visit_iconsUrl = SFSI_PLUS_PLUGURL."images/";
if(file_exists($visit_icon1))
{
$visit_icon = $visit_iconsUrl."visit_icons/Follow/icon_".$post_icons.".png";
}
else
{
$visit_icon = $visit_iconsUrl."follow_subscribe.png";
}
$url = (isset($sfsi_plus_section2_options['sfsi_plus_email_url'])) ? $sfsi_plus_section2_options['sfsi_plus_email_url'] : 'javascript:void(0);';
if($sfsi_plus_section4_options['sfsi_plus_email_countsFrom']=="manual")
{
$counts=$socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_email_manualCounts']);
}
else
{
$counts= $socialObj->SFSI_getFeedSubscriber(sanitize_text_field(get_option('sfsi_plus_feed_id',false)));
}
if($sfsi_plus_section8_options['sfsi_plus_icons_DisplayCounts']=="yes")
{
$icon = '