Status: offline

pfaustino

Forum User
Newbie
Registered: 05/12/04
Posts: 1
excited
Geeklog noobie alert...

I'm adding an html table to the footer of all pages - it's basically gonna be a table for an ad banner. The ad banner will be consistent and I was hoping to just add the code

{footer_banner}

to the footer.thtml code for all the layouts. This way, I can just edit footer_banner once and all layouts will automatically be changed.

My problem is I don't know where AND how to definte footer_banner.

Can anyone give me instructions? I tried to follow where copyright_notice is defined but since mine is an image, it doesn't make sense to put it in languages. Especially since it will be the same image all the time.

Status: offline

Turias

Forum User
Full Member
Registered: 10/20/03
Posts: 807
In lib-common.php, in COM_siteFooter(), do the following:

Text Formatted Code
$footerBanner = 'HTML for banner';
$footerBanner .= 'More HTML for banner';
$footer->set_var('footer_banner', footerBanner);

 


Hope that helps.