ID); $eplink = urlencode($plink); $ptitle = get_the_title($post->ID); $disps4=0; $abvcnt=0; $belcnt=0; $expostid=str_replace(' ','',get_option('s4excludeid','')); $expostcat=str_replace(' ','',get_option('s4excludecat','')); $clang=get_option( 's4fblikelang', 'en_US' ); if($expostid!=''){ $pids=explode(",",$expostid); if (in_array($post->ID, $pids)) { return $content; } } if($expostcat!=''){ $pcat=explode(",",$expostcat); if (in_category($pcat)) { return $content; } } $twsc=''; $flsc=''; $gpsc=''; $fssc=''; if (get_option( 's4optimize', true ) == true){ $twsc=''; $flsc=''; $gpsc=''; $fssc=''; } if(is_single()&&get_option( 's4onpost', true ) == true){ $disps4=1; if (get_option( 's4pabovepost', true ) == true)$abvcnt=1; if (get_option( 's4pbelowpost', false ) == true)$belcnt=1; } if(is_page()&&get_option( 's4onpage', true ) == true){ $disps4=1; if (get_option( 's4pgabovepost', true ) == true)$abvcnt=1; if (get_option( 's4pgbelowpost', false ) == true)$belcnt=1; } if(is_home()&&get_option( 's4onhome', false ) == true){ $disps4=1; if (get_option( 's4habovepost', true ) == true)$abvcnt=1; if (get_option( 's4hbelowpost', false ) == true)$belcnt=1; } if((is_archive()||is_search())&&get_option( 's4onarchi', false ) == true){ $disps4=1; if (get_option( 's4aabovepost', true ) == true)$abvcnt=1; if (get_option( 's4abelowpost', false ) == true)$belcnt=1; } if ($disps4==1){ $size=get_option( 's4iconsize', 'large' ); $align=get_option( 's4iconalign', 'left' ); if($align=="left")$align="align-left"; if($align=="right")$align="align-right"; if($align=="floatl")$align="float-left"; if($align=="floatr")$align="float-right"; $sharelinks=display_social4i($size,$align); if ($abvcnt==1)$content=$sharelinks.$content; if ($belcnt==1)$content=$content.$sharelinks; } return $content; } function social4i_css() { $clang=get_option( 's4fblikelang', 'en_US' ); echo ''."\n"; if(get_option('s4optimize',true)==true) echo ''; s4_fb_share_thumb(); $ccss=get_option('s4ccss',''); if(trim($ccss!=''))echo ''; } function s4_fb_share_thumb() { $thumb = false; if(function_exists('get_post_thumbnail_id')&&function_exists('wp_get_attachment_image_src')) { $image_id = get_post_thumbnail_id(); $image_url = wp_get_attachment_image_src($image_id,'large'); $thumb = $image_url[0]; } $default_img = get_option('s4defthumb',''); if ( $thumb == false ) $thumb=$default_img; if(is_single() || is_page()) { ?> '; $clang=get_option( 's4fblikelang', 'en_US' ); if(get_option('s4_twitter','1')){ if (get_option( 's4iconsize', 'large' ) == "large" )$tp="vertical"; else $tp="horizontal"; $sharelinks.= '
Tweet
'; } if(get_option('s4_fblike','1')){ if(get_option('s4_fbsend',false)==true)$snd="true"; else $snd="false"; if (get_option( 's4iconsize', 'large' ) == "large" ) $tp=' layout="box_count" width="55" height="62" '; else $tp=' layout="button_count" width="100" height="21" '; $sharelinks.= '
'; } if(get_option('s4_plusone','1')){ if (get_option( 's4iconsize', 'large' ) == "large" )$tp="tall"; else $tp="medium"; $sharelinks.='
'; } if(get_option( 's4_linkedin', false )){ if (get_option( 's4iconsize', 'large' ) == "large" )$tp="top"; else $tp="right"; $sharelinks.='
'; } if(get_option('s4_fbshare','1')){ if (get_option( 's4iconsize', 'large' ) == "large" ) { $tp="box_count"; $cs1="height:60px;"; $cs2='style="position: absolute; bottom: 0pt;"'; } else $tp="button_count"; $sharelinks.= '
Share
'; } $sharelinks.= '
'; echo $sharelinks; } function social4ioptions(){ ?>

Tweet, Like, Share and Google +1 Option Page

Like this Plugin then why not hit the like button. Your like will motivate me to enhance the features of the Plugin :)

And if you are too generous then you can always DONATE by clicking the donation button.
If you like the plugin then write a review of it pointing out the plus and minus points.
Click here for Reference on using shortcode/Function or if you want to report a bug.

Test Buttons

Increase Page Load Speed

Note: After using this option if the buttons do not get displayed properly then uncheck it

>Optimize the script for faster loading

Select Icons to display

> Display Twitter        via @

> Display Facebook Like    > Display Facebook Send

    Select Facebook Like Language

> Display Google +1

> Display Facebook Share

> Display Linkedin

Default Thumbnail URL

Size of Icons

> >

Alignment

> > > >

Where to Display

> Display on Posts

> Display Above Content

>Display Below Content

>Display on Pages

> Display Above Content

>Display Below Content

>Display on Home Page

> Display Above Content

>Display Below Content

>Display on Archive Pages(Categories, Tages, Author etc.)

> Display Above Content

>Display Below Content

>Display on Excerpts

Don't display on Posts/Pages

Enter the ID's of those Pages/Posts separated by comma. e.g 13,5,87

Don't display on Category

Enter the ID's of those Categories separated by comma. e.g 131,45,817

Insert Custom CSS

Your theme should have Call to wp_head() function

 Follow us on

Feeds and News


Consider a Donation and remember $X is always better than $0
get_item_quantity(5); $rss1 = $rss->get_items(0, $rss5); } ?> ID); $eplink = urlencode($plink); $ptitle = get_the_title($post->ID); $eptitle=str_replace(array(">","<"),"",$ptitle); $via=get_option('s4twtvia',''); $clang=get_option( 's4fblikelang', 'en_US' ); $twsc=''; $flsc=''; $gpsc=''; $fssc=''; $lnsc=''; if (get_option( 's4optimize', true ) == true){ $twsc=''; $flsc=''; $gpsc=''; $fssc=''; $lnsc=''; } if ($size == "large" ){ if(get_option('s4_fbsend',false)==true) $css1="height:82px;"; else $css1="height:69px;"; } else $css1="height:29px;"; $css2=$css1; if ($align == "float-right" ){$css2.="float: right;";$css1.="float: right;";} if ($align == "float-left" ){$css2.="float: left;";$css1.="float: left;";} if ($align == "align-left" )$css1.="float: left;"; if ($align == "align-right" )$css1.="float: right;"; $sharelinks='
'; if(get_option('s4_twitter','1') && $type === FALSE || $type == "s4_twitter"){ if ($size == "large" )$tp="vertical"; else $tp="horizontal"; $sharelinks.= ''; } if(get_option('s4_fblike','1') && $type === FALSE || $type == "s4_fblike" || $type == "s4_fbsend"){ if(get_option('s4_fbsend',false)==true || $type == "s4_fbsend")$snd="true"; else $snd="false"; if ($size == "large" ) $tp=' layout="box_count" width="55" height="62" '; else $tp=' layout="button_count" width="100" height="21" '; $sharelinks.= ''; } if(get_option('s4_plusone','1') && $type === FALSE || $type == "s4_plusone"){ if ($size == "large" )$tp="tall"; else $tp="medium"; $sharelinks.=''; } if(get_option( 's4_linkedin', false )&& $type === FALSE || $type == "s4_linkedin"){ if ($size == "large" )$tp="top"; else $tp="right"; $sharelinks.=''; } if(get_option('s4_fbshare','1') && $type === FALSE || $type == "s4_fbshare"){ if ($size == "large" ) { $tp="box_count"; $cs1="height: 60px;width:61px;"; $cs2='style="position: absolute; bottom: 0pt;"'; } else $tp="button_count"; $sharelinks.= ''; } $sharelinks.= '
'; return $sharelinks; } //Geilt - Alexander Conroy geilt@esotech.org http://www.esotech.org and http://www.geilt.com //Added: $type: //s4_plusone s4_fbshare,s4_fblike, s4_twitter, s4_fbsend function social4i_shortcode($atts){ extract(shortcode_atts( array('size' => 'large','align'=>'align-left', 'type' => FALSE), $atts )); $ss=display_social4i($size,$align, $type); return $ss; } add_shortcode( 'social4i', 'social4i_shortcode' ); function s4_lang_disp() { $alllang=array("Catalan|ca_ES","Czech|cs_CZ","Welsh|cy_GB","Danish|da_DK","German|de_DE","Basque|eu_ES","English (Pirate)|en_PI","English (Upside Down)|en_UD","Cherokee|ck_US","English (US)|en_US","Spanish|es_LA","Spanish (Chile)|es_CL","Spanish (Colombia)|es_CO","Spanish (Spain)|es_ES","Spanish (Mexico)|es_MX","Spanish (Venezuela)|es_VE","Finnish (test)|fb_FI","Finnish|fi_FI","French (France)|fr_FR","Galician|gl_ES","Hungarian|hu_HU","Italian|it_IT","Japanese|ja_JP","Korean|ko_KR","Norwegian (bokmal)|nb_NO","Norwegian (nynorsk)|nn_NO","Dutch|nl_NL","Polish|pl_PL","Portuguese (Brazil)|pt_BR","Portuguese (Portugal)|pt_PT","Romanian|ro_RO","Russian|ru_RU","Slovak|sk_SK","Slovenian|sl_SI","Swedish|sv_SE","Thai|th_TH","Turkish|tr_TR","Kurdish|ku_TR","Simplified Chinese (China)|zh_CN","Traditional Chinese (Hong Kong)|zh_HK","Traditional Chinese (Taiwan)|zh_TW","Leet Speak|fb_LT","Afrikaans|af_ZA","Albanian|sq_AL","Armenian|hy_AM","Azeri|az_AZ","Belarusian|be_BY","Bengali|bn_IN","Bosnian|bs_BA","Bulgarian|bg_BG","Croatian|hr_HR","Dutch (Belgie)|nl_BE","English (UK)|en_GB","Esperanto|eo_EO","Estonian|et_EE","Faroese|fo_FO","French (Canada)|fr_CA","Georgian|ka_GE","Greek|el_GR","Gujarati|gu_IN","Hindi|hi_IN","Icelandic|is_IS","Indonesian|id_ID","Irish|ga_IE","Javanese|jv_ID","Kannada|kn_IN","Kazakh|kk_KZ","Latin|la_VA","Latvian|lv_LV","Limburgish|li_NL","Lithuanian|lt_LT","Macedonian|mk_MK","Malagasy|mg_MG","Malay|ms_MY","Maltese|mt_MT","Marathi|mr_IN","Mongolian|mn_MN","Nepali|ne_NP","Punjabi|pa_IN","Romansh|rm_CH","Sanskrit|sa_IN","Serbian|sr_RS","Somali|so_SO","Swahili|sw_KE","Filipino|tl_PH","Tamil|ta_IN","Tatar|tt_RU","Telugu|te_IN","Malayalam|ml_IN","Ukrainian|uk_UA","Uzbek|uz_UZ","Vietnamese|vi_VN","Xhosa|xh_ZA","Zulu|zu_ZA","Khmer|km_KH","Tajik|tg_TJ","Arabic|ar_AR","Hebrew|he_IL","Urdu|ur_PK","Persian|fa_IR","Syriac|sy_SY","Yiddish|yi_DE","Guarani|gn_PY","Quechua|qu_PE","Aymara|ay_BO","Northern Sami|se_NO","Pashto|ps_AF","Klingon|tl_ST"); echo ''; } ?>