Skip to content

Instantly share code, notes, and snippets.

@Jimmi08
Forked from Floryn/Twitter_menu.php
Created June 14, 2017 10:37
Show Gist options
  • Save Jimmi08/7c6c265389caf7b3f2a19a9c72cf5c90 to your computer and use it in GitHub Desktop.
Save Jimmi08/7c6c265389caf7b3f2a19a9c72cf5c90 to your computer and use it in GitHub Desktop.
twitter menu for e107
<?php
if (!defined('e107_INIT')) { exit; }
$html = <<<END_OF_HTML
<script charset="utf-8" src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
version: 2,
type: 'profile',
rpp: 3,
interval: 30000,
width: 'auto',
height: 250,
theme: {
shell: {
background: '#f5f5f5',
color: '#666666'
},
tweets: {
background: '#fafafa',
color: '#666666',
links: '#666666'
}
},
features: {
scrollbar: false,
loop: false,
live: true,
behavior: 'all'
}
}).render().setUser('GuildWars2').start();
</script>
END_OF_HTML;
$ns->tablerender('Follow us on Twitter', $html);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment