|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
arash Smarty n00b
Joined: 29 Jul 2006 Posts: 1 Location: Iran
|
Posted: Sat Jul 29, 2006 12:54 pm Post subject: Jalali date plugin for smarty |
|
|
Hi
I have made a Jalali date plug in for Smarty.
Jalali date is the official date in Iran, Afghanistan and Uzbekistan and is the unofficial date that is used in some parts of Pakistan, India, Iraq and Turkey.
With this plug in users can show the Jalali date just like the "date_format" function in smarty using a new function named "jdate_format". This function works just like the "date_format" and uses the same format conversations that "date_format" use to show the date.
The plugin consists of 3 files as the folowing:
modifier.jdate_format.php // This is the main plugin file.
function.g2j.php // This is a function that converts Georgian date to Jalali date and is needed in the main plugin file.
function.jstrftime.php // This is the Jalali strftime function and is needed in main plugin file.
The plugin file can be downloaded in the address below:
http://hemmat.biz/archive/smarty_jalali_date_plugin.zip
Regards
Arash Hemmat |
|
Back to top |
|
omid020 Smarty n00b
Joined: 26 Aug 2007 Posts: 1
|
Posted: Sun Aug 26, 2007 8:37 pm Post subject: Thanks |
|
|
Thanks Arash
I`m very happy to find this plugin
Regards
Omid |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|