--- a/web/polemicaltimeline.php Mon Mar 05 18:41:11 2012 +0100
+++ b/web/polemicaltimeline.php Tue Mar 06 13:22:18 2012 +0100
@@ -125,7 +125,8 @@
container: "AnnotationsListContainer"},
{type: "TagCloudWidget",
container: "TagcloudContainer",
- <?php if (isset($config['hashtag'])) echo "excludeWords: ".json_encode(array($config['hashtag'])); ?>
+ <?php if (isset($config['hashtag'])) echo "excludeWords: ".json_encode(array($config['hashtag'])).","; ?>
+ excludePattern: /^@/
}
]
},
@@ -154,12 +155,12 @@
window.location.hash = "#metadata="+metadata_key;
window.location.href = window.location.href;
window.location.reload(true);
- jQuery("#Embeded").attr('href','<?php echo(URL_ROOT.$rep);?>/embed_form.php?metadata='+metadata_key);
+ jQuery(".embedbutton").attr('href','<?php echo(URL_ROOT.$rep);?>/embed_form.php?metadata='+metadata_key);
});
if(metadata_key !== "metadata") {
- jQuery("#Embeded").attr('href','<?php echo(URL_ROOT.$rep);?>/embed_form.php?metadata='+metadata_key);
+ jQuery(".embedbutton").attr('href','<?php echo(URL_ROOT.$rep);?>/embed_form.php?metadata='+metadata_key);
}
- jQuery("#Embeded").fancybox({
+ jQuery(".embedbutton").fancybox({
'width' : 360,
'height' : 360,
'autoDimensions' : false,
@@ -243,6 +244,18 @@
</select>
</ul>
<?php endif;?>
+ <div class="embedbar">
+ <a class="embedbutton" href="<?php echo(URL_ROOT.$rep)?>/embed_form.php">Intégrer</a>
+ <!-- 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 -->