Dropcash donation campaign plugin (0.3)
zem_dropcash displays the progress of a Dropcash campaign.
Simple usage is like this:
<txp:zem_dropcash url="http://www.dropcash.com/campaign/example/my_campaign/" />
Available attributes are:
“url” is the only required attribute. The tag will use a default layout for the text and graph if <txp:zem_dropcash /> is used as a self-closing tag.
Alternatively, you can style your own layout like this:
<txp:zem_dropcash url="http://www.dropcash.com/campaign/example/my_campaign/">
<b><txp:zem_dropcash_title /></b>
<txp:zem_dropcash_graph color="#f00" />
$<txp:zem_dropcash_collected /> of $<txp:zem_dropcash_goal /><br />
<txp:zem_dropcash_link text="donate now" />
</txp:zem_dropcash>
Tags available within <txp:zem_dropcash></txp:zem_dropcash> are:
<txp:zem_dropcash_title />
The campaign title. No attributes.
<txp:zem_dropcash_graph />
The graph. Attributes:
<txp:zem_dropcash_collected />
Amount collected sofar. No attributes.
<txp:zem_dropcash_goal />
Goal amount. No attributes.
<txp:zem_dropcash_percentage />
Percentage collected sofar. No attributes.
<txp:zem_dropcash_link />
Donation link. Attributes:
<txp:zem_dropcash_if url="http://www.dropcash.com/campaign/example/my_campaign/">content</txp:zem_dropcash_if>
Displays the enclosed content if and only if donations have reached a percentage range. Content may include Textpattern tags. The tag may be used inside a<txp:zem_dropcash>enclosure, or elsewhere by specifying the campaignurl. Attributes:
<txp:zem_dropcash> </txp:zem_dropcash> tags.Examples of the min and max attributes:
<txp:zem_dropcash_if url="http://www.dropcash.com/campaign/example/my_campaign/" min=50 max=94>Half way!</txp:zem_dropcash_if>
<txp:zem_dropcash_if url="http://www.dropcash.com/campaign/example/my_campaign/" min=95 max=99>Almost there!</txp:zem_dropcash_if>
<txp:zem_dropcash_if url="http://www.dropcash.com/campaign/example/my_campaign/">We made it!</txp:zem_dropcash_if>
28 November 2004, 10:44 by Alex ·
Commenting is closed for this article.