--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/web/renkan.php Tue Apr 23 19:04:53 2013 +0200
@@ -0,0 +1,205 @@
+<?php
+
+/**
+ * include some common code (like we did in the 90s)
+ * People still do this? ;)
+ */
+$rep = $_REQUEST['rep'];
+include_once dirname(__FILE__).'/'.$rep.'/config.php';
+// configuration
+include 'common.php';
+ // objet actuel
+$baseurl = URL_ROOT;
+
+$head_logo = URL_ROOT."$rep/images/head_logo.gif";
+if($translate->_('config__head_logo') != 'config__head_logo' && $translate->_('config__head_logo') != null ) {
+ $head_logo = URL_ROOT."$rep/".$translate->_('config__head_logo');
+}
+
+$url = (!empty($_SERVER['HTTPS'])) ? "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] : "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
+
+?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html lang="<?php echo($actual); ?>">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <title>Polemic tweet - <?php echo($translate->_('config__title')); ?></title>
+ <meta name="keywords" content="<?php echo($translate->_('config__keywords')); ?>">
+
+ <meta name="description" content="<?php echo(strip_tags($translate->_('config__description'))); ?>">
+ <meta name="robots" content="index, follow">
+
+ <!-- JAVASCRIPT -->
+ <script type="text/javascript" src="<?php echo(registry_url('metadataplayer','js'));?>"></script>
+
+ <!-- Framework CSS -->
+ <link rel="stylesheet" href="<?php echo(registry_url('tweetcast','css'));?>?v=11072012" type="text/css" media="screen, projection"/>
+
+ <!-- FONT -->
+ <link href='<?php echo(registry_url('PT-Sans_Narrow','font'));?>' rel='stylesheet' type='text/css'/>
+ <link href='<?php echo(registry_url('PT-Sans','font'));?>' rel='stylesheet' type='text/css'/>
+
+
+ <script type="text/javascript">
+
+ IriSP.libFiles.defaultDir = "<?php echo(registry_url('libdir','js'));?>";
+ IriSP.widgetsDir = "<?php echo(registry_url('ldtwidgets','js'));?>";
+ IriSP.libFiles.locations.jwPlayerSWF = "<?php echo(URL_ROOT); ?>res/mediaplayer/player.swf";
+ IriSP.language = "<?php echo($actual) ?>";
+
+ var _metadata = {
+ url: '<?php echo(get_metadata_url($translate->_('config__metadata')));?>',
+ format: 'ldt'
+ };
+ var _config = {
+ width: 550,
+ container: 'LdtPlayer',
+ default_options: {
+ metadata: _metadata
+ },
+ css:'<?php echo(registry_url('metadataplayer','css'));?>',
+ widgets: [
+ {
+ type: "JwpPlayer",
+ live: true,
+ height: 360,
+ width: 550,
+ provider: "rtmp",
+ autostart: true
+ },
+ { type: "Slider" },
+ {
+ type: "Controller",
+ disable_annotate_btn: true
+ },
+ {
+ type: "Polemic",
+ polemics: []
+ },
+ {
+ type: "Segments",
+ annotation_type: "chap"
+ },
+ {
+ type: "Annotation",
+ annotation_type: "chap"
+ },
+ { type: "Tweet" },
+ { type: "Mediafragment"},
+ {
+ type: "Renkan",
+ container: "RenkanContainer",
+ data: "<?php echo($translate->_('config__renkan'));?>"
+ }
+ ]
+ };
+
+ </script>
+ <script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-23581291-1']);
+ _gaq.push(['_trackPageview', location.pathname + location.search + location.hash]);
+ _gaq.push(['_setAllowAnchor', true]);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+ </script>
+ <style type="text/css">
+ .ldtrenkan-main {
+ width: 1160px; margin: 0 auto; min-height: 400px; clear:both;
+ }
+ .ldtrenkan-main h1{
+ padding: 10px 0 8px; font-size: 20px; font-family: "PT Sans Narrow"; font-weight: bold; color: #0068C4;
+ }
+ #LdtPlayer {
+ float: left; width: 550px;
+ }
+ #RenkanContainer {
+ float: right; width: 600px; height: 500px; margin-left: 10px;
+ }
+ </style>
+ </head>
+ <body>
+ <div id="sendUsFeedBack"><a href="<?php echo($C_feedback_form_url); ?>" target="_blank"><img src="<?php echo(URL_ROOT); ?>images/sendusfeedback.png"></a></div>
+
+ <!-- tooltip -->
+ </div>
+ <div id="container">
+ <div class="barre">
+ <img id="headlogo" src="<?php echo($head_logo); ?>" width="171" height="63" />
+ <div id="minilogo"></div>
+ <ul class="menu">
+ <li>
+ <a href="<?php echo(URL_ROOT); ?>" class="menuLink">
+ <?php print $translate->_("Accueil"); ?>
+ </a>
+ </li>
+ <li>
+ <a href="<?php echo($translate->_('config__link')); ?>" class="menuLink" target="_blank" id='Program'>
+ <?php print $translate->_("Programme"); ?>
+ </a>
+ </li>
+ <li>
+ <a href="../about.php" class="menuLink" >
+ <?php print $translate->_("A propos"); ?>
+ </a>
+ </li>
+ </ul>
+ <ul class="menu">
+ <li>
+ <a href="<?php URL_ROOT ?>polemicaltimeline.php?lang=ja_JP" class="menuLink" >
+ <img src='<?php echo(URL_ROOT); ?>images/flag_jp.gif'<?php if($actual!="ja_JP"){echo("style='opacity: .5;'"); } ?> />
+ <?php print $translate->_("Japonais"); ?>
+ </a></li>
+ <li>
+ <a href="<?php URL_ROOT ?>polemicaltimeline.php?lang=fr" class="menuLink">
+ <img src='<?php echo(URL_ROOT); ?>images/flag_fr.gif' <?php if($actual!="fr"){echo("style='opacity: .5;'"); } ?> />
+ <?php print $translate->_("Français"); ?>
+ </a>
+ </li>
+ <li>
+ <a href="<?php URL_ROOT ?>polemicaltimeline.php?lang=en" class="menuLink">
+ <img src='<?php echo(URL_ROOT); ?>images/flag_en.gif' <?php if($actual!="en"){echo("style='opacity: .5;'"); } ?> />
+ <?php print $translate->_("Anglais"); ?>
+ </a>
+ </li>
+ </ul>
+
+ <div class="embedbar">
+ <!-- AddThis Button BEGIN -->
+ <div class="addthis_toolbox addthis_default_style addthis_32x32_style">
+ <a class="addthis_button_facebook"></a>
+ <a class="addthis_button_twitter"></a>
+ <a class="addthis_button_email"></a>
+ <a class="addthis_button_compact"></a>
+ </div>
+ <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js"></script>
+ <!-- AddThis Button END -->
+ </div>
+ </div>
+
+ <!-- EXPLICATION -->
+
+ </div>
+ <div class="ldtrenkan-main" >
+ <h1><?php echo($translate->_('config__title')); ?></h1>
+ <div id="LdtPlayer"></div>
+ <div id="RenkanContainer"></div>
+ </div>
+ <script type="text/javascript">
+ var _myPlayer = new IriSP.Metadataplayer(_config);
+ </script>
+
+ <div class="footer">
+
+ <hr>
+ <?php echo($translate->_('config__partenaires')); ?>
+ </div>
+
+ </div>
+
+ </body>
+</html>