Plugin Directory

Changeset 670639


Ignore:
Timestamp:
02/20/2013 06:24:36 AM (12 years ago)
Author:
sudiptomahato
Message:

Facebook like not getting displayed on IE 8 and below. Like button code changed from XFBML to HTML5.

Location:
only-tweet-like-share-and-google-1
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • only-tweet-like-share-and-google-1/trunk/readme.txt

    r654496 r670639  
    44Tags: Simple social share, social share, Facebook, Like, google, google +1, google plusone, twitter, tweet, facebook share, plusone, linkedin
    55Requires at least: 3.0
    6 Tested up to: 3.5
    7 Stable tag: 1.6
     6Tested up to: 3.5.1
     7Stable tag: 1.6.1
    88
    99A very simple social share plugin with just 5 social icons (Twitter, FB Like, Google +1, Linkedin and FB Share)
  • only-tweet-like-share-and-google-1/trunk/tweet-like-plusone.php

    r654496 r670639  
    44Plugin URI: http://techxt.com/tweet-like-google-1-and-share-plugin-wordpress/
    55Author: Sudipto Pratap Mahato
    6 Version: 1.6
     6Version: 1.6.1
    77Description: Most simple social share icons. 99% of your any blog post is share by these Social share icons.
    88Requires at least: 3.0
    9 Tested up to: 3.3.1
     9Tested up to: 3.5.1
    1010*/
    1111
     
    4444}
    4545$twsc='<script type="text/javascript" src="https://platform.twitter.com/widgets.js"></script>';
    46 $flsc='<script type="text/javascript" src="https://connect.facebook.net/'.$clang.'/all.js#xfbml=1"></script>';
     46$flsc='<script type="text/javascript" src="//connect.facebook.net/'.$clang.'/all.js#xfbml=1"></script>';
    4747$gpsc='<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>';
    48 $fssc='<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>';
     48$fssc='';
    4949if (get_option( 's4optimize', true ) == true){
    5050$twsc='';
     
    9191    $clang=get_option( 's4fblikelang', 'en_US' );
    9292    $flsc='';
    93     if(get_option('s4nofbjava',false)==false)$flsc='<script type="text/javascript" src="https://connect.facebook.net/'.$clang.'/all.js#xfbml=1"></script>';
     93    if(get_option('s4nofbjava',false)==false)$flsc='<script type="text/javascript" src="//connect.facebook.net/'.$clang.'/all.js#xfbml=1"></script>';
    9494    $r='';
    9595    if(get_option('s4allscripts',true)== true){
    96     $r='<script type="text/javascript" src="https://platform.twitter.com/widgets.js"></script>'.$flsc.'<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script><script type="text/javascript" src="https://platform.linkedin.com/in.js"></script>';
     96    $r='<script type="text/javascript" src="https://platform.twitter.com/widgets.js"></script>'.$flsc.'<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script><script type="text/javascript" src="https://platform.linkedin.com/in.js"></script>';
    9797    }
    9898    else
     
    102102            if(get_option('s4_plusone','1'))$r.='<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>';
    103103            if(get_option('s4_linkedin',false))$r.='<script type="text/javascript" src="https://platform.linkedin.com/in.js"></script>';
    104             if(get_option('s4_fbshare','1'))$r.='<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>';
     104           
    105105           
    106106    }
     
    172172    <meta property="og:site_name" content="<?php bloginfo('name'); ?>" />
    173173    <meta property="og:description" content="<?php echo $desc; ?> "/>
     174    <!--[if lt IE 9]>
     175  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
     176<![endif]-->
    174177    <?php if(trim($thumb)!=''){ ?>
    175178        <meta property="og:image" content="<?php echo $thumb; ?>" />
     
    181184    <meta property="og:description" content="<?php bloginfo('description'); ?>" />
    182185    <meta property="og:site_name" content="<?php bloginfo('name'); ?>" />
     186    <!--[if lt IE 9]>
     187  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
     188<![endif]-->
    183189    <?php if(trim($default_img)!=''){ ?>
    184190        <meta property="og:image" content="<?php echo $default_img; ?>" />
     
    207213    $tp=' layout="button_count" width="100" height="21" ';
    208214   
    209 $sharelinks.= '<div class=socialicons style="float:left;margin-right: 10px;"><div id="fb-root"></div><script src="https://connect.facebook.net/'.$clang.'/all.js#xfbml=1"></script><fb:like href="'.$fblplink.'" send="'.$snd.'"'.$tp.'show_faces="false" font=""></fb:like></div>';
     215$sharelinks.= '<div class=socialicons style="float:left;margin-right: 10px;"><div id="fb-root"></div><script src="//connect.facebook.net/'.$clang.'/all.js#xfbml=1"></script><fb:like href="'.$fblplink.'" send="'.$snd.'"'.$tp.'show_faces="false" font=""></fb:like></div>';
    210216}
    211217if(get_option('s4_plusone','1')){
     
    224230    $cs2='style="position: absolute; bottom: 0pt;"';
    225231} else $tp="button_count";
    226 $sharelinks.= '<div class=socialicons style="position: relative;'.$cs1.'float:left;margin-right: 10px;"><div '.$cs2.'><a name="fb_share" type="'.$tp.'" share_url="'.$eplink.'" href="http://www.facebook.com/sharer.php">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script></div></div>';
     232$sharelinks.= '<div class=socialicons style="position: relative;'.$cs1.'float:left;margin-right: 10px;"><div '.$cs2.'><a name="fb_share" type="'.$tp.'" share_url="'.$eplink.'" href="http://www.facebook.com/sharer.php">Share</a></div></div>';
    227233}*/
    228234$sharelinks.= '<div style="clear:both"></div></div><div style="float: right; width: 255px; margin-top: -37px; margin-right: 10px;"><b>If you need a Scrolling share plugin then try out my other two plugins</b><br/> 1. <a href="http://wordpress.org/extend/plugins/scrolling-social-sharebar/" target="_blank">Scrolling Social Sharebar</a><br/> 2. <a href="http://wordpress.org/extend/plugins/scrolling-twitter-like-google-plusone-linkedin-and-stumbleupon/" target="_blank">Scrolling Twitter Like Google +1</a></div>';
     
    529535$twsc='<script type="text/javascript" src="https://platform.twitter.com/widgets.js"></script>';
    530536$flsc='';
    531 if(get_option('s4nofbjava',false)==false)$flsc='<script type="text/javascript" src="https://connect.facebook.net/'.$clang.'/all.js#xfbml=1"></script>';
     537if(get_option('s4nofbjava',false)==false)$flsc='<script type="text/javascript" src="//connect.facebook.net/'.$clang.'/all.js#xfbml=1"></script>';
    532538$gpsc='<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>';
    533 $fssc='<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>';
     539$fssc='';
    534540$lnsc='<script type="text/javascript" src="https://platform.linkedin.com/in.js"></script>';
    535541if (get_option( 's4optimize', true ) == true){
     
    563569if(get_option('s4_fbsend',false)==true || $type == "s4_fbsend")$snd="true"; else $snd="false";
    564570if ($size == "large" )
    565     $tp=' layout="box_count" width="55" height="62" ';
     571    $tp=' data-layout="box_count" data-width="55" data-height="62" ';
    566572else
    567     $tp=' layout="button_count" width="100" height="21" ';
     573    $tp=' data-layout="button_count" data-width="100" data-height="21" ';
    568574   
    569 $s4link= '<div class="socialicons s4fblike" style="float:left;margin-right: 10px;"><div id="fb-root"></div>'.$flsc.'<fb:like href="'.$plink.'" send="'.$snd.'"'.$tp.'show_faces="false" font=""></fb:like></div>';
     575$s4link= '<div class="socialicons s4fblike" style="float:left;margin-right: 10px;"><div id="fb-root"></div>'.$flsc.'<div class="fb-like" data-href="'.$plink.'" data-send="'.$snd.'" '.$tp.' data-show-faces="false"></div></div>';
     576
    570577$sharelinks.=$s4link;
    571578$btnarr[2]=$s4link;
Note: See TracChangeset for help on using the changeset viewer.