X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   How to add system date/time to top_menu.tpl (https://forum.x-cart.com/showthread.php?t=43147)

mphhpm 10-21-2008 10:56 PM

How to add system date/time to top_menu.tpl
 
* I would like to have the system date/time shown in the table in top_menu.tpl
? is there a way to make this work in the template:

<?php
echo date("d/m/y");
?>

peace,
mark

Victor D 10-21-2008 11:52 PM

Re: How to add system date/time to top_menu.tpl
 
There is a buit-in smarty variable "now".
You can use it in templates this way:
HTML Code:


{$smarty.now|date_format:"%d/%m/%Y"}


mphhpm 10-22-2008 06:10 AM

Re: How to add system date/time to top_menu.tpl
 
:lol: Thank you very much - just what I needed.

peace,
mark


All times are GMT -8. The time now is 01:15 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.