1. Mol4
  2. Sherlock Holmes The Voice
  3. Commercial Templates
  4. Thursday, 30 July 2015
  5.  Subscribe via email
Hello,
I'd like to know how I can put in <?php echo date('y');?> as copyright year so that I don't need to change this manually.
Thanks!
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

You could try editing your template files directly. In your templates base.php (../templates/j51_habitat/php/layouts/base.php) try replacing the following...


<div id="copyright">
<p><?php echo $this->params->get('copyright'); ?></p>
</div>


With (edit to taste)...


<div id="copyright">
<p><?php echo date('y'); echo $this->params->get('copyright'); ?></p>
</div>


Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Thanks!

I only had to change the small 'y' into a capital 'Y'.

Greetings,
Ton
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
If I make the above change in J51_journal/php/layouts/base.php, all that appears in the footer is the current year, nothing else. The information I filled into the “copyright information” section of the style editing window doesn’t show.
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Hi E

May I suggest sending temporary administration access to your Joomla installation to info@joomla51.com and we will examine this issue further. For our reference please paste a link to this post in your email.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you Elaine

Both your date and copyright info should be now displaying correctly. A slight change in the PHP was used...


<div id="copyright">
<p><?php echo date('Y');echo $this->params->get('copyright'); ?></p>
</div>


Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 5
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!