Hi,
I have a copyright notice at the bottom of my pages. It outputs something that looks like this:
Copyright © 2010
Link to my homepage
The code for this is as follows
<h4>Copyright © <?php echo date('Y'); ?> <a href="http://www.#.com/" title="Link Title">Link to my homepage</a></h4>
I have this line pasted into the footer div in the default modx template. I have used this line many times on non modx sites I hand coded with no problems. It returns the current year. However, in modx site, the php does nothing. The page validates. If I look at the source code, I see the php there, not the year.
What do I need to do differently? I do not want to have to update the year by hand on every site I manage. If I have to make this a snippet call, how do I make this return the year as a value and output it to the template? I’m not very good at writing my own php from scratch.
Thanks,
-Dan