'.$relative.' .sharepost{clear:both;width:100%;'.(get_option('sharepost_button_send') ? '' : 'overflow:hidden;').'margin:0;padding:0;} .sharepost *{display:inline-block;vertical-align:top !important;} .sharepost li{display:'.$display.';max-height:23px;min-height:20px;min-width:30px;max-width:200px;vertical-align:top;overflow:hidden;padding:5px;margin:0 20px 0 0;list-style-type:none;} .sharepost iframe,.sharepost object{overflow:hidden;} .sharepost a{color:transparent;} .sharepost .spdelicious a.delicious-button{color:#333;} .sharepost .splike iframe,.sharepost .splike object{border:none;overflow:hidden;width:'.(get_option('sharepost_like_width')>50 ? get_option('sharepost_like_width') : '80').'px;height:25px;'.(get_option('sharepost_0_likes')==1 ? 'background:transparent url('.get_bloginfo('wpurl').'/wp-content/plugins/share-post/like.png) no-repeat 48px 0;' : '').'} .sharepost .splink iframe,.sharepost .splink object{border:none;overflow:hidden;width:80px;height:20px;} .sharepost .spreddit iframe,.sharepost .spreddit object{width:120px;height:22px;} .sharepost .spretweet{width:91px;} .sharepost .spretweet iframe,.sharepost .spretweet object{width:110px;height:22px;} .sharepost .spsend{overflow:visible;} .sharepost .spstumble iframe,.sharepost .spstumble object{border:none;overflow:hidden;width:74px;height:18px;} .sharepost .spshare .fb_share_count_nub_right{background:transparent url('.get_bloginfo('wpurl').'/wp-content/plugins/share-post/share.png) no-repeat right 5px !important;} .sharepost .sptweet iframe,.sharepost .sptweet object{width:120px;height:22px;} .sharepost .sptweet{width:91px;} .sharepost .spybuzz a{max-width:140px;} '.get_option('sharepost_styles').' '; // Delicious requires JQuery if(get_option('sharepost_button_delicious')) wp_enqueue_script("jquery"); } function sharepost_footer(){ if(!sharepost_check()){ if(get_option('sharepost_thanks')) echo ' Sharing Buttons by Linksku'; return; } if(get_option('sharepost_thanks')) echo ' Sharing Buttons by Linksku'; echo ''; } function sharepost_buttons($content=''){ if(!sharepost_check())return $content; if(get_option('sharepost_cloak') && sharepost_bot() && !is_user_logged_in()){ if(get_option('sharepost_template')){ echo 'Social Buttons by Linksku - Share links online'; return; } else { return 'Social Buttons by Linksku'.$content; } } global $is_IE,$is_chrome,$is_windows; $buttons = array( 'addthis' => (intval(get_option('sharepost_button_addthis'))>0 ? get_option('sharepost_button_addthis') : false ), 'buzz' => (intval(get_option('sharepost_button_buzz'))>0 ? get_option('sharepost_button_buzz') : false ), 'delicious' => (intval(get_option('sharepost_button_delicious'))>0 ? get_option('sharepost_button_delicious') : false ), 'digg' => (intval(get_option('sharepost_button_digg'))>0 ? get_option('sharepost_button_digg') : false ), 'like' => (intval(get_option('sharepost_button_like'))>0 ? get_option('sharepost_button_like') : false ), 'link' => (intval(get_option('sharepost_button_link'))>0 ? get_option('sharepost_button_link') : false ), 'linkedin' => (intval(get_option('sharepost_button_linkedin'))>0 ? get_option('sharepost_button_linkedin') : false ), 'reddit' => (intval(get_option('sharepost_button_reddit'))>0 ? get_option('sharepost_button_reddit') : false ), 'retweet' => (intval(get_option('sharepost_button_retweet'))>0 ? get_option('sharepost_button_retweet') : false ), 'send' => (intval(get_option('sharepost_button_send'))>0 ? get_option('sharepost_button_send') : false ), 'share' => (intval(get_option('sharepost_button_share'))>0 ? get_option('sharepost_button_share') : false ), 'sharethis' => (intval(get_option('sharepost_button_sharethis'))>0 ? get_option('sharepost_button_sharethis') : false ), 'stumble' => (intval(get_option('sharepost_button_stumble'))>0 ? get_option('sharepost_button_stumble') : false ), 'tweet' => (intval(get_option('sharepost_button_tweet'))>0 ? get_option('sharepost_button_tweet') : false ), 'ybuzz' => (intval(get_option('sharepost_button_ybuzz'))>0 ? get_option('sharepost_button_ybuzz') : false ) ); $spbuttons = array(); $output='
'; if(get_option('sharepost_template')){ echo $output; return; } if(get_option('sharepost_display_where')=='top') return $output.$content; return $content.$output; } add_action('wp_footer','sharepost_footer',1); add_action('wp_head','sharepost_header'); if(!get_option('sharepost_template')) add_filter('the_content','sharepost_buttons'); ?>