Plugin Directory

Changeset 782467


Ignore:
Timestamp:
10/04/2013 09:07:04 AM (11 years ago)
Author:
sudiptomahato
Message:

Minor bug fix. Added option to add custom scripts.

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

    r739784 r782467  
    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.2
    7 Stable tag: 1.7.1
     6Tested up to: 3.6.1
     7Stable tag: 1.7.3
    88
    99A very simple social share plugin with vertical scrolling sharebar support
  • only-tweet-like-share-and-google-1/trunk/tweet-like-plusone.php

    r739784 r782467  
    44Plugin URI: http://techxt.com/tweet-like-google-1-and-share-plugin-wordpress/
    55Author: Sudipto Pratap Mahato
    6 Version: 1.7.1
     6Version: 1.7.3
    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.5.1
     9Tested up to: 3.6.1
    1010*/
    1111
     
    120120    {
    121121            if(get_option('s4_twitter','1'))$r.='<script type="text/javascript" src="https://platform.twitter.com/widgets.js"></script>';
    122             if(get_option('s4_fblike','1'))$r.=$flsc;
     122            if(get_option('s4_fblike','1')||get_option('s4_fbshare','1'))$r.=$flsc;
    123123            if(get_option('s4_plusone','1'))$r.='<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>';
    124124            if(get_option('s4_linkedin',false))$r.='<script type="text/javascript" src="https://platform.linkedin.com/in.js"></script>';
     
    130130
    131131function social4i_css() {
    132 echo "<!-- This site is powered by Tweet, Like, Plusone and Share Plugin v1.7.1 - http://techxt.com/tweet-like-google-1-and-share-plugin-wordpress/ -->\n";
     132echo "<!-- This site is powered by Tweet, Like, Plusone and Share Plugin - http://techxt.com/tweet-like-google-1-and-share-plugin-wordpress/ -->\n";
    133133s4_fb_share_thumb();
    134134if (get_option('s4dmob', false )==true && social4i_check_mobile())return;
    135 echo '<style type="text/css">div.socialicons{float:left;display:block;margin-right: 10px;}div.socialicons p{margin-bottom: 0px !important;margin-top: 0px !important;padding-bottom: 0px !important;padding-top: 0px !important;}div.social4iv{background: none repeat scroll 0 0 #FFFFFF;border: 1px solid #aaa;border-radius: 3px 3px 3px 3px;box-shadow: 3px 3px 3px #DDDDDD;padding: 3px;position: fixed;text-align: center;top: 55px;width: 68px;display:none;}div.socialiconsv{padding-bottom: 5px;}</style>'."\n";
     135wp_enqueue_script('jquery');
     136echo '<style type="text/css">div.socialicons{float:left;display:block;margin-right: 10px;line-height: 1;}div.socialiconsv{line-height: 1;}div.socialicons p{margin-bottom: 0px !important;margin-top: 0px !important;padding-bottom: 0px !important;padding-top: 0px !important;}div.social4iv{background: none repeat scroll 0 0 #FFFFFF;border: 1px solid #aaa;border-radius: 3px 3px 3px 3px;box-shadow: 3px 3px 3px #DDDDDD;padding: 3px;position: fixed;text-align: center;top: 55px;width: 68px;display:none;}div.socialiconsv{padding-bottom: 5px;}</style>'."\n";
    136137if(get_option('s4optimize',true)==true&&get_option( 's4scripthead', 'head' ) == "head" )
    137138echo s4load_script();
    138139$ccss=get_option('s4ccss','');
     140$cjscript=get_option('s4cjscript','');
     141if(trim($cjscript!=''))echo $cjscript;
    139142if(trim($ccss!=''))echo '<style type="text/css">'.$ccss.'</style>';
    140143
     
    142145function social4i_foot()
    143146{
     147?>
     148<div id="fb-root"></div>
     149<?php
    144150if (get_option('s4dmob', false )==true && social4i_check_mobile())return;
    145151    if(get_option('s4optimize',true)==true&&get_option( 's4scripthead', 'head' ) == "foot" )
     
    153159            var offset1 = $("#social4ivbottom").offset();
    154160            var lmargin=<?php echo get_option('s4vbmargin',100); ?>;
     161            var tmargin=<?php echo get_option('s4vbmargintop',20); ?>;
    155162            var vhide=<?php if(get_option('s4vbhide','vbhide')=="vbhide") echo 1;else echo 0; ?>;
    156163        var avis=<?php if(get_option('s4vbavis','true')=="true") echo 1;else echo 0; ?>;
     
    163170                {$("#social4iv").css("top",offset.top-$(window).scrollTop());}
    164171             else
    165                 {$("#social4iv").css("top",20);}
     172                {$("#social4iv").css("top",tmargin);}
    166173             $("#social4iv").fadeIn();
    167174           }
     
    170177         offset = $("#social4ivtop").offset();
    171178             offset1 = $("#social4ivbottom").offset();
    172              if($(window).scrollTop()<offset.top )
     179             if($(window).scrollTop()<offset.top-tmargin)
    173180                {$("#social4iv").css("top",offset.top-$(window).scrollTop());}
    174181             else
    175                 {$("#social4iv").css("top",20);}
    176              if($(window).scrollTop()<offset1.top || vhide==0)is_dis=true;else is_dis=false;
     182                {$("#social4iv").css("top",tmargin);}
     183             if($(window).scrollTop()<offset1.top-tmargin || vhide==0)is_dis=true;else is_dis=false;
    177184                if (($(window).scrollTop() > offset.top||avis) && is_dis && is_vis)
    178185                {
     
    243250    $desc = esc_attr(str_replace("\r\n",' ',substr(strip_tags(strip_shortcodes($post->post_content)), 0, 160)));
    244251}
     252if(trim($desc)=="")$desc=get_the_title('');
    245253?>
    246254    <meta property="og:type" content="article" />
     
    248256    <meta property="og:url" content="<?php the_permalink(); ?>"/>
    249257    <meta property="og:site_name" content="<?php bloginfo('name'); ?>" />
    250     <meta property="og:description" content="<?php echo $desc; ?> "/>
     258    <meta property="og:description" content="<?php echo $desc; ?>"/>
    251259    <!--[if lt IE 9]>
    252260  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
     
    281289if(get_option('s4_twitter','1')){
    282290if (get_option( 's4iconsize', 'large' ) == "large" )$tp="vertical"; else $tp="horizontal";
    283 $sharelinks.= '<div class=socialicons style="float:left;margin-right: 10px;"><a href="https://twitter.com/share" data-url="'.$plink.'" data-counturl="'.$plink.'" data-text="'.$ptitle.'" class="twitter-share-button" data-count="'.$tp.'">Tweet</a><script type="text/javascript" src="https://platform.twitter.com/widgets.js"></script></div>';
     291$sharelinks.= '<script src="//connect.facebook.net/'.$clang.'/all.js#xfbml=1"></script><div class=socialicons style="float:left;margin-right: 10px;"><a href="https://twitter.com/share" data-url="'.$plink.'" data-counturl="'.$plink.'" data-text="'.$ptitle.'" class="twitter-share-button" data-count="'.$tp.'">Tweet</a><script type="text/javascript" src="https://platform.twitter.com/widgets.js"></script></div>';
    284292}
    285293if(get_option('s4_fblike','1')){
     
    290298    $tp=' layout="button_count" width="100" height="21" ';
    291299   
    292 $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>';
     300$sharelinks.= '<div class=socialicons style="float:left;margin-right: 10px;"><fb:like href="'.$fblplink.'" send="'.$snd.'"'.$tp.'show_faces="false" font=""></fb:like></div>';
    293301}
    294302if(get_option('s4_plusone','1')){
    295303if (get_option( 's4iconsize', 'large' ) == "large" )$tp="tall"; else $tp="medium";
    296 $sharelinks.='<div class="socialicons" style="float:left;margin-right: 10px;"><script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script><g:plusone size="'.$tp.'" href="'.$fblplink.'" count="true"></g:plusone></div>';
     304$sharelinks.='<div class="socialicons" style="float:left;margin-right: 10px;"><script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script><div class="g-plusone" data-size="'.$tp.'" data-href="'.$fblplink.'"></div></div>';
    297305}
    298306if(get_option( 's4_linkedin', false )){
     
    300308$sharelinks.='<div class="socialicons" style="float:left;margin-right: 10px;"><script type="text/javascript" src="https://platform.linkedin.com/in.js"></script><script type="in/share" data-url="'.$eplink.'" data-counter="'.$tp.'"></script></div>';
    301309}
    302 /*if(get_option('s4_fbshare','1')){
     310if(get_option('s4_fbshare','1')){
    303311if (get_option( 's4iconsize', 'large' ) == "large" )
    304312{
     
    307315    $cs2='style="position: absolute; bottom: 0pt;"';
    308316} else $tp="button_count";
    309 $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>';
    310 }*/
    311 $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>';
     317$sharelinks.= '<div class=socialicons style="position: relative;'.$cs1.'float:left;margin-right: 10px;"><div '.$cs2.'><div class="fb-share-button" data-href="'.$plink.'" data-width="450" data-type="'.$tp.'"></div></div></div>';
     318}
     319$sharelinks.= '<div style="clear:both"></div></div>';
    312320echo $sharelinks;
    313321}
     
    333341<h2>Tweet, Like, Share and Google +1 Option Page</h2>
    334342Like this Plugin then why not hit the like button. Your like will motivate me to enhance the features of the Plugin :)<br />
    335 <iframe style="overflow: hidden; width: 450px; height: 35px;" src="http://www.facebook.com/plugins/like.php?app_id=199883273397074&amp;href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FTech-XT%2F223482634358279&amp;send=false&amp;layout=standard&amp;width=450&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=35" frameborder="0" scrolling="no" width="320" height="35"></iframe><br />And if you are too generous then you can always <b>DONATE</b> by clicking the donation button.<br/>If you like the plugin then <b>write a review</b> of it pointing out the plus and minus points.<br /><a href="http://techxt.com/tweet-like-google-1-and-share-plugin-wordpress/" TARGET='_blank'>Click here</a> for <b>Reference on using shortcode/Function</b> or if you want to <b>report a bug</b>.
     343<iframe style="overflow: hidden; width: 450px; height: 35px;" src="http://www.facebook.com/plugins/like.php?app_id=199883273397074&amp;href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FTech-XT%2F223482634358279&amp;send=false&amp;layout=standard&amp;width=450&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=35" width="320" height="35"></iframe><br />And if you are too generous then you can always <b>DONATE</b> by clicking the donation button.<br/>If you like the plugin then <b>write a review</b> of it pointing out the plus and minus points.<br /><a href="http://techxt.com/tweet-like-google-1-and-share-plugin-wordpress/" TARGET='_blank'>Click here</a> for <b>Reference on using shortcode/Function</b> or if you want to <b>report a bug</b>.
    336344<table class="form-ta">
    337345<tr valign="top">
    338 <td width="78%">
     346<td width="73%">
    339347<form method="post" action="options.php">
    340348<h3>Test Buttons</h3>
     
    355363<p>&nbsp;&nbsp;&nbsp;&nbsp;Select Facebook Like Language <?php s4_lang_disp(); ?> </p>
    356364<p><b>3 </b><input type="checkbox" name="s4_plusone" id="s4-plusone" value="true"<?php if (get_option( 's4_plusone', true ) == true) echo ' checked'; ?>> Display Google +1 </p>
    357 <p><b>4 </b>Display Facebook Share (Facebook no longer supports FB share) <a href="http://techxt.com/plugin-support-forum/tweet-like-plusone-and-share-plugin/display-facebook-share-button-custom-button/" target="_blank">Check out the alternative method to display FB Share</a></p>
     365<p><b>4 </b><input type="checkbox" name="s4_fbshare" id="s4-fbshare" value="true"<?php if (get_option( 's4_fbshare', true ) == true) echo ' checked'; ?>> Display Facebook Share </p>
    358366<p><b>5 </b><input type="checkbox" name="s4_linkedin" id="s4_linkedin" value="true"<?php if (get_option( 's4_linkedin', false ) == true) echo ' checked'; ?>> Display Linkedin </p>
    359367<p><b>6 </b><input type="checkbox" name="s4_cbtn" id="s4_cbtn" value="true"<?php if (get_option( 's4_cbtn', false ) == true) echo ' checked'; ?>> Display Custom Buttons </p>
     
    372380
    373381<div style="padding-right: 10px; padding-bottom: 10px; padding-left: 10px; background: none repeat scroll 0% 0% rgb(219, 234, 249);">   
    374 <h3 style="color: #cc0000;">Vertical Scrolling Sharebar</h3>
     382<h3 style="color: #cc0000;">Vertical Scrolling sidebar</h3>
    375383<p><input type="checkbox" name="s4dispvb" id="s4dispvb" value="true"<?php if (get_option( 's4dispvb', false ) == true) echo ' checked'; ?>> <b>Display Vertical sidebar</b> </p>
    376384<p><b>Margin Left </b><input type="text" name="s4vbmargin" style="width: 50px;" value="<?php echo get_option('s4vbmargin',100); ?>" /> (Default 100)</p>
     385<p><b>Margin Top </b><input type="text" name="s4vbmargintop" style="width: 50px;" value="<?php echo get_option('s4vbmargintop',20); ?>" /> (Default 20)</p>
    377386<p><input type="radio" name="s4vbavis" value="true" <?php if (get_option( 's4vbavis', 'true' ) == "true" ) echo ' checked'; ?>></input><label for="s4vbavis">Always Visible&nbsp;&nbsp;&nbsp;&nbsp;</label>
    378387<input type="radio" name="s4vbavis" value="false" <?php if (get_option( 's4vbavis', 'true' ) == "false" ) echo ' checked'; ?>></input><label for="s4vbavis">Visible on scroll</label></p>
     
    419428<small>Your theme should have Call to wp_head() function</small><br />
    420429<p><textarea name="s4ccss" rows="10" cols="50" style="width:600px;"><?php echo stripslashes(htmlspecialchars(get_option('s4ccss',''))); ?></textarea></p>
     430
     431<h3 style="color: #cc0000;">Insert Custom JavaScript</h3>
     432<small>Your theme should have Call to wp_head() function</small><br />
     433<small>Add opening and closing script tags (&lt;script>...&lt;/script>)</small><br />
     434<p><textarea name="s4cjscript" rows="10" cols="50" style="width:600px;"><?php echo stripslashes(htmlspecialchars(get_option('s4cjscript',''))); ?></textarea></p>
    421435
    422436<h3 style="color: #cc0000;">Add your own Custom Buttons</h3>
     
    478492</style>
    479493<?php wp_nonce_field('update-options'); ?>
    480 <input type="hidden" name="page_options" value="s4pabovepost,s4pbelowpost,s4pgabovepost,s4pgbelowpost,s4habovepost,s4hbelowpost,s4aabovepost,s4abelowpost,s4_twitter,s4_fblike,s4_plusone,s4_fbshare,s4onpost,s4onpage,s4onhome,s4onarchi,s4iconsize,s4iconalign,s4excludeid,s4_fbsend,s4optimize,s4twtvia,s4excludecat,s4defthumb,s4onexcer,s4fblikelang,s4ccss,s4_linkedin,s4scripthead,s4allscripts,s4dmob,s4cblarge,s4cbsmall,s4_cbtn,s4dispord,s4onexcererr,s4nofbjava,s4nometa,s4analytics,s4vbhide,s4dispvb,s4vbmargin,s4vremove,s4vbavis">
     494<input type="hidden" name="page_options" value="s4pabovepost,s4pbelowpost,s4pgabovepost,s4pgbelowpost,s4habovepost,s4hbelowpost,s4aabovepost,s4abelowpost,s4_twitter,s4_fblike,s4_plusone,s4_fbshare,s4onpost,s4onpage,s4onhome,s4onarchi,s4iconsize,s4iconalign,s4excludeid,s4_fbsend,s4optimize,s4twtvia,s4excludecat,s4defthumb,s4onexcer,s4fblikelang,s4ccss,s4_linkedin,s4scripthead,s4allscripts,s4dmob,s4cblarge,s4cbsmall,s4_cbtn,s4dispord,s4onexcererr,s4nofbjava,s4nometa,s4analytics,s4vbhide,s4dispvb,s4vbmargin,s4vremove,s4vbavis,s4vbmargintop,s4cjscript">
    481495<input type="hidden" name="action" value="update" />
    482496</form>
    483 </td><td width="2%">&nbsp;</td><td width="20%"><b>Follow us on</b><br/><a href="http://twitter.com/techxt" target="_blank"><img src="http://a0.twimg.com/a/1303316982/images/twitter_logo_header.png" /></a><br/><a href="http://facebook.com/techxt" target="_blank"><img src="https://secure-media-sf2p.facebook.com/ads3/creative/pressroom/jpg/b_1234209334_facebook_logo.jpg" height="38px" width="118px"/></a><p></p><b>Feeds and News</b><br /><?php get_feeds_s4() ?>
     497</td><td width="2%">&nbsp;</td><td width="25%"><a href="http://techxt.com/tweetlike_ad" target="_blank"><img src="http://techxt.com/tweetlike_ad.png" /></a><br/><b>Follow us on</b><br/><a href="http://twitter.com/techxt" target="_blank"><img src="http://a0.twimg.com/a/1303316982/images/twitter_logo_header.png" /></a><br/><a href="http://facebook.com/techxt" target="_blank"><img src="https://secure-media-sf2p.facebook.com/ads3/creative/pressroom/jpg/b_1234209334_facebook_logo.jpg" height="38px" width="118px"/></a><p></p><b>Feeds and News</b><br /><?php get_feeds_s4() ?>
    484498<p></p>
    485499<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
     
    499513}
    500514
    501 add_action('wp_footer', 'social4i_foot');
     515add_action('wp_footer', 'social4i_foot',99);
    502516add_action('wp_head', 'social4i_css');
    503517add_filter('the_content', 'disp_social',1);
     
    679693    $tp=' data-layout="button_count" data-width="100" data-height="21" ';
    680694   
    681 $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>';
     695$s4link= '<div class="socialicons s4fblike" style="float:left;margin-right: 10px;">'.$flsc.'<div class="fb-like" data-href="'.$plink.'" data-send="'.$snd.'" '.$tp.' data-show-faces="false"></div></div>';
    682696
    683697$sharelinks.=$s4link;
    684698$btnarr[2]=$s4link;
    685699
    686 $btnarrver[2]='<div class="socialiconsv s4fblikev" ><iframe src="//www.facebook.com/plugins/like.php?href='.$plink.'&amp;send=false&amp;layout=box_count&amp;width=48&amp;show_faces=false&amp;font&amp;colorscheme=light&amp;action=like&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:48px; height:65px;" allowTransparency="true"></iframe></div>';
     700$btnarrver[2]='<div class="socialiconsv s4fblikev" ><iframe src="//www.facebook.com/plugins/like.php?href='.$plink.'&amp;send=false&amp;layout=box_count&amp;width=48&amp;show_faces=false&amp;font&amp;colorscheme=light&amp;action=like&amp;height=65" style="border:none; overflow:hidden; width:48px; height:65px;"></iframe></div>';
    687701}
    688702if(get_option('s4_plusone','1') && $type === FALSE || $type == "s4_plusone"){
    689703if ($size == "large" )$tp="tall"; else $tp="medium";
    690 $s4link='<div class="socialicons s4plusone" style="float:left;margin-right: 10px;">'.$gpsc.'<g:plusone size="'.$tp.'" href="'.$plink.'" count="true"></g:plusone></div>';
     704$s4link='<div class="socialicons s4plusone" style="float:left;margin-right: 10px;">'.$gpsc.'<div class="g-plusone" data-size="'.$tp.'" data-href="'.$plink.'"></div></div>';
    691705$sharelinks.=$s4link;
    692706$btnarr[3]=$s4link;
    693707
    694 $btnarrver[3]='<div class="socialiconsv s4plusonev" >'.$gpsc.'<g:plusone size="tall" href="'.$plink.'" count="true"></g:plusone></div>';
     708$btnarrver[3]='<div class="socialiconsv s4plusonev" >'.$gpsc.'<div class="g-plusone" data-size="tall" data-href="'.$plink.'" ></div></div>';
    695709}
    696710if(get_option( 's4_linkedin', false )&& $type === FALSE || $type == "s4_linkedin"){
     
    702716$btnarrver[4]='<div class="socialiconsv s4linkedinv" >'.$lnsc.'<script type="in/share" data-url="'.$plink.'" data-counter="top"></script></div>';
    703717}
    704 /*if(get_option('s4_fbshare','1') && $type === FALSE || $type == "s4_fbshare"){
     718if(get_option('s4_fbshare','1') && $type === FALSE || $type == "s4_fbshare"){
    705719if ($size == "large" )
    706720{
     
    709723    $cs2='style="position: absolute; bottom: 0pt;"';
    710724} else $tp="button_count";
    711 $s4link= '<div class="socialicons s4fbshare" style="position: relative;'.$cs1.'float:left;margin-right: 10px;"><div class="s4ifbshare" '.$cs2.'><a name="fb_share" type="'.$tp.'" share_url="'.$eplink.'" href="http://www.facebook.com/sharer.php"></a>'.$fssc.'</div></div>';
     725$s4link= '<div class="socialicons s4fbshare" style="position: relative;'.$cs1.'float:left;margin-right: 10px;"><div class="s4ifbshare" '.$cs2.'><div class="fb-share-button" data-href="'.$plink.'" data-width="450" data-type="'.$tp.'"></div>'.$flsc.'</div></div>';
    712726$sharelinks.=$s4link;
    713727$btnarr[5]=$s4link;
    714 }*/
     728
     729$btnarrver[5]='<div class="socialiconsv s4fbsharev" ><div class="fb-share-button" data-href="'.$plink.'" data-width="450" data-type="box_count"></div>'.$flsc.'</div>';
     730}
    715731if(get_option('s4_cbtn', false )==true && $type === FALSE)
    716732{
Note: See TracChangeset for help on using the changeset viewer.