Skip to content

Instantly share code, notes, and snippets.

@hlashbrooke
Last active December 19, 2015 12:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hlashbrooke/5955479 to your computer and use it in GitHub Desktop.
Save hlashbrooke/5955479 to your computer and use it in GitHub Desktop.
WooThemes Tweets widget
<?php if ( $woo_options['woo_twitter'] ) { ?>
<div id="twitter"<?php if ( $woo_options['woo_sub'] <> "true" ) echo ' class="twitter-if"'; ?>>
<a href="http://www.twitter.com/<?php echo urlencode( $woo_options['woo_twitter'] ); ?>" title="<?php esc_attr_e( 'Follow us on Twitter', 'woothemes' ); ?>" class="fl" ><img src="<?php bloginfo('template_directory'); ?>/images/ico-twitter.png" alt="" /></a>
<?php if ( class_exists( 'WooDojo_Widget_Tweets' ) ) {
the_widget( 'WooDojo_Widget_Tweets', array( 'twitter_handle' => esc_attr( $woo_options['woo_twitter'] ), 'limit' => 1, array( 'before_widget' => '<div id="twitter_update_list" class="twitter_container">', 'after_widget' => '</div>' ) );
} ?>
</div>
<?php } ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment