--- a/web/about.php Tue Mar 06 13:22:18 2012 +0100
+++ b/web/about.php Tue Mar 06 16:13:07 2012 +0100
@@ -23,7 +23,6 @@
<!-- 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">
.archivesTitle {margin-left:10px;}
--- a/web/archives.php Tue Mar 06 13:22:18 2012 +0100
+++ b/web/archives.php Tue Mar 06 16:13:07 2012 +0100
@@ -28,7 +28,6 @@
<!-- FONT -->
<link href='<?php echo(registry_url('PT-Sans_Narrow','font'));?>' rel='stylesheet' type='text/css'>
<link href='<?php echo(registry_url('PT-Sans','font'));?>' rel='stylesheet' type='text/css'>
- <link href='<?php echo(registry_url('Geo','font'));?>' rel='stylesheet' type='text/css'>
<script type="text/javascript">
--- a/web/client.php Tue Mar 06 13:22:18 2012 +0100
+++ b/web/client.php Tue Mar 06 16:13:07 2012 +0100
@@ -39,8 +39,415 @@
$head_logo = URL_ROOT."$rep/".$translate->_('config__head_logo');
}
-// include dirname(__FILE__). ( ( isset($config['use_tweetcast']) && $config['use_tweetcast'] ) ? '/client_new.php' : '/client_old.php' )
+ $embed = (isset($_REQUEST['embed']) && $_REQUEST['embed']);
+ $videoWidth = ( $embed ? 442 : 480 );
+ $videoHeight = ( $embed ? 250 : 320 );
+?>
+<!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>Live Video and Annotation</title>
+ <meta http-equiv="X-UA-Compatible" content="IE=9" />
+
+ <!-- FONT -->
+ <link href='<?php echo(registry_url('PT-Sans_Narrow','font'))?>' rel='stylesheet' type='text/css'>
+ <link href='<?php echo(registry_url('PT-Sans','font'))?>' rel='stylesheet' type='text/css'>
+
+ <!-- CSS -->
+ <link rel="stylesheet" href="<?php echo(registry_url('fancybox','css'));?>" type="text/css" media="screen">
+ <link rel="stylesheet" href="<?php echo(registry_url('tweetcast','css'));?>" type="text/css" media="screen, projection"/>
+
+ <!-- JAVASCRIPT -->
+ <script type="text/javascript" src="<?php echo(registry_url('jquery','js'))?>"></script>
+ <script type="text/javascript" src="<?php echo(registry_url('jquery-mousewheel','js'))?>"></script>
+ <script type="text/javascript" src="<?php echo(registry_url('jquery-scrollto','js'))?>"></script>
+ <script type="text/javascript" src="<?php echo(registry_url('underscore','js'))?>"></script>
+ <script type="text/javascript" src="<?php echo(registry_url('raphael','js'))?>"></script>
+ <script type="text/javascript" src="<?php echo(registry_url('fancybox','js'))?>"></script>
+
+ <script type="text/javascript">
+ <?php if (isset($config['hashtag'])) echo "var tracking_keywords = ".json_encode(array($config['hashtag'])).";"; ?>
+ <?php if (isset($config['suggested_keywords'])) echo "var suggested_keywords = ".json_encode($config['suggested_keywords']).";"; ?>
+ <?php if (isset($config['js_config'])) echo $config['js_config']; ?>
+ </script>
+ <script type="text/javascript" src="<?php echo(registry_url('twcx-main','js'))?>"></script>
+
+ <script type="text/javascript">
+ l10n = { "rechercher" : "<?php echo $translate->_('Rechercher'); ?>" }
+
+ function add_grammar(value) {
+ var _st = $('#status'),
+ _val = _st.val();
+ _st.val( _val + ( _val[_val.length - 1] == " " ? "" : " " ) + value ).change();
+ }
+
+ $(document).ready(function() {
+
+/* setTimeout(function() {
+ $.scrollTo(70, 1000);
+ }, 2000); */
+
+ //$("txt").hide();
+ $(".loginbutton").click(function() {
+ document.location.href="<?php echo(URL_ROOT.$rep); ?>/client.php?CONNECT=true";
+ });
+ $("#IDENTIFIER").click(function() {
+ document.location.href="<?php echo(URL_ROOT.$rep); ?>/client.php?CONNECT=true";
+ });
+
+ function updateCounter() {
+ var _v = $("#status").val();
+ if (_v.length > 140) {
+ _v = _v.substr(0,140);
+ $("#status").val(_v);
+ }
+ $('#tweetCounter').html(140-_v.length);
+ if(140-_v.length < 0) {
+ $('#tweetCounter').addClass("tweetCounterNegative");
+ }
+ else {
+ $('#tweetCounter').removeClass("tweetCounterNegative");
+ }
+ $(".tweetButton").each(function(_i, _e) {
+ if (_v.search($(_e).find('span.twbSyntax').text().replace(/(\W)/g, '\\$1')) > -1) {
+ $(_e).addClass('selected');
+ } else {
+ $(_e).removeClass('selected');
+ }
+ });
+ }
+
+ // BUTTONS
+ $(".tweetButton").click(function() {
+ add_grammar($(this).find('span.twbSyntax').text());
+ updateCounter();
+ })
+
+ // SEND TWEETS
+ $("#sendTweet").click(function(){
+ var MyStatus = $('#status').val();
+ $.post('tweet_ajax.php', {status:MyStatus}
+ ,function(data) {
+
+ if(data=="true"){
+ $("#messageSuccess").show('fast');
+ $("#messageSuccess").delay(800).hide('slow');
+ $('#status').val("<?php echo($config['hashtag']); ?>");
+ $('#status').change();
+ }else{
+ $("#error").text(data);
+ $("#messageFailed").show('fast');
+ $("#messageFailed").delay(800).hide('slow');
+ }
+
+ });
+
+ });
+
+
+ $("#status").bind("change keyup paste blur focus",updateCounter);
+
+
+ $("#Program").fancybox({
+ 'width' : '75%',
+ 'height' : '75%',
+ 'autoScale' : false,
+ 'transitionIn' : 'none',
+ 'transitionOut' : 'none',
+ 'type' : 'iframe'
+ });
+ $(".embedbutton").fancybox({
+ 'width' : 360,
+ 'height' : 360,
+ 'autoDimensions' : false,
+ 'transitionIn' : 'none',
+ 'transitionOut' : 'none',
+ 'type' : 'iframe'
+ });
+
+ $("#onglets a").click(function() {
+ $("div.ifwrap").hide();
+ $("#onglets li").removeClass("selected");
+ $(this).parent().addClass("selected");
+ var hr = $(this).attr("href");
+ if (hr[0] == '#') {
+ $(hr).show();
+ } else {
+ $("#iframeWrap").show();
+ $("#graphFrame").attr("src", hr);
+ }
+ return false;
+ });
+
+
+ });
+
+ //<!-- LIMIT TEXTAREA:
+ // End -->
+
+ </script>
+
+ <script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-23581291-1']);
+ _gaq.push(['_trackPageview']);
+ _gaq.push(['_setAllowAnchor', true]);
+
+ (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<?php if ($embed) { echo ' class="embed"'; } ?>>
+ <div id="sendUsFeedBack"><a href="<?php echo($C_feedback_form_url); ?>" target="_blank"><img src="<?php echo(URL_ROOT); ?>images/sendusfeedback.png"></a></div>
-include dirname(__FILE__).'/client_new.php'
+ <div id="container">
+
+ <div id="coldroite">
+
+ <div class="embedbar">
+ <a class="embedbutton" href="<?php echo(URL_ROOT.$rep)?>/live_embed_form.php">Intégrer</a>
+ <!-- AddThis Button BEGIN -->
+ <div class="addthis_toolbox addthis_default_style addthis_32x32_style">
+ <a class="addthis_button_facebook"></a>
+ <a class="addthis_button_twitter"></a>
+ <a class="addthis_button_email"></a>
+ <a class="addthis_button_compact"></a>
+ </div>
+ <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js"></script>
+ <!-- AddThis Button END -->
+ </div>
+ <ul id="onglets">
+<?php if (isset($config['semantic_board']) or isset($config['knowtex_url'])) { ?>
+ <li class="selected">
+ <a href="#vlWrap"><?php echo($translate->_('Video')); ?></a>
+ </li>
+<?php } ?>
+<?php if (isset($config['semantic_board']) and $config['semantic_board']) { ?>
+ <li>
+ <a href="semanticboard.php?small=1&theme=jour"><?php echo($translate->_('SemanticBoard')); ?></a>
+ </li>
+<?php } ?>
+<?php if (isset($config['knowtex_url'])) { ?>
+ <li>
+ <a href="<?php echo $config['knowtex_url'] ?>"><?php echo($translate->_('SocialGraph')); ?></a>
+ </li>
+<?php } ?>
+ </ul>
+ <div class="ifwrap" id="vlWrap">
+ <div id="videoLivePlayer">
+ <?php if ($config['islive']):?>
+ <object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="<?php echo $videoWidth; ?>" height="<?php echo $videoHeight; ?>">
+ <param name="movie" value="<?php echo(URL_ROOT); ?>res/mediaplayer/player.swf" />
+ <param name="allowfullscreen" value="true" />
+ <param name="allowscriptaccess" value="always" />
+ <param name="wmode" value="transparent" />
+ <?php
+
+function flv_param($name,$default) {
+ global $config;
+ return ( isset($config["flv_$name"]) ? ( $config["flv_$name"] ? "&$name=".$config["flv_$name"] : "" ) : "&$name=$default" );
+}
-?>
\ No newline at end of file
+$flashvars = "autostart=true&live=true".flv_param("provider", "rtmp").flv_param("streamer", "rtmp://media.iri.centrepompidou.fr/ddc_player/").flv_param("file", "livestream")."&image=$big_visual_url&controlbar=none&autostart=true";
+ ?>
+ <param name="flashvars" value="<?php echo $flashvars; ?>" />
+ <embed
+ type="application/x-shockwave-flash"
+ id="player2"
+ name="player2"
+ src="<?php echo(URL_ROOT); ?>res/mediaplayer/player.swf"
+ width="<?php echo $videoWidth; ?>"
+ height="<?php echo $videoHeight; ?>"
+ allowscriptaccess="always"
+ allowfullscreen="true"
+ wmode="transparent"
+ flashvars="<?php echo $flashvars; ?>"
+ />
+ </object>
+ <?php elseif(isset($config['islive_embed']) && count($config['islive_embed'])>0):?>
+ <?php echo($config['islive_embed']); ?>
+ <?php else: ?>
+ <img src="<?php echo($big_visual_url); ?>" width="<?php echo $videoWidth; ?>" height="<?php echo $videoHeight; ?>" />
+ <?php endif; ?>
+ </div>
+ </div>
+ <div class="ifwrap hidden" id="iframeWrap">
+ <iframe id="graphFrame"></iframe>
+ </div>
+ <div id="out_fleche">
+ <!-- <div id="in_fleche"></div> -->
+ </div>
+ <ul id="accordeon">
+ <li class="acctitre">
+ <h3><?php echo($translate->_('config__title')); ?></h3>
+ </li>
+ <li class="acctexte">
+ <p><?php echo($translate->_('config__description')); ?></p>
+ </li>
+ <li class="acctitre">
+ <h3><?php echo($translate->_('keywords')); ?></h3>
+ </li>
+ <li class="fl">
+ <ul class="fl">
+ <li class="acctexte">
+ <div class="accsubtitle">
+ <div class="aroundsubtitle">
+ <h4><?php echo($translate->_('suggested')); ?></h4>
+ </div>
+ </div>
+ <div class="tagcloud" id="suggkw"></div>
+ </li>
+ <li class="acctexte">
+ <div class="accsubtitle">
+ <div class="aroundsubtitle">
+ <h4><?php echo($translate->_('contextual')); ?></h4>
+ </div>
+ </div>
+ <div class="tagcloud" id="motscles"></div>
+ </li>
+ </ul>
+ </li>
+ </ul>
+ </div>
+ <div id="colgauche">
+ <div class="barre">
+ <img id="headlogo" src="<?php echo($head_logo); ?>" width="171" height="63" />
+ <div id="minilogo"></div>
+ <ul class="menu">
+ <li>
+ <a href="<?php echo(URL_ROOT); ?>" class="menuLink">
+ <?php print $translate->_("Accueil"); ?>
+ </a>
+ </li>
+ <li>
+ <a href="<?php echo($translate->_('config__link')); ?>" class="menuLink" target="_blank" id='Program'>
+ <?php print $translate->_("Programme"); ?>
+ </a>
+ </li>
+ <li>
+ <a href="../about.php" class="menuLink" >
+ <?php print $translate->_("A propos"); ?>
+ </a>
+ </li>
+ </ul>
+ <ul class="menu">
+ <li>
+ <a href="<?php URL_ROOT ?>client.php?lang=ja_JP" class="menuLink" >
+ <img src='<?php echo(URL_ROOT); ?>images/flag_jp.gif'<?php if($actual!="ja_JP"){echo("style='opacity: .5;'"); } ?> />
+ <?php print $translate->_("Japonais"); ?>
+ </a></li>
+ <li>
+ <a href="<?php URL_ROOT ?>client.php?lang=fr" class="menuLink">
+ <img src='<?php echo(URL_ROOT); ?>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 ?>client.php?lang=en" class="menuLink">
+ <img src='<?php echo(URL_ROOT); ?>images/flag_en.gif' <?php if($actual!="en"){echo("style='opacity: .5;'"); } ?> />
+ <?php print $translate->_("Anglais"); ?>
+ </a>
+ </li>
+ </ul>
+ </div>
+ <div id="twwWrap">
+ <div id="tweetWriter">
+ <?php if (isset($_SESSION['TWITTER_ACCESS_TOKEN'])): ?>
+ <div id="tweetCounter"><?php echo(140-strlen($config['hashtag']));?></div>
+ <?php endif;?>
+ <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."$rep/client.php?CONNECT=true' class='loginlink'>".$translate->_("Vous n'êtes pas connecté.")."</a></div>");
+ } else {
+ echo("<textarea name='status' id='status' rows='3' cols='50'>$config[hashtag]</textarea>");
+ }
+ ?>
+ <div id="messageSuccess" style="background-color:lightgreen; display: none;">
+ <?php print $translate->_("Envoyé"); ?><br/><br/>
+ </div>
+ <div id="messageFailed" style="background-color:red; display: none;">
+ <?php print $translate->_("Erreur1"); ?><div id="error"> </div><br/><br/>
+ </div>
+ <a href="#" id="sendTweet" >
+ <span><?php print $translate->_("Envoyer"); ?></span>
+ </a>
+ <a id="positive" title="++ | <?php echo $translate->_('Agree'); ?>" class="tweetButton twbGreen">
+ <span class="twbSyntax">++</span>
+ <span class="twbSeparator">|</span>
+ <span class="twbLabel"><?php echo $translate->_('Agree'); ?></span>
+ </a>
+ <a id="negative" title="-- | <?php echo $translate->_('Disagree'); ?>" class="tweetButton twbRed">
+ <span class="twbSyntax">--</span>
+ <span class="twbSeparator">|</span>
+ <span class="twbLabel"><?php echo $translate->_('Disagree'); ?></span>
+ </a>
+ <a id="reference" title="== | <?php echo $translate->_('Reference'); ?>" class="tweetButton twbYellow">
+ <span class="twbSyntax">==</span>
+ <span class="twbSeparator">|</span>
+ <span class="twbLabel"><?php echo $translate->_('Reference'); ?></span>
+ </a>
+ <a id="question" title="?? | <?php echo $translate->_('Question'); ?>" class="tweetButton twbBlue">
+ <span class="twbSyntax">??</span>
+ <span class="twbSeparator">|</span>
+ <span class="twbLabel"><?php echo $translate->_('Question'); ?></span>
+ </a>
+
+ <div style="clear: both;"></div>
+ </form>
+ </div>
+ </div>
+ <div id="tweetviz">
+ <div class="barre">
+ <form id="recherche">
+ <input autocomplete="off" class="greyed" id="inp_q" value="<?php echo $translate->_('Rechercher'); ?>" />
+ <input id="inp_submit" type="submit" />
+ <input id="inp_reset" type="reset" />
+ <div id="time_controls">
+ <div id="time_legende"></div>
+ <div id="time_scale"></div>
+ <a href="#" id="time_zoomout"></a>
+ <a href="#" id="time_zoomin"></a>
+ </div>
+ <div id="recherche_annot">
+ <?php echo $translate->_('SearchByPolemic'); ?> : <span id="rech_list_annot"></span><br />
+ </div>
+ </form>
+ </div>
+ <ul id="tweetlist"></ul>
+ <div id="timeline"></div>
+ <div id="scrollcont">
+ <div id="scrollin"></div>
+ </div>
+ </div>
+ </div>
+ <div class="footer">
+ <hr />
+ <?php
+ echo($translate->_('config__partenaires'));
+
+ if (isset($_SESSION['TWITTER_ACCESS_TOKEN'])){
+ echo("| <a href='clear.php' class='footerLink'>".$translate->_("Déconnexion")."</a>");
+ }
+ ?>
+ </div>
+ </div>
+ <div id="hovertweet">
+ <div id="hovercontent"></div>
+ <div id="hoverarrow"></div>
+ </div>
+ <ul id="hoverkw">
+ <li><a id="hkwsearch" href="#"><?php echo $translate->_('Rechercher'); ?></a></li>
+ <li><a id="hkwtweet" href="#"><?php echo $translate->_('addToTweet'); ?></a></li>
+ </ul>
+ </body>
+</html>
\ No newline at end of file
--- a/web/client_new.php Tue Mar 06 13:22:18 2012 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,392 +0,0 @@
-<?php
- $embed = (isset($_REQUEST['embed']) && $_REQUEST['embed']);
- $videoWidth = ( $embed ? 442 : 480 );
- $videoHeight = ( $embed ? 250 : 320 );
-?>
-<!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>Live Video and Annotation</title>
- <meta http-equiv="X-UA-Compatible" content="IE=9" />
-
- <!-- FONT -->
- <link href='<?php echo(registry_url('PT-Sans_Narrow','font'))?>' rel='stylesheet' type='text/css'>
- <link href='<?php echo(registry_url('PT-Sans','font'))?>' rel='stylesheet' type='text/css'>
-
- <!-- CSS -->
- <link rel="stylesheet" href="<?php echo(registry_url('fancybox','css'));?>" type="text/css" media="screen">
- <link rel="stylesheet" href="<?php echo(registry_url('tweetcast','css'));?>" type="text/css" media="screen, projection"/>
-
- <!-- JAVASCRIPT -->
- <script type="text/javascript" src="<?php echo(registry_url('jquery','js'))?>"></script>
- <script type="text/javascript" src="<?php echo(registry_url('jquery-mousewheel','js'))?>"></script>
- <script type="text/javascript" src="<?php echo(registry_url('jquery-scrollto','js'))?>"></script>
- <script type="text/javascript" src="<?php echo(registry_url('underscore','js'))?>"></script>
- <script type="text/javascript" src="<?php echo(registry_url('raphael','js'))?>"></script>
- <script type="text/javascript" src="<?php echo(registry_url('fancybox','js'))?>"></script>
-
- <script type="text/javascript">
- <?php if (isset($config['hashtag'])) echo "var tracking_keywords = ".json_encode(array($config['hashtag'])).";"; ?>
- <?php if (isset($config['suggested_keywords'])) echo "var suggested_keywords = ".json_encode($config['suggested_keywords']).";"; ?>
- <?php if (isset($config['js_config'])) echo $config['js_config']; ?>
- </script>
- <script type="text/javascript" src="<?php echo(registry_url('twcx-main','js'))?>"></script>
-
- <script type="text/javascript">
- l10n = { "rechercher" : "<?php echo $translate->_('Rechercher'); ?>" }
-
- function add_grammar(value) {
- var _st = $('#status'),
- _val = _st.val();
- _st.val( _val + ( _val[_val.length - 1] == " " ? "" : " " ) + value ).change();
- }
-
- $(document).ready(function() {
-
-/* setTimeout(function() {
- $.scrollTo(70, 1000);
- }, 2000); */
-
- //$("txt").hide();
- $(".loginbutton").click(function() {
- document.location.href="<?php echo(URL_ROOT.$rep); ?>/client.php?CONNECT=true";
- });
- $("#IDENTIFIER").click(function() {
- document.location.href="<?php echo(URL_ROOT.$rep); ?>/client.php?CONNECT=true";
- });
-
- function updateCounter() {
- var _v = $("#status").val();
- if (_v.length > 140) {
- _v = _v.substr(0,140);
- $("#status").val(_v);
- }
- $('#tweetCounter').html(140-_v.length);
- if(140-_v.length < 0) {
- $('#tweetCounter').addClass("tweetCounterNegative");
- }
- else {
- $('#tweetCounter').removeClass("tweetCounterNegative");
- }
- $(".tweetButton").each(function(_i, _e) {
- if (_v.search($(_e).find('span.twbSyntax').text().replace(/(\W)/g, '\\$1')) > -1) {
- $(_e).addClass('selected');
- } else {
- $(_e).removeClass('selected');
- }
- });
- }
-
- // BUTTONS
- $(".tweetButton").click(function() {
- add_grammar($(this).find('span.twbSyntax').text());
- updateCounter();
- })
-
- // SEND TWEETS
- $("#sendTweet").click(function(){
- var MyStatus = $('#status').val();
- $.post('tweet_ajax.php', {status:MyStatus}
- ,function(data) {
-
- if(data=="true"){
- $("#messageSuccess").show('fast');
- $("#messageSuccess").delay(800).hide('slow');
- $('#status').val("<?php echo($config['hashtag']); ?>");
- $('#status').change();
- }else{
- $("#error").text(data);
- $("#messageFailed").show('fast');
- $("#messageFailed").delay(800).hide('slow');
- }
-
- });
-
- });
-
-
- $("#status").bind("change keyup paste blur focus",updateCounter);
-
-
- $("#Program").fancybox({
- 'width' : '75%',
- 'height' : '75%',
- 'autoScale' : false,
- 'transitionIn' : 'none',
- 'transitionOut' : 'none',
- 'type' : 'iframe'
- });
-
- $("#onglets a").click(function() {
- $("div.ifwrap").hide();
- $("#onglets li").removeClass("selected");
- $(this).parent().addClass("selected");
- var hr = $(this).attr("href");
- if (hr[0] == '#') {
- $(hr).show();
- } else {
- $("#iframeWrap").show();
- $("#graphFrame").attr("src", hr);
- }
- return false;
- });
-
-
- });
-
- //<!-- LIMIT TEXTAREA:
- // End -->
-
- </script>
-
- <script type="text/javascript">
-
- var _gaq = _gaq || [];
- _gaq.push(['_setAccount', 'UA-23581291-1']);
- _gaq.push(['_trackPageview']);
- _gaq.push(['_setAllowAnchor', true]);
-
- (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<?php if ($embed) { echo ' class="embed"'; } ?>>
- <div id="sendUsFeedBack"><a href="<?php echo($C_feedback_form_url); ?>" target="_blank"><img src="<?php echo(URL_ROOT); ?>images/sendusfeedback.png"></a></div>
-
- <div id="container">
-
- <div id="coldroite">
- <ul id="onglets">
-<?php if (isset($config['semantic_board']) and isset($config['knowtex_url'])) { ?>
- <li class="selected">
- <a href="#vlWrap"><?php echo($translate->_('Video')); ?></a>
- </li>
-<?php } ?>
-<?php if (isset($config['semantic_board']) and $config['semantic_board']) { ?>
- <li>
- <a href="semanticboard.php?small=1&theme=jour"><?php echo($translate->_('SemanticBoard')); ?></a>
- </li>
-<?php } ?>
-<?php if (isset($config['knowtex_url'])) { ?>
- <li>
- <a href="<?php echo $config['knowtex_url'] ?>"><?php echo($translate->_('SocialGraph')); ?></a>
- </li>
-<?php } ?>
- </ul>
- <div class="ifwrap" id="vlWrap">
- <div id="videoLivePlayer">
- <?php if ($config['islive']):?>
- <object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="<?php echo $videoWidth; ?>" height="<?php echo $videoHeight; ?>">
- <param name="movie" value="<?php echo(URL_ROOT); ?>res/mediaplayer/player.swf" />
- <param name="allowfullscreen" value="true" />
- <param name="allowscriptaccess" value="always" />
- <param name="wmode" value="transparent" />
- <?php
-
-function flv_param($name,$default) {
- global $config;
- return ( isset($config["flv_$name"]) ? ( $config["flv_$name"] ? "&$name=".$config["flv_$name"] : "" ) : "&$name=$default" );
-}
-
-$flashvars = "autostart=true&live=true".flv_param("provider", "rtmp").flv_param("streamer", "rtmp://media.iri.centrepompidou.fr/ddc_player/").flv_param("file", "livestream")."&image=$big_visual_url&controlbar=none&autostart=true";
- ?>
- <param name="flashvars" value="<?php echo $flashvars; ?>" />
- <embed
- type="application/x-shockwave-flash"
- id="player2"
- name="player2"
- src="<?php echo(URL_ROOT); ?>res/mediaplayer/player.swf"
- width="<?php echo $videoWidth; ?>"
- height="<?php echo $videoHeight; ?>"
- allowscriptaccess="always"
- allowfullscreen="true"
- wmode="transparent"
- flashvars="<?php echo $flashvars; ?>"
- />
- </object>
- <?php elseif(isset($config['islive_embed']) && count($config['islive_embed'])>0):?>
- <?php echo($config['islive_embed']); ?>
- <?php else: ?>
- <img src="<?php echo($big_visual_url); ?>" width="<?php echo $videoWidth; ?>" height="<?php echo $videoHeight; ?>" />
- <?php endif; ?>
- </div>
- </div>
- <div class="ifwrap hidden" id="iframeWrap">
- <iframe id="graphFrame"></iframe>
- </div>
- <div id="out_fleche">
- <!-- <div id="in_fleche"></div> -->
- </div>
- <ul id="accordeon">
- <li class="acctitre">
- <h3><?php echo($translate->_('config__title')); ?></h3>
- </li>
- <li class="acctexte">
- <p><?php echo($translate->_('config__description')); ?></p>
- </li>
- <li class="acctitre">
- <h3><?php echo($translate->_('keywords')); ?></h3>
- </li>
- <li class="fl">
- <ul class="fl">
- <li class="acctexte">
- <div class="accsubtitle">
- <div class="aroundsubtitle">
- <h4><?php echo($translate->_('suggested')); ?></h4>
- </div>
- </div>
- <div class="tagcloud" id="suggkw"></div>
- </li>
- <li class="acctexte">
- <div class="accsubtitle">
- <div class="aroundsubtitle">
- <h4><?php echo($translate->_('contextual')); ?></h4>
- </div>
- </div>
- <div class="tagcloud" id="motscles"></div>
- </li>
- </ul>
- </li>
- </ul>
- </div>
- <div id="colgauche">
- <div class="barre">
- <img id="headlogo" src="<?php echo($head_logo); ?>" width="171" height="63" />
- <div id="minilogo"></div>
- <ul class="menu">
- <li>
- <a href="<?php echo(URL_ROOT); ?>" class="menuLink">
- <?php print $translate->_("Accueil"); ?>
- </a>
- </li>
- <li>
- <a href="<?php echo($translate->_('config__link')); ?>" class="menuLink" target="_blank" id='Program'>
- <?php print $translate->_("Programme"); ?>
- </a>
- </li>
- <li>
- <a href="../about.php" class="menuLink" >
- <?php print $translate->_("A propos"); ?>
- </a>
- </li>
- </ul>
- <ul class="menu">
- <li>
- <a href="<?php URL_ROOT ?>client.php?lang=ja_JP" class="menuLink" >
- <img src='<?php echo(URL_ROOT); ?>images/flag_jp.gif'<?php if($actual!="ja_JP"){echo("style='opacity: .5;'"); } ?> />
- <?php print $translate->_("Japonais"); ?>
- </a></li>
- <li>
- <a href="<?php URL_ROOT ?>client.php?lang=fr" class="menuLink">
- <img src='<?php echo(URL_ROOT); ?>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 ?>client.php?lang=en" class="menuLink">
- <img src='<?php echo(URL_ROOT); ?>images/flag_en.gif' <?php if($actual!="en"){echo("style='opacity: .5;'"); } ?> />
- <?php print $translate->_("Anglais"); ?>
- </a>
- </li>
- </ul>
- </div>
- <div id="twwWrap">
- <div id="tweetWriter">
- <?php if (isset($_SESSION['TWITTER_ACCESS_TOKEN'])): ?>
- <div id="tweetCounter"><?php echo(140-strlen($config['hashtag']));?></div>
- <?php endif;?>
- <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."$rep/client.php?CONNECT=true' class='loginlink'>".$translate->_("Vous n'êtes pas connecté.")."</a></div>");
- } else {
- echo("<textarea name='status' id='status' rows='3' cols='50'>$config[hashtag]</textarea>");
- }
- ?>
- <div id="messageSuccess" style="background-color:lightgreen; display: none;">
- <?php print $translate->_("Envoyé"); ?><br/><br/>
- </div>
- <div id="messageFailed" style="background-color:red; display: none;">
- <?php print $translate->_("Erreur1"); ?><div id="error"> </div><br/><br/>
- </div>
- <a href="#" id="sendTweet" >
- <span><?php print $translate->_("Envoyer"); ?></span>
- </a>
- <a id="positive" title="++ | <?php echo $translate->_('Agree'); ?>" class="tweetButton twbGreen">
- <span class="twbSyntax">++</span>
- <span class="twbSeparator">|</span>
- <span class="twbLabel"><?php echo $translate->_('Agree'); ?></span>
- </a>
- <a id="negative" title="-- | <?php echo $translate->_('Disagree'); ?>" class="tweetButton twbRed">
- <span class="twbSyntax">--</span>
- <span class="twbSeparator">|</span>
- <span class="twbLabel"><?php echo $translate->_('Disagree'); ?></span>
- </a>
- <a id="reference" title="== | <?php echo $translate->_('Reference'); ?>" class="tweetButton twbYellow">
- <span class="twbSyntax">==</span>
- <span class="twbSeparator">|</span>
- <span class="twbLabel"><?php echo $translate->_('Reference'); ?></span>
- </a>
- <a id="question" title="?? | <?php echo $translate->_('Question'); ?>" class="tweetButton twbBlue">
- <span class="twbSyntax">??</span>
- <span class="twbSeparator">|</span>
- <span class="twbLabel"><?php echo $translate->_('Question'); ?></span>
- </a>
-
- <div style="clear: both;"></div>
- </form>
- </div>
- </div>
- <div id="tweetviz">
- <div class="barre">
- <form id="recherche">
- <input autocomplete="off" class="greyed" id="inp_q" value="<?php echo $translate->_('Rechercher'); ?>" />
- <input id="inp_submit" type="submit" />
- <input id="inp_reset" type="reset" />
- <div id="time_controls">
- <div id="time_legende"></div>
- <div id="time_scale"></div>
- <a href="#" id="time_zoomout"></a>
- <a href="#" id="time_zoomin"></a>
- </div>
- <div id="recherche_annot">
- <?php echo $translate->_('SearchByPolemic'); ?> : <span id="rech_list_annot"></span><br />
- </div>
- </form>
- </div>
- <ul id="tweetlist"></ul>
- <div id="timeline"></div>
- <div id="scrollcont">
- <div id="scrollin"></div>
- </div>
- </div>
- </div>
- <div class="footer">
- <hr />
- <?php
- echo($translate->_('config__partenaires'));
-
- if (isset($_SESSION['TWITTER_ACCESS_TOKEN'])){
- echo("| <a href='clear.php' class='footerLink'>".$translate->_("Déconnexion")."</a>");
- }
- ?>
- </div>
- </div>
- <div id="hovertweet">
- <div id="hovercontent"></div>
- <div id="hoverarrow"></div>
- </div>
- <ul id="hoverkw">
- <li><a id="hkwsearch" href="#"><?php echo $translate->_('Rechercher'); ?></a></li>
- <li><a id="hkwtweet" href="#"><?php echo $translate->_('addToTweet'); ?></a></li>
- </ul>
- </body>
-</html>
\ No newline at end of file
--- a/web/client_old.php Tue Mar 06 13:22:18 2012 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,451 +0,0 @@
-<!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>Live Video and Annotation</title>
- <meta http-equiv="X-UA-Compatible" content="IE=8" />
-
- <!-- Framework CSS -->
- <link rel="stylesheet" href="<?php echo(registry_url('blueprint-screen','css'));?>" type="text/css" media="screen, projection"/>
- <link rel="stylesheet" href="<?php echo(registry_url('blueprint-print','css'));?>" type="text/css" media="print"/>
- <!--[if lt IE 8]><link rel="stylesheet" href="<?php echo(registry_url('blueprint-ie','css'));?>" type="text/css" media="screen, projection"><![endif]-->
- <link rel="stylesheet" href="<?php echo(registry_url('blueprint-plugins-fancy-type','css'));?>" type="text/css" media="screen, projection"/>
- <link rel="stylesheet" href="<?php echo(registry_url('custom','css'));?>" type="text/css" media="screen, projection"/>
- <link rel="stylesheet" href="<?php echo(registry_url('fancybox','css'));?>" type="text/css" media="screen">
-
- <style type="text/css">
- .hidden {
- display: none;
- }
-
- #onglets {
- float: left; width: 441px; margin: 5px 25px 0; list-style: none;
- border-left: 1px solid #999; padding: 0;
- }
-
- #onglets li {
- float: left; text-transform: uppercase; background: url(../res/css/twcx-img/bg_onglet.png) repeat-x;
- line-height: 12px; font-size: 12px; height: 12px; padding: 6px 10px; font-weight: bold;
- border: 1px #999; border-style: solid solid solid none; margin-top: 1px;
- }
-
- #onglets a {
- text-decoration: none; color: #666666;
- }
-
- #onglets a:hover {
- color: #0099ff;
- }
-
- #onglets li.selected {
- background-position: 0 -22px; padding-bottom: 8px; border-bottom: none; margin-top: 0;
- }
-
- #onglets li.selected a {
- color: #333333;
- }
-
- div.ifwrap {
- float: left; border: 5px solid #ffffff; background: #999999; padding: 1px; width: 500px; height: 375px;
- }
-
- .ifwrap iframe {
- width: 500px; height: 375px; background: #000000; border: none; padding: 0; margin: 0;
- }
- </style>
-
- <!-- JAVASCRIPT -->
- <script type="text/javascript" src="<?php echo(registry_url('jquery','js'))?>"></script>
- <script type="text/javascript" src="<?php echo(registry_url('fancybox','js'))?>"></script>
- <script type="text/javascript" src="<?php echo(registry_url('jquery-tools','js'))?>"></script>
- <script type="text/javascript" src="<?php echo(registry_url('tw-widget','js'))?>"></script>
-
- <!-- FONT -->
- <link href='<?php echo(registry_url('PT-Sans_Narrow','font'))?>' rel='stylesheet' type='text/css'>
- <link href='<?php echo(registry_url('PT-Sans','font'))?>' rel='stylesheet' type='text/css'>
- <link href='<?php echo(registry_url('Geo','font'))?>' rel='stylesheet' type='text/css'>
-
- <script type="text/javascript">
- $(document).ready(function() {
-
- $("#onglets a").click(function() {
- $("div.ifwrap").hide();
- $("#onglets li").removeClass("selected");
- $(this).parent().addClass("selected");
- var hr = $(this).attr("href");
- if (hr[0] == '#') {
- $(hr).show();
- } else {
- $("#iframeWrap").show();
- $("#graphFrame").attr("src", hr);
- }
- return false;
- });
-
- doTimer();
- //$("txt").hide();
- $(".loginbutton").click(function() {
- document.location.href="<?php echo(URL_ROOT.$rep); ?>/client.php?CONNECT=true";
- });
- $("#IDENTIFIER").click(function() {
- document.location.href="<?php echo(URL_ROOT.$rep); ?>/client.php?CONNECT=true";
- });
-
- $("#messageSuccess").hide();
- $("#messageFailed").hide();
-
-
- function add_grammar(value) {
- $('#status').val($('#status').val()+value+" ");
- $('#status').change();
- }
-
- // BUTTONS
- $("#positive").click(function(){
- add_grammar("++");
- });
- $("#negative").click(function(){
- add_grammar("--");
- });
- $("#reference").click(function(){
- add_grammar("==");
- });
- $("#question").click(function(){
- add_grammar("??");
- });
-
- // SEND TWEETS
- $("#sendTweet").click(function(){
- var MyStatus = $('#status').val();
- $.post('tweet_ajax.php', {status:MyStatus}
- ,function(data) {
-
- if(data=="true"){
- $("#messageSuccess").show('fast');
- $("#messageSuccess").delay(800).hide('slow');
- $('#status').val("<?php echo($config['hashtag']); ?>");
- $('#status').change();
- }else{
- $("#error").text(data);
- $("#messageFailed").show('fast');
- $("#messageFailed").delay(800).hide('slow');
- }
-
- });
-
- });
-
- $("#status").bind("change keyup paste blur focus",function() {
- newval = 140-$("#status").val().length;
- $('#tweetCounter').val(newval);
- if(newval < 0) {
- $('#tweetCounter').addClass("tweetCounterNegative");
- }
- else {
- $('#tweetCounter').removeClass("tweetCounterNegative");
- }
- });
-
- $(".timeFrame").tooltip();
- /*
- * Lightbox button
- */
-
- $("#Program").fancybox({
- 'width' : '75%',
- 'height' : '75%',
- '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-23581291-1']);
- _gaq.push(['_trackPageview']);
- _gaq.push(['_setAllowAnchor', true]);
-
- (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 id="sendUsFeedBack"><a href="<?php echo($C_feedback_form_url); ?>" target="_blank"><img src="<?php echo(URL_ROOT); ?>images/sendusfeedback.png"></a></div>
- <div class="container">
- <img src="<?php echo($head_logo); ?>" class="Producteur logo">
- <div id="minilogo" style="height:5px;top:5px;"></div>
- <ul class="menu">
- <li class="menuUnderline"><a href="<?php echo(URL_ROOT); ?>" class="menuLink">
- <?php print $translate->_("Accueil"); ?> </a></li>
- <li class="menuUnderline" ><a href="<?php echo($translate->_('config__link')); ?>" class="menuLink" target="_blank" id='Program'>
- <?php print $translate->_("Programme"); ?></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 ?>client.php?lang=ja_JP" class="menuLink" >
- <img src='<?php echo(URL_ROOT); ?>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 ?>client.php?lang=fr" class="menuLink">
- <img src='<?php echo(URL_ROOT); ?>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 ?>client.php?lang=en" class="menuLink">
- <img src='<?php echo(URL_ROOT); ?>images/flag_en.gif' <?php if($actual!="en"){echo("style='opacity: .5;'"); } ?> />
- <?php print $translate->_("Anglais"); ?></a></li>
- </ul>
-
-
- <ul id="onglets">
- <li class="selected">
- <a href="#vlWrap"><?php echo($translate->_('Video')); ?></a>
- </li>
-<?php if (isset($config['semantic_board']) && $config['semantic_board']) { ?>
- <li>
- <a href="semanticboard.php?small=1&theme=jour"><?php echo($translate->_('SemanticBoard')); ?></a>
- </li>
-<?php } ?>
-<?php if (isset($config['knowtex_url'])) { ?>
- <li>
- <a href="<?php echo $config['knowtex_url'] ?>"><?php echo($translate->_('SocialGraph')); ?></a>
- </li>
-<?php } ?>
- </ul>
- <div class="ifwrap" id="vlWrap">
- <?php if ($config['islive']):?>
- <div class="videoLivePlayer">
- <object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="500" height="375">
- <param name="movie" value="<?php echo(URL_ROOT); ?>res/mediaplayer/player.swf" />
- <param name="allowfullscreen" value="true" />
- <param name="allowscriptaccess" value="always" />
- <param name="wmode" value="transparent" />
- <param name="flashvars" value="autostart=true&live=true&image=<?php echo($big_visual_url); ?>&provider=rtmp&streamer=rtmp://media.iri.centrepompidou.fr/ddc_player/&file=livestream&controlbar=none&autostart=true" />
- <embed
- type="application/x-shockwave-flash"
- id="player2"
- name="player2"
- src="<?php echo(URL_ROOT); ?>res/mediaplayer/player.swf"
- width="500"
- height="375"
- allowscriptaccess="always"
- allowfullscreen="true"
- wmode="transparent"
- flashvars="autostart=true&live=true&provider=rtmp&streamer=rtmp://media.iri.centrepompidou.fr/ddc_player/&file=livestream&image=<?php echo($big_visual_url); ?>&controlbar=none&autostart=true"
-
- />
- </object>
-
- </div>
- <?php elseif(isset($config['islive_embed']) && count($config['islive_embed'])>0):?>
- <div class="videoLivePlayer">
- <?php echo($config['islive_embed']); ?>
- </div>
- <?php else: ?>
- <div class="videoLivePlayer">
- <img src="<?php echo($big_visual_url); ?>" width="500" height="375" />
- </div>
- <?php endif; ?>
-
- </div>
- <div class="ifwrap hidden" id="iframeWrap">
- <iframe id="graphFrame"></iframe>
- </div>
-
- <div class="videoLiveProgram">
-
- <div class="arrowContainer">
- <div class="arrow"> </div>
- </div>
- <div class="videoLiveProgramTitle">
- <b><?php echo($translate->_('config__title')); ?></b></div>
- <div class="videoLiveProgramDescription">
- <br><?php echo($translate->_('config__description')); ?></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."$rep/client.php?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);'>$config[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>-->
- <?php if (isset($_SESSION['TWITTER_ACCESS_TOKEN'])): ?>
- <input id="tweetCounter" value="<?php echo(140-strlen($config['hashtag']));?>" disabled="disabled" size="3"/>
- <?php endif;?>
- <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($config['hashtag']); ?>',
- interval: 3000,
- title: '',
- subject: '',
- width: 377,
- height: 450,
- theme: {
- shell: {
- background: '#ffffff',
- color: '#ffffff'
- },
- tweets: {
- background: '#ffffff',
- color: '#444444',
- links: '#1985b5'
- }
- },
- features: {
- scrollbar: true,
- loop: false,
- live: true,
- hashtags: true,
- timestamp: true,
- avatars: true,
- toptweets: true,
- behavior: 'all'
- }
- }).render().start();
- </script>
- </div>
-
- <div class="footer">
- <hr>
- <?php
- echo($translate->_('config__partenaires'));
-
- if (isset($_SESSION['TWITTER_ACCESS_TOKEN'])){
- echo("| <a href='clear.php' class='footerLink'>".$translate->_("Déconnexion")."</a>");
- }
- ?>
- <input type="hidden" id="txt"/>
-
- </div>
-
-
- </div>
-
- </body>
-</html>
--- a/web/common.php Tue Mar 06 13:22:18 2012 +0100
+++ b/web/common.php Tue Mar 06 16:13:07 2012 +0100
@@ -219,13 +219,11 @@
$font_registry = array(
'local' => array(
'PT-Sans_Narrow' => URL_ROOT.'res/fonts/PT_Sans-Narrow-Web-Regular.css',
- 'PT-Sans' => URL_ROOT.'res/fonts/PT_Sans-Web-Regular.css',
- 'Geo' => URL_ROOT.'res/fonts/Geo-Regular.css'
+ 'PT-Sans' => URL_ROOT.'res/fonts/PT_Sans-Web-Regular.css'
),
'cdn' => array(
'PT-Sans_Narrow' => 'http://fonts.googleapis.com/css?family=PT+Sans+Narrow&subset=latin',
- 'PT-Sans' => 'http://fonts.googleapis.com/css?family=PT+Sans&subset=latin',
- 'Geo' => 'http://fonts.googleapis.com/css?family=Geo&subset=latin'
+ 'PT-Sans' => 'http://fonts.googleapis.com/css?family=PT+Sans&subset=latin'
)
);
--- a/web/embed_form.php Tue Mar 06 13:22:18 2012 +0100
+++ b/web/embed_form.php Tue Mar 06 16:13:07 2012 +0100
@@ -20,7 +20,6 @@
<!-- FONT -->
<link href='<?php echo(registry_url('PT-Sans_Narrow','font'))?>' rel='stylesheet' type='text/css'>
<link href='<?php echo(registry_url('PT-Sans','font'))?>' rel='stylesheet' type='text/css'>
- <link href='<?php echo(registry_url('Geo','font'))?>' rel='stylesheet' type='text/css'>
<style type="text/css">
body{
--- a/web/index.php Tue Mar 06 13:22:18 2012 +0100
+++ b/web/index.php Tue Mar 06 16:13:07 2012 +0100
@@ -53,7 +53,6 @@
<!-- FONT -->
<link href='<?php echo(registry_url('PT-Sans_Narrow','font'));?>' rel='stylesheet' type='text/css'>
<link href='<?php echo(registry_url('PT-Sans','font'));?>' rel='stylesheet' type='text/css'>
- <link href='<?php echo(registry_url('Geo','font'));?>' rel='stylesheet' type='text/css'>
<script type="text/javascript">
$(document).ready(function() {
@@ -243,23 +242,6 @@
</div>
-
- <!-- LIGHTBOX -->
- <div style="display:none;">
- <div id="Aboutbox" >
- <div class="lightBorder">
- <div class="lightTitle">ENMI 2010</div>
- <div class="lightSubTitle">Annotation critique par tweet </div>
- <div class="lightDescription">À partir de cette interface ou de votre client twitter habituel, vous pouvez réagir en direct aux conférences en twittant. Vos tweets seront synchronisés avec l'enregistrement des conférences. Vous pourrez qualifier vos tweets en y intégrant la syntaxe ci-contre.
- </div>
- <div>
- <br/>
- <a class="button_b" href="#" id="IDENTIFIER"><span>S'identifier</span></a> <br/><br/>
- <a class="button_w" href="#" id="ACCES"><span>Libre accès</span></a>
- </div>
- </div>
- </div>
- </div>
</body>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/web/live_embed_form.php Tue Mar 06 16:13:07 2012 +0100
@@ -0,0 +1,65 @@
+<?php
+
+/**
+ * include some common code (like we did in the 90s)
+ * People still do this? ;)
+ */
+$rep = $_REQUEST['rep'];
+include_once dirname(__FILE__).'/'.$rep.'/config.php';
+include_once 'common.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>Live Embed Configuration</title>
+
+ <link rel="stylesheet" href="<?php echo(registry_url('custom', 'css')); ?>" type="text/css" media="screen, projection">
+
+ <!-- FONT -->
+ <link href='<?php echo(registry_url('PT-Sans_Narrow','font'))?>' rel='stylesheet' type='text/css'>
+ <link href='<?php echo(registry_url('PT-Sans','font'))?>' rel='stylesheet' type='text/css'>
+
+ <style type="text/css">
+ body{
+ padding:0px;
+ margin:0px;
+ background-image:none;
+ width:300px;
+ padding:5px;
+ }
+ textarea {
+ margin-left:3px;
+ height: 150px;
+ width: 330px;
+ padding:5px;
+ background-image:none;
+ border:solid 1px #ccc;
+ }
+ </style>
+ <script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-23581291-1']);
+ _gaq.push(['_trackPageview']);
+ _gaq.push(['_setAllowAnchor', true]);
+
+
+ (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(URL_ROOT.$rep); ?>/client.php?embed=true" width="450" height="600" frameborder="0"></iframe><p><a href="<?php echo(URL_ROOT.$rep); ?>/client.php">Source</a> on <a href="<?php echo(URL_ROOT); ?>">PolemicTweet</a>.</p>
+ </textarea>
+
+ </body>
+</html>
--- a/web/polemicaltimeline.php Tue Mar 06 13:22:18 2012 +0100
+++ b/web/polemicaltimeline.php Tue Mar 06 16:13:07 2012 +0100
@@ -135,7 +135,8 @@
live: true,
height: 400,
width: 650,
- provider: "rtmp"
+ provider: "rtmp",
+ autostart: true
},
modules: [
{ type: "MediaFragment",
@@ -169,7 +170,11 @@
'type' : 'iframe'
});
jQuery(".acctitre").click(function() {
- jQuery(this).next().slideToggle();
+ var _nx = jQuery(this).next();
+ if (_nx.is(":hidden")) {
+ jQuery(".acctexte").slideUp();
+ _nx.slideDown();
+ }
})
});
@@ -256,30 +261,30 @@
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js"></script>
<!-- AddThis Button END -->
</div>
- </div>
+ </div>
<!-- EXPLICATION -->
<div id="mdpgauche">
<div id="out_fleche"></div>
<ul id="accordeon">
<li class="acctitre">
+ <h3><?php echo($translate->_('config__title')); ?></h3>
+ </li>
+ <li class="acctexte">
+ <p><?php echo($translate->_('config__description')); ?></p>
+ </li>
+ <li class="acctitre">
<h3>Liste des Annotations</h3>
</li>
- <li class="acctexte">
+ <li class="acctexte" style="display: none;">
<div id="AnnotationsListContainer"></div>
</li>
<li class="acctitre">
<h3>Mots-clés</h3>
</li>
- <li class="acctexte">
+ <li class="acctexte" style="display: none;">
<div class="tagcloud" id="TagcloudContainer"></div>
</li>
- <li class="acctitre">
- <h3><?php print $translate->_("AboutPT"); ?></h3>
- </li>
- <li class="acctexte" style="display: none;">
- <p><?php print $translate->_("ExplicationPT"); ?></p>
- </li>
</ul>
</div>
@@ -288,8 +293,8 @@
<!-- INFOS SUR LA CONF
<div class="tweetExplain" >
- <h3 class="tweetWriterTitle"><?php echo($translate->_('config__title')); ?></h3><br/>
- <?php echo($translate->_('config__description')); ?>
+ <h3 class="tweetWriterTitle"></h3><br/>
+
</div>
-->
Binary file web/res/css/twcx-img/embedbutton.png has changed
--- a/web/res/css/tweetcast.css Tue Mar 06 13:22:18 2012 +0100
+++ b/web/res/css/tweetcast.css Tue Mar 06 16:13:07 2012 +0100
@@ -170,6 +170,10 @@
float: right; width: 216px; height: 32px; margin-top: 15px;
}
+.embed .embedbar {
+ display: none;
+}
+
a.embedbutton {
display: block; float: left; background: url(twcx-img/embedbutton.png); text-decoration: none; font-size: 13px;
width: 64px; text-align: center; height: 19px; padding-top: 13px;
@@ -484,7 +488,7 @@
/* Colonne de droite */
#onglets {
- float: left; width: 441px; margin: 43px 25px 0; list-style: none;
+ float: left; width: 441px; margin: 22px 25px 0; list-style: none;
border-left: 1px solid #999;
}
@@ -626,7 +630,7 @@
}
#mdpgauche li.acctexte {
- max-height: 300px;
+ max-height: 450px;
}
.acctexte ul {
--- a/web/res/fonts/Geo-Regular.css Tue Mar 06 13:22:18 2012 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,6 +0,0 @@
-@font-face {
- font-family: 'Geo';
- font-style: normal;
- font-weight: normal;
- src: local('Geo'), local('Geo-Regular'), url('Geo-Regular.woff') format('woff');
-}
Binary file web/res/fonts/Geo-Regular.woff has changed