Monday, September 3, 2012

My answer to "How can I add a logo"

This is my answer to a Question on Support site for LampCMS project


It's all in the templates.
You should get familiar with the templating system used in Lampcms, which is actually very simple.
A template is a class that extends either Lampcms\Template\Fast or Lampcms\Template\Simple
The Lampcms\Template\Fast templates have numbered placeholders. It's not very user-friendly but php parses them much faster by simple using php's vsprintf() function.

The Lampcms\Template\Simple template uses user-friendly named placeholders like {somevar}
The Simple template users php's strtr() function which is slower than vsprintf()


The logo is in the header, the header is in the main template, so open the file
/www/style/1/www/tplMail.php and you can experiment with it.
I suggest you save a copy of the working template first before you start modifying it.

No comments:

Post a Comment