59 <title>Polemic tweet — <?php echo($translate->_('config__title')); ?></title> |
59 <title>Polemic tweet — <?php echo($translate->_('config__title')); ?></title> |
60 <meta name="keywords" content="<?php echo($translate->_('config__keywords')); ?>"><!-- add timestampedmetadata --> |
60 <meta name="keywords" content="<?php echo($translate->_('config__keywords')); ?>"><!-- add timestampedmetadata --> |
61 <!--<meta name="description" content="PoelmicTweet.fr : debate mapping, opinion, conference, video">--> |
61 <!--<meta name="description" content="PoelmicTweet.fr : debate mapping, opinion, conference, video">--> |
62 <meta name="description" content="<?php echo(strip_tags($translate->_('config__description'))); ?>"> |
62 <meta name="description" content="<?php echo(strip_tags($translate->_('config__description'))); ?>"> |
63 <meta name="robots" content="index, follow"> |
63 <meta name="robots" content="index, follow"> |
64 |
64 |
65 <!-- ICI : <?php echo($_SERVER['DOCUMENT_ROOT']); ?> --> |
65 <!-- ICI : <?php echo($_SERVER['DOCUMENT_ROOT']); ?> --> |
66 <!-- JAVASCRIPT --> |
66 <!-- JAVASCRIPT --> |
67 <script type="text/javascript" src="<?php echo(registry_url('json-js','js'));?>"></script> |
67 <script type="text/javascript" src="<?php echo(registry_url('json-js','js'));?>"></script> |
68 <script type="text/javascript" src="<?php echo(registry_url('jquery','js'));?>"></script> |
68 <script type="text/javascript" src="<?php echo(registry_url('jquery','js'));?>"></script> |
69 <script type="text/javascript"> |
69 <script type="text/javascript"> |
71 </script> |
71 </script> |
72 <script type="text/javascript" src="<?php echo(registry_url('fancybox','js'));?>"></script> |
72 <script type="text/javascript" src="<?php echo(registry_url('fancybox','js'));?>"></script> |
73 <script type="text/javascript" src="<?php echo(registry_url('jquery-url','js'));?>"></script> |
73 <script type="text/javascript" src="<?php echo(registry_url('jquery-url','js'));?>"></script> |
74 <script type="text/javascript" src="<?php echo(registry_url('metadataplayer','js'));?>"></script> |
74 <script type="text/javascript" src="<?php echo(registry_url('metadataplayer','js'));?>"></script> |
75 <script type="text/javascript" src="<?php echo(registry_url('tracemanager','js'));?>"></script> |
75 <script type="text/javascript" src="<?php echo(registry_url('tracemanager','js'));?>"></script> |
76 |
76 |
77 <!-- Framework CSS --> |
77 <!-- Framework CSS --> |
78 <link rel="stylesheet" href="<?php echo(registry_url('tweetcast','css'));?>" type="text/css" media="screen, projection"/> |
78 <link rel="stylesheet" href="<?php echo(registry_url('tweetcast','css'));?>" type="text/css" media="screen, projection"/> |
79 <link rel="stylesheet" href="<?php echo(registry_url('fancybox','css'));?>" media="screen"/> |
79 <link rel="stylesheet" href="<?php echo(registry_url('fancybox','css'));?>" media="screen"/> |
80 |
80 |
81 <!-- FONT --> |
81 <!-- FONT --> |
82 <link href='<?php echo(registry_url('PT-Sans_Narrow','font'));?>' rel='stylesheet' type='text/css'/> |
82 <link href='<?php echo(registry_url('PT-Sans_Narrow','font'));?>' rel='stylesheet' type='text/css'/> |
83 <link href='<?php echo(registry_url('PT-Sans','font'));?>' rel='stylesheet' type='text/css'/> |
83 <link href='<?php echo(registry_url('PT-Sans','font'));?>' rel='stylesheet' type='text/css'/> |
84 |
84 |
85 |
85 |
86 <script type="text/javascript"> |
86 <script type="text/javascript"> |
87 // Configuration Polemical Timeline |
87 // Configuration Polemical Timeline |
88 if (typeof jQuery == "undefined") { |
88 if (typeof jQuery == "undefined") { |
89 jQuery = IriSP.jQuery; |
89 jQuery = IriSP.jQuery; |
90 } |
90 } |
116 }); |
116 }); |
117 _tracer.trace("Pt_LoadPage", { |
117 _tracer.trace("Pt_LoadPage", { |
118 cookie: _cookie, |
118 cookie: _cookie, |
119 url: document.location.href |
119 url: document.location.href |
120 }); |
120 }); |
121 |
121 |
122 IriSP.libFiles.defaultDir = "<?php echo(registry_url('libdir','js'));?>"; |
122 IriSP.libFiles.defaultDir = "<?php echo(registry_url('libdir','js'));?>"; |
123 IriSP.widgetsDir = "<?php echo(registry_url('ldtwidgets','js'));?>"; |
123 IriSP.widgetsDir = "<?php echo(registry_url('ldtwidgets','js'));?>"; |
124 IriSP.libFiles.locations.jwPlayerSWF = "<?php echo(URL_ROOT); ?>res/mediaplayer/player.swf"; |
124 IriSP.libFiles.locations.jwPlayerSWF = "<?php echo(URL_ROOT); ?>res/mediaplayer/player.swf"; |
125 IriSP.language = "<?php echo($actual) ?>"; |
125 IriSP.language = "<?php echo($actual) ?>"; |
126 |
126 |
127 var _metadata = { |
127 var _metadata = { |
128 url: metadatas[metadata_key].url + '?callback=?', |
128 url: metadatas[metadata_key].url + '?callback=?', |
129 format: 'ldt' |
129 format: 'ldt' |
130 }; |
130 }; |
131 var _config = { |
131 var _config = { |
162 <?php endif; ?> |
162 <?php endif; ?> |
163 }, |
163 }, |
164 <?php endif; ?> |
164 <?php endif; ?> |
165 <?php if ($protocol_level > 1): ?> |
165 <?php if ($protocol_level > 1): ?> |
166 { |
166 { |
167 type: "Segments", |
167 type: "MultiSegments", |
168 annotation_type: "chap" |
168 //annotation_type: "chap" |
169 }, |
169 }, |
170 { |
170 { |
171 type: "Annotation", |
171 type: "Annotation", |
172 annotation_type: "chap" |
172 annotation_type: "découpage" |
173 }, |
173 }, |
174 { type: "Tweet" }, |
174 { type: "Tweet" }, |
175 { |
175 { |
176 type: "Tagcloud", |
176 type: "Tagcloud", |
177 container: "TagcloudContainer", |
177 container: "TagcloudContainer", |
178 exclude_pattern: /^@/, |
178 exclude_pattern: /^@/, |
179 custom_stopwords: <?php echo json_encode(array($translate->_('config__hashtag'))) ?> |
179 custom_stopwords: <?php echo json_encode(array($translate->_('config__hashtag'))) ?> |
180 }, |
180 }, |
181 { |
181 { |
182 type: "AnnotationsList", |
182 type: "AnnotationsList", |
183 //ajax_url : "http://ldt.iri.centrepompidou.fr/ldtplatform/api/ldt/segments/{{media}}/{{begin}}/{{end}}?callback=?", |
183 //ajax_url : "http://ldt.iri.centrepompidou.fr/ldtplatform/api/ldt/segments/{{media}}/{{begin}}/{{end}}?callback=?", |
184 //foreign_url : "http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/front/player/{{media}}/{{project}}/{{annotationType}}#id={{annotation}}", |
184 //foreign_url : "http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/front/player/{{media}}/{{project}}/{{annotationType}}#id={{annotation}}", |
185 container: "AnnotationsListContainer" |
185 container: "AnnotationsListContainer" |
|
186 }, |
|
187 { |
|
188 type: "CreateAnnotation", |
|
189 //api_endpoint_template: "http://ldt.iri.centrepompidou.fr/ldtplatform/api/ldt/1.0/annotations/", |
|
190 api_endpoint_template: "http://localhost/~ymh/platform/ldtplatform/api/ldt/1.0/annotations/", |
|
191 api_method: 'POST', |
|
192 after_send_timeout: 8000, |
|
193 show_mic_record: false, |
|
194 close_after_send: false, |
|
195 slice_annotation_type: ["chap","découpage"], |
|
196 creator_avatar: "<?php echo(URL_ROOT); ?>images/avatar.png" |
186 }, |
197 }, |
187 <?php endif; ?> |
198 <?php endif; ?> |
188 { type: "Mediafragment"}, |
199 { type: "Mediafragment"}, |
189 { |
200 { |
190 type: "Trace", |
201 type: "Trace", |
195 }, |
206 }, |
196 js_console: false |
207 js_console: false |
197 } |
208 } |
198 ] |
209 ] |
199 }; |
210 }; |
200 |
211 |
201 jQuery(document).ready(function() { |
212 jQuery(document).ready(function() { |
202 <?php if ($show_splash): ?> |
213 <?php if ($show_splash): ?> |
203 jQuery.fancybox( |
214 jQuery.fancybox( |
204 jQuery("#splash").html(), |
215 jQuery("#splash").html(), |
205 { |
216 { |
206 width: 500, |
217 width: 500, |
207 modal: true, |
218 modal: true, |
208 closeBtn: false |
219 closeBtn: false |
209 }); |
220 }); |
210 |
221 |
211 jQuery("#fancybox-content form").submit(function() { |
222 jQuery("#fancybox-content form").submit(function() { |
212 jQuery.fancybox.close(); |
223 jQuery.fancybox.close(); |
213 var _checkboxes = []; |
224 var _checkboxes = []; |
214 jQuery("#fancybox-content .checkbox:checked").each(function() { _checkboxes.push(this.value) }); |
225 jQuery("#fancybox-content .checkbox:checked").each(function() { _checkboxes.push(this.value) }); |
215 var _data = { |
226 var _data = { |
258 if (_nx.is(":hidden")) { |
269 if (_nx.is(":hidden")) { |
259 jQuery(".acctexte").slideUp(); |
270 jQuery(".acctexte").slideUp(); |
260 _nx.slideDown(); |
271 _nx.slideDown(); |
261 } |
272 } |
262 }) |
273 }) |
263 |
274 |
264 }); |
275 }); |
265 </script> |
276 </script> |
266 <script type="text/javascript"> |
277 <script type="text/javascript"> |
267 var _gaq = _gaq || []; |
278 var _gaq = _gaq || []; |
268 _gaq.push(['_setAccount', 'UA-23581291-1']); |
279 _gaq.push(['_setAccount', 'UA-23581291-1']); |
269 _gaq.push(['_trackPageview', location.pathname + location.search + location.hash]); |
280 _gaq.push(['_trackPageview', location.pathname + location.search + location.hash]); |
270 _gaq.push(['_setAllowAnchor', true]); |
281 _gaq.push(['_setAllowAnchor', true]); |
271 |
282 |
272 (function() { |
283 (function() { |
273 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; |
284 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; |
274 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; |
285 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; |
275 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); |
286 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); |
276 })(); |
287 })(); |
343 <img src='<?php echo(URL_ROOT); ?>images/flag_en.gif' <?php if($actual!="en"){echo("style='opacity: .5;'"); } ?> /> |
354 <img src='<?php echo(URL_ROOT); ?>images/flag_en.gif' <?php if($actual!="en"){echo("style='opacity: .5;'"); } ?> /> |
344 <?php print $translate->_("Anglais"); ?> |
355 <?php print $translate->_("Anglais"); ?> |
345 </a> |
356 </a> |
346 </li> |
357 </li> |
347 </ul> |
358 </ul> |
348 |
359 |
349 <?php if(is_array($translate->_('config__metadata'))): ?> |
360 <?php if(is_array($translate->_('config__metadata'))): ?> |
350 <ul id="content_select_ul" class="menu mdselect"> |
361 <ul id="content_select_ul" class="menu mdselect"> |
351 <span><?php print $translate->_("changer de contenu"); ?></span><br/> |
362 <span><?php print $translate->_("changer de contenu"); ?></span><br/> |
352 <select id="mdselect"> |
363 <select id="mdselect"> |
353 <?php foreach ($translate->_('config__metadata') as $key => $value):?> |
364 <?php foreach ($translate->_('config__metadata') as $key => $value):?> |