function linkSharesGen($permlink, $posttitle) { $themeurl = get_bloginfo('template_url'); $tinyurl = getTinyUrl($permlink); $urlencde = urlencode($permlink); $temp = "<ul>"; $temp .= '<li><a class="delicious-sharebox" style="opacity:0.1;" href="http://del.icio.us/post?url=' . $permlink . '"><img src="' . $themeurl . '/socialicons/16/delicious.png"/></a>'; $temp .= '<li><a class="facebook-sharebox" style="opacity:0.1;" href="http://www.facebook.com/sharer.php?u=' . $permlink . '" ><img src="' . $themeurl . '/socialicons/16/facebook.png"/></a></li>'; $temp .= '<li><a class="stumbleupon-sharebox" style="opacity:0.1;" href="http://www.stumbleupon.com/submit?url=' . $permlink . '" ><img src="' . $themeurl . '/socialicons/16/stumbleupon.png"/></a></li>'; $temp .= '<li><a class="twitter-sharebox" style="opacity:0.1;" href="http://twitter.com/home?status=' . $posttitle . ' - ' . $tinyurl . ' @redesigndavid" ><img src="' . $themeurl . '/socialicons/16/twitter.png"/></a></li>'; $temp .= '<li><a class="tumblr-sharebox" style="opacity:0.1;" href="http://www.tumblr.com/share?v=3&u=' . $urlencde . '&t=' . $posttitle . '" ><img src="' . $themeurl . '/socialicons/16/tumblr.png"/></a></li>'; $temp .= '<li><a class="email-sharebox" style="opacity:0.1;" href="mailto:?subject=' . $posttile . '&body=' . $urlencde . '" ><img src="' . $themeurl . '/socialicons/16/email.png"/></a></li>'; $temp = $temp . ' </ul>'; return $temp; }
function section_template() { global $post; ?> <div class="post-footer"> <div class="left"> <?php e_pagelines('post_footer_social_text', ''); ?> </div> <div class="right"> <?php $upermalink = urlencode(get_permalink()); $utitle = urlencode(get_the_title()); ?> <?php if (pagelines_option('share_facebook')) { ?> <a href="http://www.facebook.com/sharer.php?u=<?php echo get_permalink(); ?> &t=<?php echo urlencode(strip_tags(get_the_title($post->ID))); ?> " title="<?php _e('Share on', 'pagelines'); ?> Facebook" rel="nofollow" target="_blank"><img src="<?php echo CORE_IMAGES; ?> /ico-facebook.png" alt="Facebook" /></a> <?php } ?> <?php if (pagelines_option('share_twitter')) { ?> <?php $title = get_the_title($post->ID); ?> <a href="http://twitter.com/home?status=<?php $turl = getTinyUrl(get_permalink($post->ID)); echo $turl; ?> " title="<?php _e('Share on', 'pagelines'); ?> Twitter" rel="nofollow" target="_blank"><img src="<?php echo CORE_IMAGES; ?> /ico-twitter.png" alt="Twitter" /></a> <?php } ?> <?php if (pagelines_option('share_delicious')) { ?> <a href="http://del.icio.us/post?url=<?php the_permalink(); ?> &title=<?php echo urlencode(strip_tags(get_the_title($post->ID))); ?> " title="<?php _e('Share on', 'pagelines'); ?> Delicious" rel="nofollow" target="_blank"><img src="<?php echo CORE_IMAGES; ?> /ico-del.png" alt="Delicious" /></a> <?php } ?> <?php if (pagelines_option('share_mixx')) { ?> <a href="http://www.mixx.com/submit?page_url=<?php the_permalink(); ?> " title="<?php _e('Share on', 'pagelines'); ?> Mixx" rel="nofollow" target="_blank"><img src="<?php echo CORE_IMAGES; ?> /ico-mixx.png" alt="Mixx" /></a> <?php } ?> <?php if (pagelines_option('share_stumbleupon')) { ?> <a href="http://www.stumbleupon.com/submit?url=<?php the_permalink(); ?> &title=<?php echo urlencode(strip_tags(get_the_title($post->ID))); ?> " title="<?php _e('Share on', 'pagelines'); ?> StumbleUpon" rel="nofollow" target="_blank"><img src="<?php echo CORE_IMAGES; ?> /ico-stumble.png" alt="StumbleUpon" /></a> <?php } ?> <?php if (pagelines_option('share_digg')) { ?> <a href="http://digg.com/submit?phase=2&url=<?php the_permalink(); ?> &title=<?php echo urlencode(strip_tags(get_the_title($post->ID))); ?> " title="<?php _e('Share on', 'pagelines'); ?> Digg" rel="nofollow" target="_blank"><img src="<?php echo CORE_IMAGES; ?> /ico-digg.png" alt="Digg" /></a> <?php } ?> </div> <div class="clear"></div> </div> <?php }
function woo_short_url($url) { _deprecated_function(__FUNCTION__, '6.0.0', __('Shortlinks feature in WooDojo.', 'woothemes')); $service = get_option('woo_url_shorten'); $bitlyapilogin = get_option('woo_bitly_api_login'); $bitlyapikey = get_option('woo_bitly_api_key'); if (isset($service)) { switch ($service) { case 'TinyURL': $shorturl = getTinyUrl($url); break; case 'Bit.ly': if (isset($bitlyapilogin) && isset($bitlyapikey) && $bitlyapilogin != '' && $bitlyapikey != '') { $shorturl = make_bitly_url($url, $bitlyapilogin, $bitlyapikey, 'json'); } else { $shorturl = getTinyUrl($url); } break; case 'Off': $shorturl = $url; break; default: $shorturl = $url; break; } } else { $shorturl = $url; } return $shorturl; }
</p> <div class="post_share">—<br /><a href="javascript: void(0);" class="sharethis">Share this post</a> <ul class="sharelist"> <li><a href="http://facebook.com/share.php?u=<?php the_permalink(); ?> &amp;t=<?php echo urlencode(the_title('', '', false)); ?> " target="_blank">Facebook</a> </li> <li><a href="http://twitter.com/home?status=<?php the_title(); ?> <?php echo getTinyUrl(get_permalink($post->ID)); ?> " target="_blank">Twitter</a></li> <li><a href="http://digg.com/submit?phase=2&amp;url=<?php the_permalink(); ?> &amp;title=<?php echo urlencode(the_title('', '', false)); ?> " target="_blank">Digg</a> </li> <li><a href="http://stumbleupon.com/submit?url=<?php the_permalink(); ?> &amp;title=<?php echo urlencode(the_title('', '', false));
function woo_short_url($url) { $service = get_option('woo_url_shorten'); $bitlyapilogin = get_option('woo_bitly_api_login'); $bitlyapikey = get_option('woo_bitly_api_key'); if (isset($service)) { switch ($service) { case 'TinyURL': $shorturl = getTinyUrl($url); break; case 'Bit.ly': if (isset($bitlyapilogin) && isset($bitlyapikey) && $bitlyapilogin != '' && $bitlyapikey != '') { $shorturl = make_bitly_url($url, $bitlyapilogin, $bitlyapikey, 'json'); } else { $shorturl = getTinyUrl($url); } break; case 'Off': $shorturl = $url; break; default: $shorturl = $url; break; } } else { $shorturl = $url; } return $shorturl; }
var tinyUrl = "<?php echo getTinyUrl(get_permalink(get_the_ID())); ?> "; var twtLink = 'http://twitter.com/home?status='+encodeURIComponent(twtTitle + ' ' + tinyUrl + " #salf "+ "<?php echo $tweet_post; ?> "); document.write('<a class="twitter" href="'+twtLink+'" target="_blank"'+'><img src="<?php echo bloginfo('template_url'); ?> /style/images/social/twitter.png" border="0" alt="Tweet This!" /'+'><'+'/a>'); </script> <noscript><a class="twitter" href="http://twitter.com/home?status=<?php echo getTinyUrl(get_permalink(get_the_ID())); ?> " target="_blank"'+'><img src="<?php echo bloginfo('template_url'); ?> /style/images/social/twitter.png" border="0" alt="Tweet This!" /></a></noscript> <div class="facebook-connect"> <a href="http://facebook.com" target="_blank" class="facebook"><img src="<?php echo bloginfo('template_url'); ?> /style/images/social/facebook.png" width="16" height="16" alt="Facebook" /></a> <div id="fb-root"></div> <script type="text/javascript"> window.fbAsyncInit = function() { FB.init({appId: '130496703654288', status: true, cookie: true,