Skip to content

Instantly share code, notes, and snippets.

@ryanwitt
Created June 17, 2009 10:24
Show Gist options
  • Save ryanwitt/131176 to your computer and use it in GitHub Desktop.
Save ryanwitt/131176 to your computer and use it in GitHub Desktop.
<script language="javascript" type="text/javascript">
SHARETHIS.addEntry({
// defaults here
{block:PostTitle} title:'{PostTitle}',{/block:PostTitle}
{block:PostSummary} summary:'{PostSummary}',{/block:PostSummary}
icon:'{PortraitURL-30}',
url:'{Permalink}',
// entry type specifics here
{block:Text}
{block:Title} title:'{Title}',{/block:Title}
{/block:Text}
{block:Photo}
{block:Caption}
title:'{PhotoAlt}',
summary:'{PhotoAlt}',
{/block:Caption}
icon:'{PhotoURL-75sq}',
{/block:Photo}
{block:Quote}
title:'{Quote}{block:Source} --{Source}{/block:Source}',
content:'{Quote}{block:Source} --{Source}{/block:Source}',
{/block:Quote}
{block:Video}
{block:Caption}
summary:'{Caption}',
title:'{Caption}',
{/block:Caption}
content:'{Video-500}',
{/block:Video}
{block:Audio}
{block:Caption} summary:'{Caption}',{/block:Caption}
title:'Audio clip',
content:'{AudioPlayer}',
{block:ExternalAudio} content: '{ExternalAudioURL}',{/block:ExternalAudio}
{/block:Audio}
{block:Chat}
{block:Title} title:'{Title}',{/block:Title}
{/block:Chat}
{block:Link}
title:'{Name}',
url: '{URL}',
{/block:Link}
published:'{Year}-{MonthNumberWithZero}-{DayOfMonthWithZero}T{24Hour}:{Minutes}:{Seconds}-08:00'
}, {button:true} );
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment