website 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 | 4eca48d2522a |
children | 3d26c92b1820 |
files | index.php slitaz.css testsuite.cgi |
line diff
1.1 --- a/index.php Sat Jan 04 13:32:56 2014 +0000 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>
2.1 --- a/slitaz.css Sat Jan 04 13:32:56 2014 +0000 2.2 +++ b/slitaz.css Wed Jan 08 09:37:25 2014 +0100 2.3 @@ -168,7 +168,7 @@ 2.4 .news a, .feed-grid a { text-decoration: none; } 2.5 .news p a { text-decoration: underline; } 2.6 .news p a:hover { text-decoration: none; } 2.7 -#twitter { margin: 20px 0; } 2.8 +#twitter { margin: 20px 0; text-align: center; } 2.9 #gallery { text-align: center; } 2.10 2.11 #sponsor {
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/testsuite.cgi Wed Jan 08 09:37:25 2014 +0100 3.3 @@ -0,0 +1,23 @@ 3.4 +#!/bin/sh 3.5 +# 3.6 +. /usr/lib/slitaz/httphelper 3.7 +header 3.8 + 3.9 +cat << EOT 3.10 +<!DOCTYPE html> 3.11 +<html xmlns="http://www.w3.org/1999/xhtml"> 3.12 +<head> 3.13 + <title>SliTaz.org - CGI Testsuite</title> 3.14 + <meta charset="utf-8" /> 3.15 +</head> 3.16 +<body> 3.17 +<pre> 3.18 +EOT 3.19 + 3.20 +env 3.21 + 3.22 +cat << EOT 3.23 +</pre> 3.24 +</body> 3.25 +</html> 3.26 +EOT