Include $serendipity['version'] into template

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

Include $serendipity['version'] into template

Post by SoWhy » Mon Jun 25, 2007 6:28 pm

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

User avatar
Don Chambers
Regular
Posts: 3638
Joined: Mon Feb 13, 2006 3:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers » Mon Jun 25, 2007 11:02 pm

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.

User avatar
SoWhy
Regular
Posts: 23
Joined: Wed Mar 29, 2006 3:28 pm
Location: Munich (Germany)
Contact:

Post by SoWhy » Mon Jun 25, 2007 11:04 pm

Thank you very much =)

Post Reply