web/polemicaltimeline.php
changeset 581 7607516bd9f1
parent 575 634e5549b806
child 583 f655dafb741e
equal deleted inserted replaced
580:fba78a21c109 581:7607516bd9f1
    76   		}
    76   		}
    77   		<?php else: ?>
    77   		<?php else: ?>
    78   		var metadatas = { metadata: {url: "<?php echo($translate->_('config__metadata'));?>", duration: <?php echo($translate->_('config__duration'))?>} };
    78   		var metadatas = { metadata: {url: "<?php echo($translate->_('config__metadata'));?>", duration: <?php echo($translate->_('config__duration'))?>} };
    79   		var metadata_key = "metadata";
    79   		var metadata_key = "metadata";
    80   		<?php endif;?>
    80   		<?php endif;?>
    81     IriSP.libdir = "<?php echo(registry_url('libdir','js'));?>";
    81     IriSP.libFiles.defaultDir = "<?php echo(registry_url('libdir','js'));?>";
    82     IriSP.jwplayer_swf_path = "<?php echo(URL_ROOT); ?>res/mediaplayer/player.swf";
    82     IriSP.jwplayer_swf_path = "<?php echo(URL_ROOT); ?>res/mediaplayer/player.swf";
    83     IriSP.platform_url = "http://ldt.iri.centrepompidou.fr/";
       
    84     IriSP.language = "<?php echo($actual) ?>"
    83     IriSP.language = "<?php echo($actual) ?>"
    85     var json_url = metadatas[metadata_key].url;
    84     var json_url = metadatas[metadata_key].url;
    86 
    85 
    87     var config = {            
    86     var config = {            
    88         gui:{
    87         gui:{
   128              ajax_mode: false},
   127              ajax_mode: false},
   129             {type: "TagCloudWidget",
   128             {type: "TagCloudWidget",
   130              container: "TagcloudContainer",
   129              container: "TagcloudContainer",
   131         <?php if (isset($config['hashtag'])) echo "excludeWords: ".json_encode(array($config['hashtag'])).","; ?>
   130         <?php if (isset($config['hashtag'])) echo "excludeWords: ".json_encode(array($config['hashtag'])).","; ?>
   132             excludePattern: /^@/
   131             excludePattern: /^@/
   133             }
   132         },{
       
   133                         type: "TraceWidget",
       
   134                      //   js_console : true,
       
   135                         url: "http://traces.advene.org:5000/",
       
   136                         requestmode: 'GET',
       
   137                         syncmode: "sync"
       
   138                     }
   134             ]
   139             ]
   135         },
   140         },
   136       player:{
   141       player:{
   137           type:'jwplayer',
   142           type:'jwplayer',
   138           live: true, 
   143           live: true,