function get_twitter_widget($team = NULL) { $twitter = get_setting_twitter($team); $echo = sprintf(_('%sFollow us%s on Twitter'), '<a href="http://twitter.com/intent/user?screen_name=' . urlencode($twitter) . '">', '<img src="' . site_url() . 'assets/images/bird_16_blue.png" /></a>'); return '<div class="text">' . $echo . '</div>'; }
<div id="bottombar"> <div class="pagenumber"> <?php echo _('Page') . ' ' . $current_page; ?> </div> <div class="socialbuttons"> <div class="tweet"> <a href="http://twitter.com/share" class="twitter-share-button" data-url="<?php echo $chapter->href(); ?> " data-count="horizontal" data-via="<?php echo get_setting_twitter(); ?> " data-related="<?php echo get_setting_twitter(); ?> ">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> </div> <div class="facebook"> <iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode($chapter->href()); ?> &layout=button_count&show_faces=false&width=90&action=like&font=arial&colorscheme=light&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:95px; height:21px;" allowTransparency="true"></iframe> </div> <div class="googleplus"> <g:plusone size="medium" href="<?php echo $chapter->href(); ?> "></g:plusone> </div>
function get_twitter_widget($team = NULL) { $twitter = get_setting_twitter($team); $echo = "<iframe allowtransparency='true' frameborder='0' scrolling='no' src=//platform.twitter.com/widgets/follow_button.html?screen_name=" . urlencode($twitter) . "&show_count=false&link_color=ffffff&text_color=ffffff' style='width:300px; height:20px; padding-left:10px'></iframe>"; return $echo; }