[FIXED] Page copyright at Bolton of pages

edited February 2014 in Site Issues
Hello, I have noticed that all of the pages in winworldpc.com have Copyright 2003-2012, and not 2014. Has anyone updated the pages recently?

Comments

  • Eh, it's no big deal really. I feel like there's more important stuff to work on other than the theme on this site.

    PS. Your signature is way too big.
  • If you care, there's a nice PHP function which will automate copyright at CSS-Tricks: http://css-tricks.com/snippets/php/auto ... ight-year/
    <?php function auto_copyright($year = 'auto'){ ?>
       <?php if(intval($year) == 'auto'){ $year = date('Y'); } ?>
       <?php if(intval($year) == date('Y')){ echo intval($year); } ?>
       <?php if(intval($year) < date('Y')){ echo intval($year) . ' - ' . date('Y'); } ?>
       <?php if(intval($year) > date('Y')){ echo date('Y'); } ?>
    <?php } ?>
    
    <?php auto_copyright(); // 2011?>
    
    <?php auto_copyright('2010');  // 2010 - 2011 ?>
    
  • That's horribly written and largely unnecessary. Not only does it not really matter at all, but if you're already past the starting year, it's much simpler to just output date('Y');
This discussion has been closed.