User Tools

Site Tools


doc:thememinihowto

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
doc:thememinihowto [2019/01/12 17:53] – external edit 127.0.0.1doc: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://www.mesincuci.co/cara-merawat-dan-membersihkan-mesin-cuci|Cara Merawat Mesin Cuci]] 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).+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://www.buletinautomotif.com/|Harga Mobil Honda]] .+Ok, let's see how it works.
  
 ===== What is Smarty ? ===== ===== What is Smarty ? =====
  
-[[http://smarty.php.net|Smarty]] is a system which translates //templates// containing special //tags// into php; most of the blogs you see around [[http://www.mesincuci.co/harga-mesin-cuci-toshiba-1-tabung-2017|Mesin Cuci Toshiba]] just use PHP as php itself works actually like a templating language. Using Smarty let us **abstract** more from the php programming logic, and should make easier for non-programmers to design a template.+[[http://www.smarty.net|Smarty]] is a system which translates //templates// containing special //tags// into php; most of the blogs you see around just use PHP as php itself works actually like a templating language. Using Smarty let us **abstract** more from the php programming logic, and should make easier for non-programmers to design a template.
  
  
-However, there are some things people should know [[http://www.buletinautomotif.com/|Harga Helm NHK]].+However, there are some things people should know.
  
  
Line 19: Line 19:
 **index.tpl** is your "main" file. It must contain all of the stuff which will go in index.php **index.tpl** is your "main" file. It must contain all of the stuff which will go in index.php
  
-First of all [[http://www.mesincuci.co/harga-mesin-cuci-panasonic|Harga Mesin Cuci Panasonic]] create a new dir in your fp-interface/themes/ dir, and copy from flatmaas2 the theme.conf.php (or theme_conf.php depending on your version) to the new directory.+First of all create a new dir in your fp-interface/themes/ dir, and copy from flatmaas2 the theme.conf.php (or theme_conf.php depending on your version) to the new directory.
  
 you could create a index.tpl like this you could create a index.tpl like this
Line 37: Line 37:
 </file> </file>
  
-Now, you would probably be all "I know how to write an html page, you idiot!", well wait. Now that you have your dumb hello world page save this index.tpl, check whether you really have reading permissions for all users on that directory, and then point your browser to flatpress, go to control panel and select from the config page the name you chose [[https://goo.gl/Kh6ih6|d'lemonie sari lemon]] for the dir of your theme.+Now, you would probably be all "I know how to write an html page, you idiot!", well wait. Now that you have your dumb hello world page save this index.tpl, check whether you really have reading permissions for all users on that directory, and then point your browser to flatpress, go to control panel and select from the config page the name you chose for the dir of your theme.
  
 Save, and refresh. Now **you'll probably have an error** because the new theme lacks some stuff. No problem, just browse to [[http://yourweb/flatpress/]] as an index you should see your hello world. Save, and refresh. Now **you'll probably have an error** because the new theme lacks some stuff. No problem, just browse to [[http://yourweb/flatpress/]] as an index you should see your hello world.
Line 112: Line 112:
 </code> </code>
  
-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/header.tpl}+{include file="tpl/header.tpl"}
 </code> </code>
  
Line 258: Line 258:
 file= admin also a special "URL-like" syntax. file= admin also a special "URL-like" syntax.
  
-file=shared:my_template.tpl will look for a template called my_template.tpl +file="shared:my_template.tplwill look for a template called my_template.tpl 
 in fp-interface/sharedtpls/ in fp-interface/sharedtpls/
  
doc/thememinihowto.1547311999.txt.gz · Last modified: 2019/01/12 17:53 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki