Skip to main content
screenshot.
Source Link
CodeForGood
  • 764
  • 8
  • 39

I am looking for an equivalent PHP function to accomplish what document.write(new Date().getFullYear() is expected to do. This function is to be used in place of deprecated document.write(new Date().getFullYear()) in the footer section that you see in Magento Admin where HTML code can be placed for the footer text. Any advice or help greatly appreciated.Below is what I thought should have worked out.

<div class="page-container footer-toolbar footer-toolbar-bottom"><div class="content"><small class="copyright">
<span><center>COPYRIGHT © 2013-<?= date("Y"); ?> mymagentosite.COM. ALL RIGHTS RESERVED.</center></span>
</small>

enter image description here

I am looking for an equivalent PHP function to accomplish what document.write(new Date().getFullYear() is expected to do. This function is to be used in place of deprecated document.write(new Date().getFullYear()) in the footer section that you see in Magento Admin where HTML code can be placed for the footer text. Any advice or help greatly appreciated.Below is what I thought should have worked out.

<div class="page-container footer-toolbar footer-toolbar-bottom"><div class="content"><small class="copyright">
<span><center>COPYRIGHT © 2013-<?= date("Y"); ?> mymagentosite.COM. ALL RIGHTS RESERVED.</center></span>
</small>

I am looking for an equivalent PHP function to accomplish what document.write(new Date().getFullYear() is expected to do. This function is to be used in place of deprecated document.write(new Date().getFullYear()) in the footer section that you see in Magento Admin where HTML code can be placed for the footer text. Any advice or help greatly appreciated.Below is what I thought should have worked out.

<div class="page-container footer-toolbar footer-toolbar-bottom"><div class="content"><small class="copyright">
<span><center>COPYRIGHT © 2013-<?= date("Y"); ?> mymagentosite.COM. ALL RIGHTS RESERVED.</center></span>
</small>

enter image description here

Source Link
CodeForGood
  • 764
  • 8
  • 39

Looking to replace document.write(new Date().getFullYear() with an equivalent PHP function

I am looking for an equivalent PHP function to accomplish what document.write(new Date().getFullYear() is expected to do. This function is to be used in place of deprecated document.write(new Date().getFullYear()) in the footer section that you see in Magento Admin where HTML code can be placed for the footer text. Any advice or help greatly appreciated.Below is what I thought should have worked out.

<div class="page-container footer-toolbar footer-toolbar-bottom"><div class="content"><small class="copyright">
<span><center>COPYRIGHT © 2013-<?= date("Y"); ?> mymagentosite.COM. ALL RIGHTS RESERVED.</center></span>
</small>