Año del Copyright
Para mostrar el año del copyright en el pie de la página. Si son varios años, se muestran tipo "2004-2008".
Copy this code and paste it in your HTML
<?php
// $year es el año en que se creó. Si dicho año es el actual, no se muestra nada más.
function summonCopyright($year)
{
$copyright = (($Y = intval(date('Y'))) > $year ) ?
"-$Y" : ''; return 'Copyright ©'.$year.$copyright.' | Design by ...';
}
?>
Report this snippet
Comments
Subscribe to comments