PDA

View Full Version : Copyright and PHP Date



spradlig
07-22-2010, 04:13 PM
I remember somewhere seeing that someone used the lower right nav bar for a copyright notice and links to pages like the Privacy Policy.

I'd like to add a Copyright notice that is:

Copyright 2010 - <?php echo date("Y"); ?>

That way the date on the copyright notice is always accurate no matter how long the site is up. However, Socrates seems to scrub everything after <?php from my entry.

It's a pretty minor thing since I don't really think the Copyright notice is necessary for most of my sites but I'd like to have it anyway.

Dan Nickerson
07-31-2010, 12:40 AM
We should have that option in the future..

In the meantime you could hard code into footer.php by replacing this

<?php if ($footerRightNav['text'] != '') { echo stripslashes($footerRightNav['text']);} ?>

with

Copyright 2010 - <?php echo date("Y"); ?>

gordon7
09-18-2011, 08:56 AM
We should have that option in the future..

In the meantime you could hard code into footer.php by replacing this

<?php if ($footerRightNav['text'] != '') { echo stripslashes($footerRightNav['text']);} ?>

with

Copyright 2010 - <?php echo date("Y"); ?>

Unfortunately, this didn't work for me.

Any other suggestions?

Thanks

Dan Nickerson
09-18-2011, 11:44 AM
You need to enable the Socrates lower right navigation for this to work.

gordon7
09-18-2011, 03:01 PM
You need to enable the Socrates lower right navigation for this to work.

It worked!

Thank you

leongopen
10-14-2012, 09:45 PM
In Socrates V3.04 is there a place now to put our copyright policy so that we don't have to hard code it? It will make life easy for non technical people. Thanks

Dan Nickerson
10-15-2012, 10:07 AM
Do you mean a copyright notice or policy?

A policy is typically a page, a notice is typically a sentence.

We have other threads on this.

Just make a custom link in Appearance Menus for: Copyright 2012 etc
and link it to" #

leongopen
10-18-2012, 12:15 PM
Thanks Dan. I followed this thread http://www.socratestheme.com/forum/showthread.php?4386-Socrates-3-02-adding-Copyright and it solved my issue :)