Submitter
SUPPORT TOPIC File Information
- Submitted: Apr 06 2007 01:08 AM
- Last Updated: Apr 06 2007 01:08 AM
- File Size: 8.7K
- Views: 2644
- Downloads: 361
Download DownloadLink
/**
* ---------------------------
* Snippet: DownloadLink
* ---------------------------
* Version: 1.1
* Date: 2007-04-06
*
* Returns a simple link to a file for downloading.
* For a given filename in a given directory, this snippet
* creates a link, plus prints the size and last modified date and time.
*
* Usage: call the snippet somewhere like this:
* [[ DownloadLink
* ?file=<filename> (mandatory)
* &dir=<subdirectory> (optional)
* &title=<link text> Default is the filename (optional)
*
* &showdate=[true|1] Anything else treated as false (default)
* Show the last modified date of the file. (optional)
* &showfile=[true|1] Anything else treated as false (default)
* Show the filename. (optional)
* &showsize=[true|1] Anything else treated as false (default)
* Show the size of the file. (optional)
* &sizelong=[true|1] Anything else treated as false (default)
* Show the size of the file with abbreviated or long units. (optional)
* &showtype=[true|1] Anything else treated as false (default)
* Show the type of the file, e.g. PDF, ZIP, TIF, IMG etc. (optional)
* &showall=[true|1] Anything else treated as false (default)
* Show everything (optional)
* &showdefault=[true|1] Anything else treated as false (default)
* Show your default settings (optional)
* Override the above default settings
*
* &class=[false|0] | someclass
* If false|0 or not specified then the link class isn't output
*
* &newwin=[true|1] Anything else treated as false (default)
* If false|0 or not specified then the attribute isn't output
* Trigger whatever your way of getting a new window is.
* I'm using target="_blank", but as that's not XHTML Strict,
* you might like to do something else.
* ]]
*
* History:
* 2007-04-06 1.1 Lloyd Borrett, www.borrett.id.au
* Extended it a bit
*
* 2007-03-22 1.0 Created by tobi.vc, <tobi.vc(at)gmail.com> [en, de]
*/
* ---------------------------
* Snippet: DownloadLink
* ---------------------------
* Version: 1.1
* Date: 2007-04-06
*
* Returns a simple link to a file for downloading.
* For a given filename in a given directory, this snippet
* creates a link, plus prints the size and last modified date and time.
*
* Usage: call the snippet somewhere like this:
* [[ DownloadLink
* ?file=<filename> (mandatory)
* &dir=<subdirectory> (optional)
* &title=<link text> Default is the filename (optional)
*
* &showdate=[true|1] Anything else treated as false (default)
* Show the last modified date of the file. (optional)
* &showfile=[true|1] Anything else treated as false (default)
* Show the filename. (optional)
* &showsize=[true|1] Anything else treated as false (default)
* Show the size of the file. (optional)
* &sizelong=[true|1] Anything else treated as false (default)
* Show the size of the file with abbreviated or long units. (optional)
* &showtype=[true|1] Anything else treated as false (default)
* Show the type of the file, e.g. PDF, ZIP, TIF, IMG etc. (optional)
* &showall=[true|1] Anything else treated as false (default)
* Show everything (optional)
* &showdefault=[true|1] Anything else treated as false (default)
* Show your default settings (optional)
* Override the above default settings
*
* &class=[false|0] | someclass
* If false|0 or not specified then the link class isn't output
*
* &newwin=[true|1] Anything else treated as false (default)
* If false|0 or not specified then the attribute isn't output
* Trigger whatever your way of getting a new window is.
* I'm using target="_blank", but as that's not XHTML Strict,
* you might like to do something else.
* ]]
*
* History:
* 2007-04-06 1.1 Lloyd Borrett, www.borrett.id.au
* Extended it a bit
*
* 2007-03-22 1.0 Created by tobi.vc, <tobi.vc(at)gmail.com> [en, de]
*/
- 248 Total Files
- 19 Total Categories
- 50 Total Authors
- 131,658 Total Downloads
- TripTracker Gallery Latest File
- Dean Latest Submitter











