// Author: Jeroen Ransijn
// Auto updating copyright notice
function auto_copyright_notice($startYear,$txt) {
// this line will compare the startYear with the current year, if this is the same only display the startYear
// if this is false, both show: $startYear 'en dash(Study Typography you nerd!)' $currentYear
// note that if $starYear is bigger then the current year,
// or isn't an integer this function will still return the current year
$year = ($startYear >= date("Y") ? date("Y") : $startYear . "–". date("Y"));
return $year . " © " . $txt;
}