--- a/web/polemicaltimeline.php Fri Feb 13 13:14:15 2015 +0100
+++ b/web/polemicaltimeline.php Sun Feb 15 00:43:16 2015 +0100
@@ -61,7 +61,7 @@
<!--<meta name="description" content="PoelmicTweet.fr : debate mapping, opinion, conference, video">-->
<meta name="description" content="<?php echo(strip_tags($translate->_('config__description'))); ?>">
<meta name="robots" content="index, follow">
-
+
<!-- ICI : <?php echo($_SERVER['DOCUMENT_ROOT']); ?> -->
<!-- JAVASCRIPT -->
<script type="text/javascript" src="<?php echo(registry_url('json-js','js'));?>"></script>
@@ -73,16 +73,16 @@
<script type="text/javascript" src="<?php echo(registry_url('jquery-url','js'));?>"></script>
<script type="text/javascript" src="<?php echo(registry_url('metadataplayer','js'));?>"></script>
<script type="text/javascript" src="<?php echo(registry_url('tracemanager','js'));?>"></script>
-
+
<!-- Framework CSS -->
<link rel="stylesheet" href="<?php echo(registry_url('tweetcast','css'));?>" type="text/css" media="screen, projection"/>
<link rel="stylesheet" href="<?php echo(registry_url('fancybox','css'));?>" media="screen"/>
-
+
<!-- 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">
// Configuration Polemical Timeline
if (typeof jQuery == "undefined") {
@@ -118,12 +118,12 @@
cookie: _cookie,
url: document.location.href
});
-
+
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: metadatas[metadata_key].url + '?callback=?',
format: 'ldt'
@@ -138,7 +138,7 @@
css:'<?php echo(registry_url('metadataplayer','css'));?>',
widgets: [
{
- type: "JwpPlayer",
+ type: "AutoPlayer",
height: 360,
width: 600,
url_transform: function(u) {
@@ -164,12 +164,12 @@
<?php endif; ?>
<?php if ($protocol_level > 1): ?>
{
- type: "Segments",
- annotation_type: "chap"
+ type: "MultiSegments",
+ //annotation_type: "chap"
},
{
type: "Annotation",
- annotation_type: "chap"
+ annotation_type: "découpage"
},
{ type: "Tweet" },
{
@@ -180,10 +180,21 @@
},
{
type: "AnnotationsList",
- //ajax_url : "http://ldt.iri.centrepompidou.fr/ldtplatform/api/ldt/segments/{{media}}/{{begin}}/{{end}}?callback=?",
+ //ajax_url : "http://ldt.iri.centrepompidou.fr/ldtplatform/api/ldt/segments/{{media}}/{{begin}}/{{end}}?callback=?",
//foreign_url : "http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/front/player/{{media}}/{{project}}/{{annotationType}}#id={{annotation}}",
container: "AnnotationsListContainer"
},
+ {
+ type: "CreateAnnotation",
+ //api_endpoint_template: "http://ldt.iri.centrepompidou.fr/ldtplatform/api/ldt/1.0/annotations/",
+ api_endpoint_template: "http://localhost/~ymh/platform/ldtplatform/api/ldt/1.0/annotations/",
+ api_method: 'POST',
+ after_send_timeout: 8000,
+ show_mic_record: false,
+ close_after_send: false,
+ slice_annotation_type: ["chap","découpage"],
+ creator_avatar: "<?php echo(URL_ROOT); ?>images/avatar.png"
+ },
<?php endif; ?>
{ type: "Mediafragment"},
{
@@ -197,7 +208,7 @@
}
]
};
-
+
jQuery(document).ready(function() {
<?php if ($show_splash): ?>
jQuery.fancybox(
@@ -207,7 +218,7 @@
modal: true,
closeBtn: false
});
-
+
jQuery("#fancybox-content form").submit(function() {
jQuery.fancybox.close();
var _checkboxes = [];
@@ -260,7 +271,7 @@
_nx.slideDown();
}
})
-
+
});
</script>
<script type="text/javascript">
@@ -268,7 +279,7 @@
_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';
@@ -345,7 +356,7 @@
</a>
</li>
</ul>
-
+
<?php if(is_array($translate->_('config__metadata'))): ?>
<ul id="content_select_ul" class="menu mdselect">
<span><?php print $translate->_("changer de contenu"); ?></span><br/>
@@ -396,7 +407,7 @@
</li>
<?php endif; ?>
</ul>
-
+
</div>
@@ -409,9 +420,9 @@
var _myPlayer = new IriSP.Metadataplayer(_config);
</script>
</div>
-
+
<div class="footer">
-
+
<hr>
<?php echo($translate->_('config__partenaires')); ?>
</div>