Monday, February 23, 2009

Compact Digg button for WordPress

A code to embed a compact Digg button (as shown in Figure 1) in WordPress.

[caption id="attachment_1521" align="alignnone" width="450" caption="Figure 1: A compact Digg button"]A compact Digg button[/caption]
<script type="text/javascript">
digg_url = '<?php echo get_permalink(); ?>';
digg_title = '<?php the_title(); ?>';
digg_skin = 'compact';
digg_window = 'new';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"> </script>

1 comment :