Print year in the footer dinamically

  • Author
    Posts
  • #21587
    Simon

    Hello
    in advanced section (parabola settings) i can add custom footer text, css, javascript.

    I would like to print a footer with credits and using a dinamyc variable or function for the year so it automatically change every year.

    Do you know how to do this on parabola?
    thanks

    S

    #21946
    Sylvia

    I haven’t tried this in the Misc. area of Parabola but I found this snippet that could help you.

    <?php
    $time = time () ;
    //This line gets the current time off the server

    $year= date(“Y”,$time) . “<br>”;
    //This line formats it to display just the year

    echo “Copyright 2002 – ” . $year;
    //this line prints out the copyright date range, you need to edit 2002 to be your opening year
    ?>

    Source: http://php.about.com/od/finishedphp1/qt/copyright.htm

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Print year in the footer dinamically’ is closed to new replies.