PDA

View Full Version : Using PHP with templates - or - include macro?


netsrac
01-05-2008, 03:33 PM
Hi,

I just prepared my own template...well, and what really annoys me is that I have to create the footer-line with the links to photoblogs.org etc. in all files - means whenever I change something I need to modify all files by hand. There are several things which I would like to include automatically into the template (e.g. the menu).

Is there a way to use PHP functions with the templates? Or is there a simple <INCLUDE-FILE blabla.html> extension?

Thanks for all inputs...

Netsrac

austriaka
01-05-2008, 05:57 PM
Right now it is not possible to use PHP within the template files.

But you can create a footer (as well as a header) which appends HTML-code to all your template files. Just put the things you want to show in all pages as simple HTML into the footer.html and save it into the template folder where you want to use it.
Don't forget to remove the </body></html> part from your template files and put it into the footer.html instead. The HTML code of footer.html is appended to each template code automatically.

GeoS
01-09-2008, 02:55 PM
You can always create new, very simple addon which will handle this (setting footer stuff).