ryanwitt (owner)

Revisions

gist: 131176 Download_button fork
public
Public Clone URL: git://gist.github.com/131176.git
HTML
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<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>