Announcement

Collapse
No announcement yet.

Dynamically picking a header image

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • George L
    replied
    moved to correct forum

    Leave a comment:


  • filburt1
    replied
    NM, I just used the {headerimage} or whatever it was

    Leave a comment:


  • filburt1
    started a topic Dynamically picking a header image

    Dynamically picking a header image

    I've got two style sets, one that's gray and one that's blue. The gray one has a title image called toptitle-2.gif, and the blue one as toptitle-1.gif. I'm only using one template set so I don't have to worry about multiple ones when hacking.

    What code can I put in the phpinclude template that does something like this:
    PHP Code:
    if (?)
    {
        
    $customheadimage 'toptitle-2.gif';
    }
    else
    {
        
    $customheadimage 'toptitle-1.gif';

    Or is there another way to do it without making a new template set?
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X