--- a/.hgignore Tue May 24 16:08:11 2011 +0200
+++ b/.hgignore Wed May 25 02:44:32 2011 +0200
@@ -30,3 +30,6 @@
syntax: regexp
^web/config\.php$
^web/\.htaccess$
+
+syntax: regexp
+^web/CPV/config\.php$
\ No newline at end of file
--- a/web/.htaccess Tue May 24 16:08:11 2011 +0200
+++ b/web/.htaccess Wed May 25 02:44:32 2011 +0200
@@ -1,1 +1,1 @@
-php_value include_path ".:/Users/cybunk/WORK/IRI/LIVETWEET/02_REA/MERCURIAL/web/lib/:/Users/cybunk/WORK/IRI/LIVETWEET/02_REA/MERCURIAL/web/"
+php_value include_path ".:/Users/ymh/dev/workspace/tweet_live/web/lib/:/Users/ymh/dev/workspace/tweet_live/web/"
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/web/CPV/callback.php Wed May 25 02:44:32 2011 +0200
@@ -0,0 +1,34 @@
+<?php
+
+/**
+ * include some common code (like we did in the 90s)
+ * People still do this? ;)
+ */
+include_once './common.php';
+
+/**
+ * Someone's knocking at the door using the Callback URL - if they have
+ * some GET data, it might mean that someone's just approved OAuth access
+ * to their account, so we better exchange our current Request Token
+ * for a newly authorised Access Token. There is an outstanding Request Token
+ * to exchange, right?
+ */
+if (!empty($_GET) && isset($_SESSION['TWITTER_REQUEST_TOKEN'])) {
+ $token = $consumer->getAccessToken($_GET, unserialize($_SESSION['TWITTER_REQUEST_TOKEN']));
+ $_SESSION['TWITTER_ACCESS_TOKEN'] = serialize($token);
+
+ /**
+ * Now that we have an Access Token, we can discard the Request Token
+ */
+ $_SESSION['TWITTER_REQUEST_TOKEN'] = null;
+
+ /**
+ * With Access Token in hand, let's try accessing the client again
+ */
+ header('Location: ' . URL_ROOT );
+} else {
+ /**
+ * Mistaken request? Some malfeasant trying something?
+ */
+ exit('Invalid callback request. Oops. Sorry.');
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/web/CPV/clear.php Wed May 25 02:44:32 2011 +0200
@@ -0,0 +1,17 @@
+<?php
+
+/**
+ * include some common code (like we did in the 90s)
+ * People still do this? ;)
+ */
+include_once './common.php';
+
+/**
+ * Clear the Access Token to force the OAuth protocol to rerun
+ */
+$_SESSION['TWITTER_ACCESS_TOKEN'] = null;
+
+/**
+ * Redirect back to index and the protocol legs should run once again
+ */
+header('Location: ' . URL_ROOT);
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/web/CPV/client.php Wed May 25 02:44:32 2011 +0200
@@ -0,0 +1,404 @@
+<?php
+
+/**
+ * include some common code (like we did in the 90s)
+ * People still do this? ;)
+ */
+include_once './common.php';
+
+
+
+/**
+ * Do we already have a valid Access Token or need to go get one?
+ */
+if (!isset($_SESSION['TWITTER_ACCESS_TOKEN']) && isset($_GET['CONNECT']) ) {
+ /**
+ * Guess we need to go get one!
+ */
+ $token = $consumer->getRequestToken();
+ $_SESSION['TWITTER_REQUEST_TOKEN'] = serialize($token);
+
+ /**
+ * Now redirect user to Twitter site so they can log in and
+ * approve our access
+ */
+ $consumer->redirect();
+}
+
+
+?>
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html4/strict.dtd">
+
+<html lang="<?php echo($actual); ?>">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <title>RSLN - Live Video and Annotation</title>
+ <meta http-equiv="X-UA-Compatible" content="IE=8" />
+
+ <!-- Framework CSS -->
+ <link rel="stylesheet" href="../res/blueprint/screen.css" type="text/css" media="screen, projection">
+ <link rel="stylesheet" href="../res/blueprint/print.css" type="text/css" media="print">
+ <!--[if lt IE 8]><link rel="stylesheet" href="blueprint/ie.css" type="text/css" media="screen, projection"><![endif]-->
+ <link rel="stylesheet" href="../res/blueprint/plugins/fancy-type/screen.css" type="text/css" media="screen, projection">
+ <link rel="stylesheet" href="../res/css/custom.css" type="text/css" media="screen, projection">
+ <link rel="stylesheet" type="text/css" href="../res/jquery.fancybox/fancybox/jquery.fancybox-1.3.4.css" media="screen">
+ <link rel="stylesheet" type="text/css" href="../res/niceforms/niceforms-custom.css" media="screen" >
+
+ <!-- JAVASCRIPT -->
+ <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
+ <script type="text/javascript" src="../res/jquery.fancybox/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
+ <script type="text/javascript" src="../res/metadataplayer/res/js/jquery.tools.min.js"></script>
+ <script type="text/javascript" src="../res/niceforms/niceforms.js"></script>
+ <script src="http://widgets.twimg.com/j/2/widget.js"></script>
+
+ <!-- FONT -->
+ <link href='http://fonts.googleapis.com/css?family=PT+Sans+Narrow&subset=latin' rel='stylesheet' type='text/css'>
+ <link href='http://fonts.googleapis.com/css?family=PT+Sans&subset=latin' rel='stylesheet' type='text/css'>
+ <link href='http://fonts.googleapis.com/css?family=Geo&subset=latin' rel='stylesheet' type='text/css'>
+
+ <script type="text/javascript">
+ $(document).ready(function() {
+
+ doTimer();
+ //$("txt").hide();
+ $(".loginbutton").click(function() {
+ document.location.href="<?php URL_ROOT ?>?CONNECT=true";
+ });
+ $("#IDENTIFIER").click(function() {
+ document.location.href="<?php URL_ROOT ?>?CONNECT=true";
+ });
+
+ $("#messageSuccess").hide();
+ $("#messageFailed").hide();
+ $("#txt").hide();
+
+ // BUTTONS
+ $("#positive").click(function(){
+ var MyValue = $('#status').attr("value");
+ $('#status').attr("value",MyValue+"++ ");
+ });
+ $("#negative").click(function(){
+ var MyValue = $('#status').attr("value");
+ $('#status').attr("value",MyValue+"-- ");
+ });
+ $("#reference").click(function(){
+ var MyValue = $('#status').attr("value");
+ $('#status').attr("value",MyValue+"== ");
+ });
+ $("#question").click(function(){
+ var MyValue = $('#status').attr("value");
+ $('#status').attr("value",MyValue+"?? ");
+ });
+
+ // SEND TWEETS
+ $("#sendTweet").click(function(){
+ var MyStatus = $('#status').attr("value");
+ $.post('tweet_ajax.php', {status:MyStatus}
+ ,function(data) {
+
+ if(data=="true"){
+ $("#messageSuccess").show('fast');
+ $("#messageSuccess").delay(800).hide('slow');
+ $('#status').attr("value","#SNCP");
+ }else{
+ $("#error").text(data);
+ $("#messageFailed").show('fast');
+ $("#messageFailed").delay(800).hide('slow');
+ }
+
+ });
+
+ });
+
+ $(".timeFrame").tooltip();
+ /*
+ * Lightbox button
+ */
+ $("#About").fancybox({
+ 'titlePosition' : 'inside',
+ 'transitionIn' : 'none',
+ 'transitionOut' : 'none',
+ 'enableEscapeButton': 'none',
+ 'margin' : 1,
+ 'padding' : 0
+ }<?php if (!isset($_SESSION['TWITTER_ACCESS_TOKEN'])){echo(").trigger('click');");}else{echo(");");} ?>
+
+
+ $("#Program").fancybox({
+ 'width' : '75%',
+ 'height' : '75%',
+ 'autoScale' : false,
+ 'transitionIn' : 'none',
+ 'transitionOut' : 'none',
+ 'type' : 'iframe'
+ });
+
+ $("#Video_ldt").fancybox({
+ 'width' : 1021,
+ 'height' : 661,
+ 'autoScale' : false,
+ 'transitionIn' : 'none',
+ 'transitionOut' : 'none',
+ 'type' : 'iframe'
+ });
+
+ $("#ACCES").click(function() {
+ $.fancybox.close();
+ });
+
+ // Buttons
+
+
+ });
+
+
+ <!-- LIMIT TEXTAREA:
+ function imposemax(Object)
+ {
+ return (Object.value.length <= 140);
+ }
+ // End -->
+
+ <!-- TIMER
+ var c=0;
+ var t;
+ var timer_is_on=0;
+
+ function timedCount()
+ {
+ document.getElementById('txt').value=c;
+ c = c+1;
+ t = window.setTimeout("timedCount()",1000);
+ $(".twtr-ft").hide();
+ $(".twtr-hd").hide();
+ //twtr-tweet
+ $(".twtr-tweet").each(colorTweetings);
+
+ }
+
+ function colorTweetings (){
+ var tweettemp = $(this).html();
+ if (tweettemp.search(/\x3F\x3F/)!=-1){
+ $(this).css({'background-color': '#bfdbec','color':"#000"});
+ }
+ if (tweettemp.search(/\x2B\x2B/)!=-1){
+ $(this).css({'background-color': '#c5e7cd','color':"#fff"});
+ }
+ if (tweettemp.search(/\x2D\x2D/)!=-1){
+ $(this).css({'background-color': '#f6ced0','color':"#fff"});
+ }
+ if (tweettemp.search(/\x3D\x3D/)!=-1){
+ $(this).css({'background-color': '#ecedc1','color':"#000"});
+ }
+ };
+
+
+
+ function doTimer()
+ {
+ if (!timer_is_on)
+ {
+ timer_is_on=1;
+ timedCount();
+ }
+ }
+
+ function stopCount()
+ {
+ clearTimeout(t);
+ timer_is_on=0;
+ }
+ //
+ //-->
+ </script>
+
+ <script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-9955524-3']);
+ _gaq.push(['_setDomainName', '.iri.centrepompidou.fr']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+
+ </script>
+
+ </head>
+ <body>
+ <div class="container">
+ <img src="images/head_logo.gif" class="Producteur logo">
+ <div id="minilogo" style="margin-left:85px;height:5px;top:5px;"></div>
+ <ul class="menu">
+ <li class="menuUnderline"><a href="index.php" class="menuLink">
+ <?php print $translate->_("Accueil"); ?> </a></li>
+ <li ><a href="../about.php" class="menuLink" >
+ <?php print $translate->_("A propos"); ?></a></li>
+
+ </ul>
+
+ <ul class="menu" >
+ <li class="menuUnderline"><a href="<?php URL_ROOT ?>?lang=fr" class="menuLink">
+ <img src='../images/flag_fr.gif' <?php if($actual!="fr"){echo("style='opacity: .5;'"); } ?> />
+ <?php print $translate->_("Français"); ?></a></li>
+ </ul>
+
+
+ <div class="videoLive">
+ <div class="videoLivePlayer">
+ <img src="images/big_visuel_mb.png" width="500" height="375" />
+ </div>
+
+ </div>
+
+ <div class="videoLiveProgram">
+
+ <div class="arrowContainer">
+ <div class="arrow"> </div>
+ </div>
+ <div class="videoLiveProgramTitle">
+ <b>Les Stratégies Virtuelles des Musées : l'Heure de Vérité</b></div>
+ <div class="videoLiveProgramDescription">
+<h3>JEUDI 26 MAI 2011</h3><br />
+<h4>DE 10H A 13H<br />
+PETITE SALLE, NIVEAU -1</h4><br />
+Intervenants :<br />
+<b>Carlo d'Asaro Biondo</b>, vice-président de Google<br/>
+<b>Franck Riester</b>, député de Seine-et-Marne<br/>
+<b>Marc Sands</b>, directeur des publics et de l'information, Tate Gallery, Londres<br/>
+<b>Alain Seban</b>, président du Centre Pompidou<br/>
+<b>Bernard Stiegler</b>, philosophe et directeur de l'Institut de Recherche et d'Innovation (IRI)<br /><br />
+Animée par <b>Brice Couturier</b>, écrivain et producteur à France Culture<br /><br />
+La table ronde sera suivie d'un déjeuner-buffet<br /><br /><br />
+RSVP: <b>rp@centrepompidou.fr</b> ou <b>01 44 78 15 05</b>
+ </div>
+
+
+ </div>
+
+ <div class="tweetWriter">
+ <h3 class="tweetWriterTitle"><?php print $translate->_("ClientTitle1 :"); ?></h3>
+ <form action="tweet.php" method="post" id="statusform" >
+ <?php if (!isset($_SESSION['TWITTER_ACCESS_TOKEN'])){
+ echo("<div class='loginbutton' ><a href='".URL_ROOT."?CONNECT=true' class='loginlink'>
+ ".$translate->_("Vous n'êtes pas connecté.")."</a></div>");
+ }else{
+ echo("<textarea name='status' id='status' rows='3' cols='50' onkeypress='return imposemax(this);'>".$C_hashtag."</textarea>");
+ }
+ ?>
+
+
+ <div id="messageSuccess" style="background-color:lightgreen;">
+ <?php print $translate->_("Envoyé"); ?><br><br>
+ </div>
+
+ <div id="messageFailed" style="background-color:red;">
+ <?php print $translate->_("Erreur1"); ?><div id="error"> </div><br/><br>
+ </div>
+
+
+
+ <a class="button_w" href="#" id="sendTweet" style="float:right;margin-right:15px;margin-left:35px;width:70px;" >
+ <span><?php print $translate->_("Envoyer"); ?></span></a>
+ <!--<button name="s" type="button" id="sendTweet"
+ style="float:right;margin-right:15px;margin-left:35px;width:70px;" >Envoyer</button>-->
+ <a
+
+ id="positive"
+ title="accord"
+ class="tweetButton">++</a>
+ <a
+
+ id="negative"
+ title="désaccord"
+ class="tweetButton">--</a>
+ <a
+
+ id="reference"
+ title="reference"
+ class="tweetButton">==</a>
+ <a
+
+ id="question"
+ title="question"
+ class="tweetButton"> ??</a>
+ </form>
+ </div>
+
+ <div class="tweetReader">
+ <script>
+ new TWTR.Widget({
+ version: 2,
+ type: 'search',
+ search: '<?php echo($C_hashtag); ?>',
+ interval: 1000,
+ title: '',
+ subject: '',
+ width: 377,
+ height: 450,
+ theme: {
+ shell: {
+ background: '#ffffff',
+ color: '#ffffff'
+ },
+ tweets: {
+ background: '#ffffff',
+ color: '#444444',
+ links: '#1985b5'
+ }
+ },
+ features: {
+ scrollbar: false,
+ loop: true,
+ live: true,
+ hashtags: true,
+ timestamp: true,
+ avatars: true,
+ toptweets: true,
+ behavior: 'default'
+ }
+ }).render().start();
+ </script>
+ </div>
+
+ <div class="footer">
+ <hr>
+ <?php
+ echo($C_partenaires);
+
+ if (isset($_SESSION['TWITTER_ACCESS_TOKEN'])){
+ echo("| <a href='clear.php' class='footerLink'>".$translate->_("Déconnexion")."</a>");
+ }
+ ?>
+ <input type="text" id="txt" size="3"/>
+
+ </div>
+
+
+ </div>
+
+ <!-- LIGHTBOX -->
+ <div style="display:none;">
+ <div id="Aboutbox" >
+ <div class="lightBorder">
+ <div class="lightTitle" style="height:45px;"> </div>
+ <div class="lightSubTitle"><?php print $translate->_("splatchPageTitle"); ?></div>
+ <div class="lightDescription"><?php print $translate->_("splatchPageText"); ?></div>
+ <div>
+ <br/>
+ <a class="button_b" href="#" id="IDENTIFIER"><span><?php print $translate->_("S'identifier"); ?></span></a> <br/><br/>
+ <a class="button_w" href="#" id="ACCES"><span><?php print $translate->_("Libre accès"); ?></span></a>
+ </div>
+ </div>
+ </div>
+ </div>
+ <!-- END LIGHTBOX -->
+
+
+ </body>
+</html>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/web/CPV/common.php Wed May 25 02:44:32 2011 +0200
@@ -0,0 +1,107 @@
+<?php
+
+/**
+ * If you haven't edited php.ini to add the Zend Framework and the
+ * Zend Framework Incubator to the PHP include_path, then do so here.
+ * Don't use mine!
+ */
+set_include_path(
+ 'lib'
+ . PATH_SEPARATOR . get_include_path()
+);
+
+
+include_once dirname(__FILE__).'/../traduction.php';
+
+
+/**
+ * Make sure Zend_Oauth's Consumer is loaded
+ */
+require_once dirname(__FILE__).'/../lib/Zend/Oauth/Consumer.php';
+
+/** Zend_Locale */
+require_once dirname(__FILE__).'/../lib/Zend/Locale.php';
+
+/** Zend_Translate_Adapter */
+require_once dirname(__FILE__).'/../lib/Zend/Translate/Adapter.php';
+
+/**
+ * Start up the ol' session engine
+ */
+session_start();
+
+/**
+ * Include the configuration data for our OAuth Client (array $configuration)
+ */
+include_once dirname(__FILE__).'/config.php';
+
+/**
+ * Setup an instance of the Consumer for use
+ */
+$consumer = new Zend_Oauth_Consumer($configuration);
+
+/**
+ * TRADUCTION
+**/
+
+
+Zend_Loader::loadClass('Zend_Translate');
+Zend_Loader::loadClass('Zend_Http_Cookie');
+
+
+$client = new Zend_Http_Client();
+$translate = new Zend_Translate('array', $init, 'fr');
+
+$translate->addTranslation($english, 'en');
+$translate->addTranslation($japan, 'ja_JP');
+$translate->addTranslation($french, 'fr');
+
+$actual = $translate->getLocale();
+
+//$translate->setLocale("en");
+// $acceptCookie = $this->_request->getCookie('acceptCookie',0);
+
+if(isset($_GET['lang'])==false and isset($_SESSION['lang'])==false){
+
+ if($actual!='fr' and $actual!='en' and $actual!='ja_JP'){
+ $translate->setLocale("fr");
+ $_SESSION['lang']="fr";
+ }
+
+} else if (isset($_GET['lang'])==true){
+ $translate->setLocale($_GET['lang']);
+ $_SESSION['lang'] = $_GET['lang'];
+ $actual = $_SESSION['lang'];
+
+} else if (isset($_SESSION['lang'])==true){
+ $translate->setLocale( $_SESSION['lang']);
+ $actual = $_SESSION['lang'];
+
+}
+
+/* NEXT CONFERENCE AND CLIENT PAGE INFORMATION
+*/
+/* CLIENT VAR LIVE */
+
+$C_hashtag = "#SNCP";
+$C_link = "http://www.iri.centrepompidou.fr/evenement/atelier-preparatoire-aux-entretiens-du-nouveau-monde-industriel-technologies-de-la-confiance/";
+$C_title = "Les Stratégies Virtuelles des Musées : l'Heure de Vérité";
+$C_abstract = "Les Stratégies Virtuelles des Musées : l'Heure de Vérité";
+$C_REP = "CPV/";
+$C_description = "<h3>JEUDI 26 MAI 2011</h3><br />
+<h4>DE 10H A 13H<br />
+PETITE SALLE, NIVEAU -1</h4><br />
+Intervenants :<br />
+<b>Carlo d'Asaro Biondo</b>, vice-président de Google<br/>
+<b>Franck Riester</b>, député de Seine-et-Marne<br/>
+<b>Marc Sands</b>, directeur des publics et de l'information, Tate Gallery, Londres<br/>
+<b>Alain Seban</b>, président du Centre Pompidou<br/>
+<b>Bernard Stiegler</b>, philosophe et directeur de l'Institut de Recherche et d'Innovation (IRI)<br /><br />
+Animée par <b>Brice Couturier</b>, écrivain et producteur à France Culture<br /><br />
+La table ronde sera suivie d'un déjeuner-buffet<br /><br /><br />
+RSVP: <b>rp@centrepompidou.fr</b> ou <b>01 44 78 15 05</b>";
+
+$C_partenaires = "<a href='http://www.iri.centrepompidou.fr/' class='footerLink' target='_blank'> IRI </a>
+ | <a href='http://www.centrepompidou.fr/' class='footerLink' target='_blank' > Centre Pompidou </a>";
+
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/web/CPV/config.php.tmpl Wed May 25 02:44:32 2011 +0200
@@ -0,0 +1,17 @@
+<?php
+
+/**
+ * Please edit all for your application registration / other details
+ *
+ */
+
+//define('URL_ROOT', 'http://127.0.0.1/IRI/REPO_TWEET_LIVE/web/');
+define('URL_ROOT', 'http://localhost/~ymh/tweet_live/client.php');
+
+$configuration = array(
+ // 'callbackUrl' => 'http://amateur.iri.centrepompidou.fr/live/callback.php',
+ 'callbackUrl' => 'http://localhost/~ymh/tweet_live/callback.php',
+ 'siteUrl' => 'http://twitter.com/oauth',
+ 'consumerKey' => '***REMOVED***',
+ 'consumerSecret' => '***REMOVED***'
+);
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/web/CPV/embed_form.php Wed May 25 02:44:32 2011 +0200
@@ -0,0 +1,100 @@
+<?php
+
+/**
+ * include some common code (like we did in the 90s)
+ * People still do this? ;)
+ */
+include_once '../common.php';
+include_once 'config.php';
+
+?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html lang="<?php echo($actual); ?>">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <title>embed Configuration</title>
+
+ <!-- JAVASCRIPT -->
+ <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
+ <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.11/jquery-ui.min.js"></script>
+ <script type="text/javascript" src="res/raphael/raphael-min.js"></script>
+
+ <link rel="stylesheet" href="../res/css/custom.css" type="text/css" media="screen, projection">
+
+ <!-- FONT -->
+ <link href='http://fonts.googleapis.com/css?family=PT+Sans+Narrow&subset=latin' rel='stylesheet' type='text/css'>
+ <link href='http://fonts.googleapis.com/css?family=PT+Sans&subset=latin' rel='stylesheet' type='text/css'>
+ <link href='http://fonts.googleapis.com/css?family=Geo&subset=latin' rel='stylesheet' type='text/css'>
+ <style type="text/css">
+ body{
+ padding:0px;
+ margin:0px;
+ background-image:none;
+ width:300px;
+ padding:5px; }
+ .tooltip{
+ z-index: 10000000000;
+ }
+ #tip{
+ position : absolute;
+ padding : 3px;
+ z-index: 10000000000;
+ max-width: 200px;
+ }
+ #tip {
+ display: none;
+ background: transparent url("../images/white_arrow_long.png");
+ font-size: 12px;
+ height: 125px;
+ width: 180px;
+ padding: 10px;
+ padding-left: 15px;
+ padding-top: 15px;
+ padding-right: 15px;
+ color: black;
+ z-index: 10000000000;
+ font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif";
+ overflow:hidden;
+ }
+ #chartTimeline{
+ padding-top: <?php echo($player_height-70); ?>px;
+ z-index: 100000;
+ position : absolute;
+ }
+ textarea {
+ margin-left:3px;
+ height: 150px;
+ width: 330px;
+ padding:5px;
+ background-image:none;
+ border:solid 1px #ccc;
+ /*background-image:url(images/tweetWriterBgdTxtArea.gif);
+ background-repeat:no-repeat;
+ border: none;*/
+ }
+
+ </style>
+ <script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-9955524-3']);
+ _gaq.push(['_setDomainName', '.iri.centrepompidou.fr']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+
+ </script>
+ </head>
+
+ <h1 class="tweetWriterTitle" style="width:300px;" > <?php print $translate->_("EmbedTitle"); ?></h1>
+
+ <p style="font-size:12px;width:300px;"><?php print $translate->_("EmbedText"); ?> </p>
+ <textarea cols="10" rows="10"><iframe src="<?php echo($config['root'].$config['rep']); ?>/player_embed.php" width="<?php echo($player_width); ?>" height="<?php echo($player_height); ?>" frameborder="0"></iframe><p><a href="<?php echo($config['root'].$config['rep']); ?>"><?php echo($config['title']); ?></a> from <a href="<?php echo($config['link']); ?>">RSLN</a>on <a href="<?php echo($config['root']); ?>">Polemical Tweet</a>.</p>
+ </textarea>
+
+ </body>
+</html>
Binary file web/CPV/images/big_visuel_mb.png has changed
Binary file web/CPV/images/head_logo.gif has changed
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/web/CPV/index.php Wed May 25 02:44:32 2011 +0200
@@ -0,0 +1,6 @@
+<?php
+// Permanent redirection
+header("HTTP/1.1 301 Moved Permanently");
+header("Location: client.php");
+exit();
+?>
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/web/CPV/player_embed.php Wed May 25 02:44:32 2011 +0200
@@ -0,0 +1,138 @@
+<?php
+
+/**
+ * include some common code (like we did in the 90s)
+ * People still do this? ;)
+ */
+include_once 'config.php';
+
+// todo :
+// - gestion du parent.document.location mediafragment
+// - limite taille vertical embed
+// - ajouter la polemic timline en dessous de la video
+
+?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html lang="en">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <title>RSLN - Polemic player embed page</title>
+
+ <!-- JAVASCRIPT -->
+ <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
+ <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.11/jquery-ui.min.js"></script>
+ <script type="text/javascript" src="../res/raphael/raphael-min.js"></script>
+
+ <!-- FONT -->
+ <link href='http://fonts.googleapis.com/css?family=PT+Sans+Narrow&subset=latin' rel='stylesheet' type='text/css'>
+ <link href='http://fonts.googleapis.com/css?family=PT+Sans&subset=latin' rel='stylesheet' type='text/css'>
+ <link href='http://fonts.googleapis.com/css?family=Geo&subset=latin' rel='stylesheet' type='text/css'>
+ <style type="text/css">
+ body{
+ padding:0px;
+ margin:0px;
+ }
+ .tooltip{
+ z-index: 10000000000;
+ }
+ #tip{
+ position : absolute;
+ padding : 3px;
+ z-index: 10000000000;
+ max-width: 200px;
+ }
+ #tip {
+ display: none;
+ background: transparent url("../images/white_arrow_long.png");
+ font-size: 12px;
+ height: 125px;
+ width: 180px;
+ padding: 10px;
+ padding-left: 15px;
+ padding-top: 15px;
+ padding-right: 15px;
+ color: black;
+ z-index: 10000000000;
+ font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif";
+ overflow:hidden;
+ }
+ #chartTimeline{
+ z-index: 9;
+ position : absolute;
+ }
+
+ </style>
+ <script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-9955524-3']);
+ _gaq.push(['_setDomainName', '.iri.centrepompidou.fr']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+
+ </script>
+ </head>
+
+ <script type="text/javascript">
+ // Configuration Polemical Timeline
+ var config = {
+ target:"chartTimeline",
+ x:8,
+ y:418,
+ width:<?php echo($player_width); ?>,
+ height:<?php echo($player_height); ?>,
+ heightmax:<?php echo($player_height); ?>,
+ duration:<?php echo($config['duration']); ?>,
+ metadata:"<?php echo($config['metadata']); ?>"
+ }
+ </script>
+ <script type='text/javascript' src='../res/metadataplayer.polemic/src/js/polemic.js'></script>
+
+ <body>
+ <!-- tooltip -->
+ <div id="tip">
+ <div id="tipcolor" style="height:10px;width:10px"></div>
+ <div id="tiptext"></div>
+ </div>
+
+ <div class="root" >
+ <div class="videoLivePlayer">
+ <div id="chartTimeline"> </div>
+ <script type="text/javascript">
+ var paper = Raphael(document.getElementById("chartTimeline"),config.width, config.height);
+ </script>
+ <script type='text/javascript' src='../res/metadataplayer/src/js/LdtPlayer.js'></script>
+ <script type="text/javascript">
+ $.extend(__IriSP.lib,{jQueryToolTip:"../res/metadataplayer/res/js/jquery.tools.min.js"});
+ </script>
+ <div id="player_project_843fff80-6b50-11e0-8aef-00145ea49a02_embed" class="iri_player_embed"> </div>
+
+ <script type="text/javascript">
+ var configMP = {
+ metadata:{
+ format:'cinelab',
+ src:'<?php echo($config['metadata']); ?>',
+ load:'jsonp'},
+ gui:{
+ width:<?php echo($player_width); ?>,
+ height:<?php echo($player_height); ?>,
+ mode:'video',
+ container:'player_project_843fff80-6b50-11e0-8aef-00145ea49a02_embed',
+ debug:false,
+ css:'../res/css/LdtPlayer.css'},
+
+ player:{
+ type:'jwplayer',
+ src:'http://www.iri.centrepompidou.fr//dev/ldt/static/ldt/swf/player.swf'}
+ };
+ __IriSP.init(configMP);
+ </script>
+ </div>
+ </div>
+ </body>
+</html>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/web/CPV/polemicaltimeline.php Wed May 25 02:44:32 2011 +0200
@@ -0,0 +1,222 @@
+<?php
+
+/**
+ * include some common code (like we did in the 90s)
+ * People still do this? ;)
+ */
+ // configuration
+include 'common.php';
+ // objet actuel
+include_once 'config.php';
+
+?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html lang="<?php echo($actual); ?>">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <title>Polemic tweet - <?php echo($config['title']); ?></title>
+ <meta name="keywords" content="<?php echo($config['keywords']); ?>"><!-- add timestampedmetadata -->
+ <!--<meta name="description" content="PoelmicTweet.fr : debate mapping, opinion, conference, video">-->
+ <meta name="description" content="<?php echo($config['description']); ?>">
+ <meta name="robots" content="index, follow">
+
+ <!-- ICI : <?php echo($_SERVER['DOCUMENT_ROOT']); ?> -->
+ <!-- JAVASCRIPT -->
+ <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
+ <script type="text/javascript" src="../res/raphael/raphael-min.js"></script>
+ <script type="text/javascript" src="../res/jquery.fancybox/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
+ <script type="text/javascript" src="../res/niceforms/niceforms.js"></script>
+
+ <!-- Framework CSS -->
+ <link rel="stylesheet" href="../res/blueprint/screen.css" type="text/css" media="screen, projection">
+ <link rel="stylesheet" href="../res/blueprint/print.css" type="text/css" media="print">
+ <link rel="stylesheet" href="../res/blueprint/plugins/fancy-type/screen.css" type="text/css" media="screen, projection">
+ <link rel="stylesheet" href="../res/css/custom.css" type="text/css" media="screen, projection">
+ <link rel="stylesheet" href="../res/jquery.fancybox/fancybox/jquery.fancybox-1.3.4.css" media="screen">
+
+ <!-- FONT -->
+ <link href='http://fonts.googleapis.com/css?family=PT+Sans+Narrow&subset=latin' rel='stylesheet' type='text/css'>
+ <link href='http://fonts.googleapis.com/css?family=PT+Sans&subset=latin' rel='stylesheet' type='text/css'>
+ <link href='http://fonts.googleapis.com/css?family=Geo&subset=latin' rel='stylesheet' type='text/css'>
+
+ <style type="text/css">
+ .tweetButton{float:left;margin-right:5px;}
+ .videoLivePlayer{border:1px solid #c3c3c3;width:650px;height:638px;}
+ .videoLive{width:650px;height:640px;background:#fff;float:right;margin-top:20px;padding:5px;}
+
+ .tweetExplain{background-image:url(../images/tweetExplainBgd.gif);width:250px;height:640px;padding:10px;position:absolute; margin-top:70px;}
+ .footer{margin-top:740px;width:960px;height:20px;position:absolute;text-align:center;}
+ .tooltip{
+ z-index: 10000000000;
+ }
+ #tip{
+ position : absolute;
+ padding : 3px;
+ z-index: 10000000000;
+ max-width: 200px;
+ }
+ #tip {
+ display: none;
+ background: transparent url("../images/white_arrow_long.png");
+ font-size: 12px;
+ height: 125px;
+ width: 180px;
+ padding: 10px;
+ padding-left: 15px;
+ padding-top: 15px;
+ padding-right: 15px;
+ color: black;
+ z-index: 10000000000;
+ font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif";
+ overflow:hidden;
+ }
+ #chartTimeline{
+ padding-top: 0px;
+ z-index: 9;
+ position : absolute;
+ }
+
+ </style>
+ <script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-9955524-3']);
+ _gaq.push(['_setDomainName', '.iri.centrepompidou.fr']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+
+ </script>
+ <script type="text/javascript">
+ $(document).ready(function() {
+
+ $("#Embeded").fancybox({
+ 'width' : 360,
+ 'height' : 360,
+ 'autoDimensions' : false,
+ 'transitionIn' : 'none',
+ 'transitionOut' : 'none',
+ 'type' : 'iframe'
+ });
+
+ });
+ </script>
+
+ </head>
+ <script type="text/javascript">
+ // Configuration Polemical Timeline
+ var config = {
+ target:"chartTimeline",
+ x:8,
+ y:418,
+ width:650,
+ height:480,
+ heightmax:480,
+ duration:<?php echo($config['duration']); ?>,
+ metadata:"<?php echo($config['metadata']); ?>"
+ };
+ </script>
+ <script type='text/javascript' src='../res/metadataplayer.polemic/src/js/polemic.js'></script>
+ <body>
+
+
+ <!-- tooltip -->
+ <div id="tip">
+ <div id="tipcolor" style="height:10px;width:10px"></div>
+ <div id="tiptext"></div>
+ </div>
+
+ <div class="container">
+ <img src="../images/ENMI_2010_logo.gif" class="logo">
+ <ul class="menu">
+ <li class="menuUnderline"><a href="../" class="menuLink" id="Accueil">
+ <?php print $translate->_("Accueil"); ?></a></li>
+ <li class="menuUnderline"><a href="embed_form.php" class="menuLink" id="Embeded">
+ <?php print $translate->_("Partager"); ?></a></li>
+ <li > </li>
+ </ul>
+
+ <ul class="menu lang" >
+ <li class="menuUnderline"><a href="<?php URL_ROOT ?>?lang=ja_JP" class="menuLink" >
+ <img src='../images/flag_jp.gif'<?php if($actual!="ja_JP"){echo("style='opacity: .5;'"); } ?> />
+ <?php print $translate->_("Japonais"); ?></a></li>
+ <li class="menuUnderline"><a href="<?php URL_ROOT ?>?lang=fr" class="menuLink">
+ <img src='../images/flag_fr.gif' <?php if($actual!="fr"){echo("style='opacity: .5;'"); } ?> />
+ <?php print $translate->_("Français"); ?></a></li>
+ <li ><a href="<?php URL_ROOT ?>?lang=en" class="menuLink">
+ <img src='../images/flag_en.gif' <?php if($actual!="en"){echo("style='opacity: .5;'"); } ?> />
+ <?php print $translate->_("Anglais"); ?></a></li>
+ </ul>
+
+ <!-- EXPLICATION -->
+ <div class="tweetExplain" >
+ <h3 class="tweetWriterTitle"><?php print $translate->_("ClientTitle1 :"); ?> </h3><br/>
+ <?php print $translate->_("ExplicationPT"); ?>
+ </div>
+
+
+ <!-- INFOS SUR LA CONF
+ <div class="tweetExplain" >
+ <h3 class="tweetWriterTitle"><?php echo($config['title']); ?></h3><br/>
+ <?php echo($config['description']); ?>
+ </div>
+ -->
+
+
+
+
+ <div class="videoLive" >
+ <div class="videoLivePlayer">
+
+ <div id="chartTimeline"> </div>
+ <script type="text/javascript">
+ var paper = Raphael(document.getElementById("chartTimeline"),config.width, config.height);
+ </script>
+
+ <script type='text/javascript' src='../res/metadataplayer/src/js/LdtPlayer.js'></script>
+ <script type="text/javascript">
+ $.extend(__IriSP.lib,{jQueryToolTip:"../res/metadataplayer/res/js/jquery.tools.min.js"});
+ </script>
+
+ <div id="player_project_13b0aa52-336b-11e0-b233-00145ea49a02_embed" class="iri_player_embed"> </div>
+ <script type="text/javascript">
+ var configMP = {
+ /*metadata:{
+ format:'cinelab',
+ src:'metadata.json',
+ load:'json'},*/
+ metadata:{
+ format:'cinelab',
+ src:'<?php echo($config['metadata']); ?>',
+ load:'jsonp'},
+ gui:{
+ width:650,
+ height:480,
+ mode:'video',
+ container:'player_project_13b0aa52-336b-11e0-b233-00145ea49a02_embed',
+ debug:false,
+ css:'../res/css/LdtPlayer.css'},
+
+ player:{
+ type:'jwplayer',
+ src:'http://www.iri.centrepompidou.fr//dev/ldt/static/ldt/swf/player.swf'}
+ };
+ __IriSP.init(configMP);
+ </script>
+ </div>
+ </div>
+
+
+ <div class="footer">
+ <hr>
+ <?php echo($config['partenaires']); ?>
+ </div>
+
+ </div>
+
+ </body>
+</html>
--- a/web/common.php Tue May 24 16:08:11 2011 +0200
+++ b/web/common.php Wed May 25 02:44:32 2011 +0200
@@ -135,9 +135,8 @@
</ul>";
$C_partenaires = "
- <a href='http://www.iri.centrepompidou.fr/' class='footerLink' target='_blank'>
- IRI </a>
- | <a href='http://www.rslnmag.fr/' class='footerLink' target='_blank' > RSLN </a>
- | <a href='http://www.microsoft.fr/' class='footerLink' target='_blank'> MICROSOFT.fr </a>";
+ <a href='http://www.iri.centrepompidou.fr/' class='footerLink' target='_blank'> IRI </a>
+ | <a href='http://www.ensci.com/' class='footerLink' target='_blank' > ENSCI </a>
+ | <a href='http://www.capdigital.com/' class='footerLink' target='_blank'> Cap Digital </a>";