Parse error: syntax error, unexpected T_STRING in ... on line 83
i am trying to embed a twitter widget into my community website. what do i need to change?
Here is the mechanism i am trying to exicute:
/////// Mechanism to Display Twitter or not //////////////////////////
if ($twitter == "") {
$twitter = "";
} else {
$twitter = '<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
version: 2,
type: 'profile',
rpp: 4,
interval: 30000,
width: 250,
height: 300,
theme: {
shell: {
background: '#333333',
color: '#ffffff'
},
tweets: {
background: '#000000',
color: '#ffffff',
links: '#4aed05'
}
},
features: {
scrollbar: false,
loop: false,
live: false,
hashtags: true,
timestamp: true,
avatars: false,
behavior: 'all'
}
}).render().setUser('harborcr').start();
</script>';
}