steveosoule
12/30/2014 - 5:30 PM

Dynamic Footer Copyright Dates

Dynamic Footer Copyright Dates

<!-- FROM: http://updateyourfooter.com -->

<!-- PHP -->
&copy; <?php 
$fromYear = 2008; 
$thisYear = (int)date('Y'); 
echo $fromYear . (($fromYear != $thisYear) ? '-' . $thisYear : '');?> {{ company_name }}.

<!-- JavaScript -->
&copy; 2010<script>new Date().getFullYear()>2010&&document.write("-"+new Date().getFullYear());</script>, {{ company_name }}.