Is there a way that I can get X3 to display the result of the PHP function: echo date("Y") ?
Posted: 10 Jun 2023, 00:24
Hello, Karl,
I realize that footers (and other parts) of X3 are not able to execute PHP by default.
Is there a way, somehow, that I can get the result of the following to display in my footers?
At present, the result would be 2023 (the current year), and I would like to display that year for the "to" part of my :copyright: Copyright in my X3 footers.
Example:
For one of my X3 sites, the footer shows :copyright: 2008-2023. Each year I need to remember to manually increment the current year to the next year. I realize that it's something very-minor & only takes just a couple of seconds to change for each of my X3 sites, but I was hoping that there is a way that I can automate it, similar to the way PHP does it with the above PHP function.
Similar to the way that I can add Custom-CSS to my X3 sites/folders, and then call that Custom-CSS using <span>, is there a similar way that I could call that PHP function?
Thanks in advance & have yourself a great day.
Regards,
John
I realize that footers (and other parts) of X3 are not able to execute PHP by default.
Is there a way, somehow, that I can get the result of the following to display in my footers?
Code
<?php echo date("Y"); ?>
Example:
For one of my X3 sites, the footer shows :copyright: 2008-2023. Each year I need to remember to manually increment the current year to the next year. I realize that it's something very-minor & only takes just a couple of seconds to change for each of my X3 sites, but I was hoping that there is a way that I can automate it, similar to the way PHP does it with the above PHP function.
Similar to the way that I can add Custom-CSS to my X3 sites/folders, and then call that Custom-CSS using <span>, is there a similar way that I could call that PHP function?
Thanks in advance & have yourself a great day.
Regards,
John