web/polemicaltimeline.php
changeset 535 8276f3ff7a3f
parent 534 0a2505c3b547
child 536 5dd170a735e9
equal deleted inserted replaced
534:0a2505c3b547 535:8276f3ff7a3f
   123             {type: "AnnotationsWidget"},
   123             {type: "AnnotationsWidget"},
   124             {type: "AnnotationsListWidget",
   124             {type: "AnnotationsListWidget",
   125              container: "AnnotationsListContainer"},
   125              container: "AnnotationsListContainer"},
   126             {type: "TagCloudWidget",
   126             {type: "TagCloudWidget",
   127              container: "TagcloudContainer",
   127              container: "TagcloudContainer",
   128         <?php if (isset($config['hashtag'])) echo "excludeWords: ".json_encode(array($config['hashtag'])); ?>
   128         <?php if (isset($config['hashtag'])) echo "excludeWords: ".json_encode(array($config['hashtag'])).","; ?>
       
   129             excludePattern: /^@/
   129             }
   130             }
   130             ]
   131             ]
   131         },
   132         },
   132       player:{
   133       player:{
   133           type:'jwplayer',
   134           type:'jwplayer',
   152 			jQuery("#mdselect").change(function() {
   153 			jQuery("#mdselect").change(function() {
   153 				var metadata_key = this.options[this.selectedIndex].value;
   154 				var metadata_key = this.options[this.selectedIndex].value;
   154 				window.location.hash = "#metadata="+metadata_key;
   155 				window.location.hash = "#metadata="+metadata_key;
   155 				window.location.href = window.location.href;
   156 				window.location.href = window.location.href;
   156 				window.location.reload(true);
   157 				window.location.reload(true);
   157 				jQuery("#Embeded").attr('href','<?php echo(URL_ROOT.$rep);?>/embed_form.php?metadata='+metadata_key);
   158 				jQuery(".embedbutton").attr('href','<?php echo(URL_ROOT.$rep);?>/embed_form.php?metadata='+metadata_key);
   158 			});
   159 			});
   159 			if(metadata_key !== "metadata") {
   160 			if(metadata_key !== "metadata") {
   160 				jQuery("#Embeded").attr('href','<?php echo(URL_ROOT.$rep);?>/embed_form.php?metadata='+metadata_key);
   161 				jQuery(".embedbutton").attr('href','<?php echo(URL_ROOT.$rep);?>/embed_form.php?metadata='+metadata_key);
   161 			}
   162 			}
   162 			jQuery("#Embeded").fancybox({
   163 			jQuery(".embedbutton").fancybox({
   163 				'width'				: 360,
   164 				'width'				: 360,
   164 				'height'			: 360,
   165 				'height'			: 360,
   165 				'autoDimensions'	: false,
   166 				'autoDimensions'	: false,
   166 				'transitionIn'		: 'none',
   167 				'transitionIn'		: 'none',
   167 				'transitionOut'		: 'none',
   168 				'transitionOut'		: 'none',
   241             <option value="<?php echo($key); ?>" id="mdselect_<?php echo($key); ?>" ><?php echo($value['display']); ?></option>
   242             <option value="<?php echo($key); ?>" id="mdselect_<?php echo($key); ?>" ><?php echo($value['display']); ?></option>
   242             <?php endforeach;?>
   243             <?php endforeach;?>
   243         </select>
   244         </select>
   244     </ul>
   245     </ul>
   245     <?php endif;?>
   246     <?php endif;?>
       
   247                 <div class="embedbar">
       
   248                     <a class="embedbutton" href="<?php echo(URL_ROOT.$rep)?>/embed_form.php">Intégrer</a>
       
   249                     <!-- AddThis Button BEGIN -->
       
   250                     <div class="addthis_toolbox addthis_default_style addthis_32x32_style">
       
   251                         <a class="addthis_button_facebook"></a>
       
   252                         <a class="addthis_button_twitter"></a>
       
   253                         <a class="addthis_button_email"></a>
       
   254                         <a class="addthis_button_compact"></a>
       
   255                     </div>
       
   256                     <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js"></script>
       
   257                     <!-- AddThis Button END -->
       
   258                 </div>
   246                 </div>
   259                 </div>
   247 	
   260 	
   248 	<!-- EXPLICATION  -->
   261 	<!-- EXPLICATION  -->
   249 	<div id="mdpgauche">
   262 	<div id="mdpgauche">
   250        <div id="out_fleche"></div>
   263        <div id="out_fleche"></div>