ID) && !empty($sfsi_plus_section7_options['sfsi_plus_Show_popupOn_PageIDs']))
{
if(is_page() && in_array($post->ID, unserialize($sfsi_plus_section7_options['sfsi_plus_Show_popupOn_PageIDs'])))
{
$content= sfsi_plus_frontPopUp ().$content;
}
}
}
else if($sfsi_plus_section7_options['sfsi_plus_Show_popupOn']=="everypage")
{
$content= sfsi_plus_frontPopUp ().$content;
}
/* check for pop times */
if($sfsi_plus_section7_options['sfsi_plus_Shown_pop']=="once")
{
$time_popUp = $sfsi_plus_section7_options['sfsi_plus_Shown_popupOnceTime'];
$time_popUp = $time_popUp*1000;
ob_start();?>
'rss',
$sfsi_section5['sfsi_plus_emailIcon_order'] =>'email',
$sfsi_section5['sfsi_plus_facebookIcon_order'] =>'facebook',
$sfsi_section5['sfsi_plus_googleIcon_order'] =>'google',
$sfsi_section5['sfsi_plus_twitterIcon_order'] =>'twitter',
$sfsi_section5['sfsi_plus_shareIcon_order'] =>'share',
$sfsi_section5['sfsi_plus_youtubeIcon_order'] =>'youtube',
$sfsi_section5['sfsi_plus_pinterestIcon_order']=>'pinterest',
$sfsi_section5['sfsi_plus_linkedinIcon_order'] =>'linkedin',
$sfsi_section5['sfsi_plus_instagramIcon_order']=>'instagram',
(isset($sfsi_section5['sfsi_plus_houzzIcon_order']))
? $sfsi_section5['sfsi_plus_houzzIcon_order']
: 11 => 'houzz'
) ;
$icons = array();
$elements = array();
$icons = unserialize($sfsi_plus_section1_options['sfsi_custom_files']);
if(is_array($icons)) $elements=array_keys($icons);
$cnt=0;
$total=count($custom_icons_order);
if(!empty($icons) && is_array($icons))
{
foreach($icons as $cn=>$c_icons)
{
if(is_array($custom_icons_order) ) :
if(in_array($custom_icons_order[$cnt]['ele'],$elements)) :
$key = key($elements);
unset($elements[$key]);
$icons_order[$custom_icons_order[$cnt]['order']]=array('ele'=>$cn,'img'=>$c_icons);
else :
$icons_order[]=array('ele'=>$cn,'img'=>$c_icons);
endif;
$cnt++;
else :
$icons_order[]=array('ele'=>$cn,'img'=>$c_icons);
endif;
}
}
ksort($icons_order);/* short icons in order to display */
$icons = '
';
$icons.='
';
if(!empty($heading_text))
{
$icons.='
'.$heading_text.'
';
}
$ulmargin="";
if($sfsi_section4['sfsi_plus_display_counts']=="no")
{
$ulmargin="margin-bottom:0px";
}
/* make icons with all settings saved in admin */
$icons.='
';
foreach($icons_order as $index=>$icn) :
if(is_array($icn)) { $icon_arry=$icn; $icn="custom" ; }
switch ($icn) :
case 'rss' :
if($sfsi_plus_section1_options['sfsi_plus_rss_display']=='yes') $icons.= "- ".sfsi_plus_prepairIcons('rss',1)."
";
break;
case 'email' :
if($sfsi_plus_section1_options['sfsi_plus_email_display']=='yes') $icons.= "- ".sfsi_plus_prepairIcons('email',1)."
";
break;
case 'facebook' :
if($sfsi_plus_section1_options['sfsi_plus_facebook_display']=='yes') $icons.= "- ".sfsi_plus_prepairIcons('facebook',1)."
";
break;
case 'google' :
if($sfsi_plus_section1_options['sfsi_plus_google_display']=='yes') $icons.= "- ".sfsi_plus_prepairIcons('google',1)."
";
break;
case 'twitter' :
if($sfsi_plus_section1_options['sfsi_plus_twitter_display']=='yes') $icons.= "- ".sfsi_plus_prepairIcons('twitter',1)."
";
break;
case 'share' :
if($sfsi_plus_section1_options['sfsi_plus_share_display']=='yes') $icons.= "- ".sfsi_plus_prepairIcons('share',1)."
";
break;
case 'youtube' :
if($sfsi_plus_section1_options['sfsi_plus_youtube_display']=='yes') $icons.= "- ".sfsi_plus_prepairIcons('youtube',1)."
";
break;
case 'pinterest' :
if($sfsi_plus_section1_options['sfsi_plus_pinterest_display']=='yes') $icons.= "- ".sfsi_plus_prepairIcons('pinterest',1)."
";
break;
case 'linkedin' :
if($sfsi_plus_section1_options['sfsi_plus_linkedin_display']=='yes') $icons.= "- ".sfsi_plus_prepairIcons('linkedin',1)."
";
break;
case 'instagram' :
if($sfsi_plus_section1_options['sfsi_plus_instagram_display']=='yes') $icons.= "- ".sfsi_plus_prepairIcons('instagram',1)."
";
break;
case 'houzz' :
if(
isset($sfsi_plus_section1_options['sfsi_plus_houzz_display']) &&
$sfsi_plus_section1_options['sfsi_plus_houzz_display']=='yes'
)
{
$icons.= "- ".sfsi_plus_prepairIcons('houzz',1)."
";
}
break;
case 'custom' :
$icons.= "- ". sfsi_plus_prepairIcons($icon_arry['ele'],1)."
";
break;
endswitch;
endforeach;
$icons.='
';
return $icons;
}
?>