Maian Music utilises the
Latte template engine from
Nette. This make integrating the layout into your existing site relatively easy compared with none templated
systems. The advantage of Latte is that it uses PHP style syntax, which you may already be familiar with. Unlike other template engines that basically require you to learn a new language.
The Latte templates for the system are located in the
content/*theme*/ folder.
Where you see variables in the .tpl files, these should
NOT be removed. Example:
{$CODE}. See comments in templates for certain variables.
In most cases, the code in the .tpl files parse standard HTML. The HTML templates are located in the
content/*theme*/html/. folder.
The HTML template files have variable braces. eg: {brace}. These should
NOT be removed. Also note that these should not be confused with the Latte variables. The {vars} in the html
folder are parsed at runtime by the system, not by Latte.
To integrate Maian Music into your existing site design is going to require some basic knowledge of HTML and a good understanding of the Latte syntax. You'll start by looking at your current HTML structure
and comparing it to that of Maian Music. Generally work with the header and footer first. If you don't understand HTML, integrating into another site layout is
NOT
recommended.
To understand the Latte Template Engine more, refer to the Latte website:
Main Latte Guide
PHP2Latte (useful PHP conversion tool)