Basically it takes the year you create your template, and if its still that year it shows it, if its not it shows the old year and then the new year.
So for exampl if you created your site this year you would want a copyright that looked something like
Copyright your site name 2006.
If your site has been online for a few years you would want a copyright that looked like this
Copyright your site name 2004 - 2006
This code will do this automatically and update each year saving you a bit of time and hassle
Code: Select all
<?php
$copy = 'Copyright © Your Site Name '; // Change this to suit leave space at end
$built = '2006'; // This is the year you built the site
$date = date(Y);
if ($date == $built) { echo $copy . $built; } else { echo $copy . $built .' - ' . $date; }
?>
Code: Select all
Copyright © Your Site Name 2005 - <?php echo date(Y); ?>
Hope this helps someone.