website diff index.php @ rev 1171

Fix Twitter widget. add testsuite.cgi to check if ok to move the main index to CGI and have language content negociation
author Christophe Lincoln <pankso@slitaz.org>
date Wed Jan 08 09:37:25 2014 +0100 (2014-01-08)
parents 64894689b692
children 3d26c92b1820
line diff
     1.1 --- a/index.php	Mon Mar 25 23:01:14 2013 +0100
     1.2 +++ b/index.php	Wed Jan 08 09:37:25 2014 +0100
     1.3 @@ -129,41 +129,9 @@
     1.4  	<?php get_feed_blog("blog.xml"); ?>
     1.5  </div>
     1.6  
     1.7 -<h2>Latest Tweet</h2>
     1.8 -
     1.9  <div id="twitter">
    1.10 -	<script type="text/javascript"
    1.11 -		src="http://widgets.twimg.com/j/2/widget.js"></script>
    1.12 -	<script type="text/javascript">
    1.13 -	new TWTR.Widget({
    1.14 -	  version: 2,
    1.15 -	  type: 'profile',
    1.16 -	  rpp: 4,
    1.17 -	  interval: 6000,
    1.18 -	  width: '100%',
    1.19 -	  height: 200,
    1.20 -	  theme: {
    1.21 -	    shell: {
    1.22 -	      background: '#efefef',
    1.23 -	      color: '#000000'
    1.24 -	    },
    1.25 -	    tweets: {
    1.26 -	      background: '#ffffff',
    1.27 -	      color: '#000000',
    1.28 -	      links: '#3a4885'
    1.29 -	    }
    1.30 -	  },
    1.31 -	  features: {
    1.32 -	    scrollbar: false,
    1.33 -	    loop: false,
    1.34 -	    live: false,
    1.35 -	    hashtags: true,
    1.36 -	    timestamp: true,
    1.37 -	    avatars: false,
    1.38 -	    behavior: 'all'
    1.39 -	  }
    1.40 -	}).render().setUser('slitaz').start();
    1.41 -	</script>
    1.42 +<a class="twitter-timeline"  href="https://twitter.com/slitaz"  data-widget-id="420830244551938048">Tweets by @slitaz</a>
    1.43 +    <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>
    1.44  </div>
    1.45  
    1.46  <h2>Spread SliTaz</h2>