function getHanukkah($month, $day, $year) { $hs = hanukkahStart(); $he = hanukkahStart() + 691200; $output = array(); if (date('j/n/Y', $hs) == $day . '/' . $month . '/' . $year) { $output[] = array('Hanukkah starts', $month, $day); } if (date('j/n/Y', $he) == $day . '/' . $month . '/' . $year) { $output[] = array('Hanukkah ends', $month, $day); } return $output; }
* Copyright (C) 2010-2015 Patrick Weaver (http://trickmod.com/) * For additional information refer to the README.mkd file. * */ if (!defined('e107_INIT')) { exit; } require_once e_PLUGIN . 'dateplus/_class.php'; $pref = e107::pref('dateplus'); $tp = e107::getParser(); $sc = e107::getScBatch('dateplus', true); $template = e107::getTemplate('dateplus'); $curMonth = date('n'); $curDay = date('j'); $hs = hanukkahStart(); $he = hanukkahStart() + 691200; $text = ""; $holidays = getHolidays($curMonth, $curDay); foreach ($holidays as $holiday) { $holiray[] = array($holiday[0], $holiday[1], $holiday[2]); } if ($pref['enableUserdays'] == true) { $userdays = getUserdays($curMonth, $curDay); foreach ($userdays as $userday) { $holiray[] = array($userday[0], $userday[1], $userday[2]); } } if (date('j/n/Y', $hs) == date('j/n/Y')) { $holiray[] = array('Hanukkah starts', date('n', $hs), date('j', $hs)); } if (date('j/n/Y', $he) == date('j/n/Y')) {