Subject: Any way to concatenate variables and text?

Posted on: 26/04/09 02:42pm
By: TennSeven

Can I concatenate a variable and text if (for instance) I want my theme to be able to find a logo I am using regardless of what the geeklog path is?

As an example, I would like to change the header.thtml file from:

<img src="{site_logo}" width="151" height="56" alt="{site_name}"{xhtml}>

To something like:

<img src="{layout_url}/images/myLogo.png" width="151" height="56" alt="{site_name}"{xhtml}> (obviously this code doesn't work)

So that I could use my own logo file, and the theme would still find that file regardless of the absolute path of whatever geeklog installation it was being used in.

Is this possible?

Re: Any way to concatenate variables and text?

Posted on: 26/04/09 03:00pm
By: ::Ben

Hello TennSeven,

PHP Formatted Code
<img src="{layout_url}/images/myLogo.png" width="151" height="56" alt="{site_name}"{xhtml}>


This code is working if myLogo.png exist under your_theme/images folder

::Ben

Re: Any way to concatenate variables and text?

Posted on: 26/04/09 06:47pm
By: Anonymous

Thank you! I tried that earlier and it didn't work; I must have had an error somewhere else in the line.

Geeklog - Forum
https://www.geeklog.net/forum/viewtopic.php?showtopic=87172