Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 2172

Extensions for Joomla! 5.x • Re: JCE editor stripping PHP date code

$
0
0
As an afterthought, it is possible to customise the Joomla Footer module that changes the year in the copyright clause automatically. Create a template override of mod_footer and edit the PHP code in the override file. That way future Joomla updates do not overwrite the custom code.

If the site uses Cassiopeia, the override file is templates/cassiopeia/html/mod_footer/default.php. Copy and paste the following code into default.php with your modifications:

Code:

<?php/** * @package     Joomla.Site * @subpackage  mod_footer * * @copyright   (C) 2006 Open Source Matters, Inc. <https://www.joomla.org> * @license     GNU General Public License version 2 or later; see LICENSE.txt */defined('_JEXEC') or die;use Joomla\CMS\Language\Text;use Joomla\CMS\HTML\HTMLHelper;$lineone = 'Copyright &#169; ' . HTMLHelper::_('date', 'now', 'Y') . ' Example Pty Ltd. All Rights Reserved.'?><div class="mod-footer">    <div class="footer1"><?php echo $lineone; ?></div></div>
footer-before.png
footer-after.png

Statistics: Posted by toivo — Sat Mar 30, 2024 10:32 pm



Viewing all articles
Browse latest Browse all 2172

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>