doc:thememinihowto
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
doc:thememinihowto [2019/01/12 17:53] – external edit 127.0.0.1 | doc:thememinihowto [2024/02/01 23:30] (current) – Instructions adapted to Smary4 specifications fraenkiman | ||
---|---|---|---|
Line 2: | Line 2: | ||
- | Well, my suggestion is always to start [[http:// | + | Well, my suggestion is always to start from an already made theme, and at this moment I would start from latest unstable version (using flatmaas theme, and changing the css); when I'll release the new package themes will be a bit changed (even though old ones should still work). |
- | Ok, let's see how it works [[http:// | + | Ok, let's see how it works. |
===== What is Smarty ? ===== | ===== What is Smarty ? ===== | ||
- | [[http://smarty.php.net|Smarty]] is a system which translates // | + | [[http://www.smarty.net|Smarty]] is a system which translates // |
- | However, there are some things people should know [[http:// | + | However, there are some things people should know. |
Line 19: | Line 19: | ||
**index.tpl** is your " | **index.tpl** is your " | ||
- | First of all [[http:// | + | First of all create a new dir in your fp-interface/ |
you could create a index.tpl like this | you could create a index.tpl like this | ||
Line 37: | Line 37: | ||
</ | </ | ||
- | Now, you would probably be all "I know how to write an html page, you idiot!", | + | Now, you would probably be all "I know how to write an html page, you idiot!", |
Save, and refresh. Now **you' | Save, and refresh. Now **you' | ||
Line 112: | Line 112: | ||
</ | </ | ||
- | There are many predefined variables you can use, and most of them come from Smarty itself; you can read more about them on the [[http://smarty.php.net|manual]]. Some are generate by flatpress, and are globally available like the special {$flatpress} array, of which the fields contains config informations. | + | There are many predefined variables you can use, and most of them come from Smarty itself; you can read more about them on the [[http://www.smarty.net|manual]]. Some are generate by flatpress, and are globally available like the special {$flatpress} array, of which the fields contains config informations. |
Some tags are **not** globally available and can be reached only from within an iterator tag; these variables are proper of the iterator itself. | Some tags are **not** globally available and can be reached only from within an iterator tag; these variables are proper of the iterator itself. | ||
Line 228: | Line 228: | ||
*} | *} | ||
- | {include file=header.tpl} | + | {include file="header.tpl"} |
{entries} | {entries} | ||
Line 250: | Line 250: | ||
<code smarty> | <code smarty> | ||
- | {include file=tpl/ | + | {include file="tpl/ |
</ | </ | ||
Line 258: | Line 258: | ||
file= admin also a special " | file= admin also a special " | ||
- | file=shared: | + | file="shared: |
in fp-interface/ | in fp-interface/ | ||
doc/thememinihowto.1547311999.txt.gz · Last modified: 2019/01/12 17:53 by 127.0.0.1