Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #1  
Old 01-05-2008, 03:33 PM
netsrac Offline
forum loafer
 
Join Date: Dec 2007
Posts: 2
Using PHP with templates - or - include macro?

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
Reply With Quote
  #2  
Old 01-05-2008, 05:57 PM
austriaka's Avatar
austriaka+ Offline
Team Pixelpost
 
Join Date: Nov 2006
Location: Germany
Posts: 1,175
Send a message via ICQ to austriaka Send a message via AIM to austriaka
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.
__________________
Uh!log Photoblog
My Addons
Reply With Quote
  #3  
Old 01-09-2008, 02:55 PM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
You can always create new, very simple addon which will handle this (setting footer stuff).
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 01:54 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs