1 <?php |
|
2 $embed = (isset($_REQUEST['embed']) && $_REQUEST['embed']); |
|
3 $videoWidth = ( $embed ? 442 : 480 ); |
|
4 $videoHeight = ( $embed ? 250 : 320 ); |
|
5 ?> |
|
6 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" |
|
7 "http://www.w3.org/TR/html4/strict.dtd"> |
|
8 |
|
9 <html lang="<?php echo($actual); ?>"> |
|
10 <head> |
|
11 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
|
12 <title>Live Video and Annotation</title> |
|
13 <meta http-equiv="X-UA-Compatible" content="IE=9" /> |
|
14 |
|
15 <!-- FONT --> |
|
16 <link href='<?php echo(registry_url('PT-Sans_Narrow','font'))?>' rel='stylesheet' type='text/css'> |
|
17 <link href='<?php echo(registry_url('PT-Sans','font'))?>' rel='stylesheet' type='text/css'> |
|
18 |
|
19 <!-- CSS --> |
|
20 <link rel="stylesheet" href="<?php echo(registry_url('fancybox','css'));?>" type="text/css" media="screen"> |
|
21 <link rel="stylesheet" href="<?php echo(registry_url('tweetcast','css'));?>" type="text/css" media="screen, projection"/> |
|
22 |
|
23 <!-- JAVASCRIPT --> |
|
24 <script type="text/javascript" src="<?php echo(registry_url('jquery','js'))?>"></script> |
|
25 <script type="text/javascript" src="<?php echo(registry_url('jquery-mousewheel','js'))?>"></script> |
|
26 <script type="text/javascript" src="<?php echo(registry_url('jquery-scrollto','js'))?>"></script> |
|
27 <script type="text/javascript" src="<?php echo(registry_url('underscore','js'))?>"></script> |
|
28 <script type="text/javascript" src="<?php echo(registry_url('raphael','js'))?>"></script> |
|
29 <script type="text/javascript" src="<?php echo(registry_url('fancybox','js'))?>"></script> |
|
30 |
|
31 <script type="text/javascript"> |
|
32 <?php if (isset($config['hashtag'])) echo "var tracking_keywords = ".json_encode(array($config['hashtag'])).";"; ?> |
|
33 <?php if (isset($config['suggested_keywords'])) echo "var suggested_keywords = ".json_encode($config['suggested_keywords']).";"; ?> |
|
34 <?php if (isset($config['js_config'])) echo $config['js_config']; ?> |
|
35 </script> |
|
36 <script type="text/javascript" src="<?php echo(registry_url('twcx-main','js'))?>"></script> |
|
37 |
|
38 <script type="text/javascript"> |
|
39 l10n = { "rechercher" : "<?php echo $translate->_('Rechercher'); ?>" } |
|
40 |
|
41 function add_grammar(value) { |
|
42 var _st = $('#status'), |
|
43 _val = _st.val(); |
|
44 _st.val( _val + ( _val[_val.length - 1] == " " ? "" : " " ) + value ).change(); |
|
45 } |
|
46 |
|
47 $(document).ready(function() { |
|
48 |
|
49 /* setTimeout(function() { |
|
50 $.scrollTo(70, 1000); |
|
51 }, 2000); */ |
|
52 |
|
53 //$("txt").hide(); |
|
54 $(".loginbutton").click(function() { |
|
55 document.location.href="<?php echo(URL_ROOT.$rep); ?>/client.php?CONNECT=true"; |
|
56 }); |
|
57 $("#IDENTIFIER").click(function() { |
|
58 document.location.href="<?php echo(URL_ROOT.$rep); ?>/client.php?CONNECT=true"; |
|
59 }); |
|
60 |
|
61 function updateCounter() { |
|
62 var _v = $("#status").val(); |
|
63 if (_v.length > 140) { |
|
64 _v = _v.substr(0,140); |
|
65 $("#status").val(_v); |
|
66 } |
|
67 $('#tweetCounter').html(140-_v.length); |
|
68 if(140-_v.length < 0) { |
|
69 $('#tweetCounter').addClass("tweetCounterNegative"); |
|
70 } |
|
71 else { |
|
72 $('#tweetCounter').removeClass("tweetCounterNegative"); |
|
73 } |
|
74 $(".tweetButton").each(function(_i, _e) { |
|
75 if (_v.search($(_e).find('span.twbSyntax').text().replace(/(\W)/g, '\\$1')) > -1) { |
|
76 $(_e).addClass('selected'); |
|
77 } else { |
|
78 $(_e).removeClass('selected'); |
|
79 } |
|
80 }); |
|
81 } |
|
82 |
|
83 // BUTTONS |
|
84 $(".tweetButton").click(function() { |
|
85 add_grammar($(this).find('span.twbSyntax').text()); |
|
86 updateCounter(); |
|
87 }) |
|
88 |
|
89 // SEND TWEETS |
|
90 $("#sendTweet").click(function(){ |
|
91 var MyStatus = $('#status').val(); |
|
92 $.post('tweet_ajax.php', {status:MyStatus} |
|
93 ,function(data) { |
|
94 |
|
95 if(data=="true"){ |
|
96 $("#messageSuccess").show('fast'); |
|
97 $("#messageSuccess").delay(800).hide('slow'); |
|
98 $('#status').val("<?php echo($config['hashtag']); ?>"); |
|
99 $('#status').change(); |
|
100 }else{ |
|
101 $("#error").text(data); |
|
102 $("#messageFailed").show('fast'); |
|
103 $("#messageFailed").delay(800).hide('slow'); |
|
104 } |
|
105 |
|
106 }); |
|
107 |
|
108 }); |
|
109 |
|
110 |
|
111 $("#status").bind("change keyup paste blur focus",updateCounter); |
|
112 |
|
113 |
|
114 $("#Program").fancybox({ |
|
115 'width' : '75%', |
|
116 'height' : '75%', |
|
117 'autoScale' : false, |
|
118 'transitionIn' : 'none', |
|
119 'transitionOut' : 'none', |
|
120 'type' : 'iframe' |
|
121 }); |
|
122 |
|
123 $("#onglets a").click(function() { |
|
124 $("div.ifwrap").hide(); |
|
125 $("#onglets li").removeClass("selected"); |
|
126 $(this).parent().addClass("selected"); |
|
127 var hr = $(this).attr("href"); |
|
128 if (hr[0] == '#') { |
|
129 $(hr).show(); |
|
130 } else { |
|
131 $("#iframeWrap").show(); |
|
132 $("#graphFrame").attr("src", hr); |
|
133 } |
|
134 return false; |
|
135 }); |
|
136 |
|
137 |
|
138 }); |
|
139 |
|
140 //<!-- LIMIT TEXTAREA: |
|
141 // End --> |
|
142 |
|
143 </script> |
|
144 |
|
145 <script type="text/javascript"> |
|
146 |
|
147 var _gaq = _gaq || []; |
|
148 _gaq.push(['_setAccount', 'UA-23581291-1']); |
|
149 _gaq.push(['_trackPageview']); |
|
150 _gaq.push(['_setAllowAnchor', true]); |
|
151 |
|
152 (function() { |
|
153 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; |
|
154 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; |
|
155 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); |
|
156 })(); |
|
157 |
|
158 </script> |
|
159 |
|
160 </head> |
|
161 <body<?php if ($embed) { echo ' class="embed"'; } ?>> |
|
162 <div id="sendUsFeedBack"><a href="<?php echo($C_feedback_form_url); ?>" target="_blank"><img src="<?php echo(URL_ROOT); ?>images/sendusfeedback.png"></a></div> |
|
163 |
|
164 <div id="container"> |
|
165 |
|
166 <div id="coldroite"> |
|
167 <ul id="onglets"> |
|
168 <?php if (isset($config['semantic_board']) and isset($config['knowtex_url'])) { ?> |
|
169 <li class="selected"> |
|
170 <a href="#vlWrap"><?php echo($translate->_('Video')); ?></a> |
|
171 </li> |
|
172 <?php } ?> |
|
173 <?php if (isset($config['semantic_board']) and $config['semantic_board']) { ?> |
|
174 <li> |
|
175 <a href="semanticboard.php?small=1&theme=jour"><?php echo($translate->_('SemanticBoard')); ?></a> |
|
176 </li> |
|
177 <?php } ?> |
|
178 <?php if (isset($config['knowtex_url'])) { ?> |
|
179 <li> |
|
180 <a href="<?php echo $config['knowtex_url'] ?>"><?php echo($translate->_('SocialGraph')); ?></a> |
|
181 </li> |
|
182 <?php } ?> |
|
183 </ul> |
|
184 <div class="ifwrap" id="vlWrap"> |
|
185 <div id="videoLivePlayer"> |
|
186 <?php if ($config['islive']):?> |
|
187 <object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="<?php echo $videoWidth; ?>" height="<?php echo $videoHeight; ?>"> |
|
188 <param name="movie" value="<?php echo(URL_ROOT); ?>res/mediaplayer/player.swf" /> |
|
189 <param name="allowfullscreen" value="true" /> |
|
190 <param name="allowscriptaccess" value="always" /> |
|
191 <param name="wmode" value="transparent" /> |
|
192 <?php |
|
193 |
|
194 function flv_param($name,$default) { |
|
195 global $config; |
|
196 return ( isset($config["flv_$name"]) ? ( $config["flv_$name"] ? "&$name=".$config["flv_$name"] : "" ) : "&$name=$default" ); |
|
197 } |
|
198 |
|
199 $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"; |
|
200 ?> |
|
201 <param name="flashvars" value="<?php echo $flashvars; ?>" /> |
|
202 <embed |
|
203 type="application/x-shockwave-flash" |
|
204 id="player2" |
|
205 name="player2" |
|
206 src="<?php echo(URL_ROOT); ?>res/mediaplayer/player.swf" |
|
207 width="<?php echo $videoWidth; ?>" |
|
208 height="<?php echo $videoHeight; ?>" |
|
209 allowscriptaccess="always" |
|
210 allowfullscreen="true" |
|
211 wmode="transparent" |
|
212 flashvars="<?php echo $flashvars; ?>" |
|
213 /> |
|
214 </object> |
|
215 <?php elseif(isset($config['islive_embed']) && count($config['islive_embed'])>0):?> |
|
216 <?php echo($config['islive_embed']); ?> |
|
217 <?php else: ?> |
|
218 <img src="<?php echo($big_visual_url); ?>" width="<?php echo $videoWidth; ?>" height="<?php echo $videoHeight; ?>" /> |
|
219 <?php endif; ?> |
|
220 </div> |
|
221 </div> |
|
222 <div class="ifwrap hidden" id="iframeWrap"> |
|
223 <iframe id="graphFrame"></iframe> |
|
224 </div> |
|
225 <div id="out_fleche"> |
|
226 <!-- <div id="in_fleche"></div> --> |
|
227 </div> |
|
228 <ul id="accordeon"> |
|
229 <li class="acctitre"> |
|
230 <h3><?php echo($translate->_('config__title')); ?></h3> |
|
231 </li> |
|
232 <li class="acctexte"> |
|
233 <p><?php echo($translate->_('config__description')); ?></p> |
|
234 </li> |
|
235 <li class="acctitre"> |
|
236 <h3><?php echo($translate->_('keywords')); ?></h3> |
|
237 </li> |
|
238 <li class="fl"> |
|
239 <ul class="fl"> |
|
240 <li class="acctexte"> |
|
241 <div class="accsubtitle"> |
|
242 <div class="aroundsubtitle"> |
|
243 <h4><?php echo($translate->_('suggested')); ?></h4> |
|
244 </div> |
|
245 </div> |
|
246 <div class="tagcloud" id="suggkw"></div> |
|
247 </li> |
|
248 <li class="acctexte"> |
|
249 <div class="accsubtitle"> |
|
250 <div class="aroundsubtitle"> |
|
251 <h4><?php echo($translate->_('contextual')); ?></h4> |
|
252 </div> |
|
253 </div> |
|
254 <div class="tagcloud" id="motscles"></div> |
|
255 </li> |
|
256 </ul> |
|
257 </li> |
|
258 </ul> |
|
259 </div> |
|
260 <div id="colgauche"> |
|
261 <div class="barre"> |
|
262 <img id="headlogo" src="<?php echo($head_logo); ?>" width="171" height="63" /> |
|
263 <div id="minilogo"></div> |
|
264 <ul class="menu"> |
|
265 <li> |
|
266 <a href="<?php echo(URL_ROOT); ?>" class="menuLink"> |
|
267 <?php print $translate->_("Accueil"); ?> |
|
268 </a> |
|
269 </li> |
|
270 <li> |
|
271 <a href="<?php echo($translate->_('config__link')); ?>" class="menuLink" target="_blank" id='Program'> |
|
272 <?php print $translate->_("Programme"); ?> |
|
273 </a> |
|
274 </li> |
|
275 <li> |
|
276 <a href="../about.php" class="menuLink" > |
|
277 <?php print $translate->_("A propos"); ?> |
|
278 </a> |
|
279 </li> |
|
280 </ul> |
|
281 <ul class="menu"> |
|
282 <li> |
|
283 <a href="<?php URL_ROOT ?>client.php?lang=ja_JP" class="menuLink" > |
|
284 <img src='<?php echo(URL_ROOT); ?>images/flag_jp.gif'<?php if($actual!="ja_JP"){echo("style='opacity: .5;'"); } ?> /> |
|
285 <?php print $translate->_("Japonais"); ?> |
|
286 </a></li> |
|
287 <li> |
|
288 <a href="<?php URL_ROOT ?>client.php?lang=fr" class="menuLink"> |
|
289 <img src='<?php echo(URL_ROOT); ?>images/flag_fr.gif' <?php if($actual!="fr"){echo("style='opacity: .5;'"); } ?> /> |
|
290 <?php print $translate->_("Français"); ?> |
|
291 </a> |
|
292 </li> |
|
293 <li> |
|
294 <a href="<?php URL_ROOT ?>client.php?lang=en" class="menuLink"> |
|
295 <img src='<?php echo(URL_ROOT); ?>images/flag_en.gif' <?php if($actual!="en"){echo("style='opacity: .5;'"); } ?> /> |
|
296 <?php print $translate->_("Anglais"); ?> |
|
297 </a> |
|
298 </li> |
|
299 </ul> |
|
300 </div> |
|
301 <div id="twwWrap"> |
|
302 <div id="tweetWriter"> |
|
303 <?php if (isset($_SESSION['TWITTER_ACCESS_TOKEN'])): ?> |
|
304 <div id="tweetCounter"><?php echo(140-strlen($config['hashtag']));?></div> |
|
305 <?php endif;?> |
|
306 <h3 class="tweetWriterTitle"><?php print $translate->_("ClientTitle1 :"); ?></h3> |
|
307 <form action="tweet.php" method="post" id="statusform" > |
|
308 <?php if (!isset($_SESSION['TWITTER_ACCESS_TOKEN'])){ |
|
309 echo("<div class='loginbutton'><a href='".URL_ROOT."$rep/client.php?CONNECT=true' class='loginlink'>".$translate->_("Vous n'êtes pas connecté.")."</a></div>"); |
|
310 } else { |
|
311 echo("<textarea name='status' id='status' rows='3' cols='50'>$config[hashtag]</textarea>"); |
|
312 } |
|
313 ?> |
|
314 <div id="messageSuccess" style="background-color:lightgreen; display: none;"> |
|
315 <?php print $translate->_("Envoyé"); ?><br/><br/> |
|
316 </div> |
|
317 <div id="messageFailed" style="background-color:red; display: none;"> |
|
318 <?php print $translate->_("Erreur1"); ?><div id="error"> </div><br/><br/> |
|
319 </div> |
|
320 <a href="#" id="sendTweet" > |
|
321 <span><?php print $translate->_("Envoyer"); ?></span> |
|
322 </a> |
|
323 <a id="positive" title="++ | <?php echo $translate->_('Agree'); ?>" class="tweetButton twbGreen"> |
|
324 <span class="twbSyntax">++</span> |
|
325 <span class="twbSeparator">|</span> |
|
326 <span class="twbLabel"><?php echo $translate->_('Agree'); ?></span> |
|
327 </a> |
|
328 <a id="negative" title="-- | <?php echo $translate->_('Disagree'); ?>" class="tweetButton twbRed"> |
|
329 <span class="twbSyntax">--</span> |
|
330 <span class="twbSeparator">|</span> |
|
331 <span class="twbLabel"><?php echo $translate->_('Disagree'); ?></span> |
|
332 </a> |
|
333 <a id="reference" title="== | <?php echo $translate->_('Reference'); ?>" class="tweetButton twbYellow"> |
|
334 <span class="twbSyntax">==</span> |
|
335 <span class="twbSeparator">|</span> |
|
336 <span class="twbLabel"><?php echo $translate->_('Reference'); ?></span> |
|
337 </a> |
|
338 <a id="question" title="?? | <?php echo $translate->_('Question'); ?>" class="tweetButton twbBlue"> |
|
339 <span class="twbSyntax">??</span> |
|
340 <span class="twbSeparator">|</span> |
|
341 <span class="twbLabel"><?php echo $translate->_('Question'); ?></span> |
|
342 </a> |
|
343 |
|
344 <div style="clear: both;"></div> |
|
345 </form> |
|
346 </div> |
|
347 </div> |
|
348 <div id="tweetviz"> |
|
349 <div class="barre"> |
|
350 <form id="recherche"> |
|
351 <input autocomplete="off" class="greyed" id="inp_q" value="<?php echo $translate->_('Rechercher'); ?>" /> |
|
352 <input id="inp_submit" type="submit" /> |
|
353 <input id="inp_reset" type="reset" /> |
|
354 <div id="time_controls"> |
|
355 <div id="time_legende"></div> |
|
356 <div id="time_scale"></div> |
|
357 <a href="#" id="time_zoomout"></a> |
|
358 <a href="#" id="time_zoomin"></a> |
|
359 </div> |
|
360 <div id="recherche_annot"> |
|
361 <?php echo $translate->_('SearchByPolemic'); ?> : <span id="rech_list_annot"></span><br /> |
|
362 </div> |
|
363 </form> |
|
364 </div> |
|
365 <ul id="tweetlist"></ul> |
|
366 <div id="timeline"></div> |
|
367 <div id="scrollcont"> |
|
368 <div id="scrollin"></div> |
|
369 </div> |
|
370 </div> |
|
371 </div> |
|
372 <div class="footer"> |
|
373 <hr /> |
|
374 <?php |
|
375 echo($translate->_('config__partenaires')); |
|
376 |
|
377 if (isset($_SESSION['TWITTER_ACCESS_TOKEN'])){ |
|
378 echo("| <a href='clear.php' class='footerLink'>".$translate->_("Déconnexion")."</a>"); |
|
379 } |
|
380 ?> |
|
381 </div> |
|
382 </div> |
|
383 <div id="hovertweet"> |
|
384 <div id="hovercontent"></div> |
|
385 <div id="hoverarrow"></div> |
|
386 </div> |
|
387 <ul id="hoverkw"> |
|
388 <li><a id="hkwsearch" href="#"><?php echo $translate->_('Rechercher'); ?></a></li> |
|
389 <li><a id="hkwtweet" href="#"><?php echo $translate->_('addToTweet'); ?></a></li> |
|
390 </ul> |
|
391 </body> |
|
392 </html> |
|