Welcome to Geeklog, Anonymous Monday, December 23 2024 @ 09:21 pm EST

Geeklog Forums

How add template variables


Ricardo

Anonymous
Hi:

It is possible to add template variables for a new theme?
How I can do that?

Variables like welcome_msg.

Thank's for the answer

Ricardo
 Quote

Ricardo

Anonymous
Sorry,

Here is the answer (in the geeklog documentation):

"If you want to use custom PHP functions, you can put them in the file functions.php within your themes directory".
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Plugins can also add their own variables to some template files. And there's a hook in lib-custom.php (CUSTOM_templateSetVars) to add your own variables to the header.thtml.

bye, Dirk
 Quote

Ricardo

Anonymous
Thank's for your answer
 Quote

All times are EST. The time is now 09:21 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content