Last active
December 29, 2022 22:16
-
-
Save 6ui11em/454156bf4d1ae997185fa92c25ef2fdb to your computer and use it in GitHub Desktop.
Magento 2: Dynamic copyright year in footer #magento2 #copyright #year
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Copyright © Magento, Inc. All rights reserved. | |
* See COPYING.txt for license details. | |
* | |
* File: | |
* Magento_Theme/templates/html/copyright.phtml | |
*/ | |
?> | |
<small class="copyright"> | |
<span><?php /* @escapeNotVerified */ echo preg_replace('/(^|\s)(\d{4})(\s|$|\.)/m', " ".date('Y'). " ", $block->getCopyright()); ?></span> | |
</small> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment