Options List
Plugin supports many arguments. But, all arguments are optional..
You can place options array in a HTML5 data attribute [data-button] or HTML comment so It would not break HTML validation of your page. Options must be separated by a comma, but a trailing comma is fatal.
| Option |
Description |
Default value |
| debug |
Set debug to 1 while you are testing to throw errors, then set it to 0 when you done. |
0 |
| url |
By default button will use the URL & title of the current page. to override this set it manually. |
'' |
| url_querystring |
When 'url' is left empty. any query string in the current page URL will be ignored, which should be suitable to most blogging
platforms. but if your post URL uses query string to identify each post then you must set this to 1
query string: anything in URL that comes after ? including the question mark. |
0 |
| title |
By default button will use the title of the current page when url is empty. to override this set it manually. |
'' |
| button |
The tall button is the default. to use the wide button set this to 'wide' |
'tall' |
| nick |
Your Twitter nickname(username). So when people retweet your link; it would be prefixed with "RT @username" |
'' |
| login | This is the bit.ly account login that will be used on every call to bit.ly API. A bit.ly account was created to be used by default. So, it is not necessary but it is recommended to use your own bit.ly login and API key in order to track your links statistics on your bit.ly dashboard. You can have a free bit.ly account at http://bit.ly/a/sign_up and get your API key at http://bit.ly/a/your_api_key. To use yours, set these default plugin options with your login and API key right after including the javascript files <script type="text/javascript">
$.fn.bitlyButton.defaults.login = 'your-login';
$.fn.bitlyButton.defaults.api_key = 'your-API-key';
</script> |
'bitly...' |
| api_key |
bit.ly API key that will be used on every call to bit.ly API as described above..
A bit.ly account was created to be used by default.
|
'R_a61....' |
| css |
CSS for this buttton is included in the javascript file. to use you custom CSS, set this to 0 to disable inline CSS.
Refer to this CSS file to get an idea about the used styles |
1 |
| icon |
Image URL for the button icon. If you need to change it or to host it somewhere else you can set the new URL here.
you can also set this to empty string '' to disable and instead show the "icon_txt".
|
'http://bitly-button.googlecode.com/svn/v1/bitly.png' |
| icon_txt |
Text that will be used when "icon" option is disbaled..
|
'bit.ly' |