Usage of new TwitterApi
authorBastian Bringenberg <spam@bastian-bringenberg.de>
Sun, 6 Oct 2013 20:15:21 +0000 (22:15 +0200)
committerBastian Bringenberg <spam@bastian-bringenberg.de>
Sun, 6 Oct 2013 20:15:21 +0000 (22:15 +0200)
Change-Id: Ib94c7a033e9ed11c3b0dd2ee7cf9227a34502b08

static/twitterTheme.html

index 5d22fe4..b254857 100644 (file)
@@ -1,30 +1,4 @@
 <div id="twitter">
-    <script charset="utf-8" src="http://widgets.twimg.com/j/2/widget.js"></script>
-    <script>
-        new TWTR.Widget({
-            version: 2,
-            type: 'profile',
-            rpp: 5,
-            interval: 30000,
-            width: 230,
-            height: 450,
-            theme: {
-                shell: {
-                    background: '#333333',
-                    color: '#ffffff'
-                },
-                tweets: {
-                    background: '#000000',
-                    color: '#ffffff',
-                    links: '#4aed05'
-                }
-            },
-            features: {
-                scrollbar: true,
-                loop: false,
-                live: true,
-                behavior: 'all'
-            }
-        }).render().setUser('typo3server').start();
-    </script>
-</div>
\ No newline at end of file
+       <a class="twitter-timeline" href="https://twitter.com/TYPO3server" data-widget-id="386944087644835840">Tweets von @TYPO3server</a>
+       <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+</div>