Created
April 21, 2012 15:20
-
-
Save perezpaya/2437694 to your computer and use it in GitHub Desktop.
Twitter: La cuadrilla
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>La cuadrilla</title> | |
<meta charset="UTF-8"> | |
<meta name="description" content="La Cuadrilla de Twittah!" /> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script> | |
<script type="text/javascript" src="http://glasses-app.com/js/prettify.js"></script> | |
<script type="text/javascript" src="http://glasses-app.com/js/kickstart.js"></script> | |
<link rel="stylesheet" type="text/css" href="http://glasses-app.com/css/kickstart.css" media="all" /> | |
<link rel="stylesheet" type="text/css" href="http://glasses-app.com/style.css" media="all" /> | |
</head> | |
<body> | |
<div id="wrap" class="clearfix" align="center" style="-webkit-border-radius: 15px; -moz-border-radius: 15px;"> | |
<?php | |
$twitters = array( | |
'Mrmangado' => 'Mrmangado', | |
'Álvaro Franco - Objective-C nerd :P' => 'AlvaroFranco7', | |
'Mario Montes el PHPero' => 'mariomnts', | |
'Jezhú González er Fanboy de Güindows Cordobez' => 'susgl', | |
'Ocio el viciocio' => 'ocio46', | |
'Jaime el brooker' => 'JaimeMad', | |
'Alejandro Perezpayá God' => 'alexdev_' | |
); | |
$comillas = '"'; | |
foreach($twitters as $key => $value){ | |
echo "El Twitter de $key es <a href=$comillas ?twitter=$value $comillas>@$value</a> <br>"; | |
} | |
$twitter = $_GET['twitter']; | |
if($twitter <> ''){ | |
echo "<script charset='utf-8' 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: '#ed1d46',color: '#f7f7f7'},tweets: {background: '#ffffff',color: '#1b92bd',links: '#070807'}},features: {scrollbar: false,loop: false,live: false,behavior: 'all'}}).render().setUser('$twitter').start();</script><br>"; | |
echo "Mostrando tweets de <a href='http://twitter.com/#!/$twitter'>@$twitter</a>"; | |
} | |
else{ | |
echo "<br>Selecciona un twitter para cargar"; | |
} | |
if('yes' <> $_GET['code']){ | |
echo '<br><a href="?code=yes">Click para ver el código</a>'; | |
} | |
?> | |
</div> | |
<?php | |
if('yes' == $_GET['code']){ | |
echo '<script src="https://gist.github.com/2437694.js"/></script>'; | |
} | |
?> | |
</body> | |
<html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment