Template management

The plugin intentionally contains a simple template, which, however, could easily still suit you. However, you have the option to make the look unique. All you have to do is create a downloads-from-files folder in your (child) theme, and then plugin the download-from-files/templates copy the files in your folder. From now on, the plugin will use these files.

The templates themselves are simple HTML files in which the plugin replaces links to specific content on a “find and replace” basis. So e.g. will replace [TITLE] with a description of the downloadable document. On the same principle, if you made your own reference in the shortcode, eg class="my-class", the template will contain [CLASS] will be replaced by my-class.

The template itself consists of only three files:

folder.html

Used when displaying folders in a folder. All folders in the folder are invited. In addition to the ones you define, you can use two links:

[TITLE] – Folder description
[CONTENT] – this is where the plugin will load downloadable documents (or additional folders).
… as well as links provided by yourself.

file.html

Used when a downloadable document needs to be displayed. All documents in the folder are invited. In addition to the ones you define, you can use the following links:

[URL] – An absolute link to the file
[TITLE] – File description
[ROOT] – Homepage link
[FILENAME] – File name
[EXT] – File extension
[ICON] – Icon specific to the file type
[SIZE] – File size (in a form suitable for human consumption)
[DATE] – File creation date (in a format appropriate for setting up WordPress)
[TIME] – File creation time (in a format appropriate for setting up WordPress)
[UPLOADER] – If you are using the Very simple file upload plugin to upload, the name of the uploader
… as well as links provided by yourself.

one-file.html Used when a file is to be displayed. The same links can be used as for file.html.