Skip to content

ukhwaja/Hijri-Date-Magento-1.9

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Hijri Date Plugin for Magento 1.9

Working example

Showing Hijri date on alhudapublications.org welcome navigation bar

Usage

Add the following code to your theme header.phtml

$jd = Mage::getModel('core/date')->date('d');
$jm = Mage::getModel('core/date')->date('m');
$jy = Mage::getModel('core/date')->date('Y');

echo Mage::helper('hijridate/hijridate')->Greg2Hijri($jd, $jm, $jy, true);

Date calculation logic from http://www.phpsimplicity.com/tips.php?id=17

Releases

No releases published

Packages

No packages published

Languages