Widget:Twitter

From 2013.igem.org

(Difference between revisions)
(Created page with "<includeonly><!--{counter name="twittercounter" assign="twitblogincluded"}--><!--{if $twitblogincluded eq 1}--><script src="http://widgets.twimg.com/j/2/widget.js"></script><!--{...")
(Blanked the page)
 
Line 1: Line 1:
-
<includeonly><!--{counter name="twittercounter" assign="twitblogincluded"}--><!--{if $twitblogincluded eq 1}--><script src="http://widgets.twimg.com/j/2/widget.js"></script><!--{/if}-->
+
 
-
<script>
+
-
new TWTR.Widget({
+
-
  version: 2,
+
-
  type: 'profile',
+
-
  rpp: '<!--{$count|escape:'quotes'|default:5}-->',
+
-
  interval: 6000,
+
-
  width: <!--{if $width eq 'auto'}-->'auto'<!--{else}--><!--{$width|escape:'quotes'|default:250|validate:int}--><!--{/if}-->,
+
-
  height: <!--{$height|escape:'quotes'|default:300|validate:int}-->,
+
-
  theme: {
+
-
    shell: {
+
-
      background: '<!--{$shell.background|escape:'quotes'|default:'#333333'}-->',
+
-
      color: '<!--{$shell.color|escape:'quotes'|default:'#ffffff'}-->'
+
-
    },
+
-
    tweets: {
+
-
      background: '<!--{$tweets.background|escape:'quotes'|default:'#000000'}-->',
+
-
      color: '<!--{$tweets.color|escape:'quotes'|default:'#ffffff'}-->',
+
-
      links: '<!--{$tweets.links|escape:'quotes'|default:'#4aed05'}-->'
+
-
    }
+
-
  },
+
-
  features: {
+
-
    scrollbar: <!--{if isset($scrollbar)}-->true<!--{else}-->false<!--{/if}-->,
+
-
    loop: false,
+
-
    live: <!--{if isset($poll)}-->true<!--{else}-->false<!--{/if}-->,
+
-
    hashtags: true,
+
-
    timestamp: true,
+
-
    avatars: false,
+
-
    behavior: 'all'
+
-
  }
+
-
}).render().setUser('<!--{$user|escape:'quotes'}-->').start();
+
-
</script></includeonly>
+

Latest revision as of 10:18, 6 May 2013