Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

PageLines PlatformPro Header Twitter Bar Modificaton

By: a guest on Nov 19th, 2010  |  syntax: PHP  |  size: 0.87 KB  |  views: 198  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. add_action('pagelines_before_branding_icons', 'twitter_spot');
  2.  
  3. function twitter_spot() {
  4.         if(pagelines('twittername') ):?>
  5.                         <div class="tbubble">
  6.                                 <?php if(function_exists('twitter_messages')):?>
  7.                                         <span class="twitter">
  8.                                                  "<?php twitter_messages(pagelines('twittername'), 1, false, false, '', false, false, false); ?>" &mdash;&nbsp;<a class="twitteraccount" href="http://www.twitter.com/<?php echo pagelines('twittername');?>"><?php echo pagelines('twittername');?></a>
  9.                                         </span>
  10.                                 <?php else:?>
  11.                                         <span class="twitter"><?php _e('Please install and activate the "Twitter for WordPress" plugin to use this section.', 'pagelines');?></span>
  12.                                 <?php endif;?>
  13.                         </div>
  14.                 <?php else:?>
  15.                         <div class="tbubble">
  16.                         <?php _e('Set your Twitter account name in your settings to use the TwitterBar Section.', 'pagelines');?>
  17.                         </div>
  18.                 <?php endif;?>
  19.         <?php }