web/polemicaltimeline.php
changeset 685 b48fe0f2d5b1
parent 684 f59daf0830d2
child 694 e9400c80e1e4
--- a/web/polemicaltimeline.php	Fri Aug 24 13:07:29 2012 +0200
+++ b/web/polemicaltimeline.php	Tue Aug 28 12:29:30 2012 +0200
@@ -164,6 +164,7 @@
                     annotation_type: [ "chap", "découpage" ]
                 },
                 { type: "Tweet" },
+<?php if (!$use_protocol): ?>
                 {
                     type: "Tagcloud",
                     container: "TagcloudContainer",
@@ -175,13 +176,11 @@
                     //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"
-<?php if ($protocol_level < 3): ?>
-                    ,
-                    polemics: []
-<?php endif; ?>
                 },
 <?php endif; ?>
+<?php endif; ?>
                 { type: "Mediafragment"},
+<?php if ($use_protocol): ?>
                 {
                     type: "Trace",
                     tracer: _tracer,
@@ -191,6 +190,7 @@
                     },
                     js_console: true
                 }
+<?php endif; ?>
             ]
         },
         player:{