Shortcodes
Pure comes with a ton of built-in shortcodes available when editing pages in WordPress. Below is a complete list of available shortcodes, and how to use them.
{button}
The button shortcode lets you create links that look like buttons. There are several helpful parameters available in this shortcode:
url
-- specify a URL for this button.class
-- lets you add an additional class (besides \'btn\') to the button.target
-- allows you to target a new tab/window withtarget='_blank'
.download
-- the button will force a download of theurl
parameter, and will download with the filename provided in the parameter itself.
The whole shortcode may look something like this.
{button url=/ class=myclass download=file.ext target=_top}Button Text{/button}
{calculator}
A {calculator}
shortcode exists to help quickly implement javascript loan calculators that can provide information about a provided loan, or compare multiple loans to each, depending upon the parameters you pass to it.
amount
-- pass a default amount for the calculatorrate
-- specify a default rate for the calculatorterm
-- specify a default term for the loanrate_compare
-- specify a comparison rate to make the calculator
The calculator shortcode will output a small form onto the page and attach some javascript events to it that will ensure it auto-calculates whenever a value is changed. Here\'s what a completed calculator shortcode may look like:
{calculator amount=5000 rate=7.5 term=36m /}
{twitter-aggregator}
The {twitter-aggregator}
shortcode allows you to fetch multiple twitter feeds, and aggregate them into a single listing. Visit the settings page to set your API keys and default usernames, and use these parameters in the shortcode to customize the widget.
usernames
- comma separated list of twitter handles to fetchcount
- set a count (default: 10)styles
- output styles (default: true)update_interval
- number of minutes to wait before refreshing the cache (default: 10)
The twitter-aggregator shortcode will output a twitter widget that aggregates (combines) multiple twitter feeds into a single date-ordered feed. A final shortcode may look something like this:
{twitter-aggregator usernames=reuters,ap count=5 /}