Include $serendipity['version'] into template

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
SoWhy
Regular
Posts: 23
Joined: Wed Mar 29, 2006 3:28 pm
Location: Munich (Germany)
Contact:

Include $serendipity['version'] into template

Post by SoWhy »

Hey,

I modified a template very much to suit my needs and I want to have the s9y version number in the template. Can anyone tell me how to show the variable $serendipity['version'] from serendipity_config.inc.php in my template?

TIA

SoWhy
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

If you are trying to display the s9y version installed, you could try the following (or some variation of it):

Code: Select all

  <p>{$CONST.POWERED_BY} <a href="http://www.s9y.org" target="_blank" title="Serendipity {$head_version} http://www.s9y.org">Serendipity {$head_version}</a></p>
Put that code in your index.tpl wherever you want to display that info, such as at the bottom of the page.
=Don=
SoWhy
Regular
Posts: 23
Joined: Wed Mar 29, 2006 3:28 pm
Location: Munich (Germany)
Contact:

Post by SoWhy »

Thank you very much =)
Post Reply