
PageLines PlatformPro Header Twitter Bar Modificaton
By: a guest on
Nov 19th, 2010 | syntax:
PHP | size: 0.87 KB | hits: 185 | expires: Never
add_action('pagelines_before_branding_icons', 'twitter_spot');
function twitter_spot() {
if(pagelines('twittername') ):?>
<div class="tbubble">
<?php if(function_exists('twitter_messages')):?>
<span class="twitter">
"<?php twitter_messages(pagelines('twittername'), 1, false, false, '', false, false, false); ?>" — <a class="twitteraccount" href="http://www.twitter.com/<?php echo pagelines('twittername');?>"><?php echo pagelines('twittername');?></a>
</span>
<?php else:?>
<span class="twitter"><?php _e('Please install and activate the "Twitter for WordPress" plugin to use this section.', 'pagelines');?></span>
<?php endif;?>
</div>
<?php else:?>
<div class="tbubble">
<?php _e('Set your Twitter account name in your settings to use the TwitterBar Section.', 'pagelines');?>
</div>
<?php endif;?>
<?php }