web/fens_FabLab_Design_Metadata/polemicaltimeline.php
changeset 181 4b9405c06dca
child 200 df98bc033a67
equal deleted inserted replaced
180:7744e8f9d541 181:4b9405c06dca
       
     1 <?php
       
     2 
       
     3 /**
       
     4  * include some common code (like we did in the 90s)
       
     5  * People still do this? ;)
       
     6  */
       
     7  // configuration 
       
     8 include 'common.php';
       
     9  // objet actuel 
       
    10 include_once 'config.php';
       
    11 
       
    12 ?>
       
    13 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
       
    14 <html lang="<?php echo($actual); ?>">
       
    15   <head>
       
    16     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
       
    17     <title>Polemic tweet - <?php echo($config['title']); ?></title>
       
    18 	<meta name="keywords" content="<?php echo($config['keywords']); ?>"><!-- add timestampedmetadata -->
       
    19 	<!--<meta name="description" content="PoelmicTweet.fr : debate mapping, opinion, conference, video">-->
       
    20 	<meta name="description" content="<?php echo($config['description']); ?>">
       
    21 	<meta name="robots" content="index, follow">
       
    22 	
       
    23 	<!-- ICI : <?php echo($_SERVER['DOCUMENT_ROOT']); ?> -->
       
    24 	<!-- JAVASCRIPT --> 
       
    25 	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
       
    26 	<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>
       
    28 	<script type="text/javascript" src="../res/niceforms/niceforms.js"></script>
       
    29 		
       
    30 	<!-- Framework CSS -->
       
    31     <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">
       
    33 	<link rel="stylesheet" href="../res/blueprint/plugins/fancy-type/screen.css" type="text/css" media="screen, projection">
       
    34 	<link rel="stylesheet" href="../res/css/custom.css" type="text/css" media="screen, projection">
       
    35 	<link rel="stylesheet" href="../res/jquery.fancybox/fancybox/jquery.fancybox-1.3.4.css" media="screen">
       
    36 	
       
    37 	<!-- FONT -->
       
    38 	<link href='http://fonts.googleapis.com/css?family=PT+Sans+Narrow&subset=latin' rel='stylesheet' type='text/css'>
       
    39 	<link href='http://fonts.googleapis.com/css?family=PT+Sans&subset=latin' rel='stylesheet' type='text/css'>
       
    40 	<link href='http://fonts.googleapis.com/css?family=Geo&subset=latin' rel='stylesheet' type='text/css'>
       
    41 	
       
    42 	<style type="text/css"> 
       
    43 		.tweetButton{float:left;margin-right:5px;}
       
    44 		.videoLivePlayer{border:1px solid #c3c3c3;width:650px;height:638px;}
       
    45 		.videoLive{width:650px;height:640px;background:#fff;float:right;margin-top:20px;padding:5px;}
       
    46 					
       
    47 					.tweetExplain{background-image:url(../images/tweetExplainBgd.gif);width:250px;height:640px;padding:10px;position:absolute; margin-top:70px;}
       
    48 		.footer{margin-top:740px;width:960px;height:20px;position:absolute;text-align:center;}
       
    49 		.tooltip{
       
    50 			 z-index: 10000000000;
       
    51 		}
       
    52 		#tip{
       
    53 			 position : absolute;
       
    54 			 padding : 3px;
       
    55 			 z-index: 10000000000;
       
    56 			 max-width: 200px;
       
    57 		}	
       
    58 		#tip {
       
    59 				display: none;
       
    60 				background: transparent url("../images/white_arrow_long.png");
       
    61 				font-size: 12px;
       
    62 				height: 125px;
       
    63 				width: 180px;
       
    64 				padding: 10px;
       
    65 				padding-left: 15px;
       
    66 				padding-top: 15px;
       
    67 				padding-right: 15px;
       
    68 				color: black;
       
    69 				z-index: 10000000000;
       
    70 				font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif";
       
    71 				overflow:hidden;
       
    72 		}
       
    73 		#chartTimeline{
       
    74 			padding-top: 0px;
       
    75 			z-index: 9;
       
    76 			position : absolute;
       
    77 		}
       
    78 
       
    79 	</style>
       
    80 	<script type="text/javascript">
       
    81 	
       
    82 	  var _gaq = _gaq || [];
       
    83 	  _gaq.push(['_setAccount', 'UA-23581291-1']);
       
    84 	  _gaq.push(['_setDomainName', '.iri.centrepompidou.fr']);
       
    85 	  _gaq.push(['_trackPageview']);
       
    86 
       
    87 	  (function() {
       
    88 	    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
       
    89 	    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
       
    90 	    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
       
    91 	  })();
       
    92 	
       
    93 	</script>
       
    94 	<script type="text/javascript">
       
    95 		$(document).ready(function() {
       
    96 		
       
    97 			$("#Embeded").fancybox({
       
    98 				'width'				: 360,
       
    99 				'height'			: 360,
       
   100 				'autoDimensions'	: false,
       
   101 				'transitionIn'		: 'none',
       
   102 				'transitionOut'		: 'none',
       
   103 				'type'				: 'iframe'
       
   104 			});
       
   105 			
       
   106 		});
       
   107 	</script>
       
   108 	
       
   109   </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>
       
   125   
       
   126 
       
   127   <!-- tooltip --> 
       
   128   <div id="tip">
       
   129   <div id="tipcolor" style="height:10px;width:10px"></div>
       
   130   <div id="tiptext"></div>
       
   131   </div>
       
   132 
       
   133     <div class="container">
       
   134       <img src="../images/ENMI_2010_logo.gif" class="logo">
       
   135 	  <ul class="menu"> 
       
   136 		  <li class="menuUnderline"><a href="../" class="menuLink" id="Accueil">
       
   137 		   <?php print $translate->_("Accueil"); ?></a></li>
       
   138 		  <li class="menuUnderline"><a href="embed_form.php" class="menuLink" id="Embeded">
       
   139 		    <?php print $translate->_("Partager"); ?></a></li>
       
   140 		  <li >&nbsp;</li>
       
   141 	  </ul>
       
   142 	  
       
   143 	<ul class="menu lang" > 
       
   144 	  <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;'"); } ?> />
       
   146 	        <?php print $translate->_("Japonais"); ?></a></li>
       
   147 	  <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;'"); } ?> />
       
   149 	       <?php print $translate->_("Français"); ?></a></li>
       
   150 	  <li ><a href="<?php URL_ROOT ?>?lang=en" class="menuLink">
       
   151 	       <img src='../images/flag_en.gif' <?php if($actual!="en"){echo("style='opacity: .5;'"); } ?> />
       
   152 	       <?php print $translate->_("Anglais"); ?></a></li>
       
   153 	  </ul>	
       
   154 	
       
   155 	<!-- EXPLICATION  -->
       
   156 	  <div class="tweetExplain"  >
       
   157 		<h3 class="tweetWriterTitle"><?php print $translate->_("ClientTitle1 :"); ?> </h3><br/>
       
   158 		<?php print $translate->_("ExplicationPT"); ?>
       
   159 	  </div>
       
   160 	 
       
   161 	  
       
   162 	  <!-- INFOS SUR LA CONF 
       
   163 	  	<div class="tweetExplain"  >
       
   164 		<h3 class="tweetWriterTitle"><?php echo($config['title']); ?></h3><br/>
       
   165 			<?php echo($config['description']); ?>
       
   166 	  </div>
       
   167 	  -->
       
   168 
       
   169 
       
   170 
       
   171 
       
   172 	  <div class="videoLive" >
       
   173 		<div class="videoLivePlayer">
       
   174 
       
   175 		<div id="chartTimeline"> </div>	
       
   176 		<script type="text/javascript">
       
   177 			var paper = Raphael(document.getElementById("chartTimeline"),config.width, config.height);
       
   178 		</script>
       
   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">
       
   187 				var configMP = {
       
   188 						/*metadata:{
       
   189 							format:'cinelab',
       
   190 							src:'metadata.json',
       
   191 							load:'json'},*/
       
   192 						metadata:{
       
   193 							format:'cinelab',
       
   194 							src:'<?php echo($config['metadata']); ?>',
       
   195 							load:'jsonp'},
       
   196 						gui:{
       
   197 							width:650,
       
   198 							height:480,
       
   199 							mode:'video',
       
   200 							container:'player_project_13b0aa52-336b-11e0-b233-00145ea49a02_embed',
       
   201 							debug:false,
       
   202 							css:'../res/css/LdtPlayer.css'},
       
   203 	
       
   204 						player:{
       
   205 							type:'jwplayer',
       
   206 							src:'http://www.iri.centrepompidou.fr//dev/ldt/static/ldt/swf/player.swf'}
       
   207 					};
       
   208 				__IriSP.init(configMP);     
       
   209 			</script>
       
   210 		</div>	
       
   211 	  </div>
       
   212 
       
   213  
       
   214       <div class="footer">
       
   215 		<hr>
       
   216 			<?php echo($config['partenaires']); ?>
       
   217 	  </div>   
       
   218 	
       
   219     </div>
       
   220 
       
   221   </body>
       
   222 </html>