1 <?php |
|
2 |
|
3 /** |
|
4 * include some common code (like we did in the 90s) |
|
5 * People still do this? ;) |
|
6 */ |
|
7 include_once 'config.php'; |
|
8 // configuration |
|
9 include 'common.php'; |
|
10 |
|
11 $url = (!empty($_SERVER['HTTPS'])) ? "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] : "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; |
|
12 |
|
13 ?> |
|
14 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
|
15 <html lang="<?php echo($actual); ?>"> |
|
16 <head> |
|
17 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
|
18 <title>Polemic tweet - <?php echo($config['title']); ?></title> |
|
19 <meta name="keywords" content="<?php echo($config['keywords']); ?>"><!-- add timestampedmetadata --> |
|
20 <!--<meta name="description" content="PoelmicTweet.fr : debate mapping, opinion, conference, video">--> |
|
21 <meta name="description" content="<?php echo($config['description']); ?>"> |
|
22 <meta name="robots" content="index, follow"> |
|
23 |
|
24 <!-- ICI : <?php echo($_SERVER['DOCUMENT_ROOT']); ?> --> |
|
25 <!-- JAVASCRIPT --> |
|
26 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> |
|
27 <script type="text/javascript"> |
|
28 $.noConflict(); |
|
29 </script> |
|
30 <script type="text/javascript" src="../res/raphael/raphael-min.js"></script> |
|
31 <script type="text/javascript" src="../res/jquery.fancybox/fancybox/jquery.fancybox-1.3.4.pack.js"></script> |
|
32 <script type="text/javascript" src="../res/niceforms/niceforms.js"></script> |
|
33 <script type="text/javascript" src="../res/jquery.url/jquery.url.js"></script> |
|
34 <script type='text/javascript' src='../res/metadataplayer/src/js/LdtPlayer.js'></script> |
|
35 |
|
36 <!-- Framework CSS --> |
|
37 <link rel="stylesheet" href="../res/blueprint/screen.css" type="text/css" media="screen, projection"> |
|
38 <link rel="stylesheet" href="../res/blueprint/print.css" type="text/css" media="print"> |
|
39 <link rel="stylesheet" href="../res/blueprint/plugins/fancy-type/screen.css" type="text/css" media="screen, projection"> |
|
40 <link rel="stylesheet" href="../res/css/custom.css" type="text/css" media="screen, projection"> |
|
41 <link rel="stylesheet" href="../res/jquery.fancybox/fancybox/jquery.fancybox-1.3.4.css" media="screen"> |
|
42 |
|
43 <!-- FONT --> |
|
44 <link href='http://fonts.googleapis.com/css?family=PT+Sans+Narrow&subset=latin' rel='stylesheet' type='text/css'> |
|
45 <link href='http://fonts.googleapis.com/css?family=PT+Sans&subset=latin' rel='stylesheet' type='text/css'> |
|
46 <link href='http://fonts.googleapis.com/css?family=Geo&subset=latin' rel='stylesheet' type='text/css'> |
|
47 |
|
48 <style type="text/css"> |
|
49 .tweetButton{float:left;margin-right:5px;} |
|
50 .videoLivePlayer{border:1px solid #c3c3c3;width:650px;height:638px;} |
|
51 .videoLive{width:650px;height:640px;background:#fff;float:right;margin-top:20px;padding:5px;} |
|
52 |
|
53 .tweetExplain{background-image:url(../images/tweetExplainBgd.gif);width:250px;height:640px;padding:10px;position:absolute; margin-top:70px;} |
|
54 .footer{margin-top:740px;width:960px;height:20px;position:absolute;text-align:center;} |
|
55 .tooltip{ |
|
56 z-index: 10000000000; |
|
57 } |
|
58 #tip{ |
|
59 position : absolute; |
|
60 padding : 3px; |
|
61 z-index: 10000000000; |
|
62 max-width: 200px; |
|
63 } |
|
64 #tip { |
|
65 display: none; |
|
66 background: transparent url("../images/white_arrow_long.png"); |
|
67 font-size: 12px; |
|
68 height: 125px; |
|
69 width: 180px; |
|
70 padding: 10px; |
|
71 padding-left: 15px; |
|
72 padding-top: 15px; |
|
73 padding-right: 15px; |
|
74 color: black; |
|
75 z-index: 10000000000; |
|
76 font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif"; |
|
77 overflow:hidden; |
|
78 } |
|
79 #chartTimeline{ |
|
80 padding-top: 0px; |
|
81 z-index: 9; |
|
82 position : absolute; |
|
83 } |
|
84 |
|
85 </style> |
|
86 <script type="text/javascript"> |
|
87 // Configuration Polemical Timeline |
|
88 <?php |
|
89 if(is_array($config['metadata'])): |
|
90 reset($config['metadata']); |
|
91 $first_key = key($config['metadata']); |
|
92 ?> |
|
93 var metadatas = jQuery.parseJSON('<?php echo(json_encode($config['metadata'])); ?>'); |
|
94 var url = jQuery.url(); |
|
95 var metadata_key = url.fparam('metadata'); |
|
96 if(typeof metadata_key === "undefined" || metadata_key.length === 0) { |
|
97 metadata_key = "<?php echo($first_key);?>"; |
|
98 } |
|
99 <?php else: ?> |
|
100 var metadatas = { metadata: {url: "<?php echo($config['metadata'])?>", duration: <?php echo($config['duration'])?>} }; |
|
101 var metadata_key = "metadata"; |
|
102 <?php endif;?> |
|
103 |
|
104 var config = { |
|
105 target:"chartTimeline", |
|
106 x:8, |
|
107 y:418, |
|
108 width:<?php echo($player_width); ?>, |
|
109 height:<?php echo($player_height); ?>, |
|
110 heightmax:<?php echo($player_height); ?>, |
|
111 duration:metadatas[metadata_key].duration, |
|
112 metadata:metadatas[metadata_key].url |
|
113 }; |
|
114 </script> |
|
115 <script type='text/javascript' src='../res/metadataplayer.polemic/src/js/polemic.js'></script> |
|
116 <script type="text/javascript"> |
|
117 jQuery.extend(__IriSP.lib,{jQueryToolTip:"../res/metadataplayer/res/js/jquery.tools.min.js"}); |
|
118 |
|
119 jQuery(document).ready(function() { |
|
120 |
|
121 jQuery("#mdselect_"+metadata_key).attr("selected","selected"); |
|
122 jQuery("#mdselect").change(function() { |
|
123 var metadata_key = this.options[this.selectedIndex].value; |
|
124 window.location.hash = "#metadata="+metadata_key; |
|
125 window.location.href = window.location.href; |
|
126 window.location.reload(true); |
|
127 jQuery("#Embeded").attr('href','embed_form.php?metadata='+metadata_key); |
|
128 }); |
|
129 if(metadata_key !== "metadata") { |
|
130 jQuery("#Embeded").attr('href','embed_form.php?metadata='+metadata_key); |
|
131 } |
|
132 jQuery("#Embeded").fancybox({ |
|
133 'width' : 360, |
|
134 'height' : 360, |
|
135 'autoDimensions' : false, |
|
136 'transitionIn' : 'none', |
|
137 'transitionOut' : 'none', |
|
138 'type' : 'iframe' |
|
139 }); |
|
140 |
|
141 }); |
|
142 </script> |
|
143 <script type="text/javascript"> |
|
144 var _gaq = _gaq || []; |
|
145 _gaq.push(['_setAccount', 'UA-23581291-1']); |
|
146 _gaq.push(['_trackPageview']); |
|
147 |
|
148 (function() { |
|
149 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; |
|
150 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; |
|
151 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); |
|
152 })(); |
|
153 </script> |
|
154 </head> |
|
155 <body> |
|
156 |
|
157 |
|
158 <!-- tooltip --> |
|
159 <div id="tip"> |
|
160 <div id="tipcolor" style="height:10px;width:10px"></div> |
|
161 <div id="tiptext"></div> |
|
162 </div> |
|
163 |
|
164 <div class="container"> |
|
165 <img src="../images/ENMI_2010_logo.gif" class="logo"> |
|
166 <ul class="menu"> |
|
167 <li class="menuUnderline"><a href="../" class="menuLink" id="Accueil"> |
|
168 <?php print $translate->_("Accueil"); ?></a></li> |
|
169 <li class="menuUnderline"><a href="embed_form.php" class="menuLink" id="Embeded"> |
|
170 <?php print $translate->_("Partager"); ?></a></li> |
|
171 <li > </li> |
|
172 </ul> |
|
173 <?php if(is_array($config['metadata'])):?> |
|
174 <ul id="content_select_ul" class="menu mdselect"> |
|
175 <?php print $translate->_("changer de contenu"); ?><br/> |
|
176 <select id="mdselect"> |
|
177 <?php foreach ($config['metadata'] as $key => $value):?> |
|
178 <option value="<?php echo($key); ?>" id="mdselect_<?php echo($key); ?>" ><?php echo($value['display']); ?></option> |
|
179 <?php endforeach;?> |
|
180 </select> |
|
181 </ul> |
|
182 <ul class="menu shortlang" > |
|
183 <?php else:?> |
|
184 <ul class="menu lang" > |
|
185 <?php endif;?> |
|
186 <li class="menuUnderline"><a href="<?php URL_ROOT ?>?lang=ja_JP" class="menuLink" > |
|
187 <img src='../images/flag_jp.gif'<?php if($actual!="ja_JP"){echo("style='opacity: .5;'"); } ?> /> |
|
188 <?php print $translate->_("Japonais"); ?></a></li> |
|
189 <li class="menuUnderline"><a href="<?php URL_ROOT ?>?lang=fr" class="menuLink"> |
|
190 <img src='../images/flag_fr.gif' <?php if($actual!="fr"){echo("style='opacity: .5;'"); } ?> /> |
|
191 <?php print $translate->_("Français"); ?></a></li> |
|
192 <li ><a href="<?php URL_ROOT ?>?lang=en" class="menuLink"> |
|
193 <img src='../images/flag_en.gif' <?php if($actual!="en"){echo("style='opacity: .5;'"); } ?> /> |
|
194 <?php print $translate->_("Anglais"); ?></a></li> |
|
195 </ul> |
|
196 |
|
197 <!-- EXPLICATION --> |
|
198 <div class="tweetExplain" > |
|
199 <h3 class="tweetWriterTitle"><?php print $translate->_("ClientTitle1 :"); ?> </h3><br/> |
|
200 <?php print $translate->_("ExplicationPT"); ?> |
|
201 </div> |
|
202 |
|
203 |
|
204 <!-- INFOS SUR LA CONF |
|
205 <div class="tweetExplain" > |
|
206 <h3 class="tweetWriterTitle"><?php echo($config['title']); ?></h3><br/> |
|
207 <?php echo($config['description']); ?> |
|
208 </div> |
|
209 --> |
|
210 |
|
211 |
|
212 |
|
213 |
|
214 <div class="videoLive" > |
|
215 <div class="videoLivePlayer"> |
|
216 <div id="chartTimeline"> </div> |
|
217 <script type="text/javascript"> |
|
218 var paper = Raphael(document.getElementById("chartTimeline"),config.width, config.height); |
|
219 </script> |
|
220 <div id="player_project_embed" class="iri_player_embed"></div> |
|
221 <script type="text/javascript"> |
|
222 var configMP = { |
|
223 metadata:{ |
|
224 format:'cinelab', |
|
225 src:config.metadata, |
|
226 load:'jsonp'}, |
|
227 gui:{ |
|
228 width:config.width, |
|
229 height:config.height, |
|
230 mode:'video', |
|
231 container:'player_project_embed', |
|
232 debug:false, |
|
233 css:'../res/css/LdtPlayer.css'}, |
|
234 |
|
235 player:{ |
|
236 type:'jwplayer', |
|
237 src:'../res/metadataplayer/res/swf/player.swf'} |
|
238 }; |
|
239 __IriSP.init(configMP); |
|
240 </script> |
|
241 </div> |
|
242 </div> |
|
243 |
|
244 |
|
245 <div class="footer"> |
|
246 <hr> |
|
247 <?php echo($config['partenaires']); ?> |
|
248 </div> |
|
249 |
|
250 </div> |
|
251 |
|
252 </body> |
|
253 </html> |
|