php includes in templates

adantart

Joined: 2007-08-03
Posts: 9
Posted: Fri, 2007-08-03 16:08

Hi:

I would like to include a "include" function of PHP in the template, for the header.
In that function besides I got php code to show diferent things depending on things of the main site.

Any ideas ?

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Sat, 2007-08-04 00:18

Since Gallery 2 uses Smarty for it's template engine, check out http://www.phpfreaks.com/smarty_manual/page/language.function.include.html


h0bbel - Gallery Team
If you found my help useful, please consider donating to Gallery
http://h0bbel.p0ggel.org

 
adantart

Joined: 2007-08-03
Posts: 9
Posted: Sat, 2007-08-04 07:37

thank you !