Social Share Icons & Social Share Buttons - Version 2.2.5

Version Description

  • Facebook changed their API - please upgrade if you want Facebook sharing on mobile to work properly on your site!
Download this release

Release Info

Developer socialdude
Plugin Icon 128x128 Social Share Icons & Social Share Buttons
Version 2.2.5
Comparing to
See all releases

Code changes from version 2.2.4 to 2.2.5

libs/controllers/sfsiocns_OnPosts.php CHANGED
@@ -252,17 +252,19 @@ if($show_count==1)
252
  }
253
  if($sfsi_section1['sfsi_plus_facebook_display']=="yes" || $sfsi_section8['sfsi_plus_rectfb'] == "yes")
254
  {
255
- ?>
256
- <!--facebook like and share js -->
257
- <div id="fb-root"></div>
258
- <script>(function(d, s, id) {
259
- var js, fjs = d.getElementsByTagName(s)[0];
260
- if (d.getElementById(id)) return;
261
- js = d.createElement(s); js.id = id;
262
- js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=1425108201100352&version=v2.0";
263
- fjs.parentNode.insertBefore(js, fjs);
264
- }(document, 'script', 'facebook-jssdk'));</script>
265
- <?php } if($sfsi_section1['sfsi_plus_google_display']=="yes" || $sfsi_section1['sfsi_plus_youtube_display']=="yes" || $sfsi_section8['sfsi_plus_rectgp'] == "yes") { ?>
 
 
266
  <!--google share and like and e js -->
267
  <script type="text/javascript">
268
  window.___gcfg = {
252
  }
253
  if($sfsi_section1['sfsi_plus_facebook_display']=="yes" || $sfsi_section8['sfsi_plus_rectfb'] == "yes")
254
  {
255
+ ?>
256
+ <!--facebook like and share js -->
257
+ <div id="fb-root"></div>
258
+ <script>(function(d, s, id) {
259
+ var js, fjs = d.getElementsByTagName(s)[0];
260
+ if (d.getElementById(id)) return;
261
+ js = d.createElement(s); js.id = id;
262
+ js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5";
263
+ fjs.parentNode.insertBefore(js, fjs);
264
+ }(document, 'script', 'facebook-jssdk'));</script>
265
+ <?php
266
+ }
267
+ if($sfsi_section1['sfsi_plus_google_display']=="yes" || $sfsi_section1['sfsi_plus_youtube_display']=="yes" || $sfsi_section8['sfsi_plus_rectgp'] == "yes") { ?>
268
  <!--google share and like and e js -->
269
  <script type="text/javascript">
270
  window.___gcfg = {
libs/sfsi_install_uninstall.php CHANGED
@@ -12,7 +12,7 @@ function sfsi_plus_update_plugin()
12
  }
13
 
14
  //Install version
15
- update_option("sfsi_plus_pluginVersion", "2.24");
16
 
17
  /*show notification*/
18
  if(!get_option('sfsi_plus_show_notification'))
12
  }
13
 
14
  //Install version
15
+ update_option("sfsi_plus_pluginVersion", "2.25");
16
 
17
  /*show notification*/
18
  if(!get_option('sfsi_plus_show_notification'))
libs/sfsi_widget.php CHANGED
@@ -465,6 +465,7 @@ function sfsi_plus_prepairIcons($icon_name,$is_front=0)
465
  $counts=$socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_email_manualCounts']);
466
  }
467
  else
 
468
  {
469
  $counts= $socialObj->SFSI_getFeedSubscriber(get_option('sfsi_plus_feed_id',false));
470
  }
@@ -1384,1021 +1385,90 @@ function sfsi_plus_check_posts_visiblity($isFloter=0)
1384
  $icons="";
1385
  $icons .= '<style type="text/css">.sfsibeforpstwpr .sfsiplus_norm_row.sfsi_plus_wDivothr .sfsi_plus_wicons, .sfsiaftrpstwpr .sfsiplus_norm_row.sfsi_plus_wDivothr .sfsi_plus_wicons{width: '.$icons_size.'px !important;height: '.$icons_size.'px !important; margin-left: '.$icons_space.'px !important;}</style>';
1386
  /* loop through icons and bulit the icons with all settings applied in admin */
1387
- foreach($icons_order as $index => $icn) :
1388
- if(is_array($icn)) { $icon_arry=$icn; $icn="custom" ; }
1389
- switch ($icn) :
1390
- case 'rss' : if($sfsi_plus_section1_options['sfsi_plus_rss_display']=='yes') $icons.= sfsi_plus_postsprepairIcons('rss');
1391
- break;
1392
- case 'email' : if($sfsi_plus_section1_options['sfsi_plus_email_display']=='yes') $icons.= sfsi_plus_postsprepairIcons('email');
1393
- break;
1394
- case 'facebook' : if($sfsi_plus_section1_options['sfsi_plus_facebook_display']=='yes') $icons.= sfsi_plus_postsprepairIcons('facebook');
1395
- break;
1396
- case 'google' : if($sfsi_plus_section1_options['sfsi_plus_google_display']=='yes') $icons.= sfsi_plus_postsprepairIcons('google'); ;
1397
- break;
1398
- case 'twitter' : if($sfsi_plus_section1_options['sfsi_plus_twitter_display']=='yes') $icons.= sfsi_plus_postsprepairIcons('twitter');
1399
- break;
1400
- case 'share' : if($sfsi_plus_section1_options['sfsi_plus_share_display']=='yes') $icons.= sfsi_plus_postsprepairIcons('share'); break;
1401
- case 'youtube' : if($sfsi_plus_section1_options['sfsi_plus_youtube_display']=='yes') $icons.= sfsi_plus_postsprepairIcons('youtube');
1402
- break;
1403
- case 'pinterest' : if($sfsi_plus_section1_options['sfsi_plus_pinterest_display']=='yes') $icons.= sfsi_plus_postsprepairIcons('pinterest');
1404
- break;
1405
- case 'linkedin' : if($sfsi_plus_section1_options['sfsi_plus_linkedin_display']=='yes') $icons.= sfsi_plus_postsprepairIcons('linkedin');
1406
- break;
1407
- case 'instagram' : if($sfsi_plus_section1_options['sfsi_plus_instagram_display']=='yes') $icons.= sfsi_plus_postsprepairIcons('instagram');
1408
- break;
1409
- case 'houzz' :
1410
- if(
1411
- isset($sfsi_plus_section1_options['sfsi_plus_houzz_display']) &&
1412
- $sfsi_plus_section1_options['sfsi_plus_houzz_display']=='yes'
1413
- )
1414
- {
1415
- $icons.= sfsi_plus_postsprepairIcons('houzz');
1416
- }
1417
- break;
1418
- case 'custom' : $icons.= sfsi_plus_postsprepairIcons($icon_arry['ele']);
1419
- break;
1420
- endswitch;
1421
- endforeach;
1422
- $icons.='</div >';
1423
- $icons_main.=$icons;
1424
- /* if floating of icons is active create a floater div */
1425
- $icons_float='';
1426
- $icons_data=$icons_main.$icons_float;
1427
- return $icons_data;
1428
- }
1429
-
1430
- function sfsi_plus_postsprepairIcons($icon_name,$is_front=0)
1431
- {
1432
-
1433
- global $wpdb; global $socialObj;
1434
- $mouse_hover_effect='';
1435
- $active_theme='official';
1436
- $sfsi_plus_shuffle_Firstload='no';
1437
- $sfsi_plus_display_counts="no";
1438
- $icon='';
1439
- $url='';
1440
- $alt_text='';
1441
- $new_window='';
1442
- $class='';
1443
- /* access all saved settings in admin */
1444
- $sfsi_plus_section1_options= unserialize(get_option('sfsi_plus_section1_options',false));
1445
- $sfsi_plus_section2_options= unserialize(get_option('sfsi_plus_section2_options',false));
1446
- $sfsi_plus_section3_options= unserialize(get_option('sfsi_plus_section3_options',false));
1447
- $sfsi_plus_section4_options= unserialize(get_option('sfsi_plus_section4_options',false));
1448
- $sfsi_plus_section5_options= unserialize(get_option('sfsi_plus_section5_options',false));
1449
- $sfsi_plus_section6_options= unserialize(get_option('sfsi_plus_section6_options',false));
1450
- $sfsi_plus_section7_options= unserialize(get_option('sfsi_plus_section7_options',false));
1451
- $sfsi_plus_section8_options= unserialize(get_option('sfsi_plus_section8_options',false));
1452
-
1453
- /* get active theme */
1454
- $border_radius='';
1455
- $active_theme=$sfsi_plus_section3_options['sfsi_plus_actvite_theme'];
1456
-
1457
-
1458
- /* shuffle effect */
1459
- if($sfsi_plus_section3_options['sfsi_plus_shuffle_icons']=='yes')
1460
  {
1461
- $sfsi_plus_shuffle_Firstload=$sfsi_plus_section3_options["sfsi_plus_shuffle_Firstload"];
1462
- if($sfsi_plus_section3_options["sfsi_plus_shuffle_interval"]=="yes")
1463
- {
1464
- $sfsi_plus_shuffle_interval = $sfsi_plus_section3_options["sfsi_plus_shuffle_intervalTime"];
1465
- }
1466
- }
1467
- /* define the main url for icon access */
1468
- $icons_baseUrl=SFSI_PLUS_PLUGURL."images/icons_theme/".$active_theme."/";
1469
- $visit_iconsUrl= SFSI_PLUS_PLUGURL."images/visit_icons/";
1470
- $hoverSHow=0;
1471
-
1472
- /* check is icon is a custom icon or default icon */
1473
- if(is_numeric($icon_name)) { $icon_n=$icon_name; $icon_name="custom" ; }
1474
- $counts='';
1475
- $twit_tolCls="";
1476
- $twt_margin="";
1477
- $icons_space=$sfsi_plus_section5_options['sfsi_plus_icons_spacing'];
1478
- $padding_top='';
1479
- $scheme = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https" : "http";
1480
- $current_url= $scheme.'://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
1481
- $url="#";
1482
- $cmcls='';
1483
- $toolClass='';
1484
-
1485
- switch($icon_name)
1486
- {
1487
- case "rss" :
1488
- $socialObj = new sfsi_plus_SocialHelper(); /* global object to access 3rd party icon's actions */
1489
- $url = ($sfsi_plus_section2_options['sfsi_plus_rss_url'])? $sfsi_plus_section2_options['sfsi_plus_rss_url'] : 'javascript:void(0);';
1490
- $toolClass = "rss_tool_bdr";
1491
- $hoverdiv = '';
1492
- $arsfsiplus_row_class = "bot_rss_arow";
1493
-
1494
- /* fecth no of counts if active in admin section */
1495
- if($sfsi_plus_section4_options['sfsi_plus_rss_countsDisplay']=="yes" && $sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes")
1496
- {
1497
- //$counts=$socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_rss_manualCounts']);
1498
- }
1499
-
1500
- if(!empty($sfsi_plus_section5_options['sfsi_plus_rss_MouseOverText']))
1501
- {
1502
- $alt_text = $sfsi_plus_section5_options['sfsi_plus_rss_MouseOverText'];
1503
- }
1504
- else
1505
- {
1506
- $alt_text = 'RSS';
1507
- }
1508
-
1509
- //Custom Skin Support {Monad}
1510
- if($active_theme == 'custom_support')
1511
- {
1512
- if(get_option("plus_rss_skin"))
1513
- {
1514
- $icon = get_option("plus_rss_skin");
1515
- }
1516
- else
1517
- {
1518
- $active_theme = 'default';
1519
- $icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/default/";
1520
- $icon=$icons_baseUrl.$active_theme."_rss.png";
1521
- }
1522
- }
1523
- else
1524
- {
1525
- $icon=$icons_baseUrl.$active_theme."_rss.png";
1526
- }
1527
- break;
1528
-
1529
- case "email" :
1530
- $socialObj = new sfsi_plus_SocialHelper(); /* global object to access 3rd party icon's actions */
1531
- $hoverdiv = '';
1532
- $sfsi_plus_section2_options['sfsi_plus_email_url'];
1533
- $url = (isset($sfsi_plus_section2_options['sfsi_plus_email_url'])) ? $sfsi_plus_section2_options['sfsi_plus_email_url'] : 'javascript:void(0);';
1534
- $toolClass = "email_tool_bdr";
1535
- $arsfsiplus_row_class = "bot_eamil_arow";
1536
-
1537
- /* fecth no of counts if active in admin section */
1538
- if($sfsi_plus_section4_options['sfsi_plus_email_countsDisplay']=="yes" && $sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes")
1539
- {
1540
- if($sfsi_plus_section4_options['sfsi_plus_email_countsFrom']=="manual")
1541
- {
1542
- //$counts=$socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_email_manualCounts']);
1543
- }
1544
- else
1545
- {
1546
- //$counts= $socialObj->SFSI_getFeedSubscriber(get_option('sfsi_plus_feed_id',false));
1547
- }
1548
- }
1549
-
1550
- if(!empty($sfsi_plus_section5_options['sfsi_plus_email_MouseOverText']))
1551
- {
1552
- $alt_text = $sfsi_plus_section5_options['sfsi_plus_email_MouseOverText'];
1553
- }
1554
- else
1555
- {
1556
- $alt_text = 'EMAIL';
1557
- }
1558
-
1559
- //Custom Skin Support {Monad}
1560
- if($active_theme == 'custom_support')
1561
- {
1562
- if(get_option("plus_email_skin"))
1563
- {
1564
- $icon = get_option("plus_email_skin");
1565
- }
1566
- else
1567
- {
1568
- $active_theme = 'default';
1569
- $icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/default/";
1570
- //$icon=($sfsi_plus_section2_options['sfsi_plus_rss_icons']=="sfsi") ? $icons_baseUrl.$active_theme."_sf.png" : $icons_baseUrl.$active_theme."_email.png";
1571
- if($sfsi_plus_section2_options['sfsi_plus_rss_icons']=="sfsi")
1572
  {
1573
- $icon = $icons_baseUrl.$active_theme."_sf.png";
1574
  }
1575
- elseif($sfsi_plus_section2_options['sfsi_plus_rss_icons']=="email")
 
 
1576
  {
1577
- $icon = $icons_baseUrl.$active_theme."_email.png";
1578
  }
1579
- else
 
 
1580
  {
1581
- $icon = $icons_baseUrl.$active_theme."_subscribe.png";
1582
  }
1583
- }
1584
- }
1585
- else
1586
- {
1587
- //$icon=($sfsi_plus_section2_options['sfsi_plus_rss_icons']=="sfsi") ? $icons_baseUrl.$active_theme."_sf.png" : $icons_baseUrl.$active_theme."_email.png";
1588
- if($sfsi_plus_section2_options['sfsi_plus_rss_icons']=="sfsi")
1589
  {
1590
- $icon = $icons_baseUrl.$active_theme."_sf.png";
1591
  }
1592
- elseif($sfsi_plus_section2_options['sfsi_plus_rss_icons']=="email")
 
 
1593
  {
1594
- $icon = $icons_baseUrl.$active_theme."_email.png";
1595
  }
1596
- else
 
 
1597
  {
1598
- $icon = $icons_baseUrl.$active_theme."_subscribe.png";
1599
  }
1600
- }
1601
- break;
1602
-
1603
- case "facebook" :
1604
- $socialObj = new sfsi_plus_SocialHelper();
1605
- $width = 62;
1606
- $totwith = $width+28+$icons_space;
1607
- $twt_margin = $totwith/2;
1608
- $toolClass = "fb_tool_bdr";
1609
- $arsfsiplus_row_class = "bot_fb_arow";
1610
-
1611
- //for post sharing
1612
- if($sfsi_plus_section8_options["sfsi_plus_display_button_type"] == "normal_button" && $sfsi_plus_section8_options["sfsi_plus_show_item_onposts"] == "yes")
1613
- {
1614
- if($sfsi_plus_section8_options["sfsi_plus_display_before_posts"] == "yes" || $sfsi_plus_section8_options["sfsi_plus_display_after_posts"] == "yes" || $sfsi_plus_section8_options["sfsi_plus_display_before_blogposts"] == "yes" || $sfsi_plus_section8_options["sfsi_plus_display_after_blogposts"] == "yes")
1615
  {
1616
- $id = get_the_ID();
1617
- $current_url = get_permalink($id);
1618
  }
1619
- }
1620
- //for post sharing
1621
-
1622
- /* check for the over section */
1623
- if(!empty($sfsi_plus_section5_options['sfsi_plus_facebook_MouseOverText']))
1624
- {
1625
- $alt_text = $sfsi_plus_section5_options['sfsi_plus_facebook_MouseOverText'];
1626
- }
1627
- else
1628
- {
1629
- $alt_text = "FACEBOOK";
1630
- }
1631
-
1632
- $visit_icon = $visit_iconsUrl."facebook.png";
1633
- $url = ($sfsi_plus_section2_options['sfsi_plus_facebookPage_url']) ? $sfsi_plus_section2_options['sfsi_plus_facebookPage_url']:'javascript:void(0);';
1634
-
1635
- if($sfsi_plus_section2_options['sfsi_plus_facebookLike_option']=="yes" || $sfsi_plus_section2_options['sfsi_plus_facebookShare_option']=="yes" )
1636
- {
1637
- $url=($sfsi_plus_section2_options['sfsi_plus_facebookPage_url']) ? $sfsi_plus_section2_options['sfsi_plus_facebookPage_url']:'javascript:void(0);';
1638
- $hoverSHow=1;
1639
- $hoverdiv='';
1640
- if($sfsi_plus_section2_options['sfsi_plus_facebookPage_option']=="yes")
1641
- {
1642
- $hoverdiv.="<div class='icon1'><a href='".$url."' ".sfsi_plus_checkNewWindow($url)."><img alt='".$alt_text."' title='".$alt_text."' src='".$visit_icon."' /></a></div>";
1643
- }
1644
- if($sfsi_plus_section2_options['sfsi_plus_facebookLike_option']=="yes")
1645
- {
1646
- $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_plus_FBlike($current_url)."</div>";
1647
- }
1648
- if($sfsi_plus_section2_options['sfsi_plus_facebookShare_option']=="yes")
1649
- {
1650
- $hoverdiv.="<div class='icon3'>".$socialObj->sfsiFB_Share($current_url)."</div>";
1651
- }
1652
-
1653
- }
1654
-
1655
- /* fecth no of counts if active in admin section */
1656
- if($sfsi_plus_section4_options['sfsi_plus_facebook_countsDisplay']=="yes" && $sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes" )
1657
- {
1658
- if($sfsi_plus_section4_options['sfsi_plus_facebook_countsFrom']=="manual")
1659
- {
1660
- //$counts=$socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_facebook_manualCounts']);
1661
- }
1662
- else if($sfsi_plus_section4_options['sfsi_plus_facebook_countsFrom']=="likes")
1663
- {
1664
- $fb_data=$socialObj->sfsi_get_fb($current_url);
1665
- //$counts=$socialObj->format_num($fb_data['like_count']);
1666
- if(empty($counts))
1667
- {
1668
- //$counts=(string) "0";
1669
- }
1670
- }
1671
- else if($sfsi_plus_section4_options['sfsi_plus_facebook_countsFrom']=="followers")
1672
- {
1673
- $fb_data=$socialObj->sfsi_get_fb($current_url);
1674
- //$counts=$socialObj->format_num($fb_data['share_count']);
1675
-
1676
- }
1677
- else if($sfsi_plus_section4_options['sfsi_plus_facebook_countsFrom']=="mypage")
1678
- {
1679
- $current_url = $sfsi_plus_section4_options['sfsi_plus_facebook_mypageCounts'];
1680
- $fb_data=$socialObj->sfsi_get_fb_pagelike($current_url);
1681
- //$counts=$socialObj->format_num($fb_data);
1682
-
1683
- }
1684
- }
1685
-
1686
- //Custom Skin Support {Monad}
1687
- if($active_theme == 'custom_support')
1688
- {
1689
- if(get_option("plus_facebook_skin"))
1690
- {
1691
- $icon = get_option("plus_facebook_skin");
1692
- }
1693
- else
1694
- {
1695
- $active_theme = 'default';
1696
- $icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/default/";
1697
- $icon=$icons_baseUrl.$active_theme."_facebook.png";
1698
- }
1699
- }
1700
- else
1701
- {
1702
- $icon=$icons_baseUrl.$active_theme."_facebook.png";
1703
- }
1704
- break;
1705
-
1706
- case "google" :
1707
- $toolClass = "gpls_tool_bdr";
1708
- $arsfsiplus_row_class = "bot_gpls_arow";
1709
- $socialObj = new sfsi_plus_SocialHelper();
1710
- $width = 76;
1711
- $totwith = $width+28+$icons_space;
1712
- $twt_margin = $totwith/2;
1713
-
1714
- if(!empty($sfsi_plus_section5_options['sfsi_plus_google_MouseOverText']))
1715
  {
1716
- $alt_text = $sfsi_plus_section5_options['sfsi_plus_google_MouseOverText'];
1717
  }
1718
- else
 
 
1719
  {
1720
- $alt_text = "GOOGLE";
1721
  }
1722
-
1723
- $visit_icon = $visit_iconsUrl."google.png";
1724
- $url = ($sfsi_plus_section2_options['sfsi_plus_google_pageURL'])?$sfsi_plus_section2_options['sfsi_plus_google_pageURL'] : 'javascript:void(0);';
1725
-
1726
- /* check for icons to display */
1727
- if($sfsi_plus_section2_options['sfsi_plus_googleLike_option']=="yes" || $sfsi_plus_section2_options['sfsi_plus_googleShare_option']=="yes")
1728
- {
1729
- $hoverSHow=1;
1730
- $hoverdiv='';
1731
- if($sfsi_plus_section2_options['sfsi_plus_google_page']=="yes")
1732
- {
1733
- $hoverdiv.="<div class='icon1'><a href='".$url."' ".sfsi_plus_checkNewWindow($url)."><img alt='".$alt_text."' title='".$alt_text."' src='".$visit_icon."' /></a></div>";
1734
- }
1735
- if($sfsi_plus_section2_options['sfsi_plus_googleLike_option']=="yes")
1736
- {
1737
- $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_Googlelike($current_url)."</div>";
1738
- }
1739
- if($sfsi_plus_section2_options['sfsi_plus_googleShare_option']=="yes")
1740
- {
1741
- $hoverdiv.="<div class='icon3'>".$socialObj->sfsi_GoogleShare($current_url)."</div>";
1742
- }
1743
- }
1744
-
1745
- /* fecth no of counts if active in admin section */
1746
- if($sfsi_plus_section4_options['sfsi_plus_google_countsDisplay']=="yes" && $sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes")
1747
- {
1748
- if($sfsi_plus_section4_options['sfsi_plus_google_countsFrom']=="manual")
1749
- {
1750
- //$counts = $socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_google_manualCounts']);
1751
- }
1752
- else if($sfsi_plus_section4_options['sfsi_plus_google_countsFrom']=="likes")
1753
- {
1754
- $api_key=$sfsi_plus_section4_options['sfsi_plus_google_api_key'];
1755
- $followers=$socialObj->sfsi_getPlus1($current_url);
1756
- //$counts=$socialObj->format_num($followers);
1757
- if(empty($counts))
1758
- {
1759
- //$counts = (string) "0";
1760
- }
1761
- }
1762
- else if($sfsi_plus_section4_options['sfsi_plus_google_countsFrom']=="follower")
1763
- {
1764
- $api_key=$sfsi_plus_section4_options['sfsi_plus_google_api_key'];
1765
- $followers=$socialObj->sfsi_get_google($url,$api_key);
1766
- //$counts=$followers;
1767
- if(empty($counts))
1768
- {
1769
- //$counts = (string) "0";
1770
- }
1771
- }
1772
- }
1773
-
1774
- //Custom Skin Support {Monad}
1775
- if($active_theme == 'custom_support')
1776
- {
1777
- if(get_option("plus_google_skin"))
1778
- {
1779
- $icon = get_option("plus_google_skin");
1780
- }
1781
- else
1782
- {
1783
- $active_theme = 'default';
1784
- $icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/default/";
1785
- $icon=$icons_baseUrl.$active_theme."_google.png";
1786
- }
1787
- }
1788
- else
1789
- {
1790
- $icon=$icons_baseUrl.$active_theme."_google.png";
1791
- }
1792
- break;
1793
-
1794
- case "twitter" :
1795
- $toolClass = "twt_tool_bdr";
1796
- $arsfsiplus_row_class = "bot_twt_arow";
1797
- $socialObj = new sfsi_plus_SocialHelper();
1798
- $url = ($sfsi_plus_section2_options['sfsi_plus_twitter_pageURL'])?$sfsi_plus_section2_options['sfsi_plus_twitter_pageURL'] : 'javascript:void(0);';
1799
- $twitter_user = $sfsi_plus_section2_options['sfsi_plus_twitter_followUserName'];
1800
- $twitter_text = $sfsi_plus_section2_options['sfsi_plus_twitter_aboutPageText'];
1801
- $visit_icon = $visit_iconsUrl."twitter.png";
1802
- $width = 59;
1803
- $totwith = $width+28+$icons_space;
1804
- $twt_margin = $totwith/2;
1805
- /* check for icons to display */
1806
- $hoverdiv='';
1807
-
1808
- if($sfsi_plus_section2_options['sfsi_plus_twitter_followme']=="yes" || $sfsi_plus_section2_options['sfsi_plus_twitter_aboutPage']=="yes")
1809
- {
1810
- $hoverSHow=1;
1811
- //Visit twitter page {Monad}
1812
- if($sfsi_plus_section2_options['sfsi_plus_twitter_page']=="yes")
1813
- {
1814
- $hoverdiv.="<div class='cstmicon1'><a href='".$url."' ".sfsi_plus_checkNewWindow($url)."><img alt='Visit Us' title='Visit Us' src='".$visit_icon."' /></a></div>";
1815
- }
1816
- if($sfsi_plus_section2_options['sfsi_plus_twitter_followme']=="yes" && !empty($twitter_user))
1817
- {
1818
- $hoverdiv.="<div class='icon1'>".$socialObj->sfsi_twitterFollow($twitter_user)."</div>";
1819
- }
1820
- if($sfsi_plus_section2_options['sfsi_plus_twitter_aboutPage']=="yes")
1821
- {
1822
- $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_twitterShare($current_url,$twitter_text)."</div>";
1823
- }
1824
-
1825
- }
1826
-
1827
- /* fecth no of counts if active in admin section */
1828
- if($sfsi_plus_section4_options['sfsi_plus_twitter_countsDisplay']=="yes" && $sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes")
1829
- {
1830
- if($sfsi_plus_section4_options['sfsi_plus_twitter_countsFrom']=="manual")
1831
- {
1832
- //$counts=$socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_twitter_manualCounts']);
1833
- }
1834
- else if($sfsi_plus_section4_options['sfsi_plus_twitter_countsFrom']=="source")
1835
- {
1836
- $tw_settings=array('sfsiplus_tw_consumer_key'=>$sfsi_plus_section4_options['sfsiplus_tw_consumer_key'],
1837
- 'sfsiplus_tw_consumer_secret'=> $sfsi_plus_section4_options['sfsiplus_tw_consumer_secret'],
1838
- 'sfsiplus_tw_oauth_access_token'=> $sfsi_plus_section4_options['sfsiplus_tw_oauth_access_token'],
1839
- 'sfsiplus_tw_oauth_access_token_secret'=> $sfsi_plus_section4_options['sfsiplus_tw_oauth_access_token_secret']);
1840
-
1841
- $followers=$socialObj->sfsi_get_tweets($twitter_user,$tw_settings);
1842
- //$counts=$socialObj->format_num($followers);
1843
- if(empty($counts))
1844
- {
1845
- //$counts=(string) "0";
1846
- }
1847
- }
1848
- }
1849
-
1850
- //Giving alternative text to image
1851
- if(!empty($sfsi_plus_section5_options['sfsi_plus_twitter_MouseOverText']))
1852
- {
1853
- $alt_text = $sfsi_plus_section5_options['sfsi_plus_twitter_MouseOverText'];
1854
- }
1855
- else
1856
- {
1857
- $alt_text = "TWITTER";
1858
- }
1859
-
1860
- //Custom Skin Support {Monad}
1861
- if($active_theme == 'custom_support')
1862
- {
1863
- if(get_option("plus_twitter_skin"))
1864
- {
1865
- $icon = get_option("plus_twitter_skin");
1866
- }
1867
- else
1868
- {
1869
- $active_theme = 'default';
1870
- $icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/default/";
1871
- $icon=$icons_baseUrl.$active_theme."_twitter.png";
1872
- }
1873
- }
1874
- else
1875
- {
1876
- $icon=$icons_baseUrl.$active_theme."_twitter.png";
1877
- }
1878
- break;
1879
-
1880
- case "share" :
1881
- $socialObj = new sfsi_plus_SocialHelper();
1882
- $url = "http://www.addthis.com/bookmark.php?v=250";
1883
- $class = "addthis_button";
1884
-
1885
- /*fecth no of counts if active in admin section */
1886
- if($sfsi_plus_section4_options['sfsi_plus_shares_countsDisplay']=="yes" && $sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes")
1887
- {
1888
- if($sfsi_plus_section4_options['sfsi_plus_shares_countsFrom']=="manual")
1889
- {
1890
- //$counts = $socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_shares_manualCounts']);
1891
- }
1892
- else if($sfsi_plus_section4_options['sfsi_plus_shares_countsFrom']=="shares")
1893
- {
1894
- $shares=$socialObj->sfsi_get_atthis();
1895
- //$counts=$socialObj->format_num($shares);
1896
- if(empty($counts))
1897
- {
1898
- //$counts=(string) "0";
1899
- }
1900
- }
1901
- }
1902
-
1903
- //Giving alternative text to image
1904
- if(!empty($sfsi_plus_section5_options['sfsi_plus_share_MouseOverText']))
1905
- {
1906
- $alt_text = $sfsi_plus_section5_options['sfsi_plus_share_MouseOverText'];
1907
- }
1908
- else
1909
- {
1910
- $alt_text = "SHARE";
1911
- }
1912
-
1913
- //Custom Skin Support {Monad}
1914
- if($active_theme == 'custom_support')
1915
- {
1916
- if(get_option("plus_share_skin"))
1917
- {
1918
- $icon = get_option("plus_share_skin");
1919
- }
1920
- else
1921
- {
1922
- $active_theme = 'default';
1923
- $icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/default/";
1924
- $icon=$icons_baseUrl.$active_theme."_share.png";
1925
- }
1926
- }
1927
- else
1928
- {
1929
- $icon=$icons_baseUrl.$active_theme."_share.png";
1930
- }
1931
- break;
1932
-
1933
- case "youtube" :
1934
- $socialObj = new sfsi_plus_SocialHelper();
1935
- $toolClass = "utube_tool_bdr";
1936
- $arsfsiplus_row_class = "bot_utube_arow";
1937
- $socialObj = new sfsi_plus_SocialHelper();
1938
- $width = 96;
1939
- $totwith = $width+28+$icons_space;
1940
- $twt_margin = $totwith/2;
1941
- $youtube_user = (isset($sfsi_plus_section4_options['sfsi_plus_youtube_user']) && !empty($sfsi_plus_section4_options['sfsi_plus_youtube_user'])) ? $sfsi_plus_section4_options['sfsi_plus_youtube_user'] : 'SpecificFeeds';
1942
- $visit_icon = $visit_iconsUrl."youtube.png";
1943
- $url = ($sfsi_plus_section2_options['sfsi_plus_youtube_pageUrl'])? $sfsi_plus_section2_options['sfsi_plus_youtube_pageUrl'] : 'javascript:void(0);';
1944
-
1945
- //Giving alternative text to image
1946
- if(!empty($sfsi_plus_section5_options['sfsi_plus_youtube_MouseOverText']))
1947
- {
1948
- $alt_text = $sfsi_plus_section5_options['sfsi_plus_youtube_MouseOverText'];
1949
- }
1950
- else
1951
- {
1952
- $alt_text = "YOUTUBE";
1953
- }
1954
-
1955
- /* check for icons to display */
1956
- $hoverdiv="";
1957
- if($sfsi_plus_section2_options['sfsi_plus_youtube_follow']=="yes" )
1958
- {
1959
- $hoverSHow=1;
1960
- if($sfsi_plus_section2_options['sfsi_plus_youtube_page']=="yes")
1961
- {
1962
- $hoverdiv.="<div class='icon1'><a href='".$url."' ".sfsi_plus_checkNewWindow($url)."><img alt='".$alt_text."' title='".$alt_text."' src='".$visit_icon."' /></a></div>";
1963
- }
1964
- if($sfsi_plus_section2_options['sfsi_plus_youtube_follow']=="yes")
1965
- {
1966
- $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_YouTubeSub($youtube_user)."</div>";
1967
- }
1968
- }
1969
-
1970
- /* fecth no of counts if active in admin section */
1971
- if($sfsi_plus_section4_options['sfsi_plus_youtube_countsDisplay']=="yes" && $sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes")
1972
- {
1973
- if($sfsi_plus_section4_options['sfsi_plus_youtube_countsFrom']=="manual")
1974
- {
1975
- //$counts=$socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_youtube_manualCounts']);
1976
- }
1977
- else if($sfsi_plus_section4_options['sfsi_plus_youtube_countsFrom']=="subscriber")
1978
- {
1979
- $followers=$socialObj->sfsi_get_youtube($youtube_user);
1980
- //$counts=$socialObj->format_num($followers);
1981
- if(empty($counts))
1982
- {
1983
- //$counts=(string) "0";
1984
- }
1985
- }
1986
- }
1987
-
1988
- //Custom Skin Support {Monad}
1989
- if($active_theme == 'custom_support')
1990
- {
1991
- if(get_option("plus_youtube_skin"))
1992
- {
1993
- $icon = get_option("plus_youtube_skin");
1994
- }
1995
- else
1996
- {
1997
- $active_theme = 'default';
1998
- $icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/default/";
1999
- $icon=$icons_baseUrl.$active_theme."_youtube.png";
2000
- }
2001
- }
2002
- else
2003
- {
2004
- $icon=$icons_baseUrl.$active_theme."_youtube.png";
2005
- }
2006
- break;
2007
-
2008
- case "pinterest" :
2009
- $width = 73;
2010
- $totwith = $width+28+$icons_space;
2011
- $twt_margin = $totwith/2;
2012
- $socialObj = new sfsi_plus_SocialHelper();
2013
- $toolClass = "printst_tool_bdr";
2014
- $arsfsiplus_row_class = "bot_pintst_arow";
2015
-
2016
- $pinterest_user = $sfsi_plus_section4_options['sfsi_plus_pinterest_user'];
2017
- $pinterest_board = $sfsi_plus_section4_options['sfsi_plus_pinterest_board'];
2018
- $visit_icon = $visit_iconsUrl."pinterest.png";
2019
- $url = (isset($sfsi_plus_section2_options['sfsi_plus_pinterest_pageUrl'])) ? $sfsi_plus_section2_options['sfsi_plus_pinterest_pageUrl'] : 'javascript:void(0);';
2020
-
2021
- //Giving alternative text to image
2022
- if(!empty($sfsi_plus_section5_options['sfsi_plus_pinterest_MouseOverText']))
2023
- {
2024
- $alt_text = $sfsi_plus_section5_options['sfsi_plus_pinterest_MouseOverText'];
2025
- }
2026
- else
2027
- {
2028
- $alt_text = "PINTEREST";
2029
- }
2030
-
2031
- /* check for icons to display */
2032
- $hoverdiv="";
2033
- if($sfsi_plus_section2_options['sfsi_plus_pinterest_pingBlog']=="yes" )
2034
- {
2035
- $hoverSHow=1;
2036
- if($sfsi_plus_section2_options['sfsi_plus_pinterest_page']=="yes")
2037
- {
2038
- $hoverdiv.="<div class='icon1'><a href='".$url."' ".sfsi_plus_checkNewWindow($url)."><img alt='".$alt_text."' title='".$alt_text."' src='".$visit_icon."' /></a></div>";
2039
- }
2040
- if($sfsi_plus_section2_options['sfsi_plus_pinterest_pingBlog']=="yes")
2041
- {
2042
- if($sfsi_plus_section2_options['sfsi_plus_pinterest_pingBlog']=="yes")
2043
- {
2044
- $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_PinIt($current_url)."</div>";
2045
- }
2046
- }
2047
- }
2048
-
2049
- /* fecth no of counts if active in admin section */
2050
- if($sfsi_plus_section4_options['sfsi_plus_pinterest_countsDisplay']=="yes" && $sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes")
2051
- {
2052
- if($sfsi_plus_section4_options['sfsi_plus_pinterest_countsFrom']=="manual")
2053
- {
2054
- //$counts = $socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_pinterest_manualCounts']);
2055
- }
2056
- else if($sfsi_plus_section4_options['sfsi_plus_pinterest_countsFrom']=="pins")
2057
- {
2058
- $pins=$socialObj->sfsi_get_pinterest($current_url);
2059
- //$counts=$pins;
2060
- if(empty($counts))
2061
- {
2062
- //$counts=(string) "0";
2063
- }
2064
- }
2065
- }
2066
-
2067
- //Custom Skin Support {Monad}
2068
- if($active_theme == 'custom_support')
2069
- {
2070
- if(get_option("plus_pintrest_skin"))
2071
- {
2072
- $icon = get_option("plus_pintrest_skin");
2073
- }
2074
- else
2075
- {
2076
- $active_theme = 'default';
2077
- $icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/default/";
2078
- $icon=$icons_baseUrl.$active_theme."_pinterest.png";
2079
- }
2080
- }
2081
- else
2082
- {
2083
- $icon=$icons_baseUrl.$active_theme."_pinterest.png";
2084
- }
2085
- break;
2086
-
2087
- case "instagram" :
2088
- $toolClass = "instagram_tool_bdr";
2089
- $arsfsiplus_row_class = "bot_pintst_arow";
2090
- $socialObj = new sfsi_plus_SocialHelper();
2091
- $url = (isset($sfsi_plus_section2_options['sfsi_plus_instagram_pageUrl'])) ? $sfsi_plus_section2_options['sfsi_plus_instagram_pageUrl'] : 'javascript:void(0);';
2092
- $instagram_user_name = $sfsi_plus_section4_options['sfsi_plus_instagram_User'];
2093
-
2094
- //Giving alternative text to image
2095
- if(!empty($sfsi_plus_section5_options['sfsi_plus_instagram_MouseOverText']))
2096
- {
2097
- $alt_text = $sfsi_plus_section5_options['sfsi_plus_instagram_MouseOverText'];
2098
- }
2099
- else
2100
- {
2101
- $alt_text = "INSTAGRAM";
2102
- }
2103
-
2104
- $hoverdiv="";
2105
- /* fecth no of counts if active in admin section */
2106
- if($sfsi_plus_section4_options['sfsi_plus_instagram_countsDisplay']=="yes" && $sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes")
2107
- {
2108
- if($sfsi_plus_section4_options['sfsi_plus_instagram_countsFrom']=="manual")
2109
- {
2110
- //$counts = $socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_instagram_manualCounts']);
2111
- }
2112
- else if($sfsi_plus_section4_options['sfsi_plus_instagram_countsFrom']=="followers")
2113
- {
2114
- //$counts=$socialObj->sfsi_get_instagramFollowers($instagram_user_name);
2115
- if(empty($counts))
2116
- {
2117
- //$counts=(string) "0";
2118
- }
2119
- }
2120
- }
2121
-
2122
- //Custom Skin Support {Monad}
2123
- if($active_theme == 'custom_support')
2124
- {
2125
- if(get_option("plus_instagram_skin"))
2126
- {
2127
- $icon = get_option("plus_instagram_skin");
2128
- }
2129
- else
2130
- {
2131
- $active_theme = 'default';
2132
- $icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/default/";
2133
- $icon=$icons_baseUrl.$active_theme."_instagram.png";
2134
- }
2135
- }
2136
- else
2137
- {
2138
- $icon=$icons_baseUrl.$active_theme."_instagram.png";
2139
- }
2140
- break;
2141
-
2142
-
2143
- case "houzz" :
2144
- $socialObj = new sfsi_plus_SocialHelper(); /* global object to access 3rd party icon's actions */
2145
- $url = ($sfsi_plus_section2_options['sfsi_plus_houzz_pageUrl'])? $sfsi_plus_section2_options['sfsi_plus_houzz_pageUrl'] : 'javascript:void(0);';
2146
- $toolClass = "rss_tool_bdr";
2147
- $hoverdiv = '';
2148
- $arsfsiplus_row_class = "bot_rss_arow";
2149
-
2150
- /* fecth no of counts if active in admin section */
2151
- if(
2152
- isset($sfsi_plus_section4_options['sfsi_plus_houzz_countsDisplay']) &&
2153
- $sfsi_plus_section4_options['sfsi_plus_houzz_countsDisplay'] == "yes" &&
2154
- $sfsi_plus_section4_options['sfsi_plus_display_counts'] == "yes"
2155
- )
2156
- {
2157
- $counts=$socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_houzz_manualCounts']);
2158
- }
2159
-
2160
- if(
2161
- isset($sfsi_plus_section5_options['sfsi_plus_houzz_MouseOverText']) &&
2162
- !empty($sfsi_plus_section5_options['sfsi_plus_houzz_MouseOverText'])
2163
- )
2164
- {
2165
- $alt_text = $sfsi_plus_section5_options['sfsi_plus_houzz_MouseOverText'];
2166
- }
2167
- else
2168
- {
2169
- $alt_text = 'Houzz';
2170
- }
2171
-
2172
- //Custom Skin Support {Monad}
2173
- if($active_theme == 'custom_support')
2174
- {
2175
- if(get_option("plus_houzz_skin"))
2176
- {
2177
- $icon = get_option("plus_houzz_skin");
2178
- }
2179
- else
2180
- {
2181
- $active_theme = 'default';
2182
- $icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/default/";
2183
- $icon = $icons_baseUrl.$active_theme."_houzz.png";
2184
- }
2185
- }
2186
- else
2187
- {
2188
- $icon = $icons_baseUrl.$active_theme."_houzz.png";
2189
- }
2190
- break;
2191
-
2192
- case "linkedin" :
2193
- $width = 66;
2194
- $socialObj = new sfsi_plus_SocialHelper();
2195
- $toolClass = "linkedin_tool_bdr";
2196
- $arsfsiplus_row_class = "bot_linkedin_arow";
2197
- $linkedIn_compayId = $sfsi_plus_section2_options['sfsi_plus_linkedin_followCompany'];
2198
- $linkedIn_compay = $sfsi_plus_section2_options['sfsi_plus_linkedin_followCompany'];
2199
- $linkedIn_ProductId = $sfsi_plus_section2_options['sfsi_plus_linkedin_recommendProductId'];
2200
- $visit_icon = $visit_iconsUrl."linkedIn.png";
2201
-
2202
- /*check for icons to display */
2203
- $url=($sfsi_plus_section2_options['sfsi_plus_linkedin_pageURL'])? $sfsi_plus_section2_options['sfsi_plus_linkedin_pageURL'] : 'javascript:void(0);';
2204
-
2205
- if($sfsi_plus_section2_options['sfsi_plus_linkedin_follow']=="yes" || $sfsi_plus_section2_options['sfsi_plus_linkedin_SharePage']=="yes" || $sfsi_plus_section2_options['sfsi_plus_linkedin_recommendBusines']=="yes" )
2206
- {
2207
- $hoverSHow=1;
2208
- $hoverdiv='';
2209
- if($sfsi_plus_section2_options['sfsi_plus_linkedin_page']=="yes")
2210
- {
2211
- $hoverdiv.="<div class='icon4'><a href='".$url."' ".sfsi_plus_checkNewWindow($url)."><img alt='".$alt_text."' title='".$alt_text."' src='".$visit_icon."' /></a></div>";
2212
- }
2213
- if($sfsi_plus_section2_options['sfsi_plus_linkedin_follow']=="yes")
2214
- {
2215
- $hoverdiv.="<div class='icon1'>".$socialObj->sfsi_LinkedInFollow($linkedIn_compayId)."</div>";
2216
- }
2217
- if($sfsi_plus_section2_options['sfsi_plus_linkedin_SharePage']=="yes")
2218
- {
2219
- $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_LinkedInShare()."</div>";
2220
- }
2221
- if($sfsi_plus_section2_options['sfsi_plus_linkedin_recommendBusines']=="yes")
2222
- {
2223
- $hoverdiv.="<div class='icon3'>".$socialObj->sfsi_LinkedInRecommend($linkedIn_compay,$linkedIn_ProductId)."</div>";
2224
- $width=99;
2225
- }
2226
- }
2227
-
2228
- /* fecth no of counts if active in admin section */
2229
- if($sfsi_plus_section4_options['sfsi_plus_linkedIn_countsDisplay']=="yes" && $sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes")
2230
- {
2231
- if($sfsi_plus_section4_options['sfsi_plus_linkedIn_countsFrom']=="manual")
2232
- {
2233
- //$counts = $socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_linkedIn_manualCounts']);
2234
- }
2235
- else if($sfsi_plus_section4_options['sfsi_plus_linkedIn_countsFrom']=="follower")
2236
- {
2237
- $linkedIn_compay=$sfsi_plus_section4_options['sfsi_plus_ln_company'];
2238
- $ln_settings=array('sfsi_plus_ln_api_key'=>$sfsi_plus_section4_options['sfsi_plus_ln_api_key'],
2239
- 'sfsi_plus_ln_secret_key'=>$sfsi_plus_section4_options['sfsi_plus_ln_secret_key'],
2240
- 'sfsi_plus_ln_oAuth_user_token'=>$sfsi_plus_section4_options['sfsi_plus_ln_oAuth_user_token']);
2241
-
2242
- $followers=$socialObj->sfsi_getlinkedin_follower($linkedIn_compay,$ln_settings);
2243
- (int) $followers;
2244
- //$counts=$socialObj->format_num($followers);
2245
- if(empty($counts))
2246
- {
2247
- //$counts = (string) "0";
2248
- }
2249
- }
2250
- }
2251
- $totwith = $width+28+$icons_space;
2252
- $twt_margin = $totwith/2;
2253
-
2254
- //Giving alternative text to image
2255
- if(!empty($sfsi_plus_section5_options['sfsi_plus_linkedIn_MouseOverText']))
2256
- {
2257
- $alt_text = $sfsi_plus_section5_options['sfsi_plus_linkedIn_MouseOverText'];
2258
- }
2259
- else
2260
- {
2261
- $alt_text = "LINKEDIN";
2262
- }
2263
-
2264
- //Custom Skin Support {Monad}
2265
- if($active_theme == 'custom_support')
2266
- {
2267
- if(get_option("plus_linkedin_skin"))
2268
- {
2269
- $icon = get_option("plus_linkedin_skin");
2270
- }
2271
- else
2272
- {
2273
- $active_theme = 'default';
2274
- $icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/default/";
2275
- $icon=$icons_baseUrl.$active_theme."_linkedin.png";
2276
- }
2277
- }
2278
- else
2279
- {
2280
- $icon=$icons_baseUrl.$active_theme."_linkedin.png";
2281
- }
2282
- break;
2283
-
2284
- default:
2285
- $border_radius = "";
2286
- //$border_radius =" border-radius:48%;";
2287
- $cmcls = "cmcls";
2288
- $padding_top = "";
2289
- if($active_theme=="badge")
2290
- {
2291
- //$border_radius="border-radius: 18%;";
2292
- }
2293
- if($active_theme=="cute")
2294
- {
2295
- //$border_radius="border-radius: 38%;";
2296
- }
2297
-
2298
- $custom_icon_urls = unserialize($sfsi_plus_section2_options['sfsi_plus_CustomIcon_links']);
2299
- $url = (isset($custom_icon_urls[$icon_n]) && !empty($custom_icon_urls[$icon_n])) ? $custom_icon_urls[$icon_n]:'javascript:void(0);';
2300
- $toolClass = "custom_lkn";
2301
- $arsfsiplus_row_class = "";
2302
- $custom_icons_hoverTxt = unserialize($sfsi_plus_section5_options['sfsi_plus_custom_MouseOverTexts']);
2303
- $icons = unserialize($sfsi_plus_section1_options['sfsi_custom_files']);
2304
- $icon = $icons[$icon_n];
2305
-
2306
- //Giving alternative text to image
2307
- if(!empty($custom_icons_hoverTxt[$icon_n]))
2308
- {
2309
- $alt_text = $custom_icons_hoverTxt[$icon_n];
2310
- }
2311
- else
2312
- {
2313
- $alt_text = "SOCIALICON";
2314
  }
2315
- break;
2316
- }
2317
- $icons="";
2318
-
2319
- /* apply size of icon */
2320
- if($is_front==0)
2321
- {
2322
- $icons_size = $sfsi_plus_section5_options['sfsi_plus_icons_size'];
2323
- }
2324
- else
2325
- {
2326
- $icons_size = 51;
2327
- }
2328
-
2329
- /* spacing and no of icons per row */
2330
- $icons_space = '';
2331
- $icons_space = $sfsi_plus_section5_options['sfsi_plus_icons_spacing'];
2332
- $icon_width = (int)$icons_size;
2333
- /* check for mouse hover effect */
2334
- $icon_opacity="1";
2335
-
2336
- if($sfsi_plus_section3_options['sfsi_plus_mouseOver']=='yes')
2337
- {
2338
- $mouse_hover_effect=$sfsi_plus_section3_options["sfsi_plus_mouseOver_effect"];
2339
- if($mouse_hover_effect=="fade_in" || $mouse_hover_effect=="combo")
2340
- {
2341
- $icon_opacity="0.6";
2342
- }
2343
- }
2344
-
2345
- $toolT_cls='';
2346
- if((int) $icon_width <=49 && (int) $icon_width >=30)
2347
- {
2348
- $bt_class="";
2349
- $toolT_cls="sfsiTlleft";
2350
- }
2351
- else if((int) $icon_width <=20)
2352
- {
2353
- $bt_class="sfsiSmBtn";
2354
- $toolT_cls="sfsiTlleft";
2355
- }
2356
- else
2357
- {
2358
- $bt_class="";
2359
- $toolT_cls="sfsiTlleft";
2360
- }
2361
-
2362
- if($toolClass=="rss_tool_bdr" || $toolClass=='email_tool_bdr' || $toolClass=="custom_lkn" || $toolClass=="instagram_tool_bdr" )
2363
- {
2364
- $new_window = sfsi_plus_checkNewWindow();
2365
- $url = $url;
2366
- }
2367
- else if($hoverSHow)
2368
- {
2369
- $new_window = '';
2370
- $url = "javascript:void(0)";
2371
- }
2372
- else
2373
- {
2374
- $new_window = sfsi_plus_checkNewWindow();
2375
- $url = $url;
2376
- }
2377
-
2378
- $margin_bot="5px;";
2379
- if($sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes")
2380
- {
2381
- $margin_bot = "30px;";
2382
- }
2383
-
2384
- if(isset($icon) && !empty($icon) && filter_var($icon, FILTER_VALIDATE_URL))
2385
- {
2386
- $icons.= "<div style='width:".$icon_width."px; height:".$icon_width."px;margin-left:".$icons_space."px;margin-bottom:".$margin_bot."' class='sfsi_plus_wicons ".$cmcls."'>";
2387
- $icons.= "<div class='sfsiplus_inerCnt'>";
2388
- $icons.= "<a class='".$class." sficn' effect='".$mouse_hover_effect."' $new_window href='".$url."' id='sfsiplusid_".$icon_name."' alt='".$alt_text."' style='opacity:".$icon_opacity."' >";
2389
- $icons.= "<img alt='".$alt_text."' title='".$alt_text."' src='".$icon."' width='".$icons_size."' style='".$border_radius.$padding_top."' class='sfcm sfsi_wicon' effect='".$mouse_hover_effect."' />";
2390
- $icons.= '</a>';
2391
-
2392
- if($hoverSHow && !empty($hoverdiv))
2393
- {
2394
- $icons.= '<div class="sfsi_tool_tip_2 '.$toolClass.' '.$toolT_cls.'" style="width:'.$width.'px ;opacity:0;z-index:-1;margin-left:-'.$twt_margin.'px;" id="sfsiplusid_'.$icon_name.'">';
2395
- $icons.= '<span class="bot_arow '.$arsfsiplus_row_class.'"></span>';
2396
- $icons.= '<div class="sfsi_inside">'.$hoverdiv."</div>";
2397
- $icons.= "</div>";
2398
- }
2399
- $icons.="</div>";
2400
- $icons.="</div>";
2401
- }
2402
- return $icons;
2403
  }
 
2404
  ?>
465
  $counts=$socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_email_manualCounts']);
466
  }
467
  else
468
+
469
  {
470
  $counts= $socialObj->SFSI_getFeedSubscriber(get_option('sfsi_plus_feed_id',false));
471
  }
1385
  $icons="";
1386
  $icons .= '<style type="text/css">.sfsibeforpstwpr .sfsiplus_norm_row.sfsi_plus_wDivothr .sfsi_plus_wicons, .sfsiaftrpstwpr .sfsiplus_norm_row.sfsi_plus_wDivothr .sfsi_plus_wicons{width: '.$icons_size.'px !important;height: '.$icons_size.'px !important; margin-left: '.$icons_space.'px !important;}</style>';
1387
  /* loop through icons and bulit the icons with all settings applied in admin */
1388
+ foreach($icons_order as $index => $icn)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1389
  {
1390
+ if(is_array($icn)) { $icon_arry=$icn; $icn="custom" ; }
1391
+ switch ($icn)
1392
+ {
1393
+ case 'rss' :
1394
+ if($sfsi_plus_section1_options['sfsi_plus_rss_display']=='yes')
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1395
  {
1396
+ $icons.= sfsi_plus_prepairIcons('rss');
1397
  }
1398
+ break;
1399
+ case 'email' :
1400
+ if($sfsi_plus_section1_options['sfsi_plus_email_display']=='yes')
1401
  {
1402
+ $icons.= sfsi_plus_prepairIcons('email');
1403
  }
1404
+ break;
1405
+ case 'facebook' :
1406
+ if($sfsi_plus_section1_options['sfsi_plus_facebook_display']=='yes')
1407
  {
1408
+ $icons.= sfsi_plus_prepairIcons('facebook');
1409
  }
1410
+ break;
1411
+ case 'google' :
1412
+ if($sfsi_plus_section1_options['sfsi_plus_google_display']=='yes')
 
 
 
1413
  {
1414
+ $icons.= sfsi_plus_prepairIcons('google');
1415
  }
1416
+ break;
1417
+ case 'twitter' :
1418
+ if($sfsi_plus_section1_options['sfsi_plus_twitter_display']=='yes')
1419
  {
1420
+ $icons.= sfsi_plus_prepairIcons('twitter');
1421
  }
1422
+ break;
1423
+ case 'share' :
1424
+ if($sfsi_plus_section1_options['sfsi_plus_share_display']=='yes')
1425
  {
1426
+ $icons.= sfsi_plus_prepairIcons('share');
1427
  }
1428
+ break;
1429
+ case 'youtube' :
1430
+ if($sfsi_plus_section1_options['sfsi_plus_youtube_display']=='yes')
1431
+ {
1432
+ $icons.= sfsi_plus_prepairIcons('youtube');
1433
+ }
1434
+ break;
1435
+ case 'pinterest' :
1436
+ if($sfsi_plus_section1_options['sfsi_plus_pinterest_display']=='yes')
 
 
 
 
 
 
1437
  {
1438
+ $icons.= sfsi_plus_prepairIcons('pinterest');
 
1439
  }
1440
+ break;
1441
+ case 'linkedin' :
1442
+ if($sfsi_plus_section1_options['sfsi_plus_linkedin_display']=='yes')
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1443
  {
1444
+ $icons.= sfsi_plus_prepairIcons('linkedin');
1445
  }
1446
+ break;
1447
+ case 'instagram' :
1448
+ if($sfsi_plus_section1_options['sfsi_plus_instagram_display']=='yes')
1449
  {
1450
+ $icons.= sfsi_plus_prepairIcons('instagram');
1451
  }
1452
+ break;
1453
+ case 'houzz' :
1454
+ if(
1455
+ isset($sfsi_plus_section1_options['sfsi_plus_houzz_display']) &&
1456
+ $sfsi_plus_section1_options['sfsi_plus_houzz_display']=='yes'
1457
+ )
1458
+ {
1459
+ $icons.= sfsi_plus_prepairIcons('houzz');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1460
  }
1461
+ break;
1462
+ case 'custom' : $icons.= sfsi_plus_prepairIcons($icon_arry['ele']);
1463
+ break;
1464
+ }
1465
+ }
1466
+ $icons.='</div >';
1467
+ $icons_main.=$icons;
1468
+ /* if floating of icons is active create a floater div */
1469
+ $icons_float='';
1470
+ $icons_data=$icons_main.$icons_float;
1471
+ return $icons_data;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1472
  }
1473
+
1474
  ?>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=seb.r
4
  Tags: social media, social media icons, social media buttons, social media sharing, floating social media, social media icon, social media button, sharing icons, sharing, sharing buttons, social media widget, socialmedia, social media pop-up, social, social icons, icon, icons, buttons, facebook icon, twitter icon, instagram, instagram icon, counter, facebook, facebook like, like, tweet, tweet button, buttons, tweet icon, youtube, youtube icon, linkedin, linkedin icon, logos, follow, social profiles, social media accounts, social share
5
  Requires at least: 3.0
6
  Tested up to: 4.4
7
- Stable tag: 2.2.4
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -73,6 +73,9 @@ Please check out the FAQ on http://ultimatelysocial.com
73
 
74
  == Changelog ==
75
 
 
 
 
76
  = 2.2.4 =
77
  * Custom icon uploads optimized
78
 
@@ -168,5 +171,5 @@ Please check out the FAQ on http://ultimatelysocial.com
168
 
169
  == Upgrade Notice ==
170
 
171
- = 2.2.4 =
172
- * No major changes - no need to upgrade if you didn't face any issues
4
  Tags: social media, social media icons, social media buttons, social media sharing, floating social media, social media icon, social media button, sharing icons, sharing, sharing buttons, social media widget, socialmedia, social media pop-up, social, social icons, icon, icons, buttons, facebook icon, twitter icon, instagram, instagram icon, counter, facebook, facebook like, like, tweet, tweet button, buttons, tweet icon, youtube, youtube icon, linkedin, linkedin icon, logos, follow, social profiles, social media accounts, social share
5
  Requires at least: 3.0
6
  Tested up to: 4.4
7
+ Stable tag: 2.2.5
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
73
 
74
  == Changelog ==
75
 
76
+ = 2.2.5 =
77
+ * Facebook changed their API - please upgrade if you want Facebook sharing on mobile to work properly on your site!
78
+
79
  = 2.2.4 =
80
  * Custom icon uploads optimized
81
 
171
 
172
  == Upgrade Notice ==
173
 
174
+ = 2.2.5 =
175
+ * Facebook changed their API - please upgrade if you want Facebook sharing on mobile to work properly on your site!
ultimate_social_media_icons.php CHANGED
@@ -6,7 +6,7 @@ Description: The best social media plugin on the market. And 100% FREE. Allows y
6
  Author: UltimatelySocial
7
  Text Domain: ultimate-social-media-plus
8
  Author URI: http://ultimatelysocial.com
9
- Version: 2.2.4
10
  License: GPLv2
11
  */
12
 
@@ -35,7 +35,7 @@ register_deactivation_hook(__FILE__, 'sfsi_plus_deactivate_plugin');
35
  register_uninstall_hook(__FILE__, 'sfsi_plus_Unistall_plugin');
36
 
37
  /*Plugin version setup*/
38
- if(!get_option('sfsi_plus_pluginVersion') || get_option('sfsi_plus_pluginVersion') < 2.24)
39
  {
40
  add_action("init", "sfsi_plus_update_plugin");
41
  }
6
  Author: UltimatelySocial
7
  Text Domain: ultimate-social-media-plus
8
  Author URI: http://ultimatelysocial.com
9
+ Version: 2.2.5
10
  License: GPLv2
11
  */
12
 
35
  register_uninstall_hook(__FILE__, 'sfsi_plus_Unistall_plugin');
36
 
37
  /*Plugin version setup*/
38
+ if(!get_option('sfsi_plus_pluginVersion') || get_option('sfsi_plus_pluginVersion') < 2.25)
39
  {
40
  add_action("init", "sfsi_plus_update_plugin");
41
  }
views/sfsi_option_view9.php CHANGED
@@ -1,11 +1,15 @@
1
  <?php
2
- /* unserialize all saved option for Eight options */
3
- $option9= unserialize(get_option('sfsi_plus_section9_options',false));
 
4
  ?>
5
  <div class="tab9">
6
 
7
  <p>
8
- <?php _e('In addition to the email- or follow-icon you can also show a subscription form which maximizes chances that people subscribe to your site.', 'ultimate-social-media-plus'); ?>
 
 
 
9
  </p>
10
 
11
  <div class="sfsi_plus_tab8_container">
1
  <?php
2
+ /* unserialize all saved option for Eight options */
3
+ $option9= unserialize(get_option('sfsi_plus_section9_options',false));
4
+ $feedId = get_option('sfsi_plus_feed_id',false);
5
  ?>
6
  <div class="tab9">
7
 
8
  <p>
9
+ <?php _e('In addition to the email- or follow-icon you can also show a subscription form which maximizes chances that people subscribe to your site. To get access to the emails who subscribe, please', 'ultimate-social-media-plus'); ?>
10
+ <a href="http://www.specificfeeds.com/<?php echo $feedId; ?>?getParam=feeds_claims" target="_blank">
11
+ <?php _e('claim your feed.','ultimate-social-media-plus'); ?>
12
+ </a>
13
  </p>
14
 
15
  <div class="sfsi_plus_tab8_container">