Design Template
A design template gives an area of Laika Bill Manager its look
A design template gives an area of Laika Bill Manager its look: the public site and client area, or the staff area. You can install one in a few clicks, or make your own.
Templates are free to download from laikait.com/templates/lbm.
Installing a template #
Open Settings > Templates.
- Press Check for templates. Laika Bill Manager reads the list of templates on offer for it from laikait.com. It checks again by itself once a day.
- Press Install under the template you like. A picture of it is shown on its card.
- Open Settings > General and choose it for the area it is for (the public site and client area, or the staff area).
Installing a template never changes how your site looks. Only choosing it does, and you can go back to the one you had in the same place.
A template that has a newer version shows Update. A copy of the version you had is kept in system/Templates.
Without internet on the server #
Download the template's zip from the page above, then use Upload a template on Settings > Templates.
Removing a template #
Press Remove on its card. You cannot remove the template in use, or the default one of its kind (Standard for the public site and client area, Pro Top for the staff area). One that came with Laika Bill Manager can be removed too, and installed again from the list. A copy of a removed template is kept in system/Templates.
When Laika Bill Manager is updated #
A new version sometimes adds a page. A template made before it does not have that page yet. Until its maker publishes an update, Laika Bill Manager uses the default look instead, and says so at the top of the admin area. Settings > Templates shows which pages are missing. When the maker has published an update, Update appears.
Is it safe? #
A template is pages, styles, scripts, fonts and pictures. It is never program code: a zip that holds PHP is refused, both on laikait.com and by your own installation. Every download is checked against the size and fingerprint laikait.com published, and thrown away if it differs. Install templates only from people you trust, as you would any script that runs in your visitors' browsers.
Making a template #
A template is a folder. Copy one that came with Laika Bill Manager (templates/client/standard for the public site and client area, templates/admin/pro-top for the staff area), give it a new name, and change it. Every template has every page of the one it was copied from. A template that lacks one is not used.
To share it, add a template.json beside the pages:
{
"id": "cloud-pro",
"type": "client",
"name": "Cloud Pro",
"version": "1.0.0",
"products": ["lbm"],
"description": "A calm look for hosting companies.",
"provider": "Your name",
"provider-url": "https://example.com"
}
| Field | Meaning |
|---|---|
| id | The folder it installs into. Lower case letters, digits and hyphens, starting with a letter. Installing a template never overwrites one of the same name that is already there. |
| type | client for the public site and client area, admin for the staff area. |
| name and description | What people read. |
| version | Three numbers, such as 1.2.0. Raise it for every change you publish. |
| products | The products it works with. A template can serve more than one. Use lbm for Laika Bill Manager. |
| lbm and php | Optional. The oldest Laika Bill Manager and PHP it works with. |
| provider and provider-url | Who made it, and where to read more. |
| summary | Optional. One line about it (up to 160 characters), shown at the top of its page on laikait.com. |
| features | Optional. A list of up to 12 short lines: what it gives you. |
| tags | Optional. Up to 8 short words, such as hosting or dark. |
| demo-url and docs-url | Optional. Links (https) to a live demo and to its documentation. |
| changelog | Optional. What changed in this version. |
Add a picture named preview.jpg next to template.json: a JPEG at least 300 by 200 pixels and at most 2 MB, shown on its card three wide by two high. Then zip the folder.
To publish it on laikait.com, send the zip to us. We upload it, and it appears in the catalogue. It also gets a page of its own, at laikait.com/template/lbm/<id>, made from your template.json: its present version, older versions to download, what changed in each, and the versions of Laika Bill Manager and PHP it needs.
Something missing or wrong? Tell us or contact us.