Changeset 670639
- Timestamp:
- 02/20/2013 06:24:36 AM (12 years ago)
- 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 4 4 Tags: Simple social share, social share, Facebook, Like, google, google +1, google plusone, twitter, tweet, facebook share, plusone, linkedin 5 5 Requires at least: 3.0 6 Tested up to: 3.5 7 Stable tag: 1.6 6 Tested up to: 3.5.1 7 Stable tag: 1.6.1 8 8 9 9 A 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 4 4 Plugin URI: http://techxt.com/tweet-like-google-1-and-share-plugin-wordpress/ 5 5 Author: Sudipto Pratap Mahato 6 Version: 1.6 6 Version: 1.6.1 7 7 Description: Most simple social share icons. 99% of your any blog post is share by these Social share icons. 8 8 Requires at least: 3.0 9 Tested up to: 3. 3.19 Tested up to: 3.5.1 10 10 */ 11 11 … … 44 44 } 45 45 $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>'; 47 47 $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=''; 49 49 if (get_option( 's4optimize', true ) == true){ 50 50 $twsc=''; … … 91 91 $clang=get_option( 's4fblikelang', 'en_US' ); 92 92 $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>'; 94 94 $r=''; 95 95 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><scripttype="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>'; 97 97 } 98 98 else … … 102 102 if(get_option('s4_plusone','1'))$r.='<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>'; 103 103 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 105 105 106 106 } … … 172 172 <meta property="og:site_name" content="<?php bloginfo('name'); ?>" /> 173 173 <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]--> 174 177 <?php if(trim($thumb)!=''){ ?> 175 178 <meta property="og:image" content="<?php echo $thumb; ?>" /> … … 181 184 <meta property="og:description" content="<?php bloginfo('description'); ?>" /> 182 185 <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]--> 183 189 <?php if(trim($default_img)!=''){ ?> 184 190 <meta property="og:image" content="<?php echo $default_img; ?>" /> … … 207 213 $tp=' layout="button_count" width="100" height="21" '; 208 214 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>'; 210 216 } 211 217 if(get_option('s4_plusone','1')){ … … 224 230 $cs2='style="position: absolute; bottom: 0pt;"'; 225 231 } 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>'; 227 233 }*/ 228 234 $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>'; … … 529 535 $twsc='<script type="text/javascript" src="https://platform.twitter.com/widgets.js"></script>'; 530 536 $flsc=''; 531 if(get_option('s4nofbjava',false)==false)$flsc='<script type="text/javascript" src=" https://connect.facebook.net/'.$clang.'/all.js#xfbml=1"></script>';537 if(get_option('s4nofbjava',false)==false)$flsc='<script type="text/javascript" src="//connect.facebook.net/'.$clang.'/all.js#xfbml=1"></script>'; 532 538 $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=''; 534 540 $lnsc='<script type="text/javascript" src="https://platform.linkedin.com/in.js"></script>'; 535 541 if (get_option( 's4optimize', true ) == true){ … … 563 569 if(get_option('s4_fbsend',false)==true || $type == "s4_fbsend")$snd="true"; else $snd="false"; 564 570 if ($size == "large" ) 565 $tp=' layout="box_count" width="55"height="62" ';571 $tp=' data-layout="box_count" data-width="55" data-height="62" '; 566 572 else 567 $tp=' layout="button_count" width="100"height="21" ';573 $tp=' data-layout="button_count" data-width="100" data-height="21" '; 568 574 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 570 577 $sharelinks.=$s4link; 571 578 $btnarr[2]=$s4link;
Note: See TracChangeset
for help on using the changeset viewer.