7 // configuration |
7 // configuration |
8 include 'common.php'; |
8 include 'common.php'; |
9 // objet actuel |
9 // objet actuel |
10 include_once 'config.php'; |
10 include_once 'config.php'; |
11 |
11 |
|
12 $url = (!empty($_SERVER['HTTPS'])) ? "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] : "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; |
|
13 |
12 ?> |
14 ?> |
13 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
15 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
14 <html lang="<?php echo($actual); ?>"> |
16 <html lang="<?php echo($actual); ?>"> |
15 <head> |
17 <head> |
16 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
18 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
17 <title>Polemic tweet - <?php echo($config['title']); ?></title> |
19 <title>Polemic tweet - <?php echo($config['title']); ?> - <?php echo($url); ?></title> |
18 <meta name="keywords" content="<?php echo($config['keywords']); ?>"><!-- add timestampedmetadata --> |
20 <meta name="keywords" content="<?php echo($config['keywords']); ?>"><!-- add timestampedmetadata --> |
19 <!--<meta name="description" content="PoelmicTweet.fr : debate mapping, opinion, conference, video">--> |
21 <!--<meta name="description" content="PoelmicTweet.fr : debate mapping, opinion, conference, video">--> |
20 <meta name="description" content="<?php echo($config['description']); ?>"> |
22 <meta name="description" content="<?php echo($config['description']); ?>"> |
21 <meta name="robots" content="index, follow"> |
23 <meta name="robots" content="index, follow"> |
22 |
24 |
23 <!-- ICI : <?php echo($_SERVER['DOCUMENT_ROOT']); ?> --> |
25 <!-- ICI : <?php echo($_SERVER['DOCUMENT_ROOT']); ?> --> |
24 <!-- JAVASCRIPT --> |
26 <!-- JAVASCRIPT --> |
25 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> |
27 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> |
|
28 <script type="text/javascript"> |
|
29 $.noConflict(); |
|
30 </script> |
26 <script type="text/javascript" src="../res/raphael/raphael-min.js"></script> |
31 <script type="text/javascript" src="../res/raphael/raphael-min.js"></script> |
27 <script type="text/javascript" src="../res/jquery.fancybox/fancybox/jquery.fancybox-1.3.4.pack.js"></script> |
32 <script type="text/javascript" src="../res/jquery.fancybox/fancybox/jquery.fancybox-1.3.4.pack.js"></script> |
28 <script type="text/javascript" src="../res/niceforms/niceforms.js"></script> |
33 <script type="text/javascript" src="../res/niceforms/niceforms.js"></script> |
|
34 <script type="text/javascript" src="../res/jquery.url/jquery.url.js"></script> |
|
35 <script type='text/javascript' src='../res/metadataplayer/src/js/LdtPlayer.js'></script> |
29 |
36 |
30 <!-- Framework CSS --> |
37 <!-- Framework CSS --> |
31 <link rel="stylesheet" href="../res/blueprint/screen.css" type="text/css" media="screen, projection"> |
38 <link rel="stylesheet" href="../res/blueprint/screen.css" type="text/css" media="screen, projection"> |
32 <link rel="stylesheet" href="../res/blueprint/print.css" type="text/css" media="print"> |
39 <link rel="stylesheet" href="../res/blueprint/print.css" type="text/css" media="print"> |
33 <link rel="stylesheet" href="../res/blueprint/plugins/fancy-type/screen.css" type="text/css" media="screen, projection"> |
40 <link rel="stylesheet" href="../res/blueprint/plugins/fancy-type/screen.css" type="text/css" media="screen, projection"> |
74 padding-top: 0px; |
81 padding-top: 0px; |
75 z-index: 9; |
82 z-index: 9; |
76 position : absolute; |
83 position : absolute; |
77 } |
84 } |
78 |
85 |
79 </style> |
86 </style> |
80 <script type="text/javascript"> |
87 <script type="text/javascript"> |
81 |
88 // Configuration Polemical Timeline |
82 var _gaq = _gaq || []; |
89 <?php |
83 _gaq.push(['_setAccount', 'UA-23581291-1']); |
90 if(is_array($config['metadata'])): |
84 _gaq.push(['_setDomainName', '.iri.centrepompidou.fr']); |
91 reset($config['metadata']); |
85 _gaq.push(['_trackPageview']); |
92 $first_key = key($config['metadata']); |
86 |
93 ?> |
87 (function() { |
94 var metadatas = jQuery.parseJSON('<?php echo(json_encode($config['metadata'])); ?>'); |
88 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; |
95 var url = jQuery.url(); |
89 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; |
96 var metadata_key = url.fparam('metadata'); |
90 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); |
97 if(typeof metadata_key === "undefined" || metadata_key.length === 0) { |
91 })(); |
98 metadata_key = "<?php echo($first_key);?>"; |
92 |
99 } |
93 </script> |
100 <?php else: ?> |
|
101 var metadatas = { metadata: {url: "<?php echo($config['metadata'])?>"} }; |
|
102 var metadata_key = "metadata"; |
|
103 <?php endif;?> |
|
104 |
|
105 var config = { |
|
106 target:"chartTimeline", |
|
107 x:8, |
|
108 y:418, |
|
109 width:<?php echo($player_width); ?>, |
|
110 height:<?php echo($player_height); ?>, |
|
111 heightmax:<?php echo($player_height); ?>, |
|
112 duration:<?php echo($config['duration']); ?>, |
|
113 metadata:metadatas[metadata_key].url |
|
114 }; |
|
115 </script> |
|
116 <script type='text/javascript' src='../res/metadataplayer.polemic/src/js/polemic.js'></script> |
94 <script type="text/javascript"> |
117 <script type="text/javascript"> |
95 $(document).ready(function() { |
118 jQuery.extend(__IriSP.lib,{jQueryToolTip:"../res/metadataplayer/res/js/jquery.tools.min.js"}); |
|
119 |
|
120 jQuery(document).ready(function() { |
96 |
121 |
97 $("#Embeded").fancybox({ |
122 jQuery("#Embeded").fancybox({ |
98 'width' : 360, |
123 'width' : 360, |
99 'height' : 360, |
124 'height' : 360, |
100 'autoDimensions' : false, |
125 'autoDimensions' : false, |
101 'transitionIn' : 'none', |
126 'transitionIn' : 'none', |
102 'transitionOut' : 'none', |
127 'transitionOut' : 'none', |
103 'type' : 'iframe' |
128 'type' : 'iframe' |
104 }); |
129 }); |
|
130 |
105 |
131 |
|
132 jQuery("#mdselect_"+metadata_key).attr("selected","selected"); |
|
133 jQuery("#mdselect").change(function() { |
|
134 var metadata_key = this.options[this.selectedIndex].value; |
|
135 var hashpart = window.location.hash; |
|
136 var window_location = window.location.href; |
|
137 if(hashpart.length === 0) { |
|
138 hashpart = "#metadata="+metadata_key; |
|
139 } |
|
140 else if (hashpart.indexOf("metadata=")>=0) { |
|
141 hashpart = hashpart.replace(/metadata=[\w\d]*/, "metadata="+metadata_key) |
|
142 } |
|
143 else { |
|
144 hashpart += "&metadata="+metadata_key; |
|
145 } |
|
146 window.location.hash = hashpart; |
|
147 window.location.href = window.location.href; |
|
148 window.location.reload(true); |
|
149 }); |
106 }); |
150 }); |
|
151 </script> |
|
152 <script type="text/javascript"> |
|
153 var _gaq = _gaq || []; |
|
154 _gaq.push(['_setAccount', 'UA-23581291-1']); |
|
155 _gaq.push(['_trackPageview']); |
|
156 |
|
157 (function() { |
|
158 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; |
|
159 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; |
|
160 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); |
|
161 })(); |
107 </script> |
162 </script> |
108 |
|
109 </head> |
163 </head> |
110 <script type="text/javascript"> |
|
111 // Configuration Polemical Timeline |
|
112 var config = { |
|
113 target:"chartTimeline", |
|
114 x:8, |
|
115 y:418, |
|
116 width:650, |
|
117 height:480, |
|
118 heightmax:480, |
|
119 duration:<?php echo($config['duration']); ?>, |
|
120 metadata:"<?php echo($config['metadata']); ?>" |
|
121 }; |
|
122 </script> |
|
123 <script type='text/javascript' src='../res/metadataplayer.polemic/src/js/polemic.js'></script> |
|
124 <body> |
164 <body> |
125 |
165 |
126 |
166 |
127 <!-- tooltip --> |
167 <!-- tooltip --> |
128 <div id="tip"> |
168 <div id="tip"> |
137 <?php print $translate->_("Accueil"); ?></a></li> |
177 <?php print $translate->_("Accueil"); ?></a></li> |
138 <li class="menuUnderline"><a href="embed_form.php" class="menuLink" id="Embeded"> |
178 <li class="menuUnderline"><a href="embed_form.php" class="menuLink" id="Embeded"> |
139 <?php print $translate->_("Partager"); ?></a></li> |
179 <?php print $translate->_("Partager"); ?></a></li> |
140 <li > </li> |
180 <li > </li> |
141 </ul> |
181 </ul> |
142 |
182 <?php if(is_array($config['metadata'])):?> |
143 <ul class="menu lang" > |
183 <ul id="content_select_ul" class="menu mdselect"> |
|
184 <select id="mdselect"> |
|
185 <?php foreach ($config['metadata'] as $key => $value):?> |
|
186 <option value="<?php echo($key); ?>" id="mdselect_<?php echo($key); ?>" ><?php echo($value['display']); ?></option> |
|
187 <?php endforeach;?> |
|
188 </select> |
|
189 </ul> |
|
190 <ul class="menu shortlang" > |
|
191 <?php else:?> |
|
192 <ul class="menu lang" > |
|
193 <?php endif;?> |
144 <li class="menuUnderline"><a href="<?php URL_ROOT ?>?lang=ja_JP" class="menuLink" > |
194 <li class="menuUnderline"><a href="<?php URL_ROOT ?>?lang=ja_JP" class="menuLink" > |
145 <img src='../images/flag_jp.gif'<?php if($actual!="ja_JP"){echo("style='opacity: .5;'"); } ?> /> |
195 <img src='../images/flag_jp.gif'<?php if($actual!="ja_JP"){echo("style='opacity: .5;'"); } ?> /> |
146 <?php print $translate->_("Japonais"); ?></a></li> |
196 <?php print $translate->_("Japonais"); ?></a></li> |
147 <li class="menuUnderline"><a href="<?php URL_ROOT ?>?lang=fr" class="menuLink"> |
197 <li class="menuUnderline"><a href="<?php URL_ROOT ?>?lang=fr" class="menuLink"> |
148 <img src='../images/flag_fr.gif' <?php if($actual!="fr"){echo("style='opacity: .5;'"); } ?> /> |
198 <img src='../images/flag_fr.gif' <?php if($actual!="fr"){echo("style='opacity: .5;'"); } ?> /> |
169 |
219 |
170 |
220 |
171 |
221 |
172 <div class="videoLive" > |
222 <div class="videoLive" > |
173 <div class="videoLivePlayer"> |
223 <div class="videoLivePlayer"> |
174 |
224 <div id="chartTimeline"> </div> |
175 <div id="chartTimeline"> </div> |
225 <script type="text/javascript"> |
176 <script type="text/javascript"> |
226 var paper = Raphael(document.getElementById("chartTimeline"),config.width, config.height); |
177 var paper = Raphael(document.getElementById("chartTimeline"),config.width, config.height); |
227 </script> |
178 </script> |
228 <div id="player_project_embed" class="iri_player_embed"></div> |
179 |
|
180 <script type='text/javascript' src='../res/metadataplayer/src/js/LdtPlayer.js'></script> |
|
181 <script type="text/javascript"> |
|
182 $.extend(__IriSP.lib,{jQueryToolTip:"../res/metadataplayer/res/js/jquery.tools.min.js"}); |
|
183 </script> |
|
184 |
|
185 <div id="player_project_13b0aa52-336b-11e0-b233-00145ea49a02_embed" class="iri_player_embed"> </div> |
|
186 <script type="text/javascript"> |
229 <script type="text/javascript"> |
187 var configMP = { |
230 var configMP = { |
188 /*metadata:{ |
|
189 format:'cinelab', |
|
190 src:'metadata.json', |
|
191 load:'json'},*/ |
|
192 metadata:{ |
231 metadata:{ |
193 format:'cinelab', |
232 format:'cinelab', |
194 src:'<?php echo($config['metadata']); ?>', |
233 src:config.metadata, |
195 load:'jsonp'}, |
234 load:'jsonp'}, |
196 gui:{ |
235 gui:{ |
197 width:650, |
236 width:config.width, |
198 height:480, |
237 height:config.height, |
199 mode:'video', |
238 mode:'video', |
200 container:'player_project_13b0aa52-336b-11e0-b233-00145ea49a02_embed', |
239 container:'player_project_embed', |
201 debug:false, |
240 debug:false, |
202 css:'../res/css/LdtPlayer.css'}, |
241 css:'../res/css/LdtPlayer.css'}, |
203 |
242 |
204 player:{ |
243 player:{ |
205 type:'jwplayer', |
244 type:'jwplayer', |
206 src:'http://www.iri.centrepompidou.fr//dev/ldt/static/ldt/swf/player.swf'} |
245 src:'../res/metadataplayer/res/swf/player.swf'} |
207 }; |
246 }; |
208 __IriSP.init(configMP); |
247 __IriSP.init(configMP); |
209 </script> |
248 </script> |
210 </div> |
249 </div> |
211 </div> |
250 </div> |
212 |
251 |
213 |
252 |
214 <div class="footer"> |
253 <div class="footer"> |
215 <hr> |
254 <hr> |