Hi,
I am trying to display a date in the footer. I have tried:
Copyright ©
but it doesn't work. Is there another date tag I can use?
Thanks.
display year in footer?
- MikeTroop74
- Forum Members
- Posts: 65
- Joined: Thu Oct 14, 2010 6:58 pm
Re: display year in footer?
I found this in the template I am using.
Make a new UDT and name it "custom_copyright"
Put this in the *Code area:
//set start to date your site was published
$startCopyRight='2010';
// check if start year is this year
if(date('Y') == $startCopyRight){
// it was, just print this year
echo $startCopyRight;
}else{
// it wasnt, print startyear and this year delimited with a dash
echo $startCopyRight.'-'. date('Y');
}
Now call the UDT in your template where you want the year to appear. This is how I am using it:
Copyright © {custom_copyright} Troop 74. All Rights Reserved.
Might not be exactly what you are looking for but hope that helps.
Make a new UDT and name it "custom_copyright"
Put this in the *Code area:
//set start to date your site was published
$startCopyRight='2010';
// check if start year is this year
if(date('Y') == $startCopyRight){
// it was, just print this year
echo $startCopyRight;
}else{
// it wasnt, print startyear and this year delimited with a dash
echo $startCopyRight.'-'. date('Y');
}
Now call the UDT in your template where you want the year to appear. This is how I am using it:
Copyright © {custom_copyright} Troop 74. All Rights Reserved.
Might not be exactly what you are looking for but hope that helps.